--- title: getPaymentForm description: Returns invoice payment form. The method should be called when user presses inlineKeyboardButtonBuy image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- # Method: getPaymentForm [Back to methods index](index.md) YOU CANNOT USE THIS METHOD IN MADELINEPROTO Returns invoice payment form. The method should be called when user presses inlineKeyboardButtonBuy ### Parameters: | Name | Type | Description | Required | |----------|---------------|-------------|----------| |chat\_id|[int53](../types/int53.md) | Chat identifier of the Invoice message | Yes| |message\_id|[int53](../types/int53.md) | Message identifier | Yes| ### Return type: [PaymentForm](../types/PaymentForm.md)