+55 (21) 960104492
Log In Free trial
Select region

The "Accepting payments" block

The “Accepting payments” block accepts the client's payment through the chat dialog and checks whether he has made the payment. It supports the T-bank and Robocass payment systems. The block may be needed, for example, if a customer is offered to buy a product in a dialog. 

The block saves authorization data, stores a list of payments, initializes the payment, and returns the payment link and payment results. To use the "Accepting payments" block, you must first enable the payment system in the company settings.

Setting up the "Accepting payments" block

  1. Add the "Accepting payments" block to the workspace in the Bot Constructor.


     
  2. Select a payment system.


  3. Enter the client's phone number or email address. You can enter a variable in the field.


  4. Click "Add product".


  5. Fill in the product parameters in the "Product" tab.

  • Name — the name of the product;
  • Price — the price of the product;
  • Quantity — the number of product units;
  • VAT — select the VAT rate or without VAT.

In the "JSON" tab, you can enter the product parameters in json format.

6. Click "Save".

7. To send the payment link to the client, add the "Sending message" block, enter the double curly brackets "{{" and select the result "Payment link".

Example scenario

For example, you can create a scenario in which the bot requests a phone number or email from the client, the "Accepting payments" block initializes the payment, and the "Sending a message" block sends the client a payment link.

Leave a request for integrator services