# Payment Setting

<figure><img src="/files/eevKk8y7b8HaRqDLUshs" alt=""><figcaption><p>Payment Setting</p></figcaption></figure>

We have mainly two types of Payment in the system.

* Stripe
* Offline

**Stripe**

When you add stripe payment, You need **Publishable Key** & **Secret Key**

To get the value of **Publishable Key** & **Secret Key** you need to log in to your stripe account.

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

* Login to Stripe <https://dashboard.stripe.com/login>
* Once you logged in successfully on the dashboard you will find "[Developers](https://dashboard.stripe.com/developers)" Click on that.\
  This is a redirect to the developer page where you can see different options.
* Then click on "[**API Keys**](https://dashboard.stripe.com/apikeys)" from where you can generate **Publishable Key** & **Secret Key.**&#x20;
* If you want to test the application then you need to enable "Test mode"
* Then copy and paste key values into the system.

**Stripe Webhook**

It is mandatory to set up a stripe webhook to listen to events for transactions and subscriptions.

&#x20;

* On the Developer page, you will find a tab named [**Webhook**](https://dashboard.stripe.com/webhooks)
* And then follow then steps given below in the Image.

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

<figure><img src="/files/8iyzQM82MVcYwNe2uOKc" alt=""><figcaption></figcaption></figure>

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

And then click on "**Add endpoint**" to save webhook url.

**Offline Payment**

In the offline payment, the vendor will request a subscription via offline mode and the request will go to admin once admin approve the request then they can approve vendor can access system.


---

# 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://emenu.gitbook.io/emenu/admin/settings/payment-setting.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.
