# Stripe

## PRE-SETUP

Please contact stripe support and ask them to enable an older version of webhooks, **Webhooks API version needed is 2020-08-27**

## Enable Stripe

Gateway URL: <https://stripe.com>

In your account, got to **Developers** -> **Webhooks** ->**Add endpoint**\
**URL to be called** will be <https://ipn.YourDomain/ipn/stripe/\\>
**Check Send all event types**\
-> **Add endpoint**

## **REQUIRED FIELDS**

### **Stripe Public key**

In your account, got to **Developers** -> **Webhooks** -> **API keys** -> **Publishable key** is your Stripe public key

### **Stripe Secret Key**

In your account, got to **Developers** -> **Webhooks** -> **API keys** -> **Secret key -> Click Reveal**, is your Stripe secret key

### **Stripe Webhook Secret Key**

In your account, got to **Developers** -> **Webhooks** -> Click on your webhook -> **Signing secret** -> Click **Click to reveal**, is your Stripe webhook secret key


---

# 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://drsoft.gitbook.io/affiliates/white-label/payment-gateways-set-up/stripe.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.
