Raw.payments.SendPaymentForm
Send compiled payment form
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;
export namespace Raw {
export namespace payments {
export class SendPaymentForm {
constructor(params: {
formId: bigint;
invoice: Raw.TypeInputInvoice;
requestedInfoId?: string;
shippingOptionId?: string;
credentials: Raw.TypeInputPaymentCredentials;
tipAmount?: bigint;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x2d03522f
Property
formId
: bigintForm id
invoice
: Raw.TypeInputInvoiceInvoice
requestedInfoId
: string or undefinedId of saved and validated order info
shippingOptionId
: string or undefinedChosen shipping option id
credentials
: Raw.TypeInputPaymentCredentialsPayment credentials
tipAmount
: bigint or undefinedTip, 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).