Code 500(INTERNAL_SERVER_ERROR) when trying to authorize order AFTER order approved by customer.

Lyngholm
Contributor
Contributor

I am trying to build a payment flow using PHP and your REST API.

 

I am able to create an order, have the user approve it, but when I get around to authorize the payment, I am getting an error code 500, with the text: INTERNAL_SERVER_ERROR. My debug id is: c27acb33a0611

 

When I create an order with intent to capture, I get a correctly informed error message, but when I try to use the flow as intended, with the intent set to AUTHORIZE, I am simply not able to make the call.

 

What do I do? I am using the follwing calls in order:

1. v2/checkout/orders
2. (Have the user approve the order)
3. v2/checkout/orders/{id}/authorize

 

I am getting an error at point 3. I should also mention that I am working in Sandbox mode.

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.