CHECKOUT.ORDER.APPROVED vs PAYMENT.CAPTURE.COMPLETED

ct_4444
Contributor
Contributor
I've built my integration with the V2 API but I can't help but feel like I'm missing something. I'm simply trying to integrate online payments for my website where the customer pays there and then. No subscriptions, no authorisation for future capture etc. I don't mind redirecting the customer to PayPal to make the payment (as opposed to collecting the card details myself). I can do this using the API: /v2/checkout/orders   ...but this results in just an authorised order - which I then have to spin-off a separate process to "Capture" those funds using the API: /v2/payments/authorizations/{authorization_id}/capture   ...that wouldn't be so bad if it didn't take circa 15 minutes for the final webhook (event: PAYMENT.CAPTURE.COMPLETED) to come through and complete the order. What am I supposed to show the customer on the confirmation page in the meantime?   My questions are: 1). Is there a way to just take payment (and capture the funds) immediately? Should I be using something different to the "Order" end points? 2). When a payment is authorised, do I need to wait for confirmation of capture - or is it safe to assume that the funds are there before I've tried to capture them if the order has been approved (web hook event: CHECKOUT.ORDER.APPROVED)? 3). When would you ever want to create an order but not actually capture the funds?
Login to Me Too
2 REPLIES 2

vaishnavib
Moderator
Moderator

Good day @ct_4444,

 

Thank you for posting to the PayPal community.

 

Merchants should first perform the Create Order API( https://developer.paypal.com/docs/api/orders/v2/#orders_create) call and then redirect the customer/buyer to the "approve" URL. 

 

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

 

For further guidance on integrating Standard Checkout and understanding the workflow in detail, please refer to the following link: https://developer.paypal.com/docs/checkout/standard/integrate/#link-howitworks

 

If you are still facing issues, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US  with the detailed information and error details.

 

Sincerely,

Vaishnavi

PayPal 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

janat08
Contributor
Contributor

I think the question is if he can expect payment capture to always be complete in the status of the response, or if he has to integrate webhooks to know when capture took place.

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.