How can i find a transaction in paypal which is not made via rest api? - paypal

I am not able to find payment or sale object in paypal with the txn_id returned in IPN message. I want to process refund via rest api call for such transactions.

In general, you can perform a refund via REST API call only if your transaction was made via REST. Anyway, it depend of the flow that the transaction followed...
If you want provide further details, I will be more than happy to provide more information about.
Thank you in advance.

Related

API callback from Paypal when there is dispute or refund

I am trying to setup a website with a backend to capture papal orders and payments using their orders API.
Everything is expected to be controlled using code so is there any way paypal will send a callback when there is a dispute or customer asks for a refund ? i.e. if there are many orders it would be hard to keep track of disputes by reading emails.
Yes, check out the PayPal API documentation. The Disputes API is what you are looking for.
Set up a webhook listener on the REST app for the events you want to listen to (specify * for all). There are events for disputes and refunds; see the list in the PayPal documentation

Is PayPal REST API still lacking an equivalent of GetExpressCheckoutDetails?

We are doing a new PayPal Express integration for an ecommerce store that needs to retrieve the Billing and Shipping Address information after the user logs into PayPal to authorize the payment, but BEFORE we capture the payment.
We need that information so we can create a user account in our store for them, if one does not already exist for them, and so we can properly calculate the shipping charges for the customer.
The following post over a year ago implied that had not been implemented into the REST API yet. Is that still the case?
PayPal REST API equivalent of GetExpressCheckoutDetails
If it has been implemented, would somebody please point out to me how to access that information? If so, I would greatly appreciate it.
If it has not been implemented, does anyone know when it will be implemented?

Paypal IPN handler

Does the Paypal provides any api to retry the IPN message using message id? I need to integrate functionality similar to the "resend ipn" button available on IPN history page of paypal.
There is no API to trigger the resend of an IPN, but there are API's to obtain the details that would be included in an IPN for a given transaction, so depending on what you're doing that make work for you.
For example, the combination of TransactionSearch and GetTransactionDetails can be very useful.

SetExpressCheckout occurs a charge with every call?

My team is implementing PayPay Express Checkout (NVP) for our website. Before even initiating a transaction, we would like to perform a 'healthcheck' to confirm PayPal is alive and well. Looking over the API documentation, there is no obvious 'healthcheck' service available.
We are thinking of using the response from the SetExpressCheckout call to alert us of any system issues. Are we charged for every SetExpressCheckout call or for only completed transactions?
Making SetExpressCheckout calls and then abandoning the transaction, is this just going to anger PayPal?
Before we go too far into this, I'd like to mention PayPal APIs are in general quite stable, so such a thing shouldn't be needed at first place.
Having said that, are you seeing too many API failures? If so, I'd rather look into that (contact PayPal support) rather than using SetExpressCheckout as a way to do my own "health checks". Also, I suggest you to subscribe to such notifications at www.paypal-notify.com. This is PayPal website that allows merchants to subscribe for important notifications such as the one you are looking for.
Hope this helps.

paypal auto refund script?

I need to refund a list of transactions to buyers, but instead of doing it manually by going into paypal account I need to write a script from my site so that it will automatically refund those payments. what is the URL that i have to send necessary details from a form or a link.
Please tell me a way or give me a proper link
You would use the RefundTransaction API for that. You may also need to make use of TransactionSearch to find the transaction ID of orders you need to refund if you don't already have them.