telegram api constructor · layer 229 · #a0058751

payments.paymentForm

Payment form

definition

payments.paymentForm#a0058751 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON additional_methods:flags.6?Vector<PaymentFormMethod> saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?Vector<PaymentSavedCredentials> users:Vector<User> = payments.PaymentForm;

parameters

nametypedescription
flags#Flags, see TL conditional fields
can_save_credentialsflags.2?trueWhether the user can choose to save credentials.
password_missingflags.3?trueIndicates that the user can save payment credentials, but only after setting up a 2FA password (currently the account doesn't have a 2FA password)
form_idlongForm ID
bot_idlongBot ID
titlestringForm title
descriptionstringDescription
photoflags.5?WebDocumentProduct photo
invoiceInvoiceInvoice
provider_idlongPayment provider ID.
urlstringPayment form URL
native_providerflags.4?stringPayment provider name.One of the following:- stripe
native_paramsflags.4?DataJSONContains 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
additional_methodsflags.6?Vector<PaymentFormMethod>Additional payment methods
saved_infoflags.0?PaymentRequestedInfoSaved server-side order information
saved_credentialsflags.1?Vector<PaymentSavedCredentials>Contains information about saved card credentials
usersVector<User>Users

type

payments.PaymentForm · other constructors: payments.paymentFormStars, payments.paymentFormStarGift

history

present in layers 65–229 · constructor id changed 4×

idlayers
#3f56aea365–126
#8d0b2415127–132
#1694761b133–142
#b0133b37143
#a0058751144–229