Business

Accepting payments automatically via Click API

Using the Click callback (prepare/complete), signature verification, idempotency and webhooks, accept payments in so‘m automatically and deliver Stars/Premium/Gifts. 18 Q&A.

Short answer

To accept payments automatically via Click API you need two things: creating a payment (invoice) and handling the Click callback (webhook). After the customer pays, Click sends a signed callback to your server, you confirm it, and the order closes automatically. StarsPaymee Business provides this flow together with Stars/Premium/Gifts.

What is automatic payment acceptance?

«Automatic» means no one checks manually. The customer pays, Click returns the result via callback, the system confirms it and closes the order. No screenshots or manual receipt checking. It's fast, error‑free and works 24/7.

Required elements
  • Prepare — pre‑check the payment (does the order exist, is the amount correct).
  • Complete — confirm payment completion and close the order.
  • Signature — verify the signature of every callback.
  • Idempotency — if a callback arrives twice, don't deliver twice.
  • Webhook — pass the result into your own system.

How does the Click callback work?

  1. 1. Prepare requestClick first sends a «prepare» request — you check the order and amount and respond.
  2. 2. Complete requestAfter payment completes, «complete» arrives — you verify the signature and mark the order «paid».
  3. 3. DeliveryAfter payment is confirmed, Stars/Premium/Gift is delivered automatically and the status updates.
  4. 4. Notify the customerThe customer is shown in the bot or site that the order is closed and delivered.

Want to connect automatic Click payments? Contact Business.

@StarsPaymee_bot

Common mistakes

Double delivery

Without an idempotency key, a repeated callback may deliver twice — check by ID.

No signature check

If you don't verify the signature, there's a risk of a fake callback — always confirm the signature.

Slow response

If you don't respond to the callback quickly, the payment may remain «suspicious».

Not comparing the amount

Always check that the received amount equals the order amount.

See also: the official Click API integration and Click API FAQ. To wire payment to delivery, see Stars API.

Sources

Frequently asked questions

What is a Click callback?
An automatic request by which Click returns the payment status to your server. It usually consists of prepare and complete stages.
Are webhook and callback the same?
In practice yes — the Click callback sends the payment result to your webhook URL.
How do I enable automatic payment acceptance?
Create an invoice and connect a callback URL; verify the signature and, after confirmation, trigger delivery.
What's the difference between prepare and complete?
Prepare — a check before payment; complete — confirmation of payment completion.
Is signature verification mandatory?
Yes. Without verifying the signature you may accept a fake callback.
How do I avoid double delivery?
Idempotency — check by order ID and don't deliver again if already delivered.
Do I need to compare the amount?
Yes. Always verify that the received amount equals the order amount.
How fast should I respond to the callback?
As fast as possible; a delay can mark the payment as suspicious.
What if payment failed?
The order stays unpaid and delivery is not triggered.
Does the product ship automatically after payment?
Yes. After the complete confirmation, Stars/Premium/Gift is delivered automatically.
Can I test in Sandbox?
Yes. You can check the callback flow in a test environment with no real money.
Does refund work with callback?
A refund is performed per the settlement policy; the status updates.
Can I connect several payment methods?
Yes. Alongside Click — Payme and others.
Is there auto‑acceptance in a bot?
Yes. Inside a bot or Mini App via a link — payment and auto‑close.
What matters for security?
Signature verification, HTTPS, idempotency and amount comparison.
Can I view statistics?
Yes. Payments by ID; history via a request or in the panel.
Is documentation provided?
Yes. Docs with the callback format, signature and examples.
How do I start?
Submit a request on the StarsPaymee Business page; we connect the callback and delivery.

Enable automatic payments

Through StarsPaymee Business, accept Click payments automatically 24/7 with callbacks.

Open the bot