Struct wdg_telegram_types::SuccessfulPayment [] [src]

pub struct SuccessfulPayment {
    pub _currency: String,
    pub _total_amount: i32,
    pub _invoice_payload: String,
    pub _shipping_option_id: Option<String>,
    pub _order_info: Option<OrderInfo>,
    pub _telegram_payment_charge_id: String,
    pub _provider_payment_charge_id: String,
}

This object contains basic information about a successful payment.

Fields

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 info provided by the user

Telegram payment identifier

Provider payment identifier