Class TdApi.SendPaymentForm

  • Enclosing class:
    TdApi

    public static class TdApi.SendPaymentForm
    extends TdApi.Function
    Sends a filled-out payment form to the bot for final verification.

    Returns PaymentResult

    • Field Detail

      • chatId

        public long chatId
        Chat identifier of the Invoice message.
      • messageId

        public long messageId
        Message identifier.
      • 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.
      • tipAmount

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

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

      • SendPaymentForm

        public SendPaymentForm()
        Default constructor for a function, which sends a filled-out payment form to the bot for final verification.

        Returns PaymentResult

      • SendPaymentForm

        public SendPaymentForm​(long chatId,
                               long messageId,
                               long paymentFormId,
                               String orderInfoId,
                               String shippingOptionId,
                               TdApi.InputCredentials credentials,
                               long tipAmount)
        Creates a function, which sends a filled-out payment form to the bot for final verification.

        Returns PaymentResult

        Parameters:
        chatId - Chat identifier of the Invoice message.
        messageId - Message identifier.
        paymentFormId - Payment form identifier returned by getPaymentForm.
        orderInfoId - Identifier returned by validateOrderInfo, or an empty string.
        shippingOptionId - Identifier of a chosen shipping option, if applicable.
        credentials - The credentials chosen by user for payment.
        tipAmount - Chosen by the user amount of tip in the smallest units of the currency.