PreCheckoutQueryBehaviour
Confirming a checkout. Telegram gives the bot ten seconds to answer, and abandons the payment if nothing comes back.
Tags
Table of Contents
Methods
- answer() : PromiseInterface<string|int, bool>
- Confirms the order, or explains to the buyer why it cannot go through.
Methods
answer()
Confirms the order, or explains to the buyer why it cannot go through.
public
answer([bool $ok = true ][, ?string $errorMessage = null ]) : PromiseInterface<string|int, bool>
Parameters
- $ok : bool = true
- $errorMessage : ?string = null