mermberfix logo x
The MemberFix Team’s got you covered.

ClickFunnels Subscription Upgrade with Stripe – Script

ClickFunnels Subscription Upgrade with Stripe Script banner

Watch our quick overview video


Billed annually for $19.97

Single website – Annual – $19.97
5 websits – Annual – $49.97
15 websits – Annual – $99.97

As long as you have an active licence we will continue to support you with this


Let’s say you’re selling your membership through one of the most popular third-party funnel building apps, ClickFunnels.

What happens when your users want to upgrade from a lower tier to a higher tier of your membership (or vice versa)…?

In ClickFunnels this can’t be done “out of the box” because ClickFunnels sells your offers as products, not as memberships.

Even if you’re using our ClickFunnels MemberPress Integration all of payment handling still happens on the ClickFunnels side.

One of our customers wanted the ability to offer her members upgrades and downgrades without having to switch away from ClickFunnels.

So we came up with a solution  which involves Zapier, Stripe and a custom script.

Which also works for downgrading or changing the membership to another one. In essence what the script does is to cancel a Stripe subscription.

After a 5 minute setup, everything will happen automatically and your user’s lower-tier subscription will be canceled as soon as they sign up for the higher tier one or vice versa.


Requirements for this tutorial

In order to perform automatic upgrades or downgrades of subscriptions with ClickFunnels and Stripe using our custom script, you’ll need the following items:

1 – ClickFunnels – This is a page builder and funnel builder that many of our customers use extensively, particularly for its excellent marketing features.

2 – Stripe – You’ll need to have an account with this popular payment processor as well.

3 – Zapier – You’ll need a paid Zapier account. The free version of Zapier doesn’t allow for multi-step zaps, which you’ll need to get this working.

4 – Our ClickFunnels Subscription Upgrade script – This is the key to the puzzle! This custom script automatically performs the actual upgrade (or downgrade) in real time, creating a smooth experience for your members and less headaches and support for you.

How does the ClickFunnels subscription upgrade with Stripe work?

Setting up Zapier

First, you need to set up a custom webhook that will be sent when somebody buys an upgrade to one of your memberships using ClickFunnels.

You use Zapier for this.

Here are the steps you need to follow:

1 – Create a new zap and set ClickFunnels as the trigger application.

Set the event as “New Successful Purchase“.

After that, you have to connect your account.

Simply follow the steps on the screen and they will guide you through connecting Zapier to ClickFunnels via API).

Image 2019 09 29 at 1.50.06 PM - ClickFunnels Subscription Upgrade with Stripe - Script

2 – Pick the funnel and the funnel step where your member makes the upgrade purchase.

Image 2019 09 29 at 1.52.17 PM - ClickFunnels Subscription Upgrade with Stripe - Script

3 – Create a new action step in your Zap and select “Webhooks by Zapier“.

The action event should be set to “POST

Image 2019 09 29 at 1.54.40 PM - ClickFunnels Subscription Upgrade with Stripe - Script

4 – Configure the POST request per the screenshots (click to zoom in) and text instructions below.

91cf0219fb18b348f1af412a6d431a67 Image 2019 09 29 at 1.56.02 PM - ClickFunnels Subscription Upgrade with Stripe - Script
Image 2019 09 29 at 1.57.07 PM - ClickFunnels Subscription Upgrade with Stripe - Script

The options that we have to edit here are:


Note: You can upload our custom script anywhere you can run PHP scripts, e.g. your WordPress site (via FTP), on a DigitalOcean LAMP droplet, etc. You can also rename it to whatever you want.

But wherever you put it, you have to make sure to get the exact path of the file after you upload it and paste the path into this step of the zap.

Please see “The Upload” step for upload instructions.

Payload Type – Form

This means that Zapier will send your data as form-data, thus simulating a form submission.

Data – User_Email -> ClickFunnels Contact Email

Image 2019 09 29 at 2.00.05 PM - ClickFunnels Subscription Upgrade with Stripe - Script

Headers – Source -> MemberFix-ClickFunnels

Image2525202019 09 21252520at25252010.14.02252520PM - ClickFunnels Subscription Upgrade with Stripe - Script

This a security header. It makes sure that Zapier only process the requests that come from your Zap.

Copy and Paste it exactly as it’s written below because it’s case sensitive:


Getting the API Key from Stripe

In Stripe you need to get your API key that you need to add to the script.

1 –  After logging into Stripe you have to click “Developers” in the sidebar menu.

Image 2019 09 29 at 2.05.35 PM - ClickFunnels Subscription Upgrade with Stripe - Script

2 – In the menu that opens click “API keys”.

Image 2019 09 29 at 2.06.44 PM - ClickFunnels Subscription Upgrade with Stripe - Script

3 – Here you should be able to see your “Publishable key” and “Secret key”. You need to copy the “Secret key” and use it in the next step.

eb43bf8086e04c7586463aea369537ff Image 2019 09 29 at 2.07.54 PM - ClickFunnels Subscription Upgrade with Stripe - Script

Configuring The ClickFunnels / Stripe Upgrade Script

After checkout you’ll get a .zip file.

Once you unzip it you’ll see there is a file there called “t-request.php”.

You’ll need to edit this file. It’s super easy…don’t worry. 🙂

Note: I recommend you download the Sublime Text editor because it’s really fast and easy to use…

in that file at lines 2 and 3 you will see the following:


1 – Change the value of “$api_key” to your secret key that you copied in the previous step.

(Don’t delete the single quotes or the semicolon.)

2 – Next change the value of “$sub_default_name” to your original ClickFunnels product name

After you’ve completed these steps, lines 2 and 3 of the script will look something like this:

$api_key = 'YourStripeAPIKeyGoesHere';
$sub_default_name = 'My Awesome Membership Product - Yearly Plan';

The Upload

1 – Now all you need to do is to upload all the files you received in the archive to your website. Including the “t-request.php” and the “stripe-php” folder.

You can do that using FTP, cPanel, etc.

Here are 2 articles about how to upload files through FTP or cPanel.

2 – The link to your “t-request.php” file (which is the script URL that we put in the Zap) depends on where you upload the files.

For example, if you upload it to a new folder in “public_html” called “memberfix” it will be

You will need to use this link in the first Zap that we built.

Why did we develop the ClickFunnels subscription upgrade script for Stripe?

One of our clients needed a solution for the ClickFunnels upgrade issue.

So I did a lot of research on the subject to see if there is already a solution for that but I couldn’t find anything about that.

So I started working on this custom solution. 🙂

Will you provide support for this script?


Please note that we provide support for this script exclusively in the comments section of this post.

So if you have any questions or issues please come back to this post and leave a comment describing them (you can also upload screenshots in the comments).

We will provide email support at but using comments instead, everybody benefits from the conversation and explanations, including existing and potential customers. 🙂

It also fosters transparency which improves the direction of development by involving our entire community.


Script Dependencies

To use this script you need to have the following:

1 – Zapier (paid account)

2 – ClickFunnels

3 – Stripe

Product Stats

Last UpdatedSep 21, 2019
Change LogView

How can I download the ClickFunnels subscription upgrade with Stripe script?

We offer this script for sale starting at $15. If you’d like to purchase it please complete the checkout below.

You’ll gain access after checkout.

After that, you have to follow our usage instructions and you are all set. It should work by itself from now on.

All done! ?

Secure Checkout

Secure Checkout ClickFunnels Automatic Stripe Subscription Upgrade and Cancellation Script

Change Log

1.0.0 – September 21, 2019

  • Initial release

Feature Requests and Support

If you have a feature request or would like to submit a support request just use the form below. ????

Try this plugin risk free
With our 30-day money-back guarantee

If, for any reason, you are unhappy with the plugin or can not get it to work within 30 days, we’ll be happy to refund you the full amount – no questions asked.