# Stripe Setup

**You need to enter your Stripe credentials in the Admin panel under Finance Manager -> Payment Settings -> Stripe. Ensure you include all your Stripe credentials and activate the Stripe checkbox(es).**

* Stripe Key
* Stripe Secret Key
* Domain Name for Stripe Webhook URI
* Stripe Webhook Secret

<div align="left"><figure><img src="https://1156155356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fpb8ANp0ZN6ZvWH8LcR5c%2Fuploads%2FRznL7xI75Nr9IvwtVuzh%2FScreenshot%202024-06-20%20at%207.23.19%E2%80%AFPM.png?alt=media&#x26;token=01ffbc53-874f-4a01-a4a7-456fc502bdba" alt=""><figcaption></figcaption></figure></div>

### **How to get Stripe API Key and Stripe Secret Key:**

1. Log in to your dashboard at [dashboard.stripe.com](https://dashboard.stripe.com/).
2. From the left menu, select Developers -> API Keys. Here, you will find your Publishable Key (API Key) and Secret Key.
3. Copy and paste these keys into Finance Manager -> Payment Settings -> Stripe.

### **Create Stripe Webhook with select events:**

1. Log in to your dashboard at [dashboard.stripe.com](https://dashboard.stripe.com/).&#x20;
2. Navigate to Developers -> Webhooks -> Add Endpoint from the left menu bar.
3. Create a webhook in your Stripe Developer Account.&#x20;
4. Include your domain name followed by /webhooks/stripe. For example: <https://www.domainname.com/webhooks/stripe>&#x20;
5. Add the following two events:

* invoice.payment\_failed
* customer.subscription.deleted
* invoice.paid

<div align="left"><figure><img src="https://1156155356-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fpb8ANp0ZN6ZvWH8LcR5c%2Fuploads%2FMS51JZ5JGo3fBZekvle6%2Fstripewebhooks.png?alt=media&#x26;token=fb6ec879-fe38-4962-a3c0-dcdbeef0e968" alt=""><figcaption></figcaption></figure></div>

7. After creating your webhook, copy the Webhook URL and Webhook Secret to the corresponding fields under Admin -> Finance Manager -> Payment Settings -> Stripe.
