# Toyyibpay

Obtain the Secret Key & Publishable Key.

\
To connect Toyyibpay with the Kuasa website, you will need several keys for the verification process. Some of the required keys include the **Secret Key** and **Category Code**. To initiate the setup process of the Toyyibpay payment gateway, you can follow this tutorial:

1. Visit [https://toyyibpay.com](https://toyyibpay.com/) if you haven't registered a Toyyibpay account yet, or log in directly if you've already registered. Then, click the **Start Now** button.

<figure><img src="https://4042228131-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjUshnokTPXfX7lwwLXnA%2Fuploads%2F86CjsUi71MUUQGEJ9rAy%2FSales%20pg%20toyyibpay%201.png?alt=media&#x26;token=b6f3f973-d235-4b60-b870-58825a851c7a" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Obtain the Secret Key.**</mark>

1. Log in to the **Toyyibpay dashboard**. Then, scroll down on the page, and you will see the "**Your Secret key**" in the Settings section. Copy this secret key to be entered into Kuasa shortly.

<figure><img src="https://4042228131-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjUshnokTPXfX7lwwLXnA%2Fuploads%2FGyP3kMcuXaLmo5SxcbUP%2FSales%20pg%20toyyibpay%202.png?alt=media&#x26;token=018dde3c-b12f-42c2-837b-fa80dd27fb17" alt=""><figcaption></figcaption></figure>

<mark style="color:blue;">**Obtain the Category Key.**</mark>

1. Log in to the **Toyyibpay** dashboard, then click on the **Category** tab and the **Add New Category** button.

<figure><img src="https://4042228131-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjUshnokTPXfX7lwwLXnA%2Fuploads%2FGz2eJfURdifv5QpmHRjs%2FSales%20pg%20toyyibpay%203.png?alt=media&#x26;token=108bf607-6aea-4199-80a7-fabf8dfab537" alt=""><figcaption></figcaption></figure>

2. Fill in the information in the form, such as the category name and category description, to make it easier for your future reference.

<figure><img src="https://4042228131-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjUshnokTPXfX7lwwLXnA%2Fuploads%2FuszoIagwaYApwCxEePgg%2FSales%20pg%20toyyibpay%204.png?alt=media&#x26;token=2881a960-f146-4c29-a401-f9dc013e727c" alt=""><figcaption></figcaption></figure>

3. Once you've submitted the form, you will be shown a Category listing page. Kuasa requires the **Category code** to establish the integration between **Kuasa** and **Toyyibpay**. Make sure to copy the code and enter it into **Kuasa** shortly.

<figure><img src="https://4042228131-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjUshnokTPXfX7lwwLXnA%2Fuploads%2F1sL5AVVPCQ5JJ10yAqqz%2FSales%20pg%20toyyibpay%205.png?alt=media&#x26;token=2089a879-482b-4c91-92f9-e68a8dec1701" alt=""><figcaption></figcaption></figure>

You need to save both of these keys for use in the next steps. The keys you need to save are:

1. Log in to your account via [**https://landing-page.kuasa.io/**](https://landing-page.kuasa.io/)**.**
2. Click **Landing Page.**

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

3. Click on **Settings**.

**Setting up in Kuasa.**

* **Category Code**
* **Secret key**

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

4. Click on **Payment Gateway**.

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

5. Fill in the **Secret Key** and **Category Code** from ToyyibPay, and make sure the toggle button is **ON**. Click **Save Changes** to save the changes.

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


---

# 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://tutorials.kuasa.io/getting-started/kuasa-landing-page/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.
