Need clarification on return_url and cancel_url in post body of subscription api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am in fix, been searching for long without any clue. Any quick response would be helpful.
I am making a create subscription call using the "/v1/billing/subscriptions" api call.
I gave my return_url as "http://xxx/#/flows/paypal-subscription?subscribed=true"
and cancel_url as "http://xxx/#/flows/paypal-subscription?subscribed=false"
These routes are what my application understands.
But in case of success or cancel from buyer, paypal redirects with additional query params in my above urls.
Something like this : http://xxx/?subscription_id=I-H0PSL4SAYRM1&ba_token=BA-0S0606413X468833P#/flows/paypal-subscription?...
and
How to get around this?

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Subscription API do not redirect after payment confirmation in Sandbox Environment
- PayPal subscriptions using a credit card without registering an account in PayPal Payments Standard
- return_url for v1/billing-agreements/agreement-tokens API doesn't work anymore (in sandbox) in REST APIs
- How can I make a subscription, where the half of the amount go to merchant? in REST APIs
- PayPal Subscription revise - buyer is not redirected after consent in Sandbox Environment