payments.getPaymentForm

Get a payment form

 Method schema is available as of layer 127. Switch ยป

Parameters

Name Type Description
flags # Flags, see TL conditional fields
invoice InputInvoice Invoice
theme_params flags.0?DataJSON A JSON object with the following keys, containing color theme information (integers, RGB24) to pass to the payment provider, to apply in eventual verification pages:
bg_color - Background color
text_color - Text color
hint_color - Hint text color
link_color - Link color
button_color - Button color
button_text_color - Button text color

Result

payments.PaymentForm

Possible errors

Code Type Description
400 BOOST_PEER_INVALID The specified boost_peer is invalid.
400 MESSAGE_ID_INVALID The provided message id is invalid.
400 PEER_ID_INVALID The provided peer id is invalid.
400 SLUG_INVALID The specified invoice slug is invalid.
400 UNTIL_DATE_INVALID Invalid until date provided.