Tutorial: Stripe

In order to use most of the functionality of this plugin, you’ll need a Stipe account.


Registration is free, and you can run in test mode without connecting your bank account.

https://dashboard.stripe.com/register

Once you have an account, make sure you are in test mode and
create some products and associated prices.

One time products should only have a single price to start with. You may add more prices later as you charge more, but products should start with one, default price.

Subscriptions – products that have recurring prices – may have more than one price, each with a different duration. The most common example of this being monthly vs yearly pricing. Or you may offer an initial ‘lifetime’ price or a pay-as-you-go price.

The mistake to avoid is to try to use different prices when you should be using different products.
For instance, if you have a basic vs pro version of your service, those should be different products each with a
different price.

Testing

Here is the sample data we’ll use in subsequent tutorials. Create this data in your test account.
You can completely reset your Stripe test account later if you no longer need these products.

If you are comfortable running a php script, then you can use this project to create the test data:
https://github.com/getmindspun/stripe-demo-data

Products

The sample product(s) will be books by Arthur Conan Doyle (of Sherlock Holmes fame) in PDF version.

A Study in Scarlet

https://en.wikipedia.org/wiki/A_Study_in_Scarlet

Cover Image

Text Only

Full Version

Give the product any price you like, say $1.

Subscriptions

Create two products, ‘Silver Level’ and ‘Gold Level’:

Gold
Silver

Give the Silver level a recurring price of $2 per day and the Gold level $3/day. Using daily gives us more test payment data.

Credit cards

Stripe provides several test credit card numbers that can be used to make test purchases.

Stripe Test Credit Cards