SuccessfulPayment

data class SuccessfulPayment(currency: String, total_amount: Long, invoice_payload: String, shipping_option_id: String?, order_info: OrderInfo?, telegram_payment_charge_id: String, provider_payment_charge_id: String) : TelegramModel

This object contains basic information about a successful payment.

Constructors

SuccessfulPayment
Link copied to clipboard
fun SuccessfulPayment(currency: String, total_amount: Long, invoice_payload: String, shipping_option_id: String? = null, order_info: OrderInfo? = null, telegram_payment_charge_id: String, provider_payment_charge_id: String)

Properties

currency
Link copied to clipboard
val currency: String
Three-letter ISO 4217 currency code
invoice_payload
Link copied to clipboard
val invoice_payload: String
Bot specified invoice payload
order_info
Link copied to clipboard
val order_info: OrderInfo? = null
Optional.
provider_payment_charge_id
Link copied to clipboard
val provider_payment_charge_id: String
Provider payment identifier
shipping_option_id
Link copied to clipboard
val shipping_option_id: String? = null
Optional.
telegram_payment_charge_id
Link copied to clipboard
val telegram_payment_charge_id: String
Telegram payment identifier
total_amount
Link copied to clipboard
val total_amount: Long
Total price in the smallest units of the currency (integer, not float/double).