Get a payment form
payments.paymentForm#1694761b flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?PaymentSavedCredentials users:Vector<User> = payments.PaymentForm;
---functions---
payments.getPaymentForm#8a333c8d flags:# peer:InputPeer msg_id:int theme_params:flags.0?DataJSON = payments.PaymentForm;
Parameters
Name |
Type |
Description |
flags |
# |
Flags, see TL conditional fields |
peer |
InputPeer |
The peer where the payment form was sent |
msg_id |
int |
Message ID of payment form |
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 |
MESSAGE_ID_INVALID |
The provided message id is invalid. |