SandBox Return URL

dock211
Contributor
Contributor

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

Login to Me Too
2 REPLIES 2

vaishnavib
Moderator
Moderator

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.

Login to Me Too

dock211
Contributor
Contributor

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

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.