Limit Stripe Subscriptions to a Specified Number of Payments

THIS POST MAY CONTAIN AFFILIATE LINKS. PLEASE READ OUR DISCLAIMER FOR MORE INFO.

Symptoms

Need to create a payment plan of equal installments for a limited number of transactions using the Gravity Forms Stripe Add-On. Or you would like to cancel a Stripe subscription after a specified number of payments.

The Stripe API doesn’t allow you to set the total number of recurring payments when creating the subscription and as a result you will not see an option for that when setting up your Stripe feed.

How To Fix It

The geniuses over at Gravity Forms have already put together a simple solution to this problem. You can read more about it here: Cancel a Stripe Subscription After a Specific Number of Payments.

Basically all you need to do is add the code snippet below to your themes functions.php file or a functionality plugin like WPCodeBox (recommended) and modify it as explained in the snippet.

Need More Help?

If you still need help, feel free to use the comments or chat options below.

If you have an active Gravity Forms license, you can also open a support ticket here.

Get the latest news, tips, and how-tos all delivered to you!

Your information is used only for email communications by GravityRanger. We do send the occasional product promotion email.

Name*
This field is for validation purposes and should be left unchanged.


>