/
successful_payment.go
14 lines (13 loc) 路 1.15 KB
/
successful_payment.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package telegram
/*
SuccessfulPayment contains basic information about a successful payment.
*/
type SuccessfulPayment struct {
Currency string `json:"currency"` // Three-letter ISO 4217 currency code
TotalAmount int `json:"total_amount"` // 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).
InvoicePayload string `json:"invoice_payload"` // Bot specified invoice payload
ShippingOptionID string `json:"shipping_option_id,omitempty"` // Optional. IDentifier of the shipping option chosen by the user
OrderInfo *OrderInfo `json:"order_info,omitempty"` // Optional. Order info provided by the user
TelegramPaymentChargeID string `json:"telegram_payment_charge_id"` // Telegram payment identifier
ProviderPaymentChargeID string `json:"provider_payment_charge_id"` // Provider payment identifier
}