Link Search Menu Expand Document

danog\MadelineProto\EventHandler\Payments\Payment

Back to index

Author: Daniil Gentili daniil@daniil.it

This object contains information about an incoming pre-checkout query.

Properties

  • $queryId: int Unique query identifier
  • $userId: int User who sent the query
  • $payload: string Bot specified invoice payload
  • $info: ?danog\MadelineProto\EventHandler\Payments\PaymentRequestedInfo Order info provided by the user
  • $shippingOptionId: ?string Identifier of the shipping option chosen by the user
  • $currency: string Three-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: string if 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