Return url not working when creating subscription with REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok, I found the solution myself. Just add 'return_url' parameter in create subscription request.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- can we assign a unique detail to every subscription creation? in NVP/SOAP APIs
- Receiving a PAYMENT.SALE.COMPLETED webhook notification - how can I trace the parent Subscription in REST APIs
- Encrypted subscription button has stopped working in NVP/SOAP APIs
- Subscription Quantity Not Working in PayPal Payments Standard
- Website payment preferences, auto return stopped working with new subscription payment button in PayPal Payments Standard