# Store Payments

### Configure Payment Gateway for Credit/Debit Card Payments

As an admin, you can configure a payment gateway to allow investors to purchase tokens using credit or debit cards. Currently, the Spydra platform supports Stripe as the third-party payment provider. Follow these steps to set up Stripe as your payment gateway:

#### Steps to Configure Stripe Payment Gateway

1. **Access Store Settings:**
   * Navigate to your store's **Settings** page from the main dashboard.
   * Click on the **Payment** tab.
2. **Add Payment Provider:**
   * Click on the **‘Add Third Party Provider’** button.
   * From the dropdown menu, select **Stripe** as the payment gateway provider.
3. **Enter Stripe Details:**
   * You will need to provide the following details:
     * **Secret Key:** This is used to authenticate API requests from Spydra to your Stripe account.
     * **Webhook Secret:** This is required to securely receive event notifications from Stripe.
4. **Save Configuration:**
   * After entering the **Secret Key** and **Webhook Signing Secret**, click **Save** to complete the configuration.

<mark style="color:blue;">**Where to Find the Secret Key in Your Stripe Account?**</mark>

* Log in to your Stripe account.
* Navigate to the **Developers** section in the left-hand menu.
* Click on **API Keys**.
* Copy the **Secret Key** from the list of API keys. Use the live key for production environments or the test key for development purposes.

<mark style="color:blue;">**How to Configure the Webhook Signing Secret?**</mark>

* In your Stripe dashboard, navigate to the **Developers** section and select **Webhooks**.
* Click on **Add Endpoint** to create a new webhook.
* In the **Endpoint URL** field, enter the following webhook: \
  <https://rwa-controlplane.spdr.club/api/v/1/checkout/stripe-webhooks>
* Select the specific events to listen for. Kindly include events such as:

  <figure><img src="/files/NfuBzSa0SaTxgQvOht9l" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/tCMSB5Ko6iMf0i9GOvhl" alt=""><figcaption></figcaption></figure>

* Once the webhook is created, Stripe will generate a Webhook Signing Secret. Copy this secret and add it to the **Webhook Secret** field in Spydra.

#### Important Notes:

* Ensure that you are using the correct keys (test or live) based on the environment you are working in.
* Double-check the webhook URL and ensure it matches the one provided by Spydra.


---

# 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://docs.spydra.app/how-to/public-chain/token-store/store-payments.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.
