--- title: getPaymentForm description: Returns invoice payment form. The method should be called when user presses inlineKeyboardButtonBuy --- ## 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 | Required | Description | |----------|---------------|----------|-------------| |chat\_id|[CLICK ME int53](../types/int53.md) | Yes|Chat identifier of the Invoice message| |message\_id|[CLICK ME int53](../types/int53.md) | Yes|Message identifier| ### Return type: [PaymentForm](../types/PaymentForm.md)