Payment Fee and Surcharge: Card Fee, Convenience Fee and Payment Method Charges for eCommerce, Portal, Payment Links
by Viyug Infotech https://viyuginfotech.com$ย 31.78

Pass the card fee on to the customer, or book it as a cost
Card and wallet providers keep a few percent of every online payment. Set a fee rule per provider and payment method: the customer sees the fee and the new total before paying, the fee lands on the order or on a fee invoice with its own product and taxes, and the provider cost you absorb is booked as an expense.
Payment fee Surcharge Convenience fee Card fee Stripe and PayPal fee
Free setup call with every purchase
After you buy, book a free 30-minute online call: we install the app with you and set it up for your company. Questions are answered within 24 hours, Monday to Saturday, at support@viyuginfotech.com or on WhatsApp (QR code at the end of this page).
Before and after
For webshops, wholesalers and service companies that take card and wallet payments online.
Before
- The provider keeps 1.5 to 3.5 percent of every card payment and the margin shrinks
- Surcharges added by hand on some orders, forgotten on invoices paid from the portal
- A fee added after the customer clicks Pay leads to disputes and abandoned carts
- The provider cost is booked once a month from a PDF, if at all
After
- A rule per provider and method adds the fee automatically, with limits and exemptions
- Same rules on the shop, portal quotations and orders, invoices and payment links
- The fee and the new total are shown next to each payment method before paying
- The absorbed provider cost is booked on every confirmed payment, with a fee analysis
What you get
Rules per provider and method
Fixed amount + percentage for any provider (Stripe, PayPal, Adyen, Mollie, Razorpay, Demo...) and any payment method; the first matching rule by sequence wins.
Domestic and international
Different rates for domestic and foreign customers, by country list, by currency (one rule per currency), by website and by company.
Limits and bands
Minimum and maximum fee, amount bands (for example no fee above 500), simple formula or gross-up so you receive the full amount after the provider cut.
Shown before paying
A badge with the fee and the new total next to every payment method and saved card; computed again on the server when the payment starts, so the browser cannot change it.
Fee line on the order
eCommerce checkout, portal quotations and orders, payment links: a fee line with its own product, taxes through the fiscal position and income account.
Fee invoice for invoices
Posted invoices paid online get a fee invoice, posted and reconciled with the same payment.
Absorbed cost
A second rule type books what the provider charges you to an expense account against the payment outstanding account; surcharge and cost can apply to the same payment.
Consumer rules
Per rule: no surcharge for private customers in the EU/EEA and the UK, customer tags to include or exempt (for example key accounts).
Fee analysis
Surcharges collected, provider costs and the balance per provider, method, rule and month, in pivot, graph and list; refund policy for credit notes.
How it works
1. Rule
Create fee rules: who pays what, for which provider, method, customers and amounts.
2. Preview
The payment form shows the fee and the total next to each method that has a fee.
3. Pay
When the customer pays, the fee is computed again on the server and added to the amount.
4. Book
Orders get a fee line at once; invoices get a fee invoice when the payment is confirmed.
5. Cost
Absorbed provider costs are booked as an expense when the payment is posted.
6. Report
Fee analysis shows collected fees, costs and the balance.
Setup in 5 steps
Install
Install the app on Community or Enterprise. It needs eCommerce and Invoicing.
Settings
Invoicing settings, Payment Fees: fee product, expense account and the credit note policy.
Rules
Configuration, Payment Fee Rules: fixed fee, percentage, limits; the form shows a live example.
Scope
Pick providers, payment methods, orders or invoices, countries, currencies and customer tags.
Test
Pay a test order with your provider in test mode and check the fee line and the transaction.
Workflow walkthrough
Fictional company, customers and the Demo payment provider in test mode.
Settings
Invoicing settings, Payment Fees: the default fee product (taxes and income account), the expense account for absorbed provider costs and whether credit notes give the fee back.

Fee rules
All rules in one list with their mode, providers, scope and a live example. Drag to reorder: the first matching rule wins, separately for surcharges and absorbed costs.

A rule
Card payment fee: 2.9 % + 0.30, at least 0.50 and at most 50.00, domestic customers only, exempt tag for key accounts and no surcharge for EU/UK consumers.

On the provider
Every payment provider shows how many fee rules apply to it; the button opens them and creates new rules for that provider.

Fee shown at checkout
The customer sees "+ $ 9.74 payment fee, total $ 335.09" next to the card method; wire transfer has no fee and shows nothing.

Order confirmation
After the payment the order carries a Payment Fee line and the total paid includes it.

Sales order in the back office
The fee line uses the fee product with its taxes and income account and is invoiced with the order.

Transaction
Amount before fee, payment fee, fee rule, where the fee was booked, the absorbed provider cost and its journal entry, on the transaction.

Invoice paid from the portal
The invoice payment dialog shows the invoice rule: 1.00 + 1.5 % on 640.00 = 10.60, total 650.60.

Invoice paid
The invoice is paid in full; the Payment Fees button opens the fee invoice created for this payment.

Fee invoice
Posted when the payment is confirmed and reconciled with the same payment; Paid Invoices leads back to the invoice it belongs to.

Absorbed provider cost
Provider processing cost of 1.4 % + 0.25 booked to Bank Fees against the outstanding receipts account, so the net payout matches the bank.

Fee analysis
Every payment with a fee or a cost: amount before fee, fee, total paid, rule, fee and cost in company currency and the balance.

Pivot by provider and month
Totals of fees collected, provider costs and the balance, ready to group by method, rule or month.

Compared with typical alternatives
| Feature | This app | Typical alternatives |
|---|---|---|
| Rules for any provider, not one processor | Yes | Some |
| Rules per payment method (card, wallet, bank) as well as per provider | Yes | Rare |
| Fixed + percentage, minimum and maximum fee, amount bands | Yes | Some |
| Gross-up formula (receive the full amount after the provider cut) | Yes | Rare |
| Domestic / international, countries, currencies, websites, companies | Yes | Some |
| Customer tags to include or exempt | Yes | Rare |
| No surcharge for EU/UK consumers, per rule | Yes | No |
| Fee and new total shown next to each method and saved card | Yes | Some |
| Fee computed again on the server when the payment starts | Yes | Some |
| Portal quotations, invoices and payment links, not only the shop | Yes | Some |
| Fee invoice reconciled with the same payment for posted invoices | Yes | Rare |
| Absorbed provider cost booked as an expense on every payment | Yes | No |
| Refund policy for the fee on credit notes | Yes | No |
| Fee analysis: collected, cost and balance | Yes | Rare |
| POS payment method fee as an add-on | Yes | Some |
Questions
Which payment providers are supported?
All providers installed in your database, including Stripe, PayPal, Adyen, Mollie, Razorpay, Authorize.Net, the Demo provider and wire transfer. The fee is part of the amount sent to the provider, so no provider-specific code is needed.
Can the customer avoid the fee by changing the page?
No. The fee is computed on the server when the transaction is created, from the order or invoice, the provider, the payment method and the customer.
What happens when the customer goes back and picks another method?
The fee line of the abandoned attempt is removed before the payment page is shown again, and every new attempt books the fee of the chosen method, or none.
How are posted invoices handled?
A posted invoice is never changed. The fee is billed on a separate fee invoice, created and reconciled with the same payment only once the payment is confirmed.
Are taxes applied on the fee?
The fee line takes the taxes of the fee product, mapped by the fiscal position; the fee shown to the customer includes them. Leave the product without taxes where surcharges are not taxed.
Is a surcharge allowed where I sell?
Rules differ per country and per provider contract; for example surcharges on consumer card payments are not allowed in the EU/EEA and the UK. Each rule has an option to skip private customers there, and the absorbed mode books the cost without charging anyone. Check your local rules before activating a surcharge.
Express checkout (Google Pay, Apple Pay)?
Express checkout buttons keep the amount shown on the wallet sheet, so no fee is added there.
Does it work on Community?
Yes, on Community and Enterprise, with eCommerce and Invoicing.
Extensions
Apps that work well with Payment Fee and Surcharge.
Payment Fee and Surcharge
Fee rules per provider and method on checkout, portal, payment links and invoices.
You are herePayout Reconciliation
Optional: book the real processor fees of Stripe, PayPal, Mollie and more and match payouts to the bank.
View in the storeNeed a hand?
Questions about a fee rule, taxes on fees or a provider? Write to us and Viyug Infotech will get back to you.
Email support: support@viyuginfotech.com
Website: viyuginfotech.com
Scan with your phone to chat on WhatsApp or write us an email:

+91 83207 42187

Send us an email
Release notes
Initial release
- Fee rules per provider and payment method
- Fee badge with the new total before paying
- Fee line on orders, fee invoice for invoices
- Absorbed provider cost entry
- EU/UK consumer option and customer tag exemptions
- Refund policy for credit notes
- Fee analysis
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
eCommerce (website_sale)
• Invoicing (account) • Discuss (mail) • Website (website) |
| Lines of code | 910 |
| Technical Name |
viyug_payment_fee |
| License | OPL-1 |
| Website | https://viyuginfotech.com |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module