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.

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.

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

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.

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.

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


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.

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