# 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

![](/files/-MY2ysyf5TBSnZ-H3jbX)

Step 2: Obtain the API tokens for your account:

![](/files/-MY2zC1Vv9SgLTjj9fIi)

Step 3: Go to Webhooks section&#x20;

![](/files/-MY2zPJImJ8094FTRB62)

Step 4: Add new Webhook

![](/files/-MY2zapJTj2MmGcw5xLw)

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

![](/files/-MY2zm0nO4fCpIMHDT5S)

Step 5: Activate your key for production

![](/files/-MY3-1fBZl1CtK8VPAmZ)

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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cookbook.denovolab.com/configuration/configuring-payment-gateway/stripe-configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
