# 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](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MRdX_gHvfkLEVP9VSsa%2F-MRdeCEdKSBafs8jOzNb%2FAdd%20New%20Payment.png?alt=media\&token=0a03f904-ab69-4a2b-ac18-d452e87878c5)

**Component Explanation:**&#x20;

| **Field 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](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MRdX_gHvfkLEVP9VSsa%2F-MRdihw1VkDfKrIpPHAz%2FSuccess%20Notification.png?alt=media\&token=eae8002f-1423-4823-919c-fd119b24f595)

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 click 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](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MRrRNfpt-NikfJqXoTj%2F-MRrhR1t2-H8LccgHB2z%2FDigital%20Library.png?alt=media\&token=61411d70-02b4-4137-8a7e-0cc2ef3afd6a)

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](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MRrRNfpt-NikfJqXoTj%2F-MRrhgH1wZ_gGNkk9P-5%2FFAQ%20Knowledge.png?alt=media\&token=3ad04aa4-e73a-46b4-83ef-53e27a7e1105)

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](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MRrRNfpt-NikfJqXoTj%2F-MRrhncGOla7jLAj_h5O%2FAttach%20FAQ.png?alt=media\&token=e612f0d7-6f90-443b-b15f-6a818050073f)

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](https://2268349083-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MNQidQwa-0K9_KnQpoc%2F-MRwrP6cyrVSDPY6Rl1R%2F-MRxJ2kTNV7UZoMhAuWZ%2FLive%20Chat.png?alt=media\&token=d4ddf68b-f72c-4c13-966a-8174abb859eb)
