View Product Page

How to configure API Keys

Support for API 2024-06-20

The API keys are necessary for the plugin to process the payment requests with Stripe. You have two different pairs of Secret and Publishable keys, one for the test mode and one for the live mode.

So let’s start configuring them.

Go to the plugin settings panel and enable the option to use the plugin features.

How to configure Stripe Secret and Publishable keys

Insert the secret key and publishable keys in the related fields for test and live mode.

If you still don’t have these keys, go to dashboard.stripe.com and register your account. Once done, go to Developers > API Keys.

Developers > API keys

Here you can find both your Publishable and Secret keys under the Standard keys section: you can copy and paste it into the related field in plugin panel.

Make sure you switch the toggle on the top right between Test or Live mode based on the environment you want to use, as these keys are different.

Restricted keys

Yet, you also have the option to create Restricted keys, and we recommend using this for better control on permissions.

To create one, click on “+ Create restricted key”, then select the “Providing this key to another website” option, and then select the required capabilities.

Providing key to another website
Create restricted key

You can use the default capabilities or customize them. To make sure our plugin works well, you should however select at least the following ones:

  • Core resources
    • Charges
    • Customers
    • Customer session
    • PaymentIntents
    • PaymentMethods
    • SetupIntents
    • Sources
  • Checkout resources
    • Checkout Sessions
  • Billing resources
    • Invoices
    • Subscriptions
  • Webhook resources
    • Webhook Endpoints
API key capabilities