# Payment Settings

To accept payment on Fluent Forms with toyyibPay payment gateway, you need to enter your toyyibPay API credentials in the payment settings page.

1. Log into your WordPress admin.
2. Navigate to "**Plugins**" in the sidebar to access the plugins list page.
3. Find "**toyyibPay for Fluent Forms**" and click "**Settings**" to access to the payment settings page.
4. In "**Payment Settings**" page, click on "**toyyibPay**" tab and follow the instructions to update the payment settings.
5. Click "**Save Settings**" button to save the payment settings.

<figure><img src="/files/oGp6FMM17YN2qhS67o5n" alt=""><figcaption><p>Fluent Forms - Payment Settings - toyyibPay</p></figcaption></figure>

<details>

<summary>Which payment mode should I choose?</summary>

For testing purpose, please select "Sandbox Mode" as a payment mode. In order to use sandbox mode, you need to have toyyibPay sandbox account.

[Register toyyibPay Sandbox Account](https://dev.toyyibpay.com/)

</details>

<details>

<summary>How do I obtain Secret Key?</summary>

Secret key can be obtained on toyyibPay dashboard under "Settings" section.

<img src="/files/dpOVD9I5RGA0FU7pLayz" alt="" data-size="original">

</details>

<details>

<summary>How do I obtain Category Code?</summary>

Category code can be obtained on toyyibPay dashboard > "Category" page.

<img src="/files/KJWmN6X8MFG89QwG0J67" alt="" data-size="original">

</details>


---

# 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.yiedpozi.my/toyyibpay-for-fluentform/payment-settings.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.
