When a user cancels are recurring payment in XF, does it stop payments in Paypal and Stripe?

Will Franco

Active member
For example, I signed up for an account on VRMB's forum. I get charged $45/mo for the subscription. If I cancel my subscription to the forum, will PayPal / Stripe stop charging the card on file?
 

Chris D

XenForo developer
Staff member
By default, XF doesn’t support cancelling PayPal recurring payments.

Maybe that’s functionality they’ve added but either way your best bet is to just log in to PayPal and make sure it is cancelled there.

With Stripe, you can cancel the recurring payment on the XF side.
 
Just to jump in as I have the same query - is this because PayPal doesn't support this via the IPN, or it just isn't supported by XF?
 

beerForo

Well-known member
Just to jump in as I have the same query - is this because PayPal doesn't support this via the IPN, or it just isn't supported by XF?
The PP API was updated 10 years ago now. You can vote for XF to adopt it.
 

cdub

Well-known member
By default, XF doesn’t support cancelling PayPal recurring payments.

Maybe that’s functionality they’ve added but either way your best bet is to just log in to PayPal and make sure it is cancelled there.

With Stripe, you can cancel the recurring payment on the XF side.
What about stripe?

Also... Does it immediately cancel the upgrade or does it remain active until the expire date?
 
As I understand, it wouldn't immediately cancel the upgrade in either case. If you've paid for a month and cancel the subscription after 2 weeks, you'd still get your first month. Once the subscription is cancelled, no new IPN/webhook comes in to renew it, so it will expire. The difference between Stripe and PayPal is that XF can send the cancellation request to Stripe, but not to PayPal.
 

cdub

Well-known member
As I understand, it wouldn't immediately cancel the upgrade in either case. If you've paid for a month and cancel the subscription after 2 weeks, you'd still get your first month. Once the subscription is cancelled, no new IPN/webhook comes in to renew it, so it will expire. The difference between Stripe and PayPal is that XF can send the cancellation request to Stripe, but not to PayPal.
I might do a test and see. I'll report back.
 

cdub

Well-known member
I might do a test and see. I'll report back.
Appears so!!! I'm leaving it active to see what happens when it renews tomorrow.

Screenshot_20210705-111222.png

I really wish an email would be sent out warning that the card is about to be charged to improve member relations.
 
Looking through the code, Stripe does an API call to cancel the subscription but doesn't do anything with the actual purchased item, and the Cancel button for PayPal purchased upgrades links to https://www.paypal.com/cgi-bin/webscr?cmd=_manage-paylist. So the upgrade would expire via the cron that runs, and nothing would come in to re-activate it. Makes sense because you're cancelling the recurring subscription, things like Netflix keep you active for the current billing period too. I would imagine any payment email would come from the payment provider rather than XF.
 
Top