DoCapture Api for Capture Pending payement - paypal

I developed a merchant website that use the DoCapture Api for Capture Pending payment.
https://developer.paypal.com/docs/classic/api/merchant/DoCapture_API_Operation_NVP/
It works !
Now my problem is how to delete Pending payement using API Call.
I Found DoVoid .
Is it the right command?
Thank in advance

Yes, DoVoid would void a pending authorization.

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

How to use the paypal payout api return url?

I want to use the payout interface of paypal. Using curl in sandbox mode has been called. However, I dont know how to use returnUrl, because I need to know whether the payment of paypal is successful. This should be an asynchronous operation. I filled in the callback address in the location shown in the figure, but I checked the access log and found that no callback was received. Who can help me and how to solve this problem?
The URL you speak of in REST App settings really only applies to things like Connect with PayPal or OpenID integrations, and has nothing to do with Payouts.
To be notified of Payouts status, see the API response of your Payouts request, or register for Webhook events that have to do with Payouts.

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

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.

Recurring in Authorization & Capture

I managed to make an authorized payment using Authorization & Capture API.
SetExpressCheckout with PAYMENTREQUEST_n_PAYMENTACTION=Authorization
GetExpressCheckoutDetails to get PAYERID and other information
DoExpressCheckoutPayment with PAYMENTREQUEST_n_PAYMENTACTION=Authorization
DoCapture with AUTHORIZATIONID={transactionID_from_step_3}
Everything works fine. But, I unable to perform doAuthorization and DoReauthorization for the next time. I wish to charge my subscribers recurring every month. A few attempts have been tried. Does anyone know how to perform Authorization & Capture recurring? Any suggestions are greatly appreciated.
PS: Sorry for my broken English.
An authorization is an agreement to pay for one bundle of goods. Once that authorized transaction is completed the authorization is consumed/used up. You cannot use it (alone) for multiple transaction payments.
You need to use the Reference Transaction product, which is how PayPal collects the user's agreement for you to make (current and) future transactions:
https://developer.paypal.com/docs/classic/express-checkout/integration-guide/ECReferenceTxns/

opencart payments get cancelled through paypal

Helo I am currently using opencart version 1.5.1 on a website and when a customer makes a payment through paypal, the transaction appears as cancelled and then is sent as pending to paypal.
Can anyone please explain what I can to do resolve this?
Thanks very much in advance.
Have you set up the correct statuses in the admin panel under EXTENSIONS > PAYMENTS > PAYPAL STANDARD? If they're all set to cancelled, that would explain this
In admin panel Paypal checkout section, there is a of tab order status. Here you can set order status after processing.