Skip to main content

payments.paymentForm

Payment form

type tg.PaymentsPaymentForm struct { /* ... */ }

Implements payments.PaymentForm.

Fields​

NameTypeRequiredDescription
CanSaveCredentialsbool—Whether the user can choose to save credentials.
PasswordMissingbool—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)
FormIDint64yesForm ID
BotIDint64yesBot ID
TitlestringyesForm title
DescriptionstringyesDescription
PhotoWebDocumentClass—Product photo
InvoiceInvoiceyesInvoice
ProviderIDint64yesPayment provider ID.
URLstringyesPayment form URL
NativeProviderstring—Payment provider name.One of the following:- stripe
NativeParamsDataJSON—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
AdditionalMethods[]PaymentFormMethod—Additional payment methods
SavedInfoPaymentRequestedInfo—Saved server-side order information
SavedCredentials[]PaymentSavedCredentialsCard—Contains information about saved card credentials
Users[]UserClassyesUsers

References​