Payment gateway charges are not always limited to percentage-based fees. Many gateways, including PayU Swipe, apply a combination of percentage fees, GST, and fixed platform charges.
This Knowledge Base article explains how to extend an existing PayU Swipe calculation formula by adding a fixed platform fee with GST, without disturbing the original logic.
The article is written for IT administrators, developers, accountants, and system integrators who need accurate reconciliation between customer-paid amounts and actual settlement credits.
The original PayU Swipe calculation uses:
Gateway Fee: 1.8913% of the net amount
GST on Gateway Fee: 18%
Formula:
Gateway Fee = Net Amount Γ 1.8913%
GST on Gateway Fee = Gateway Fee Γ 18%
A fixed platform fee is now applied:
Platform Fee: βΉ32.57
GST @ 18%: βΉ5.86
Total Platform Charges: βΉ38.43
This charge is added to the customer payment, not deducted from the merchantβs net amount.
Reconciling PayU Swipe settlements with bank credits
Building internal billing or invoicing tools
Showing transparent payment breakups to customers
Validating discrepancies between gateway reports and ERP/Tally entries
Automating payment calculations on websites or admin panels
The merchant enters the amount they want to receive after all deductions.
| Description | Amount (βΉ) |
|---|---|
| Net Amount to Receive | 10,581.56 |
| PayU Fee (1.8913%) | Calculated |
| GST on PayU Fee | Calculated |
| Platform Fee | 32.57 |
| GST on Platform Fee | 5.86 |
| Customer Pays | 10,857.01 |
This matches real-world PayU Swipe settlement behavior.
Fix: Always add platform charges to the gross customer payment, not subtract from net.
Fix: Ensure GST is calculated separately for:
Gateway fee
Platform fee
Fix: Use consistent rounding (preferably 4 decimal places) across all components.
Validate all user inputs to prevent negative or zero values
Avoid exposing internal fee logic in client-side JavaScript
Perform calculations server-side to prevent tampering
Log calculated values for audit and reconciliation
Keep fixed fees configurable (constants or config files)
Maintain a clear fee breakup for transparency
Separate business logic from UI code
Regularly verify gateway fee percentages against official documentation
Use consistent precision across financial calculations
By adding a fixed platform fee with GST as a separate component, you can extend existing PayU Swipe calculations without altering the original formula. This approach ensures:
Accurate settlement reconciliation
Clear customer payment transparency
Easy future maintenance and upgrades
This implementation is production-safe, auditable, and aligned with real payment gateway behavior.
#PayUSwipe #PaymentGateway #GSTCalculation #PlatformFee #MerchantSettlement
#PaymentReconciliation #ITAccounting #POSCharges #OnlinePayments #GatewayFees
#PaymentIntegration #FinancialLogic #PHPDevelopment #PaymentSystems #MerchantTools
#AccountingAutomation #DigitalPayments #GSTCompliance #PaymentCalculator #FinTech
#SettlementLogic #PaymentBreakup #POSAccounting #IndiaPayments #GatewayIntegration
#FinancialAccuracy #PaymentProcessing #MerchantFinance #PaymentAudit #FeeCalculation
#ITDocumentation #PaymentSecurity #AccountingSystems #PayUGST #PlatformCharges
#PaymentEngineering #SettlementReports #FinOps #POSIntegration