class Tourmaline::SuccessfulPayment
inherits Reference
#
This object contains basic information about a successful payment.
Included modules
JSON::Serializable
Constructors#
.new(currency, total_amount, invoice_payload, telegram_payment_charge_id, provider_payment_charge_id, shipping_option_id : String? = nil, order_info : Tourmaline::OrderInfo? = nil)
#
(currency, total_amount, invoice_payload, telegram_payment_charge_id, provider_payment_charge_id, shipping_option_id : String? = nil, order_info : Tourmaline::OrderInfo? = nil)
Methods#
#order_info=(order_info : Tourmaline::OrderInfo?)
#
(order_info : Tourmaline::OrderInfo?)
Optional. Order information provided by the user
#provider_payment_charge_id=(provider_payment_charge_id : String)
#
(provider_payment_charge_id : String)
Provider payment identifier
#shipping_option_id : String?
#
: String?
Optional. Identifier of the shipping option chosen by the user
#shipping_option_id=(shipping_option_id : String?)
#
(shipping_option_id : String?)
Optional. Identifier of the shipping option chosen by the user
#telegram_payment_charge_id=(telegram_payment_charge_id : String)
#
(telegram_payment_charge_id : String)
Telegram payment identifier
#total_amount : Int32 | Int64
#
: Int32 | Int64
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).
#total_amount=(total_amount : Int32 | Int64)
#
(total_amount : Int32 | Int64)
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).