payments.paymentForm
Payment form
type tg.PaymentsPaymentForm struct { /* ... */ }
Implements payments.PaymentForm.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
CanSaveCredentials | bool | — | Whether the user can choose to save credentials. |
PasswordMissing | bool | — | 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) |
FormID | int64 | yes | Form ID |
BotID | int64 | yes | Bot ID |
Title | string | yes | Form title |
Description | string | yes | Description |
Photo | WebDocumentClass | — | Product photo |
Invoice | Invoice | yes | Invoice |
ProviderID | int64 | yes | Payment provider ID. |
URL | string | yes | Payment form URL |
NativeProvider | string | — | Payment provider name.One of the following:- stripe |
NativeParams | 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 |
AdditionalMethods | []PaymentFormMethod | — | Additional payment methods |
SavedInfo | PaymentRequestedInfo | — | Saved server-side order information |
SavedCredentials | []PaymentSavedCredentialsCard | — | Contains information about saved card credentials |
Users | []UserClass | yes | Users |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.paymentForm#a0058751