Module tdlight.api

Class TdApi.SendPaymentForm

Enclosing class:
TdApi

public static final class TdApi.SendPaymentForm extends TdApi.Function<TdApi.PaymentResult>
Sends a filled-out payment form to the bot for final verification. Returns PaymentResult
  • Field Details

    • inputInvoice

      public TdApi.InputInvoice inputInvoice
      The invoice.
    • paymentFormId

      public long paymentFormId
      Payment form identifier returned by getPaymentForm.
    • orderInfoId

      public String orderInfoId
      Identifier returned by validateOrderInfo, or an empty string.
    • shippingOptionId

      public String shippingOptionId
      Identifier of a chosen shipping option, if applicable.
    • credentials

      public TdApi.InputCredentials credentials
      The credentials chosen by user for payment.
    • tipAmount

      public long tipAmount
      Chosen by the user amount of tip in the smallest units of the currency.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      See Also:
  • Constructor Details

    • SendPaymentForm

      public SendPaymentForm()
      Sends a filled-out payment form to the bot for final verification. Returns PaymentResult
    • SendPaymentForm

      public SendPaymentForm(TdApi.InputInvoice inputInvoice, long paymentFormId, String orderInfoId, String shippingOptionId, TdApi.InputCredentials credentials, long tipAmount)
      Sends a filled-out payment form to the bot for final verification. Returns PaymentResult
      Parameters:
      inputInvoice - InputInvoice The invoice.
      paymentFormId - long Payment form identifier returned by getPaymentForm.
      orderInfoId - String Identifier returned by validateOrderInfo, or an empty string.
      shippingOptionId - String Identifier of a chosen shipping option, if applicable.
      credentials - InputCredentials The credentials chosen by user for payment.
      tipAmount - long Chosen by the user amount of tip in the smallest units of the currency.
    • SendPaymentForm

      public SendPaymentForm(DataInput input) throws IOException
      Sends a filled-out payment form to the bot for final verification. Returns PaymentResult
      Throws:
      IOException
  • Method Details