Skip to main content

payments.paymentForm

Payment form

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

Implements payments.PaymentForm.

Fields

NameTypeRequiredDescription
CanSaveCredentialsboolWhether the user can choose to save credentials.
PasswordMissingboolIndicates 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
PhotoWebDocumentClassProduct photo
InvoiceInvoiceyesInvoice
ProviderIDint64yesPayment provider ID.
URLstringyesPayment form URL
NativeProviderstringPayment provider name.One of the following:- stripe
NativeParamsDataJSONContains 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[]PaymentFormMethodAdditional payment methods
SavedInfoPaymentRequestedInfoSaved server-side order information
SavedCredentials[]PaymentSavedCredentialsCardContains information about saved card credentials
Users[]UserClassyesUsers

References