Function send_payment_form

Source
pub async fn send_payment_form(
    input_invoice: InputInvoice,
    payment_form_id: i64,
    order_info_id: String,
    shipping_option_id: String,
    credentials: InputCredentials,
    tip_amount: i64,
    client_id: i32,
) -> Result<PaymentResult, Error>
Expand description

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

ยงArguments

  • input_invoice - The invoice
  • payment_form_id - Payment form identifier returned by getPaymentForm
  • order_info_id - Identifier returned by validateOrderInfo, or an empty string
  • shipping_option_id - Identifier of a chosen shipping option, if applicable
  • credentials - The credentials chosen by user for payment
  • tip_amount - Chosen by the user amount of tip in the smallest units of the currency
  • client_id - The client id to send the request to