Limit Stripe Subscriptions to a Specified Number of Payments

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.

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments