> For the complete documentation index, see [llms.txt](https://cookbook.denovolab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cookbook.denovolab.com/configuration/configuring-payment-gateway/stripe-configuration.md).

# Stripe Configuration

You need to obtain the API key from Strip.  Here is how you do it:

Step 1: Click on   Developers > API keys in your Strip account

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXPCJcszvw7MAuHjiRr%2F-MY2yKjD5fx13DQFir98%2F-MY2ysyf5TBSnZ-H3jbX%2Fimage.png?alt=media\&token=3ef13ce9-72d6-42b0-8c5a-8aa0a6f32c29)

Step 2: Obtain the API tokens for your account:

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXPCJcszvw7MAuHjiRr%2F-MY2yKjD5fx13DQFir98%2F-MY2zC1Vv9SgLTjj9fIi%2Fimage.png?alt=media\&token=4e7738c4-835d-449a-a9d6-6a8d54911d92)

Step 3: Go to Webhooks section&#x20;

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXPCJcszvw7MAuHjiRr%2F-MY2yKjD5fx13DQFir98%2F-MY2zPJImJ8094FTRB62%2Fimage.png?alt=media\&token=2db66fc3-c4da-450f-a1dd-39fa936897c8)

Step 4: Add new Webhook

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXPCJcszvw7MAuHjiRr%2F-MY2yKjD5fx13DQFir98%2F-MY2zapJTj2MmGcw5xLw%2Fimage.png?alt=media\&token=3954b2bf-6490-45da-bca4-24722d313128)

In your Stripe setting, you get to see the webhook URL of your switch.  This Webhook URL is what you need to fill in.  Then, you need to select "charge.succeeded."

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXPCJcszvw7MAuHjiRr%2F-MY2yKjD5fx13DQFir98%2F-MY2zm0nO4fCpIMHDT5S%2Fimage.png?alt=media\&token=e9d3b343-0888-4e06-a690-42ccf5d4c953)

Step 5: Activate your key for production

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MXPCJcszvw7MAuHjiRr%2F-MY2yKjD5fx13DQFir98%2F-MY3-1fBZl1CtK8VPAmZ%2Fimage.png?alt=media\&token=0da36854-642d-4478-a356-42d0995ccf64)

In stripe, you need to activate your account.  Before you do that, your API account is a test sandbox account.   When your account is still in test mode, you can use the following link to get the test credit card numbers to test your setup.&#x20;

```
https://stripe.com/docs/testing    
```

{% hint style="info" %}
When your stripe key is started with "test" keyword, that means this key is a test sandbox key instead of a production key.&#x20;
{% endhint %}
