I have the following stream with Paypal:
I create a payment with an intentional βorderβ and I redirect the user to the Paypal website.
As soon as the user returns, I complete the payment.
Then I authorize the order.
At this point, I can still see the payment or order, and I get the expected result.
- Finally, I fix the order.
After I grabbed the order, I cannot find the payment using / v 1 / payments / payment / PAY-XYZ or receive the order using / v 1 / payments / orders / O-ABC. I get 500 internal maintenance errors.
Before you tell me to send the debug ID to Paypal, because I came across their error : I tried, but they do not respond. I received them by phone, sent support requests, etc. I have not received a response from them, so I need to contact the community.
After the capture, I can still find the payment by specifying payment resources. Since I keep the PayPal creation time, I send a GET request that looks like this:
?/ v1 / payment / payment start_time = 2016-06-21T09: 08: 56Z & end_time = 2016-06-21T09: 08: 58Z
Of course, I can return the object of payment, but it looks terribly hacker for me.
, , - , . . , , , . webhook ( - , ), , .
REST API https://developer.paypal.com/docs/api/payments/#payment_get , , , , , .
, , _ (, ).
: ?
, - Paypal , debug_id, : 3ffa3007a7561 ( https://api.sandbox.paypal.com/v1/payments/orders/O-3PA36862ST053572T) 85576d66784cd ( https://api.sandbox.paypal.com/v1/payments/payment/PAY-7N237030X85089344K5UQIKI)
, .
,