payments.sendPaymentForm #

Send compiled payment form

Layer 223

payments.paymentResult#4e5f810d updates:Updates = payments.PaymentResult;
payments.paymentVerificationNeeded#d8411139 url:string = payments.PaymentResult;
---functions---
payments.sendPaymentForm#2d03522f flags:# form_id:long invoice:InputInvoice requested_info_id:flags.0?string shipping_option_id:flags.1?string credentials:InputPaymentCredentials tip_amount:flags.2?long = payments.PaymentResult;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
form_idlongForm ID
invoiceInputInvoiceInvoice
requested_info_idflags.0?stringID of saved and validated order info
shipping_option_idflags.1?stringChosen shipping option ID
credentialsInputPaymentCredentialsPayment credentials
tip_amountflags.2?longTip, in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).

Result #

payments.PaymentResult

Only users can use this method #

This method can be invoked over an unauthenticated connection » #

Possible errors #

CodeTypeDescription
400FORM_UNSUPPORTEDPlease update your client.
400INVOICE_INVALIDThe specified invoice is invalid.
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400PAYMENT_CREDENTIALS_INVALIDThe specified payment credentials are invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.
400TMP_PASSWORD_INVALIDThe passed tmp_password is invalid.

payments.ValidatedRequestedInfo #

Validated user-provided info

Bot Payments API #