> 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="https://1732969110-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyHWTWWTRHJLw26Ih6HBk%2Fuploads%2FXbNkLGIbnGJuMTFzX7C0%2FPayment%20Setting.png?alt=media&amp;token=8a5fb796-1848-4784-934c-a4735e0fb95f" 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="https://1732969110-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyHWTWWTRHJLw26Ih6HBk%2Fuploads%2FN6niywnbQUBLVde3dwR4%2Fstripe.png?alt=media&amp;token=77fa3382-e26b-483a-a4ef-fa8a30cb2159" 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="https://1732969110-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyHWTWWTRHJLw26Ih6HBk%2Fuploads%2Fwi1gEkwJQunl7yCWHgYi%2Fwebhook1.png?alt=media&amp;token=eea19788-6cfc-4efd-8d5a-643fc01546ff" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1732969110-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyHWTWWTRHJLw26Ih6HBk%2Fuploads%2FBjhs4DGkRAQcJfZL7Hlp%2Fweb2.png?alt=media&amp;token=d6ec5a5d-2e71-4146-93b7-d32b46579e5d" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1732969110-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyHWTWWTRHJLw26Ih6HBk%2Fuploads%2Fk91AW9TjTqUIZfkePyQ4%2Fweb3.png?alt=media&amp;token=2bd6aa41-da68-47a0-a635-e33a3ff99126" 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.
