SuccessfulPayment
class SuccessfulPayment
This object contains basic information about a successful payment.
Methods
No description
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.
Telegram payment identifier.
Provider payment identifier.
Optional. Identifier of the shipping option chosen by the user.
Optional. Order information provided by the user.
Details
at line 19
__construct(string $currency, int $total_amount, string $invoice_payload, string $telegram_payment_charge_id, string $provider_payment_charge_id, string|null $shipping_option_id = null, OrderInfo|null $order_info = null)
No description
at line 33
string
getCurrency()
Three-letter ISO 4217 currency code.
at line 41
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 49
string
getInvoicePayload()
Bot specified invoice payload.
at line 57
string
getTelegramPaymentChargeId()
Telegram payment identifier.
at line 65
string
getProviderPaymentChargeId()
Provider payment identifier.
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.