Paypal Internal Server Error when capturing payment with rest api -
i have issue in c#-based project, can reproduce curl well. code working few days ago isn't , i'm pretty sure haven't changed it.
i have payment has been authorized , have id, correct (when close transaction online tool authorization_already_completed instead of server 500 error).
here's curl repro it, sensitive info redacted:
// check if authidhere code correct: curl -v -x https://api.paypal.com/v1/payments/authorization/authidhere -h "content-type:application/json" -h "authorization:bearer bearer123"
the above call works , returns: { "id": "authidhere", "create_time": "2013-07-17t21:17:58z", "update_time": "2013-07-17t21:18:00z", "state": "authorized", "amount": { "total": "1.35", "currency": "usd", "details": { "subtotal": "1.35" } }, "parent_payment": "pay-somelongidhere", "valid_until": "2013-08-15t21:17:58z", "links": ...whole bunch here]} }
then call capture
curl -v https://api.paypal.com/v1/payments/authorization/authidhere/capture \ -h "content-type:application/json" -h "authorization:bearer bearer123" \ -d '{"amount":{"currency":"usd","total":"1.32"},"is_final_capture":true}
and http 500 status:
{ "name": "internal_service_error", "message": "an internal service error has occurred", "information_link": "https://developer.paypal.com/webapps/developer/docs/api/#internal_service_error", "debug_id": "7edadeba20509" }
some other debug_id values are: 062fc6964d9a8, 6eebc751504eb
quick update: interestingly failed in underlying acquirer call - trying figure out went wrong.
are these debug_ids associated same authorization_id ?
Comments
Post a Comment