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.
Once you have an account, ensure 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 begin with one default price.
Subscriptions – products with 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.
Here is the sample data we’ll use in subsequent tutorials. Create this data in your test account.
You can 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:
We’ll use a fake calendar application as a test one-time product. Users can download an instruction PDF after they purchase the product. In a real scenario, the user would download the application installer too.
NOTE: The payments plugin doesn’t support tiered, packaged, or metered pricing.
The best calendar application for your business.
Give the product any price you like, say $11.
Here is a sample PDF.
NOTE: When creating products, metered usage is not supported.
We’ll use a ChatBot subscription as a sample recurring price.
When you create this product, make sure you give it a recurring price, say $3.75 / day. Use a daily subscription so that Stripe generates more test data.
Stripe provides several test credit card numbers that can be used to make test purchases.