Skip to content

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) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#currency : String #

Three-letter ISO 4217 currency code

View source

#currency=(currency : String) #

Three-letter ISO 4217 currency code

View source

#invoice_payload : String #

Bot specified invoice payload

View source

#invoice_payload=(invoice_payload : String) #

Bot specified invoice payload

View source

#order_info : Tourmaline::OrderInfo? #

Optional. Order information provided by the user

View source

#order_info=(order_info : Tourmaline::OrderInfo?) #

Optional. Order information provided by the user

View source

#provider_payment_charge_id : String #

Provider payment identifier

View source

#provider_payment_charge_id=(provider_payment_charge_id : String) #

Provider payment identifier

View source

#shipping_option_id : String? #

Optional. Identifier of the shipping option chosen by the user

View source

#shipping_option_id=(shipping_option_id : String?) #

Optional. Identifier of the shipping option chosen by the user

View source

#telegram_payment_charge_id : String #

Telegram payment identifier

View source

#telegram_payment_charge_id=(telegram_payment_charge_id : String) #

Telegram payment identifier

View source

#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).

View source

#total_amount=(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).

View source