# ToyyibPay

### Dapatkan Secret Key & Publishable Key

Untuk menghubungkan Toyyibpay dengan website Kuasa, anda memerlukan beberapa key untuk proses pengesahan. Antara key yang diperlukan ialah **Secret Key** dan juga **Category Code.** Untuk memulakan proses penetapan payment gateway Toyyibpay anda boleh ikut tutorial ini :

1. Layari[ ](https://stripe.com/en-my)[**https://toyyibpay.com**](https://toyyibpay.com) jika anda belum daftarkan akaun Stripe, atau terus login jika sudah daftar. Dan klik button **Start Now.**

![](/files/7N3GrTaXhNrwjA7M0K5m)

### **Dapatkan Secret Key**

1\. Login masuk ke dashboard Toyyibpay, Kemudian scroll di bawah page tersebut dan anda akan lihat pada section Settings, **"Your Secret key"** copy secret tersebut untuk dimasukkan ke dalam saleskip sebentar nanti.

![](/files/bFUnmECEab2a8hCfW3Kh)

### Dapatkan Category Key

1. Login masuk ke dashboard Toyyibpay, kemudian klik pada **Tab Category** dan button **"Add New Category"**

![](/files/vW2jG4xM9PBOgOU9QDGs)

2\. Isi maklumat form tersebut seperti **nama category** dan juga **category description** untuk memudahkan anda buat rujukan pada masa akan datang.

![](/files/LYlSlt6PD8y4zPX5OnOh)

3\. Setelah selesai submit, anda akan dipaparkan satu page Category listing, Saleskip memerlukan Category code tersebut untuk menyambungkan integrasi antara Saleskip dan juga Toyyibpay. Pastikan anda copy code dan masukkan ke dalam saleskip sebentar nanti.

![](/files/wOQYkFlMPeFQ9h3aBYjM)

4\. Anda perlu simpan kedua-dua key tersebut untuk kegunaan di langkah seterusnya. Key yang anda perlu simpan ialah :

* Category Code
* Secret key

### Setup di Kuasa

1. Login ke akaun anda melalui [**https://sales.kuasa.io/**](https://sales.kuasa.io/).
2. Klik **Settings**.

![](/files/Dj9taZvMSgRak3XjHzhN)

3\. Klik **Payment Gateway**.

![](/files/GaqzHrCIHcFHp7G9Ghjg)

4\. Isikan Secret Key dan Category Code daripada ToyyibPay, dan pastikan button toggle telah <mark style="color:green;">**ON**</mark>. Klik **Update** untuk simpan perubahan.

![](/files/CmnBfax2WmsRJQEeaw0q)


---

# 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.kuasa.io/kuasa-sales/payment-gateway/toyyibpay.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.
