Skip to content

sendPaymentForm

Function · TDLib 1.8.67 · d1085f9c

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

sendPaymentForm(
  input_invoice: InputInvoice,
  payment_form_id: int64,
  order_info_id: string,
  shipping_option_id: string,
  credentials: InputCredentials,
  tip_amount: int53
) → PaymentResult

input_invoice

InputInvoice

The invoice

payment_form_id

int64

Payment form identifier returned by getPaymentForm

order_info_id

string

Identifier returned by validateOrderInfo, or an empty string

shipping_option_id

string

Identifier of a chosen shipping option, if applicable

credentials

InputCredentials

The credentials chosen by user for payment; pass null for a payment in Telegram Stars

tip_amount

int53

Chosen by the user amount of tip in the smallest units of the currency