From b6706bc20fc52000f354cbfe88145163bb749b8c Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Fri, 28 May 2021 15:02:09 +0000 Subject: [PATCH] Update content of files --- .../constructor/payments.paymentForm | 42 ++++++++++--------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/data/core.telegram.org/constructor/payments.paymentForm b/data/core.telegram.org/constructor/payments.paymentForm index 378a74faa5..2979c048ba 100644 --- a/data/core.telegram.org/constructor/payments.paymentForm +++ b/data/core.telegram.org/constructor/payments.paymentForm @@ -53,83 +53,85 @@
payments.paymentForm#3f56aea3 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true bot_id:int invoice:Invoice provider_id:int url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector<User> = payments.PaymentForm;

-

Parameters

+

Parameters

- + - + - + - - + + - + - + - + - + - + - - + + - + - + - +
NameTypeType Description
flags## Flags, see TL conditional fields
can_save_credentialsflags.2?trueflags.2?true Whether 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)flags.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)
bot_idintint Bot ID
invoiceInvoiceInvoice Invoice
provider_idintint Payment provider ID.
urlstringstring Payment form URL
native_providerflags.4?stringflags.4?string Payment 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:

- publishable_key: Stripe API publishable key
- apple_pay_merchant_id: Apple Pay merchant ID
- android_pay_public_key: Android Pay public key
- android_pay_bgcolor: Android Pay form background color
- android_pay_inverse: Whether to use the dark theme in the Android Pay form
- 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
flags.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 +
saved_infoflags.0?PaymentRequestedInfoflags.0?PaymentRequestedInfo Saved server-side order information
saved_credentialsflags.1?PaymentSavedCredentialsflags.1?PaymentSavedCredentials Contains information about saved card credentials
usersVector<User>Vector<User> Users
-

Type

+

Type

payments.PaymentForm

-

Related pages

-

Two-factor authentication

-

How to login to a user's account if they have enabled 2FA, how to change password.

+

Related pages

+

Two-factor authentication

+

How to login to a user's account if they have enabled 2FA, how to change password.

+