Click is a payment service in Uzbekistan. Customers pay with Uzcard or Humo cards on the my.click.uz page or in the Click app. Payments are accepted in Uzbek soums (UZS).

Click works differently from most payment systems: before charging the customer, it contacts MaviBot to check that the order exists and the amount is correct, and after the charge it reports the result. That is why connecting Click takes two parts: entering your keys in MaviBot and giving the MaviBot address to Click.
Connecting Click
Obtaining Credentials
Sign an agreement with Click. On registration, Click issues the connection credentials:
| Click | MaviBot Field |
|---|---|
| merchant_id | Merchant ID |
| service_id | Service ID |
| secret_key | Secret key |
Connecting Click in MaviBot

Open Acquiring in your project, select Click, and fill in the following fields:
| Field | Description |
|---|---|
| Merchant ID | Your merchant identifier in Click. Used to generate payment links. |
| Service ID | Your service identifier in Click. Used to generate payment links. |
| Secret key | MaviBot uses it to verify the signature of Click requests. Without it, payments are not confirmed. |

Save the settings. The same window shows:
- Prepare and Complete URL — the address of your project that must be given to Click (next step);
- the words the bot receives after a payment and after a failure (see Payment Callbacks). They appear after the first save.
The Click card is shown to projects whose country is set to Uzbekistan.
Configuring the URLs in Click
Click contacts MaviBot with two requests: Prepare before the charge and Complete after it. Both use the same address from the MaviBot connection window. It looks like this:
https://chatter.mavibot.ai/click_uz_callback/123456
where 123456 is your project number. Copy the address with the button in the connection window instead of typing it.

Set this address as both the Prepare URL and the Complete URL: in the Click merchant dashboard or through your Click manager.
Important!
Without these URLs, Click cannot check the order, and the payment will not go through.
Generating a Payment Link
Use the following Calculator function:
get_click_uz_payment_url(amount, description)
Parameters
| Parameter | Required | Description |
|---|---|---|
| amount | ✅ | Payment amount in soums. |
| description | No | Payment description. |
The function returns a payment URL. Save it to a variable and send it to the customer.
Example
A link for 150,000 soums:
pay_link = get_click_uz_payment_url(150000, "Course")
If the link is not created, the function returns an empty value, and the error text is saved to the error_payment_func variable.
Example 1. You can insert the payment link directly into the message text.

Example 2. You can add the payment link to a button.

Notes
- The currency is always UZS. The function has no currency parameter.
- One link is one payment. After a successful payment the same link cannot be paid again; generate a new link for each new payment.
Payment Link Button
To send a payment button:
- Create a button with the payment type in a block.
- Select Click as the payment system.
- Specify the product name and the amount in soums.
Store, Landing Pages and Courses
In the payment settings of a store, a landing page or a course plan, select Click in the list of payment systems.
Payment Callbacks
When Click confirms the charge, a service message is sent to the dialog with the customer.
Successful Payment
hybfn54mv2_success 150000
Where:
-
hybfn54mv2— the word of your project. It is shown in the Click connection window in MaviBot and does not change when you replace the key; -
150000— the payment amount.
Set up a block that reacts to this message to grant access or confirm the order. To react to any amount, use only the beginning of the message without the amount.
Failed or Cancelled Payment
hybfn54mv2_fail 150000
Sent when the charge failed and Click cancelled the payment.
Returning from the payment page to the bot does not confirm the payment. Grant access only on the _success message.
Customer Variables After a Payment
| Variable | Description |
|---|---|
| click_uz_payment_completed |
True if the payment was completed, False if it was cancelled. |
| click_uz_order_id | Payment number in MaviBot. |
| click_uz_transaction_id | Payment number in Click. |
| last_payment_sum | Amount of the last payment. |
| click_uz_refunded |
True if Click cancelled a payment that had already been completed. |
| click_uz_refund_amount | Amount of the cancelled payment. |
Refunds
Refunds are made on the Click side. MaviBot is notified of the cancellation and saves the click_uz_refunded and click_uz_refund_amount variables. No _fail message is sent for a refund.
Limitations
- UZS only.
- There is no test mode: check the connection with a small real payment.
- Recurring payments and subscriptions are not available with Click.
- MaviBot does not send fiscal receipt data (IKPU codes) to Click.