stripe-express doc logo
Launch Stripe Express

Create Subscription Element

A guide to show how to create a subscription payment

wp stripe express subscription checkout

Work with subscription

With subscriptions, customers make recurring payments for access to a product. A subscription might not seem much different from a one-time purchase of a t-shirt or water bottle.

Note: currently, this plugin will redirect to stripe-hosted checkout page to finish the subscription payment, but in future, we plan to support more subscription payment elements to finish the payment by staying in self page.

wp stripe express subscription checkout

Step 1: Create subscription element

So far, we have only two types elements for recuring pay: Single Sub and Multi Sub.

Single Sub means there is only one price option to choose, on the contrast, Multi Sub means you can provide multi price option for customer, similar with what price table does.

wp stripe express create recuring

The question is: what's the price coming from? Where we can create? Let's continue.

Step 2: Create/Setup your price

Our plugin don't store any created price from stripe or create prices by self, we only fetch the single-source prices from Stripe on the fly by leveraging the stripe API. Therefore, it's free to create price in stripe side or within our plugin.

Before create your price, you need to know how to model your subscription prices.

How to model your subscriptions (Important concept)

Products and Prices are the primary objects used to model subscriptions. Products define what you’re selling and prices define how to charge for the product. For example, if you offer photo hosting for 15 USD a month, photo hosting is your product and the 15 USD a month is your price.

Normally, one product can includes multiple prices, but if you want to make thing simpler, you can always create one product with single price.


For example, you want to provide a premium service: basic with $12.99/month, pro with $24.99/month, business with $48.99/month. Then you can create three products:

Create price in Stripe dashboard

wp stripe express product list Click `Create Price From Stripe` button or navigate to the [Create a product]( page, and create three products. Add one price for each product, each with a monthly billing interval:

Basic option — Price 12.99 USD
Professional option — Price 24.99 USD
Business option — Price 48.99 USD

After you create the prices, record the price IDs so you can use them in subsequent steps. The Pricing section of the product displays each ID and the ID looks similar to this: price_G0FvDp6vZvdwRZ.

The Copy to live mode button at the top right of the page lets you clone your product from test mode to live mode when you’re ready.

wp stripe express product list

Step 3: Using prices in plugin

Once you create any products/prices in stripe side, you should see them all in Price tab of our plugin. Or you can select them directly from creating element price field dropdown list.

wp stripe express price list

Step 4: Save the element and explore it.

wp stripe express create recuring

Once the recuring element created, just copy the shortcode to any of your pages and explore it.

wp stripe express subscription checkout