Skip to content

GramIO API Reference / @gramio/contexts/dist / SuccessfulPayment

Class: SuccessfulPayment

Defined in: contexts/index.d.ts:2252

This object contains basic information about a successful payment.

Constructors

Constructor

new SuccessfulPayment(payload): SuccessfulPayment

Defined in: contexts/index.d.ts:2254

Parameters

ParameterType
payloadTelegramSuccessfulPayment

Returns

SuccessfulPayment

Properties

PropertyTypeDefined in
payloadTelegramSuccessfulPaymentcontexts/index.d.ts:2253

Accessors

[toStringTag]

Get Signature

get [toStringTag](): string

Defined in: contexts/index.d.ts:2256

MDN

Returns

string


currency

Get Signature

get currency(): TelegramCurrencies

Defined in: contexts/index.d.ts:2258

Three-letter ISO 4217 currency code

Returns

TelegramCurrencies


invoicePayload

Get Signature

get invoicePayload(): string

Defined in: contexts/index.d.ts:2269

Bot specified invoice payload

Returns

string


orderInfo

Get Signature

get orderInfo(): OrderInfo

Defined in: contexts/index.d.ts:2273

Order info provided by the user

Returns

OrderInfo


providerPaymentChargeId

Get Signature

get providerPaymentChargeId(): string

Defined in: contexts/index.d.ts:2277

Provider payment identifier

Returns

string


shippingOptionId

Get Signature

get shippingOptionId(): string

Defined in: contexts/index.d.ts:2271

Identifier of the shipping option chosen by the user

Returns

string


telegramPaymentChargeId

Get Signature

get telegramPaymentChargeId(): string

Defined in: contexts/index.d.ts:2275

Telegram payment identifier

Returns

string


totalAmount

Get Signature

get totalAmount(): number

Defined in: contexts/index.d.ts:2267

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

Returns

number