Server Side REST API Sandbox - return_url not requested after payment creation

ppazos
Contributor
Contributor

I'm testing the REST API, managed to create a payment via POST https://api.sandbox.paypal.com/v1/payments/payment

 

On the JSON body I set the redirect_urls.return_url to an URL on my website that makes a log of the request.

 

I get a 201 Created response, but my return_url is not called. Without that I don't have the payer_id needed to execute the payment, so I'm stuck here.

 

FYI: The returned header paypal-debug-id is d8b5fa2f68fc0

 

How can I receive the payer_id if the return_url is not requested?

Login to Me Too
3 REPLIES 3

MTS_Justin
Moderator
Moderator
Hello,

When you created the payment, did you follow the approval URL to login to a sandbox account and agree to the payment as a buyer ?

If you did not, how would the payerid of the payee account be known ?


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

ppazos
Contributor
Contributor

Hi Justin,

 

Nope, where is the documentation about that?

Login to Me Too

MTS_Justin
Moderator
Moderator
Hello,

It's located here : https://developer.paypal.com/docs/integration/direct/payments/paypal-payments/#get-payment-approval

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.