Package org.drinkless.tdlib
Class TdApi.SendPaymentForm
- Enclosing class:
- TdApi
Sends a filled-out payment form to the bot for final verification.
Returns PaymentResult
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier uniquely determining type of the object.The credentials chosen by user for payment; pass null for a payment in Telegram Stars.The invoice.Identifier returned by validateOrderInfo, or an empty string.longPayment form identifier returned by getPaymentForm.Identifier of a chosen shipping option, if applicable.longChosen by the user amount of tip in the smallest units of the currency. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which sends a filled-out payment form to the bot for final verification.SendPaymentForm(TdApi.InputInvoice inputInvoice, 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. -
Method Summary
Modifier and TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
inputInvoice
The invoice. -
paymentFormId
public long paymentFormIdPayment 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; pass null for a payment in Telegram Stars. -
tipAmount
public long tipAmountChosen by the user amount of tip in the smallest units of the currency. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
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(TdApi.InputInvoice inputInvoice, 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:
inputInvoice- The invoice.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; pass null for a payment in Telegram Stars.tipAmount- Chosen by the user amount of tip in the smallest units of the currency.
-
-
Method Details
-
getConstructor
public int getConstructor()Description copied from class:TdApi.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-