How to register your Stripe account and get API keys for your website payment system integration?

  • Feb 2, 2019

To get started with Stripe you will first need to set up a free account. The great thing about Stripe is that you will be able to test out the gateway on your Create website before you activate your Stripe account.

Click here to create your Stripe account.

What is API Keys?

Secret and publishable API keys are used to identify your Stripe account. You can find your test and live API keys for your account under Your Account >> API Keys. The publishable key is used to generate credit card tokens and should be included with the HTML form.

Where can I find my API keys in the Stripe dashboard?

Users with Administrator permissions can access the account’s API keys by navigating to the Developers section of the Stripe dashboard and clicking on API Keys.

How to get your API keys in Stripe Developers Section?

  1. Log in to your Stripe account.
  2. Click "Account" from the top right hand of the page.
  3. Click "Account Settings".
  4. Click the "API Keys" from the top tabs.
  5. Here, you will need the "Live Secret Key" and "Live Publishable Key".

Where to get Test and Live API keys in Stripe?

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 in the left menu 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.

Test keys will start with pk_test_ and sk_test_.

The pk_ keys are the publishable keys. The sk_keys are the secret keys.

Live keys will start with pk_ and sk_.

The pk_ keys are the publishable keys. The sk_keys are the secret keys.

Test and Live API Keys in Stripe

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 correctly and communicating with your Stripe account the way it should be. 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.

When you are done testing you will need to change both of the keys in your Management System to the live secret and live publishable keys in order for payments to actually be processed.

In your Stripe dashboard, you can toggle between displaying live and test data using the switch on the left side of your dashboard.

Test card numbers and tokens

NUMBER

BRAND

4242424242424242

Visa

4000056655665556

Visa (debit)

5555555555554444

Mastercard

2223003122003222

Mastercard (2-series)

5200828282828210

Mastercard (debit)

5105105105105100

Mastercard (prepaid)

378282246310005

American Express

371449635398431

American Express

I hope it is helpful.

Let's do to!