INTERNAL_SERVICE_ERROR on checkout/pay

0xff00ff
Contributor
Contributor

I try to use checkout from docs (all data is got from https://developer.paypal.com/docs/marketplaces/orders/integration-guide/#create-order this page, i just replaces emails with my own? 2 emails for receive money, and one for payment).

The steps are:

1. i get access token (success action)

2. i create an checkout (success action)

3. i confirm this checkout by client (success action)

4. i get checkout info, (order status is COMPLETED, purchase_units status is PENDING)

5. i try to pay the order and get an 500 error:

 

{
"name": "INTERNAL_SERVICE_ERROR",
"message": "The server encountered an internal error that prevented it from fulfilling this request.",
"information_link": "https://developer.paypal.com/docs/api/#INTERNAL_SERVICE_ERROR",
"debug_id": "490c47f865964"
}

 

All required headers i set (Accept, Authorization, Content-Type)

 

And i get this 500 error always, i can't pay. what i do wrong?

 

Login to Me Too
1 REPLY 1

MTS_Justin
Moderator
Moderator

Hello,

This issue is due to the order API permissions for marketplaces not being enabled on your sandbox account.

Testing for order API for marketplaces within the sandbox environment won't be available until this summer.


Was my post helpful? If so, please give me a kudos!
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.