PaymentForm

class pyrogram.raw.types.payments.PaymentForm

Payment form.

Constructor type of PaymentForm.

Details
  • Layer: 126

  • ID: 0x3f56aea3

Parameters
  • bot_id (int 32-bit) – Bot ID.

  • invoice (Invoice) – Invoice.

  • provider_id (int 32-bit) – Payment provider ID.

  • url (str) – Payment form URL.

  • users (List of User) – Users.

  • can_save_credentials (bool, optional) – Whether the user can choose to save credentials.

  • password_missing (bool, optional) – 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).

  • native_provider (str, optional) – Payment provider name.One of the following:- stripe.

  • native_params (DataJSON, optional) – 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:- 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.

  • saved_info (PaymentRequestedInfo, optional) – Saved server-side order information.

  • saved_credentials (PaymentSavedCredentials, optional) – Contains information about saved card credentials.

Methods

This object can be returned by 1 method:

payments.GetPaymentForm

Get a payment form.