Return url not working when creating subscription with REST API

carek
Contributor
Contributor

I currently test the sandbox using PayPal Basic Integration guide to create a subscription with rest api. Subscription created successfully, then I redirect user to hateoas link from subscription response. Everything looks ok,but after successfully completing the steps on PayPal it doesn't redirect to merchant site. Instead there is an image of a large check mark and saying that you "You set up a subscription to John Doe's Test Store". Assuming that when PayPal redirects to merchant site the response will have some sort of details on the subscription that would be helpful to finish order.

So, how to redirect user back to merchant page after success subscription?

Login to Me Too
1 REPLY 1

carek
Contributor
Contributor

Ok, I found the solution myself. Just add 'return_url' parameter in create subscription request.

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.