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


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.

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.

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

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

Table of Contents

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.

Generate 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.

From the admin dashboard on the eCommerce platform, the admin can click on Generate Webhook to create the data.

Once the webhook is created, a success message will show up on the eCommerce platform in the admin dashboard.

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

The admin can now check the collected data 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.

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

If you have any questions, suggestions, or customization requests, feel free to contact us at [email protected] or submit a ticket.


Share this content:

I am a passionate blogger with extensive experience in web design. As a seasoned YouTube SEO expert, I have helped numerous creators optimize their content for maximum visibility.

Leave a Comment