Server Side REST API Sandbox - return_url not requested after payment creation
ppazos
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Feb-08-2018
10:18 PM
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?
3 REPLIES 3
MTS_Justin
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb-09-2018
01:11 AM
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!
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!
ppazos
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb-09-2018
06:47 AM
MTS_Justin
Moderator
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb-09-2018
07:52 AM
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!
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!
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content