Need clarification on return_url and cancel_url in post body of subscription api

sayan-rudder
Contributor
Contributor

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

 

http://xxx/?subscription_id=I-H0PSL4SAYRM1&ba_token=BA-0S0606413X468833P#/flows/paypal-subscription?...

 

How to get around this?

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.