PreCheckoutQuery
class PreCheckoutQuery
This object contains information about an incoming pre-checkout query.
Methods
No description
Unique query identifier.
Three-letter ISO 4217 currency code.
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
Bot specified invoice payload.
Optional. Identifier of the shipping option chosen by the user.
Optional. Order information provided by the user.
Details
at line 19
__construct(string $id, User $from, string $currency, int $total_amount, string $invoice_payload, string|null $shipping_option_id = null, OrderInfo|null $order_info = null)
No description
at line 33
string
getId()
Unique query identifier.
at line 41
User
getFrom()
User who sent the query.
at line 49
string
getCurrency()
Three-letter ISO 4217 currency code.
at line 57
int
getTotalAmount()
Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).
at line 65
string
getInvoicePayload()
Bot specified invoice payload.
at line 73
string|null
getShippingOptionId()
Optional. Identifier of the shipping option chosen by the user.
at line 81
OrderInfo|null
getOrderInfo()
Optional. Order information provided by the user.