Back to Top

How to get Stripe Keys and Account ID : Step by Step Guide

Updated 15 July 2025

In this article, We’ll explore where to find Stripe keys and Account ID, how to securely store your keys, and common pitfalls to avoid during setup.

API keys from Stripe

To get your API keys, log in to your Stripe account or create one if you haven’t already.

Visit Stripe dashboard and enter your login credentials.

create account

You can also check out our guide on how to get your Google API Key.

Stripe Dashboard

Now, from the Stripe dashboard, click the toggle button for View test data.

Start your headless eCommerce
now.
Find out More

Use test credentials if you’re testing the module, or live credentials if setting it up for a live website.

Then, set Sandbox Mode to Yes for Testing Mode or No for Production Mode.

dashboard stripe test developers

Sandbox API credentials from Stripe

Now, the admin can go to Developers > API Keys and view the Test API credentials, as shown in the image below –

API Keys

The admin can enter the API Publishable Key and API Secret Key in the admin configuration to set up the module.

Production API credentials from Stripe –

The admin can also access the API credentials for production mode.

To do this, they need to click the “Viewing test data” toggle button to turn off test mode and view the API keys for the live environment.

stripe key

Now, the admin can set the Debug mode to Production to use the API keys for the live site.

Webhooks In Stripe Payment Gateway

In web development, a webhook lets you change how a web page or app works by using custom callbacks.

Webhooks are HTTP callbacks that users set up, and they get triggered by certain events.

When the chosen event takes place on the website, the webhook catches it and gathers the data.

The admin can add a webhook in the Stripe Dashboard by navigating to Developers > Webhooks and clicking ‘Add Endpoint’.

The admin can also check the added webhooks from the Stripe dashboard, as shown in the image below.

Webhook endpoints

The admin can click on the generated URL to view detailed information about the events, as shown in the image below –

webhook stripe
events

You can check our Magento 2 Stripe Payment Gateway Marketplace Add-On, which lets customers checkout and make secure online payments seamlessly.

Stripe Account ID

The admin needs to enter the Stripe Account ID to link the store with the correct Stripe account.

You can find the Stripe Account ID in your Stripe Dashboard under Settings > Account details.

Each connected account will also have its own unique Account ID that should be used when managing transfers or payments for that account. Shown in the image below.

stripe account id

Support

If you have any questions, suggestions, or customization requests, feel free to contact us at support@webkul.com or submit a ticket.

. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Back to Top

Message Sent!

If you have more details or questions, you can reply to the received confirmation email.

Back to Home

How to get Stripe Keys and Account ID : Step by Step Guide