1 | <?php |
||
18 | class AnswerPreCheckoutQuery extends TelegramMethods |
||
19 | { |
||
20 | /** |
||
21 | * Unique identifier for the query to be answered |
||
22 | * @var string |
||
23 | */ |
||
24 | public $pre_checkout_query_id = ''; |
||
25 | |||
26 | /** |
||
27 | * Specify True if everything is alright (goods are available, etc.) and the bot is ready to proceed with the order. |
||
28 | * Use False if there are any problems |
||
29 | * @var bool |
||
30 | */ |
||
31 | public $ok; |
||
32 | |||
33 | /** |
||
34 | * Required if ok is False. Error message in human readable form that explains the reason for failure to proceed |
||
35 | * with the checkout (e.g. "Sorry, somebody just bought the last of our amazing black T-shirts while you were busy |
||
36 | * filling out your payment details. Please choose a different color or garment!"). Telegram will display this |
||
37 | * message to the user |
||
38 | * @var string |
||
39 | */ |
||
40 | public $error_message = ''; |
||
41 | |||
42 | public function getMandatoryFields(): array |
||
56 | } |
||
57 |