Download and unpack invoicepaybtn.zip, upload content to the WHMCS folder
Go to Setup > Addon Modules and activate Invoice Email Payment Buttons
After activation check permissions and save settings.
Go to Addons > Invoice Email Payment Buttons and fill the License Key.
Select payment gateways and buttons style.
Open Setup > Email Templates and add {$payment_btns}
tag to the following messages: