Raw.payments.PaymentForm

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 undefined

    Whether the user can choose to save credentials.

  • passwordMissing : boolean or undefined

    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 : bigint

    Form id

  • botId : bigint

    Bot id

  • title : string

    Form title

  • description : string

    Description

  • photo : Raw.TypeWebDocument or undefined

    Product photo

  • invoice : Raw.TypeInvoice

    Invoice

  • providerId : bigint

    Payment provider id.

  • url : string

    Payment form url

  • nativeProvider : string or undefined

    Payment provider name.one of the following:- stripe

  • nativeParams : Raw.TypeDataJSON or undefined

    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:- 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 undefined

    Additional payment methods

  • savedInfo : Raw.TypePaymentRequestedInfo or undefined

    Saved server-side order information

  • savedCredentials : Array of Raw.TypePaymentSavedCredentials or undefined

    Contains information about saved card credentials

  • users : Array of Raw.TypeUser

    Users