SandBox Return URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello,
I need to test my return URL once client has payed via Paypal.
So i am trying to set it up in the sandbox but I fail..I just can't find where it is..
All the doc I find online are outdated.
I connect to https://www.sandbox.paypal.com/ with a sandbox business account and I checked everywhere but I can't find it.
Can anyone help please ?
Many thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Good day @dock211,
Thank you for posting to the PayPal community.
You can achieve this by passing the parameters in the body of the create order API with the return value for the return_url parameter.
It is important to note that the previously used fields in the application_context are now deprecated. Instead, we recommend utilizing the experience_context object under the payment_source. This will allow you to access the necessary fields, such as payment_source.paypal.experience_context.shipping_preference. By specifying this field in the experience_context object, instead of the application_context object, you will be able to proceed smoothly.
For more detailed information and further details about this change, I kindly request you to refer to the following link: https://developer.paypal.com/docs/api/orders/v2/#orders_create!path=application_context/return_url&t...
If you are still facing issues, please create an MTS ticket via - https://www.paypal-support.com/s/?language=en_US with the detailed information and error details.
Sincerely,
Vaishnavi
PayPal MTS
If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello
thank you for your help and sorry for the late reply. After posting my message, I found this : https://developer.paypal.com/api/nvp-soap/paypal-payments-standard/integration-guide/Appx-websitesta... so I used the "return" parameter in my form.
It works as I am redirected to my url, however I have a new issue as I always have a 4002 error.
So now with your answer I am confused.. The 2 pages (https://developer.paypal.com/docs/api/orders/v2/#orders_create!path=application_context/return_url&t... and https://developer.paypal.com/api/nvp-soap/paypal-payments-standard/integration-guide/Appx-websitesta... ) seem contradictory.
Which one is correct ? and ff I can use the "return" parameter like I did, why do i get a 4002 error ?
Many thanks for your help

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Sandbox account collect billing and shipping address in Sandbox Environment
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- Google Pay SCA authentication dialog appears behind pay.google.com overlay in REST APIs
- Auto Return feature for digital products without using woocommerce? in PayPal Payments Standard
- NOT ENABLED TO VAULT PAYMENT SOURCE in Sandbox Environment