Raw.payments.PaymentForm
Payment form
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;
export namespace Raw {
export namespace payments {
export class PaymentForm {
constructor(params: {
canSaveCredentials?: boolean;
passwordMissing?: boolean;
formId: bigint;
botId: bigint;
title: string;
description: string;
photo?: Raw.TypeWebDocument;
invoice: Raw.TypeInvoice;
providerId: bigint;
url: string;
nativeProvider?: string;
nativeParams?: Raw.TypeDataJSON;
additionalMethods?: Array<Raw.TypePaymentFormMethod>;
savedInfo?: Raw.TypePaymentRequestedInfo;
savedCredentials?: Array<Raw.TypePaymentSavedCredentials>;
users: Array<Raw.TypeUser>;
}) {}
}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0xa0058751
Property
canSaveCredentials
: boolean or undefinedWhether the user can choose to save credentials.
passwordMissing
: boolean or undefinedIndicates 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
: bigintForm id
botId
: bigintBot id
title
: stringForm title
description
: stringDescription
photo
: Raw.TypeWebDocument or undefinedProduct photo
invoice
: Raw.TypeInvoiceInvoice
providerId
: bigintPayment provider id.
url
: stringPayment form url
nativeProvider
: string or undefinedPayment provider name.one of the following:- stripe
nativeParams
: Raw.TypeDataJSON or undefinedContains 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:- applePayMerchantId: apple pay merchant id- googlePayPublicKey: google pay public key- needCountry: true, if the user country must be provided,- needZip: true, if the user zip/postal code must be provided,- needCardholderName: true, if the cardholder name must be provided
additionalMethods
: Array of Raw.TypePaymentFormMethod or undefinedAdditional payment methods
savedInfo
: Raw.TypePaymentRequestedInfo or undefinedSaved server-side order information
savedCredentials
: Array of Raw.TypePaymentSavedCredentials or undefinedContains information about saved card credentials
users
: Array of Raw.TypeUserUsers