Cancel Subscription Button

s_echelon
Contributor
Contributor

Hello,
how does the button for the automatic subscription exist, there is also a button that, passing a specific parameter, cancel a given subscription?
I tried searching on this forum but I can't find the answer.

Thanks a lot!

Login to Me Too
1 ACCEPTED SOLUTION

Accepted Solutions
Solved

MTS_Carlos
Moderator
Moderator
Hello,

If you are creating HTML buttons, the user (subscriber) will cancel the subscription by logging into their PayPal account, navigating to their recurring payments portion of their profile and cancel the billing agreement.

Should you require a cancel subscription button on your site, this would need to be built out using the subscription API https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_cancel.

Hope this helps!

View solution in original post

Login to Me Too
3 REPLIES 3

s_echelon
Contributor
Contributor

Can anyone help me?

Login to Me Too
Solved

MTS_Carlos
Moderator
Moderator
Hello,

If you are creating HTML buttons, the user (subscriber) will cancel the subscription by logging into their PayPal account, navigating to their recurring payments portion of their profile and cancel the billing agreement.

Should you require a cancel subscription button on your site, this would need to be built out using the subscription API https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_cancel.

Hope this helps!
Login to Me Too

brahim024
Contributor
Contributor

you should use subscription cancel api endpoint
https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_cancel

then send the request using ajax or any method you prefer.

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.