get_payment_form


Description:

public async PaymentForm get_payment_form (InputInvoice input_invoice, ThemeParameters theme) throws TDLibError

Returns an invoice payment form. This method must be called when the user presses inline button of the type inlineKeyboardButtonTypeBuy, or wants to buy access to media in a messagePaidMedia message

Parameters:

input_invoice

The invoice

theme

Preferred payment form theme; pass null to use the default theme