If I don't capture within the 3 hour limit, how can I be sure that the payment went through?

willowglentrees
Contributor
Contributor

I'm using the v2/checkout/orders API to create an order and then after the payment is processed, I get a callback from PayPal where I call /v2/checkout/orders/{id}/capture.  Every once in a while, I don't get that callback... I'm guessing the user is closing their browser window too quickly or something.


When I audit my orders, I'm going through the /v1/reporting/transactions API to double-check to my database.  When I see an order with an orderID (from /v2/checkout/orders) without a captureID (from .../capture), how can I double-check that the order fully went through?  Is 

'transaction_status' => 'S' and 'transaction_event_code' => 'T0006' enough to know that the transaction was completely successful?

 

If I try to call capture after I notice the issue (a day or two later), I get a RESOURCE_NOT_FOUND error.  Based on this post, it looks like that's because the captureID expires after 3 hours.  So presumably, I have NEVER called capture on that captureID and I can't do it after the fact.  Is that OK?

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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