Can you set automatic "capture" for processing payments?

JGrand11
Contributor
Contributor
I am using NVP/SOAP API integration (Classic), and would like to know how to set "capture" to capture the payments automatically.
Login to Me Too
1 REPLY 1

MTS_Jennifer
Moderator
Moderator

While you could technically choose Authorization in the Payment Action  in the SetExpressCheckout API call then send a DoExpressCheckoutPayment and then a DoCaptureAPI call, if you would like to have a payment automatically captured then a Sale Transaction would be the best option. 

 

If you send a Payment Action of Sale in the SetExpressCheckout and the DoExpressCheckoutPayment API Calls the payment will be automatically captured.

Here is the documentation on the SetExpress Checkout API Calls:

https://developer.paypal.com/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/

 

Here is the documentation on DoExpressCheckoutPayment API:

https://developer.paypal.com/docs/classic/api/merchant/DoExpressCheckoutPayment_API_Operation_NVP/

 

"PAYMENTREQUEST_n_PAYMENTACTION  Sale. This is a final sale for which you are requesting payment (default)." 

 

Thank you,

Jennifer

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.