danog\MadelineProto\EventHandler\Payments\Payment
Author: Daniil Gentili daniil@daniil.it
This object contains information about an incoming pre-checkout query.
Properties
$queryId:intUnique query identifier$userId:intUser who sent the query$payload:danog\MadelineProto\TL\Types\BytesBot specified invoice payload$info:?danog\MadelineProto\EventHandler\Payments\PaymentRequestedInfoOrder info provided by the user$shippingOptionId:?stringIdentifier of the shipping option chosen by the user$currency:stringThree-letter ISO 4217 currency code$totalAmount:int
Method list:
Methods:
accept(): true
Accept pending payment. note that you must call this function or reject function up to 10 seconds after user accept payment!!.
reject(string $errorMessage): false
Reject pending payment. note that you must call this function or accept function up to 10 seconds after user accept payment!!.
Parameters:
$errorMessage:stringif the success isn’t set. Error message in human-readable form that explains the reason for failure to proceed with the checkout
Generated by danog/phpdoc