Class SuccessfulPayment
This object contains basic information about a successful payment.
Inheritance
System.Object
SuccessfulPayment
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TelegramBotApi.Types.Payment
Assembly: TelegramBotApi.dll
Syntax
[JsonObject(MemberSerialization = MemberSerialization.OptIn, ItemNullValueHandling = NullValueHandling.Ignore)]
public class SuccessfulPayment
Properties
| Improve this Doc View SourceCurrency
Three-letter ISO 4217 currency code
Declaration
[JsonProperty(PropertyName = "currency", Required = Required.Always)]
public string Currency { get; set; }
Property Value
Type | Description |
---|---|
System.String |
InvoicePayload
Bot specified invoice payload
Declaration
[JsonProperty(PropertyName = "invoice_payload", Required = Required.Always)]
public string InvoicePayload { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OrderInfo
Optional. Order info provided by the user
Declaration
[JsonProperty(PropertyName = "order_info", Required = Required.Always)]
public OrderInfo OrderInfo { get; set; }
Property Value
Type | Description |
---|---|
OrderInfo |
ProviderPaymentChargeId
Provider payment identifier
Declaration
[JsonProperty(PropertyName = "provider_payment_charge_id", Required = Required.Always)]
public string ProviderPaymentChargeId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ShippingOptionId
Optional. Identifier of the shipping option chosen by the user
Declaration
[JsonProperty(PropertyName = "shipping_option_id")]
public string ShippingOptionId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TelegramPaymentChargeId
Telegram payment identifier
Declaration
[JsonProperty(PropertyName = "telegram_payment_charge_id", Required = Required.Always)]
public string TelegramPaymentChargeId { get; set; }
Property Value
Type | Description |
---|---|
System.String |
TotalAmount
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).
Declaration
[JsonProperty(PropertyName = "total_amount", Required = Required.Always)]
public int TotalAmount { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |