> For the complete documentation index, see [llms.txt](https://docs.shoppego.my/tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.shoppego.my/tutorials/en/settings/payment-options/payment-gateway/xendit.md).

# Xendit

To use Xendit, please make sure you **have first created** a **Xendit account**.

{% hint style="success" %}
You need to make sure you have:

* Have SSM/TIN
* Current bank account.
  {% endhint %}

{% hint style="info" %}
**Account verification, charges and transaction funds are fully managed by Xendit.**
{% endhint %}

## Setting up in Xendit

{% hint style="danger" %}
**Before you follow this tutorial, make sure your Xendit account has been verified first and make sure you are not using a Test account.**
{% endhint %}

To integrate Xendit payment gateway with Shoppego, you need to obtain a **Secret API Key and Webhook Verification Token. You also need to set up a Webhook on your Xendit account.**\
\
If you haven't registered a Xendit account yet, you can use this link:\
<https://dashboard.xendit.co/register/1>

### Get the Secret API Key

1. Log in to your Xendit account.

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-aa6fefd88c4fb0278156a7aad7544d9a3793a9e0%2Flop878I3vDJ2Q4iWomOr.jpg?alt=media" alt=""><figcaption></figcaption></figure>

2. Click on the **Settings** button/text

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-946f17833e544e4dcd079633b70bb19c09520221%2FtorOGCjeWZS7WHs8OlV8.jpg?alt=media" alt=""><figcaption></figcaption></figure>

3. Click on the **API keys** button/text

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-f729324272a42a9580d0130b890668c266d14dc9%2FnIsVkE2vfQX4CN8Lbype.jpg?alt=media" alt=""><figcaption></figcaption></figure>

4. Then, you can click on **Generate secret key**

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-8a76523afde617b24248fa3449c390c0d0a9d299%2FPZQx4w7jy8htvbHcLXUq.jpg?alt=media" alt=""><figcaption></figcaption></figure>

5. You can **enter your Secret key name as a reference and tick other settings as shown in the image below.**

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-19fb839eafc5d176d2fbcb01cd655c6db3e0729f%2FaJ5VaKWBmEezfMtQiRQy.jpg?alt=media" alt=""><figcaption></figcaption></figure>

6. After finishing click **Generate key**

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-d893bf4dcf63b2fcab5ee4d36a5c66f3eb36ee55%2F1wiGn3HKmq1xhtNFyh19.jpg?alt=media" alt=""><figcaption></figcaption></figure>

7. Then, you can **copy** and **save your Secret key** to **use in settings in Shoppego**.

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-323f95459ddceaf6877fb38f89bbdb7fda3601f9%2FvCRlDpcOFHytctdlCwPU.jpg?alt=media" alt=""><figcaption></figcaption></figure>

### Get Webhook Verification Token

1. From the **API Keys** **page**, you can click on the **Webhooks** button/text

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-b4d4fe653fd865b2c2af964d5451a34c62a418d0%2FKnfSnpjBQDxhsiSgAC6X.jpg?alt=media" alt=""><figcaption></figcaption></figure>

2. Then, click on the **View Webhook Verification Token** button

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-6f3a76d4a98abddaae2149db7f8d21daedc70c0a%2FunT8Zj5az03hwqZwJL0C.jpg?alt=media" alt=""><figcaption></figcaption></figure>

3. Next, you can **copy your Webhook Verification Token** to **use in the settings on Shoppego**.

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-16597600be3ec89fc16af6eafe884eba879804cb%2Fu2Wm9F8fhm2XoGWujLDB.jpg?alt=media" alt=""><figcaption></figcaption></figure>

### Webhook Setting

#### Get the Webhook Link

1. Log in to your Shoppego account.

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-b853fc0189b34fb1d3990f5b1f53fa71deb9d384%2FlCN7aw3FznaFFoOAyya2.jpg?alt=media" alt=""><figcaption></figcaption></figure>

2. Click on **Settings**

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-9ae8b66b366958146673b78216b78ff0e8f12b90%2FVsK9zs6aZtUfKK1hcCiM.jpg?alt=media" alt=""><figcaption></figcaption></figure>

3. Click on **Payment options**

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-6887bc460f7731261524a21148108938e4436a20%2FCA5qmbxGnMXdjUXh5W4M.jpg?alt=media" alt=""><figcaption></figcaption></figure>

4. Click **Activate/Edit** on **Xendit**

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-378d93226ed9d340fdf4e8c236c78220e0daee46%2F0egeOsfGLxBW6Xf31Ssa.jpg?alt=media" alt=""><figcaption></figcaption></figure>

5. Then, you can **copy your Webhook URL** to **enter in the settings in Xendit**.

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-62961870f0b961a555c9b283171adffb4c81de8f%2FZj1YfBg6JTNqzR6hc7xD.jpg?alt=media" alt=""><figcaption></figcaption></figure>

#### Enter the Webhook Link in Xendit

1. On the **Webhooks settings page**, you can **scroll down** **to see the** "**Invoices paid**" setting. You can **enter the Webhook URL** you just copied into the setting field.

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-365f82cdbb2a1861a9ff7564df1bf799a8a74c0c%2Fd64zarK9JqMm19ecszxx.jpg?alt=media" alt=""><figcaption></figcaption></figure>

2. Once finished, click on the **Test and save** button

<figure><img src="https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-4b3673ca4c9c655be69591e2e69b98567bb5d663%2FfUYfBv0WFzDJOW7FMJPe.jpg?alt=media" alt=""><figcaption></figcaption></figure>

## Setting up in Shoppego

1\. Log in to your Shoppego account.

![](https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-b853fc0189b34fb1d3990f5b1f53fa71deb9d384%2FlCN7aw3FznaFFoOAyya2.jpg?alt=media)

2\. Click on **Settings**

![](https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-9ae8b66b366958146673b78216b78ff0e8f12b90%2FVsK9zs6aZtUfKK1hcCiM.jpg?alt=media)

3\. Click on **Payment options**

![](https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-6887bc460f7731261524a21148108938e4436a20%2FCA5qmbxGnMXdjUXh5W4M.jpg?alt=media)

4\. If you have not activated the payment option for Xendit. Click the **Activate** button in the **Alternative Payments section** for Xendit. If you have already activated the payment option for Xendit, click the **Edit** button.

![](https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-378d93226ed9d340fdf4e8c236c78220e0daee46%2F0egeOsfGLxBW6Xf31Ssa.jpg?alt=media)

5\. Next, a display will appear as below, you can fill in the information:

![](https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-d464646d206a55b759d4320ee8cb36a46256b3e6%2F2RVwbs3xgm3oVGXpUdts.jpg?alt=media)

* **Display name at checkout: Enter the payment name you want (Example Xendit)**
* **Webhook URL: Only used for you to copy to set up the webhook in your Xendit account.**
* **Secret API Key: Enter the Secret API key that you have obtained in your Xendit account.**
* **Webhook Verification Token: Enter the Webhook Verification Token that you have obtained in your Xendit account.**

6\. After finishing, make sure you have clicked Enable and click the **Save** button.

![](https://3359028955-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Lh09fNwqqta5Vj6Wr8p%2Fuploads%2Fgit-blob-489814f8837b034554d4477d95d7524e4c206670%2FJk8yRhyPKocahCajDPpe.jpg?alt=media)

After **Save**, you can make a trial purchase on your website to see the Xendit payment option during checkout for the settings you just set.
