This project makes use of Stripe Dashboard to keep track of product inventories, and billing.
You will need to create a Stripe account if you don't already have one.
There are also two types of API keys: publishable and secret.
Publishable API keys
are meant solely to identify your account with Stripe, they can safely be published.Secret API keys
should be kept confidential and only stored on your own servers.Your API keys are available in the Dashboard.
The test
and live
modes function almost identically, with a few necessary differences:
test
mode, payments are not processed by card networks or payment providers, and only test payment information can be used.IMPORTANT The products that you create in your store will be tied to either your test or live key โ make sure that you don't set up your entire suite of products on the test key, and then are unable to make your store live!
Use the following test card numbers, a valid expiration date in the future, and any random CVC number, to create a successful payment.
NUMBER | CVC | DATE |
---|---|---|
4242424242424242 | Any 3 digits | Any future date |