SendPaymentForm class final

SendPaymentForm (sendPaymentForm) - TDLib function

Sends a filled-out payment form to the bot for final verification.

  • 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 (optional).
  • tipAmount: Chosen by the user amount of tip in the smallest units of the currency.

PaymentResult is returned on completion.

Inheritance

Constructors

SendPaymentForm({required InputInvoice inputInvoice, required int paymentFormId, required String orderInfoId, required String shippingOptionId, InputCredentials? credentials, required int tipAmount})
SendPaymentForm (sendPaymentForm) - TDLib function
const

Properties

credentials InputCredentials?
The credentials chosen by user for payment; pass null for a payment in Telegram Stars
final
currentObjectId String
TDLib object type for current class instance
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
inputInvoice InputInvoice
The invoice
final
orderInfoId String
Identifier returned by validateOrderInfo, or an empty string
final
paymentFormId int
Payment form identifier returned by getPaymentForm
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shippingOptionId String
Identifier of a chosen shipping option, if applicable
final
tipAmount int
Chosen by the user amount of tip in the smallest units of the currency
final

Methods

copyWith({InputInvoice? inputInvoice, int? paymentFormId, String? orderInfoId, String? shippingOptionId, InputCredentials? credentials, int? tipAmount}) SendPaymentForm
Copy model with modified properties.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) Map<String, dynamic>
Convert model to TDLib JSON format
override
toString() String
Convert model to TDLib JSON format, encoded into String.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

defaultObjectId → const String
TDLib object type