> For the complete documentation index, see [llms.txt](https://digirestro.gitbook.io/digirestro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://digirestro.gitbook.io/digirestro/admin/settings/payment-setting.md).

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