Below is a guide for setting up a Stripe merchant account and generating API keys for enabling Spare Pay on Spare Platform.


Step 1

If you do not already have a Stripe account, you can create an account here: https://dashboard.stripe.com/register


Step 2

Once the account has been fully created and you are logged in to your Stripe dashboard, click API in the lefthand menu.


Step 3

Your secret and publishable keys should be on this page. Note: You may be prompted to enter your password to receive the secret key.

Your account will have two sets of API keys – Live and Test. In order to get access to both of them, you will need to use the toggle switch that says “View Test Data”. Clicking that switch will toggle between the live and test keys.

You can tell the difference between the two types of keys by looking at the first part of the keys.

Live keys will start with pk_ and sk_. The pk_ keys are the publishable keys. The sk_keys are the secret keys.

Test keys will start with pk_test_ and sk_test_. The pk_ keys are the publishable keys. The sk_keys are the secret keys.


Step 4

Provide Spare with both the live and test API keys. Below is an example of how this information can be provided to Spare.

Test keys

Publishable key: pk_test_tjP5Dhp53kB62UgkPQ2Tqc

Secret key: sk_test_1amKLI2S5325ntzo8BZg

Live keys

Publishable key: pk_live_wpF8kK32xHikmrKlQrBql

Secret key: sk_live_RQjMVZAR52NMymu1icTP


What are Stripe Test and Live API Keys?

You will notice that there are two sets of secret and publishable keys. There is a test set of keys and a live set. The test keys can be used to run test transactions to make sure the system is working and is communicating with your Stripe account correctly. Fortunately, this lets you test the setup without actually charging a credit card, as Stripe provides credit card numbers to use for testing purposes. There are specific card numbers to use for specific scenarios that you may want to test (i.e. charge accepted, card declined, etc.). When in the test mode you can use any CVC number and expiration date.

Live keys are the final keys Spare will need in order to set up real transactions. In your Stripe dashboard, you can toggle between displaying live and test data using the switch in your Stripe dashboard.

Did this answer your question?