Addon for WHMCS
TutHost Email Pay Buttons
"Pay" buttons right in the WHMCS invoice emails. A client clicks a payment method and sees the payment of that very invoice at once, without logging in. In domain renewal reminders the module shows the invoice that has already been issued, so the client pays it instead of ordering the renewal a second time.
We built the module for our own billing, and our clients have been using it since December 2026. Open code, no ionCube: you can read every line.
Who it is forFor hosting companies, resellers and SaaS businesses on WHMCS that want clients to pay an invoice in one click from the email instead of looking for their client area password.
- WHMCS 9.1
- PHP 8.2–8.3
- Open code, no ionCube
- Ukrainian and English
Features
- A button for every payment method you choose in the invoice emails: invoice created, payment reminder, overdue notices. The
{$payment_btns}merge field is the same as in Invoice Email Payment Buttons, so the email templates need no changes. - Any gateway paid on the provider’s side can have a button: card checkout pages, bank transfer, crypto. The invoice’s own payment method comes first.
- A signed link with an expiry, 60 days by default. It opens the payment of one invoice and shows only its number, amount and due date. Changing the key stops every link sent so far at once.
- Opening a link changes nothing, so mail scanners that follow every link in an email break nothing. The payment method changes only when the client presses a button.
- Domain renewal emails show the open renewal invoice, its amount and due date, a “Pay invoice” button and the payment method buttons.
- The order, labels for each language, colours and layout of the buttons are set in the admin area. Gateways and colours can be imported from the old addon.
- An event journal with invoice and domain numbers only, no names, amounts or links; counters for 30 days.
- Texts in Ukrainian and English. Other languages through override files that updates never touch.
How the button works
From the email to the payment in three steps, none of which needs a login.
Email
WHMCS sends the invoice, and the module adds payment method buttons with signed links.
Invoice page
The link opens a short page with the number, amount, due date and method buttons. Opening it changes nothing.
Payment
The client presses a method. The module switches the invoice to it, as the WHMCS invoice page does, and opens the gateway’s payment form.
Requirements and compatibility
- Tested on
- WHMCS 9.1, PHP 8.3
- PHP
- 8.2 or 8.3 with the json and mbstring extensions
- ionCube Loader
- not needed: the code is open
- Gateways
- any paid on the provider's side; those that take the card inside WHMCS need a login and get no button
What the price includes
- A license for one WHMCS installation, paid once.
- 12 months of updates and support. After that, renewal is optional at 10.00 $ a year.
- Without renewal the module keeps working: emails, buttons and the pay page do not depend on the key.
- The full unencrypted source code under the TutHost license agreement: for one installation, not to be shared or published.
Installation and setup
- Copy the contents of the
upload/folder from the archive to the WHMCS root folder. - In the admin area open Configuration › System Settings › Addon Modules, activate Pay Buttons and give access to the roles that need it.
- On the module page, Buttons tab, tick the payment methods that get buttons and save.
- Put
{$payment_btns}into the invoice emails where the buttons should go. The Status tab shows how many templates already have it. - Optional: in “Upcoming Domain Renewal Notice” and “Expired Domain Notice” wrap the renewal sentence in
{if $renewal_invoice_block}{$renewal_invoice_block}{else}…{/if}.
Note: moving from Invoice Email Payment Buttons — press Import on the module page, check the Buttons tab, then deactivate the old addon.
Documentation and support
Instructions
The installation steps are above on this page. Full instructions in Ukrainian and English are in the docs/ folder of the archive.
Support
12 months of support are included in the price. Ask questions by ticket in your my.tuthost.ua account.
Open a ticketUpdates
New versions are in your my.tuthost.ua account. TutHost Center in the WHMCS admin shows when a new one is out.
My modulesWHMCS Marketplace
The module's listing is under review at WHMCS. The link will appear here once it is approved.
Questions
Can someone else pay from a forwarded email?
Yes: whoever has the link can pay that one invoice and see its number, amount and due date. A bank transfer method also shows the payment details and the invoice document. To stop all links, change the key on the Status tab.
Will mail scanners change anything?
No. Opening a link only shows the invoice and the payment methods; the method changes only after a button is pressed.
The link has expired — what does the client see?
A page that offers to log in to the client area and pay the invoice there.
What about Stripe or PayPal?
Gateways that take the card inside WHMCS need a login and get no button. For them the email keeps its usual link to the invoice.
How can I get the module for free?
Buy your WHMCS license from TutHost: with it, all our modules, this one included, are free for as long as the license is active. See the terms.
Other TutHost modules for WHMCS
A credit balance history for clients in the client area: every movement, invoices paid from credit with their services and domains, and who started each one.
15.00 $ one-timeDetails
Card payments in Ukraine through LiqPay: every payment confirmed by the LiqPay API, refunds from WHMCS.
35.00 $ one-timeDetails
Payments, .UA domain registrars, reports and admin modules in one catalog.
13 modulesTo the catalog
TutHost Email Pay Buttons — 29.00 $ one-time
Or free with a TutHost WHMCS license: this and our other modules come as a gift.