Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/tl/2_types.ts>payments_PaymentForm_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class payments_PaymentForm_
import { payments_PaymentForm_ } from "https://deno.land/x/mtkruto@0.1.190/tl/2_types.ts";

Payment form

Constructors

new
payments_PaymentForm_(params: { can_save_credentials?: true; password_missing?: true; form_id: bigint; bot_id: bigint; title: string; description: string; photo?: enums.WebDocument; invoice: enums.Invoice; provider_id: bigint; url: string; native_provider?: string; native_params?: enums.DataJSON; additional_methods?: Array<enums.PaymentFormMethod>; saved_info?: enums.PaymentRequestedInfo; saved_credentials?: Array<enums.PaymentSavedCredentials>; users: Array<enums.User>; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
additional_methods: Array<enums.PaymentFormMethod>

Additional payment methods

bot_id: bigint

Bot ID

optional
can_save_credentials: true

Whether the user can choose to save credentials.

description: string

Description

form_id: bigint

Form ID

invoice: enums.Invoice

Invoice

optional
native_params: enums.DataJSON

Contains information about the payment provider, if available, to support it natively without the need for opening the URL.
A JSON object that can contain the following fields:

- apple_pay_merchant_id: Apple Pay merchant ID
- google_pay_public_key: Google Pay public key
- need_country: True, if the user country must be provided,
- need_zip: True, if the user ZIP/postal code must be provided,
- need_cardholder_name: True, if the cardholder name must be provided

optional
native_provider: string

Payment provider name.
One of the following:
- stripe

optional
password_missing: true

Indicates that the user can save payment credentials, but only after setting up a 2FA password (currently the account doesn't have a 2FA password)

optional
photo: enums.WebDocument

Product photo

provider_id: bigint

Payment provider ID.

optional
saved_credentials: Array<enums.PaymentSavedCredentials>

Contains information about saved card credentials

optional
saved_info: enums.PaymentRequestedInfo

Saved server-side order information

title: string

Form title

url: string

Payment form URL

users: Array<enums.User>

Users

Static Properties

readonly
[name]: string
readonly
[paramDesc]: ParamDesc