Limit Stripe Subscriptions to a Specified Number of Payments

Sep 6, 2021

,

1 Min. Read

Share URL

This page may contain affiliate links. Please read my disclaimer for more information.

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.

Photo of author
About the Author
Chris Eggleston
Husband. Father of 4. Grandpa of 2. Chief Problem Solver exploring business systems, technology, AI & faith — helping people solve real problems. @mantiswp @chrisegg

Support Chris - Donate $5

Gravity Wiz Add-Ons

Advertisement

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments

Related Post

Automatically Switch from a Registration Form to a Waitlist in Gravity Forms

This tutorial shows you how to automatically switch from a registration form to a waitlist form in Gravity Forms using entry limits or attendee tracking with a custom shortcode.

Sep 29, 2025

4 min. read

Using AI + Gravity Forms to Streamline Job Applications

Hiring is tough. Sorting through dozens, or even hundreds, of job applications is time-consuming, repetitive, and prone to human bias. That’s where combining Gravity Forms, Gravity Flow, and AI automation comes in.

Sep 26, 2025

2 min. read

Turn Gravity Forms Image Choice Field into carousel

Problem Recently, I saw a Gravity Forms user looking for a way to style the new Image Choice field. Specifically,...

Jul 14, 2025

3 min. read

Offer Subscription With One-Off Add-On Product Options with Gravity Forms

Want to offer a subscription + one-time add-ons in Gravity Forms? Here’s how to do it using Stripe’s setup fee feature in a single payment feed.

Mar 24, 2025

2 min. read

Gravity Forms A/B Split Testing

Problem We recently received an interesting request from a Gravity Forms user who wanted to know how to do A/B...

Mar 21, 2025

5 min. read

Gravity Forms Field Validation Based on Form Entries

Problem Recently a client reached out with a very specific request for a project she was working on. Simply put,...

Mar 20, 2025

3 min. read