Payment capture flow using Rest API

icicic
Contributor
Contributor
2 REPLIES 2

MTS_Chiranjeevi
Moderator
Moderator

Good day @icicic,

 

Thank you for posting to the PayPal community.

 

https://www.paypal.com/apex/product-profile/p4p_ordersv2/createOrder documentation is a demo/simulator.

 

Please perform Create Order API(https://developer.paypal.com/docs/api/orders/v2/#orders_create) call and then redirect the customer/buyer to "approve" URL returned from the Create Order API response as below: 

{ "href": "https://www.paypal.com/checkoutnow?token=*******”, "method": "GET", "rel": "approve" },

Once the order is approved by the customer/buyer, merchant should perform Capture Order (https://developer.paypal.com/docs/api/orders/v2/#orders_capture) API call and customer/buyer should pass the valid funding source.

 

Detailed guide link - https://developer.paypal.com/docs/api/orders/v2/

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

icicic
Contributor
Contributor

HI @MTS_Chiranjeevi thank you, I appreciate you taking the time to reply.

 

however https://www.paypal.com/apex/product-profile/p4p_ordersv2/createOrder documentation is a demo/simulator.

That doesn't answer the question at all, the 2 links I provided are for the SAME API! so why does the documentation differ?

 

You explanation of payment flow is godd thank you

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.