Class TdApi.PaymentForm

  • Enclosing class:
    TdApi

    public static class TdApi.PaymentForm
    extends TdApi.Object
    Contains information about an invoice payment form.
    • Field Detail

      • invoice

        public TdApi.Invoice invoice
        Full information of the invoice.
      • url

        public java.lang.String url
        Payment form URL.
      • paymentsProvider

        public TdApi.PaymentsProviderStripe paymentsProvider
        Contains information about the payment provider, if available, to support it natively without the need for opening the URL; may be null.
      • savedOrderInfo

        public TdApi.OrderInfo savedOrderInfo
        Saved server-side order information; may be null.
      • savedCredentials

        public TdApi.SavedCredentials savedCredentials
        Contains information about saved card credentials; may be null.
      • canSaveCredentials

        public boolean canSaveCredentials
        True, if the user can choose to save credentials.
      • needPassword

        public boolean needPassword
        True, if the user will be able to save credentials protected by a password they set up.
      • CONSTRUCTOR

        public static final int CONSTRUCTOR
        Identifier uniquely determining type of the object.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PaymentForm

        public PaymentForm()
        Default constructor.
      • PaymentForm

        public PaymentForm​(TdApi.Invoice invoice,
                           java.lang.String url,
                           TdApi.PaymentsProviderStripe paymentsProvider,
                           TdApi.OrderInfo savedOrderInfo,
                           TdApi.SavedCredentials savedCredentials,
                           boolean canSaveCredentials,
                           boolean needPassword)
        Constructor for initialization of all fields.
        Parameters:
        invoice - Full information of the invoice.
        url - Payment form URL.
        paymentsProvider - Contains information about the payment provider, if available, to support it natively without the need for opening the URL; may be null.
        savedOrderInfo - Saved server-side order information; may be null.
        savedCredentials - Contains information about saved card credentials; may be null.
        canSaveCredentials - True, if the user can choose to save credentials.
        needPassword - True, if the user will be able to save credentials protected by a password they set up.