Payment Gateway Fees & Charges

Payment Gateway Fees & Charges

Developed By WHMPress

Compatible with WHMCS v9.0
This Summer season, boost your WHMCS with premium modules and save 15% off.
Use promo code: SUMMER2026

Payment Gateway Fees Module by WHMPress

Optimize Payment Gateway Charges with Precision

Payment Gateway Fees is a WHMCS addon module that automatically adds a payment gateway surcharge or a gateway-specific discount to your client invoices based on the payment method chosen. Set a percentage fee, a fixed amount, or both for every payment gateway activated in WHMCS, and the module handles the rest: it recalculates the invoice the moment the gateway is switched, shows the client exactly what they will be charged before they complete checkout, and keeps the invoice subtotal, tax and total correct throughout. Enter a negative percentage or fixed amount instead and the same engine applies it as an incentive discount useful for steering clients toward cheaper payment methods. Fees can be capped with a minimum invoice amount and a maximum threshold, excluded for specific clients, and calculated with a Stripe-style gross-up formula so the amount that lands in your account after the processor takes its cut still matches the invoice total.

Admin Area Features

  • Dedicated addon module interface with four tabs — Dashboard, Settings, Integration Code and Info — plus a direct link to the online documentation.
  • Dashboard table listing every payment gateway currently activated in WHMCS, showing each gateway's configured percentage, fixed amount and current status.
  • Per-gateway on/off switch that enables or disables fees for that gateway instantly over AJAX, with all unpaid and draft invoices using that gateway recalculated immediately.
  • Per-gateway configuration modal covering percentage, fixed amount, minimum invoice amount, threshold, additional tax, VAT fee basis and Stripe calculation mode — saved by AJAX, with the dashboard row updating in place.
  • Excluded Clients management: a searchable multi-select of active clients (searchable by name and email), bulk "Add to Excluded List" action, and removal through a confirmation dialog. Excluded clients never receive a gateway fee, and their unpaid invoices are recalculated as soon as they are added or removed.
  • Customisable invoice line-item description with placeholder support: {gateway_name}, {percentage_fees}, {fixed_fees} and {fixed_fee_currency}.
  • Optional fee round-off with a choice of zero, one or two decimal places.
  • Optional module logging — every fee calculation, checkout preview and cart validation is written to Utilities → Logs → Module Log.
  • Automatic credit-amount handling on the admin invoice page: when an admin applies client credit to an unpaid or draft invoice, the credit field is capped at the maximum amount that can genuinely be applied once the gateway fee is accounted for, and the invoice is recalculated before submission.
  • Unpaid and draft invoices are corrected automatically the moment an admin opens them, not only on the nightly cron run.
  • Integration Code tab with copy-ready instructions for adding the {$paymentGatewayFeesContent} variable to custom order form templates such as Lagom.
  • Info tab showing module name, installed version, license key, valid domain, next due date, and the live WHMCS version, PHP version and ionCube Loader version detected on the server.
  • License activation and a one-click license status refresh directly from the module interface.
  • Automatic module updates delivered through the WHMCS daily cron job, with each successful update written to the WHMCS activity log.
  • Optional Refresh Database setting that removes the module's database tables on deactivation; tables are otherwise created and migrated automatically.
  • Administrator access is restricted through the standard WHMCS Addon Modules access control (admin role groups).
  • Toast notifications for every save, and automatic sidebar collapse for a full-width working area.

Client Area Features

  • Live fee preview on the checkout page: selecting a different payment method updates the displayed charge and the order total by AJAX, without reloading the page.
  • The charge line is labelled Gateway Charges for a fee and Gateway Discount where a negative value has been configured, so the client always sees which one applies.
  • Optional comparison table on the checkout page listing every fee-enabled gateway alongside its percentage and fixed amount, letting clients pick the cheapest payment method before they order.
  • Choice of display format — either the full percentage % + fixed amount breakdown, or a single summed charge.
  • The "Complete Order" button is disabled while a fee is being calculated, preventing checkout on a stale total.
  • Credit-aware checkout: when a client applies account credit, the fee is recalculated against the remaining balance, and the fee display is hidden entirely when credit covers the full amount.
  • On the client-area invoice page, the credit amount field is pre-filled and capped at the maximum credit that can be applied to that invoice, with an on-screen notice explaining the adjustment.
  • Unpaid and draft invoices are recalculated and corrected the moment the client opens them.
  • Where an invoice is ultimately paid in full using client credit, the gateway fee is removed from the invoice and refunded back to the client's credit balance automatically.

Package & Configuration Options

Per-gateway options (Dashboard → gateway edit)

  • Status — enable or disable fees for that gateway.
  • Percentage Fee / Discount — percentage of the invoice amount; a negative value applies a discount.
  • Fixed Amount / Discount — flat amount added on top of the percentage; a negative value applies a discount. Converted to the client's currency using the WHMCS exchange rate.
  • Minimum Invoice Amount — no fee or discount is applied below this amount (0 disables the minimum).
  • Threshold — caps the calculated amount in either direction (0 disables the cap). A discount can never exceed the amount it was calculated against.
  • Additional Tax — marks the fee line item as taxable so the invoice tax rates apply on top of the fee.
  • Enable VAT Fees — calculates the fee on the tax-inclusive amount; when off, the tax portion is stripped out first and the fee is based on the net amount.
  • Stripe Calculations — uses the gross-up formula ((amount × %) + fixed) ÷ (1 − %) so the net amount received after the processor's cut still matches the invoice total.

Global module settings (Settings tab)

  • Invoice Description — the fee line item description, with placeholder support.
  • Enable Gateway Fees Round Off — rounds the calculated fee before it is added to the invoice.
  • Round Off the Value To — no decimal place, one decimal place, or two decimal places.
  • Enable Table on Client Area Checkout Page — shows the gateway comparison table at checkout.
  • Enable Sum of Charges on Checkout — displays a single total instead of the percentage-plus-fixed breakdown.
  • Enable Module Logs — writes fee calculations to the WHMCS module log.

What the Module Works With

Payment gateways

  • Any payment gateway activated in WHMCS is listed automatically and can have a fee or discount configured. The module reads your activated gateways from WHMCS and adds its charge as an invoice line item — it does not connect to, authenticate against, or call any payment provider's API. The "Stripe Calculations" option is a fee-calculation formula, not a Stripe integration; where WHMCS Stripe Intents is in use, the module adjusts the pending checkout amount so it matches the recalculated total.

Invoice and order flows handled

  • New orders placed through the client-area cart
  • Orders placed by an administrator, including those with client credit applied
  • Recurring and renewal invoices generated by the WHMCS cron
  • Mass Pay / bulk-pay invoices, with each underlying invoice recalculated
  • Merged and duplicated invoices
  • Add Funds invoices
  • Invoices where the payment gateway is changed after creation
  • Invoices where the total is updated after creation
  • Partially paid invoices, and invoices settled wholly or partly with client credit
  • A daily cron sweep that recalculates every unpaid and draft invoice

Checkout page display

  • Automatic, no template edits required: WHMCS themes with the identifiers twenty-one, six, nexus and idfnv810, and the standard and standard_cart order form templates.
  • Lagom (lagom2) — supported, with dedicated stylesheet rules for the Lagom order summary; requires the one-line template variable from the Integration Code tab.
  • Any other custom order form template — supported by adding {$paymentGatewayFeesContent} to ordersummary-checkout.tpl, as documented in the Integration Code tab.

General Compatibility

  • Supports all payment gateways.
  • Fully compatible with WHMCS themes like "Six," "Twenty-One," and "Lagom WHMCS Client Theme".
  • Works with PHP 8.4 back to PHP 8.1 and WHMCS versions 9.0.3 to 8.7.
  • Requires ionCube Loader V13 or later.

Why Choose WHMPRESS

WHMPress builds WHMCS modules that behave predictably in production, not just on a demo install. Payment Gateway Fees is a mature module with a long, documented release history, an admin area rebuilt on the WHMPress interface standard where every action saves over AJAX without a page reload, automatic database migration between versions, optional module logging for troubleshooting, and self-updating through the WHMCS daily cron for as long as the license stays active. Every WHMPress module ships with setup documentation and direct support from the developers who wrote the code.

Take your payment management to the next level with this must-have tool for WHMCS!

Module Price

Monthly Price:7.5 $.

Annually Price:39$.

One-Time Price:99$.

OPEN-SOURCE VERSION: $199 One-time Price.

 

Reviews

5 stars
16
16
4 stars
0
0
3 stars
0
0
2 stars
0
0
1 star
0
0
Plame Nick avatar

Plame Nick @plame1451

May 11, 2026 at 12:41:58 PM

Great module and the support team is very helpful and fast. Highly recommended.

  • 3 months ago
Roger Drew avatar

Roger Drew @roger5106

May 6, 2026 at 01:53:03 PM

This module does exactly what I needed add fees for certain payment gateways. No more manual adjustments. Invoices update automatically and everything just works. Solid module, happy with it

  • 3 months ago
Denilson  avatar

Denilson @denilson4577

December 15, 2025 at 08:44:13 AM

This module is super easy for managing fees and discounts for different payment gateways in WHMCS. The recent updates in the module are fantastic they’ve added great features that make it even more powerful and user-friendly. Really impressed.

  • 8 months ago
  • Version Number 2.2.5
Smith david avatar

Smith david @smith3210

October 14, 2025 at 02:06:59 PM

Great addon! Now we can easily apply custom payment fees for each gateway. Works smoothly with WHMCS and makes billing much more accurate

  • 10 months ago
  • Version Number 2.2.4
Mathew Byte avatar

Mathew Byte @mathew1077

March 18, 2025 at 10:50:40 AM

I have been using the module, and it works seamlessly. The updated version is excellent, with new features that are incredibly useful. Considering the price, it is highly affordable and offers great value. I highly recommend it!

  • 1 year ago
  • Version Number 1.5
Luis Contreras avatar

Luis Contreras @luis9391

February 18, 2025 at 04:24:35 PM

The product works, but the support is very bad, they do not respond, the application has some details and no response is received, I have 48 hours waiting for a response


hello, I was able to receive the correct support, all the problems have been corrected and it works very well now.

I have upgraded to 5 stars because it is very easy to use.

WHMPress Support avatar

WHMPress Support @whmpress

March 11, 2025 at 09:22:18 AM

Hi Luis,

We sincerely apologize for any inconvenience you may have faced.

Upon reviewing your concern, we found that our team responded to your ticket #whmp-866248 within the same day. You can verify this by checking the ticket history in your client portal. Please let us know if you had any trouble receiving our response.

Thanks

Owner@WHMPress  
  • 1 year ago
  • Version Number 1.3.0
  • Edited
Joe liner avatar

Joe liner @joe4900

January 6, 2025 at 10:48:44 AM

This module is easy to use and has helped me exclude the price for the service across other payment methods. Highly recommended.

  • 1 year ago
  • Version Number 1.1
Syed Muaaz Ahmad avatar

Syed Muaaz Ahmad @syed2020

December 28, 2024 at 01:56:32 PM

WHMPress's WHMCS Payment Gateway Charges module has been a game-changer for us. It allows us to set up and manage payment gateway fees seamlessly, ensuring a transparent and smooth experience for our customers. The module is easy to configure, works flawlessly, and has made our payment processing more efficient and accurate. Highly recommended this plugin!

  • 1 year ago
  • Version Number 1.1
Ammar  avatar

Ammar @ammar4384

December 27, 2024 at 03:10:19 PM

This module has been a great addition to our system and it has been running smoothly since day one. We especially appreciate how easy it is to navigate and how it has streamlined our processes.Overall, it’s been a positive experience,

  • 1 year ago
  • Version Number 1.1
Diego  avatar

Diego @diego6350

December 24, 2024 at 03:55:15 PM

I've been using their modules for a while and am extremely satisfied with all of them. This module, in particular, works flawlessly. It's easy to set up, highly reliable and integrates seamlessly with the system. The features are well thought out, and it delivers exactly what it promises. I highly recommend it to anyone looking for a solid solution.

  • 1 year ago
  • Version Number 1.1
chris  avatar

chris @chris7294

July 9, 2024 at 02:16:38 PM

I've have been using this module this is very beneficial for me and doing my work done properly.

  • 2 years ago
  • Version Number 1.1
Eren  avatar

Eren @eren7589

June 24, 2024 at 12:16:12 AM

This module operates efficiently saving my money by preventing unnecessary deductions. I'm highly satisfied with its performance.

  • 2 years ago
  • Version Number 1.1
khubaib  avatar

khubaib @khubaib6438

June 21, 2024 at 02:49:50 PM

It works perfectly and significantly helps in transferring the payment gateway costs to our clients.

  • 2 years ago
  • Version Number 1.1
Muhammad Haseeb avatar

Muhammad Haseeb @muhammad7191

June 3, 2024 at 01:09:30 PM

This module is very beneficial and I am thankful to have it. Additionally, it is extremely useful and highly recommended.

  • 2 years ago
  • Version Number 1.1
sajid iqbal avatar

sajid iqbal @sajid2388

May 30, 2024 at 12:09:35 PM

This tool is a lifesaver! Every percentage counts with large volumes, and this payment gateway module boosts my financial security and rewards. I've also bought and set it up for my another instance

  • 2 years ago
  • Version Number 1.1
Alis  avatar

Alis @alis1570

May 28, 2024 at 02:41:06 PM

The module is super useful because even though I'm selling domains without making any money (with no profit) to compete in the market when a client pays through PayPal, it costs me around $ or more per transaction. But with this module, I can add extra charges to the invoice when a client wants to pay through PayPal. Plus, I've made back the cost of the module in just 2 days! I'd totally recommend it to everyone.

  • 2 years ago
  • Version Number 1.1

Version Compatibility


Compatible with WHMCS v9.0

Full Version Compatibility


  • Selected versions of WHMCS v9.0
        9.0.0 - 9.0.3
  • Selected versions of WHMCS v8.13
        8.13.0 - 8.13.2
  • All versions of WHMCS v8.12
  • All versions of WHMCS v8.11
  • Selected versions of WHMCS v8.10
        8.10.0
  • Selected versions of WHMCS v8.9
        8.9.0
  • Selected versions of WHMCS v8.8
        8.8.0
  • All versions of WHMCS v8.7

Support for this product

The best place to start if you need help with a specific product is to contact the developer. All WHMCS Marketplace developers have both a website and support URL listed.

Developed By WHMPress

Changelog

v2.2.7 Released April 23rd, 2026

Latest Version


  • Add round_off for the total amount on checkout.

 

Previous Versions


v2.2.6 Released March 5th, 2026

View/hide detailed changelog

  • Add a feature to prevent applying payment gateway fees when an invoice is paid using client credit.

Update (10-04-2026)

  • Fees are applied to the invoice created by cron.

 

v2.2.5 Released November 28th, 2025

View/hide detailed changelog

  • Enhanced the feature of fees setup.

 

v2.2.4 Released October 3rd, 2025

View/hide detailed changelog

Enhanced the handling of inclusive taxation.

 

v2.2.2 Released July 28th, 2025

View/hide detailed changelog

  • The admin can set a minimum invoice amount required for tax to be applied.
  • The admin can also define a maximum tax limit as a percentage.
  • Add database refresh feature in module config settings.

 

v2.2.0 Released July 8th, 2025

View/hide detailed changelog

Sidebar auto-collapses when the module is accessed from the WHMCS admin area.

 

v2.1.1 Released May 6th, 2025

View/hide detailed changelog

  • Introduce an option to enable tax round-off in the admin settings.
  • When round-off is enabled, allow the admin to specify the number of decimal places (e.g., 0, 1, or 2) to which taxes should be rounded.
  • Provide an option for the admin to display a detailed breakdown of tax calculations or the total sum of all applicable taxes on invoices.

 

v2.0.0 Released April 4th, 2025

View/hide detailed changelog

  • Display applied fees on the checkout page.
  • Show a table of fees for payment gateways.

 

v1.5 Released March 6th, 2025

View/hide detailed changelog

Changed the design of the entire module. Added a feature to add an amount or percentage at the same time. Added a feature to include an additional tax option on the fees.

 

v1.3.0 Released December 28th, 2024

View/hide detailed changelog

  • Added support to exclude specific clients from transaction charges
  • Introduced support for custom fee structures, allowing users to define their fee rates.
  • Resolved compatibility issues with certain PHP versions.
  • Fixed rounding errors in fee calculation to ensure accuracy.
  • Optimized database queries for better scalability with large transaction volumes.

 

v1.2.1 Released April 9th, 2024

View/hide detailed changelog

  • Fixed a bug causing incorrect fee calculation for certain transaction types.
  • Improved error handling and logging for better troubleshooting.
  • Enhanced documentation for easier setup and usage.

 

v1.1 Released March 6th, 2024

View/hide detailed changelog

Version 1.1 (Initial Release)

  • Implemented basic functionality for calculating transaction fees based on payment gateway rates.
  • Supported multiple payment gateways including PayPal, Stripe, and Authorize.net.
  • Provided options for configuring fee rates and thresholds.

 

See also

WHMCS Bitcoin Payments

Accept Bitcoin payments on your website

Free
Accept Bitcoin and cryptocurrency payments - CoinGate for WHMCS

Easily accept Bitcoin, Tether, Ethereum and many other crypto payments on your WHMCS website

Free
Coinbase Commerce

No Fees, Easy Setup. Accept cryptocurrencies like: Bitcoin, Bitcoin Cash, Ethereum and Litecoin!

Free
PayTR Virtual Pos iFrame API

Open your web site to shopping with the advantages of PayTR. Take your payments securely.

Free
Gateway Fees for WHMCS

With this WHMCS module, you'll get the payment gateway fees from your clients directly.

Free