Internal server error, trying to execute an approved payment

elitu
Contributor
Contributor

Hi,

I have'nt touched a thing(it was working just fine for a few days) , and suddenly i'm getting internal server error, trying to execute an approved payment 

payments/payment/#{payment_id}/execute

The create payment response:

{"id":"PAY-86J33994G20450222LH7LAJQ","intent":"authorize","state":"created","payer":{"payment_method":"paypal"},"application_context":{"locale":"en-US","landing_page":"login","brand_name":"Challenge Hero","shipping_preference":"no_shipping"},"transactions":[{"amount":{"total":"1.00","currency":"USD","details":{"subtotal":"1.00"}},"payee":{"email":"mailofeli-facilitator- at - gmail.com"},"description":"The challenge itself","item_list":{"items":[{"name":"Challenge 205","sku":"205","price":"1.00","currency":"USD","quantity":1}]},"related_resources":[]}],"create_time":"2017-11-05T06:31:01Z","links":[{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-86J33994G20450222LH7LAJQ","rel":"self","method":"GET"},{"href":"https://www.sandbox.paypal.com/cgi-bin/webscr?cmd=_express-checkout&token=EC-1JA17170S7098914J","rel":"approval_url","method":"REDIRECT"},{"href":"https://api.sandbox.paypal.com/v1/payments/payment/PAY-86J33994G20450222LH7LAJQ/execute","rel":"execute","method":"POST"}]}

The execute response:

 

{"name":"INTERNAL_SERVICE_ERROR","details":[],"message":"An internal service error has occurred","information_link":"https://developer.paypal.com/docs/api/payments/#errors","debug_id":"6b106add793f0"}

 

Login to Me Too
4 REPLIES 4

MTS_Justin
Moderator
Moderator
Hello,

I've tested this today and it's working for me. Maybe it was a temporary issue on the 5th.

"id": "PAY-20K14080GF620573XLIADXOQ",
"intent": "sale",
"state": "approved",
"cart": "7KN130900B100772H",
"payer": {
"payment_method": "paypal",
"status": "VERIFIED",

Was my post helpful? If so, please give me a kudos!
Login to Me Too

elitu
Contributor
Contributor

Hi,

It's working with the "sale" intent, not with the "authorize".

Login to Me Too

MTS_Justin
Moderator
Moderator
Hi,

Tested again, with intent as "authorize"

"id": "PAY-47P01548E7550111ELIAGJRY",
"intent": "authorize",
"state": "approved",
"cart": "5NT684718R2516221",
"payer": {
"payment_method": "paypal",
"status": "VERIFIED",

Was my post helpful? If so, please give me a kudos!
Login to Me Too

elitu
Contributor
Contributor

It's working now, but i'm afraid it won't tommorow. It's not stable and frustrating.

 

(The attached image is taken from my system log - the create action result on the left , the execute on the right.)

 

Screen Shot 2017-11-07 at 9.35.52.png

 

 

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.