> For the complete documentation index, see [llms.txt](https://docs.3dolphins.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.3dolphins.ai/bot-settings/payment-library/add-new-payment.md).

# Add New Payment

Before integrating with Midtrans, you need to register an account [here](https://account.midtrans.com/register/). After signing up, you shall have access to Midtrans development/sandbox environment where you can play out with dummy transactions.

To configure the payment, in the upper right corner, click the **'+New Payment'** button. Then you will see a form new payment library, such images below.

![Add New Payment](/files/FKRD2aEckdkFt1cgntOR)

**Component Explanation:**&#x20;

| Name                              | Description                                                                                            |
| --------------------------------- | ------------------------------------------------------------------------------------------------------ |
| Client ID, Client Key, Server Key | This key is auto-generated by system midtrans. You can see the key in the settings menu > Access Keys. |
| Notification Message              | Notification of a transaction in progress.                                                             |
| Approval Message                  | Message when a transaction is successful.                                                              |

Enter field required, like merchant id, client key, server key, etc. and click the '**Save'** button, then you will see a pop-up notification payments configuration saved successfully.

![Success Notification](/files/gGZcC59YLwMmPSOoqIKa)

After configuring the payment, go to the **digital library** page. On this page, you can create an asset in the form of a product that you are going to sell by adding digital library management > send card and clicking the add button **'Buy Action'**.&#x20;

The save button on the buy action button will appear after you make the payment configuration. if you have not configured the payment, the save button will not be visible.

![Digital Library](/files/QJvnY6OGGfkMH15eFprG)

After successfully creating an asset by adding a buy action button on the digital library menu. Then, go to the **FAQ Knowledge** menu and create transaction knowledge by attaching the digital asset that you previously created.

![FAQ Knowledge](/files/tOAImG55003I8W2zCpr1)

After the knowledge has been successfully created, attach the knowledge that you have created on the Bot on the **Bot Manager** page > Select Bot > Click the **'FAQ'** button > Select knowledge and click the **'Attach'** button.

![Attach FAQ](/files/yFhEh3fU9XX5TTHIqX7V)

For example, do a dummy chat to make a product payment, then you will see a payment pop-up as shown images below.

![Live Chat](/files/tQGZwrRoEh4aZ2t4xH2X)
