Surcharge
Add payment processing fees to transactions where regulations permit
Surcharge
Surcharging allows you to pass payment processing costs to customers by adding a fee to transactions. This can help offset interchange fees and encourage use of lower-cost payment methods.
Surcharging is heavily regulated and prohibited in many jurisdictions. Always verify local regulations, card network rules, and compliance requirements before implementing surcharges. This documentation is for informational purposes and does not constitute legal advice.
Surcharging Regulations by Region
| Region | Credit Cards | Debit Cards | Notes |
|---|---|---|---|
| Kazakhstan | Restricted | Not allowed | Check National Bank regulations |
| European Union | Prohibited | Prohibited | PSD2 prohibits surcharges |
| United States | Allowed (varies by state) | Not allowed | 10 states prohibit |
| Australia | Allowed (capped) | Allowed (capped) | Cannot exceed cost of acceptance |
| United Kingdom | Prohibited | Prohibited | Consumer Rights Act 2015 |
Even where surcharging is allowed, card networks (Visa, Mastercard) have specific rules about maximum surcharge amounts, disclosure requirements, and card types that can be surcharged.
How Surcharging Works
Identify the payment method type to determine if surcharging applies.
Compute the surcharge amount based on your pricing rules and regulations.
Clearly show the surcharge before the customer confirms payment.
Submit the payment with the surcharge amount included in the request.
Enabling Surcharging
Account Configuration
Configure surcharging rules in the Plexy Dashboard or via API.
curl -X PUT https://api.plexypay.com/v2/merchants/merchant_abc123/surcharge-config \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"enabled": true,
"rules": [
{
"payment_method_type": "credit_card",
"card_brands": ["visa", "mastercard", "amex", "unionpay"],
"surcharge_type": "percentage",
"surcharge_value": 2.5,
"max_surcharge": {
"value": 5000,
"currency": "KZT"
}
},
{
"payment_method_type": "credit_card",
"card_brands": ["amex"],
"surcharge_type": "percentage",
"surcharge_value": 3.0
}
],
"excluded_regions": ["EU", "UK"],
"disclosure_text": {
"en": "A surcharge of {surcharge_percentage}% applies to credit card payments.",
"ru": "К оплате кредитной картой применяется комиссия {surcharge_percentage}%."
}
}'Calculating Surcharges
Get Surcharge for Payment Method
Before displaying the checkout, retrieve the applicable surcharge for the customer's payment method.
curl -X POST https://api.plexypay.com/v2/surcharge/calculate \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"merchant_id": "merchant_abc123",
"amount": {
"value": 100000,
"currency": "KZT"
},
"payment_method": {
"type": "card",
"bin": "411111"
},
"customer_country": "KZ"
}'Response:
{
"surcharge_applicable": true,
"surcharge": {
"value": 2500,
"currency": "KZT"
},
"surcharge_percentage": 2.5,
"base_amount": {
"value": 100000,
"currency": "KZT"
},
"total_amount": {
"value": 102500,
"currency": "KZT"
},
"disclosure": "A surcharge of 2.5% applies to credit card payments.",
"card_info": {
"brand": "visa",
"type": "credit",
"country": "KZ"
}
}Processing Payments with Surcharge
Include the surcharge in your payment request.
curl -X POST https://api.plexypay.com/v2/payments \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": {
"value": 102500,
"currency": "KZT"
},
"payment_method": {
"type": "card",
"number": "4111111111111111",
"expiry_month": "03",
"expiry_year": "2028",
"cvc": "737"
},
"reference": "order_12345",
"merchant_id": "merchant_abc123",
"surcharge": {
"value": 2500,
"currency": "KZT",
"percentage": 2.5,
"customer_acknowledged": true
},
"line_items": [
{
"description": "Product Total",
"amount": 100000
},
{
"description": "Credit Card Surcharge (2.5%)",
"amount": 2500,
"type": "surcharge"
}
]
}'Frontend Implementation
Displaying Surcharge at Checkout
import { useState, useEffect } from 'react';
function CheckoutWithSurcharge({ orderTotal, currency }) {
const [paymentMethod, setPaymentMethod] = useState(null);
const [surchargeInfo, setSurchargeInfo] = useState(null);
const [loading, setLoading] = useState(false);
// Calculate surcharge when card number is entered
const handleCardNumberChange = async (cardNumber) => {
if (cardNumber.length >= 6) {
setLoading(true);
const bin = cardNumber.substring(0, 6);
try {
const response = await fetch('/api/surcharge/calculate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
amount: orderTotal,
currency: currency,
cardBin: bin,
}),
});
const data = await response.json();
setSurchargeInfo(data);
} catch (error) {
console.error('Failed to calculate surcharge:', error);
} finally {
setLoading(false);
}
}
};
return (
<div className="checkout">
<CardInput onCardNumberChange={handleCardNumberChange} />
<div className="order-summary">
<div className="line">
<span>Subtotal</span>
<span>{formatCurrency(orderTotal, currency)}</span>
</div>
{surchargeInfo?.surchargeApplicable && (
<>
<div className="line surcharge">
<span>
Card Processing Fee ({surchargeInfo.surchargePercentage}%)
</span>
<span>
{formatCurrency(surchargeInfo.surchargeAmount, currency)}
</span>
</div>
<div className="disclosure">{surchargeInfo.disclosure}</div>
</>
)}
<div className="line total">
<span>Total</span>
<span>
{formatCurrency(surchargeInfo?.totalAmount || orderTotal, currency)}
</span>
</div>
</div>
{surchargeInfo?.surchargeApplicable && (
<div className="surcharge-notice">
<input type="checkbox" id="acknowledge-surcharge" required />
<label htmlFor="acknowledge-surcharge">
I understand that a {surchargeInfo.surchargePercentage}% fee (
{formatCurrency(surchargeInfo.surchargeAmount, currency)}) will be
added for credit card payment.
</label>
</div>
)}
<button type="submit" disabled={loading}>
Pay {formatCurrency(surchargeInfo?.totalAmount || orderTotal, currency)}
</button>
</div>
);
}Alternative Payment Method Suggestion
When surcharges apply, suggest lower-cost alternatives.
function PaymentMethodSelector({ surchargeInfo, onSelect }) {
return (
<div className="payment-methods">
<div
className={`method ${surchargeInfo?.surchargeApplicable ? 'has-surcharge' : ''}`}
onClick={() => onSelect('card')}
>
<span>Credit Card</span>
{surchargeInfo?.surchargeApplicable && (
<span className="fee-badge">
+{surchargeInfo.surchargePercentage}% fee
</span>
)}
</div>
<div className="method no-fee" onClick={() => onSelect('debit_card')}>
<span>Debit Card</span>
<span className="no-fee-badge">No fee</span>
</div>
</div>
);
}Compliance Requirements
Disclosure Requirements
Card networks require clear disclosure of surcharges:
- Before payment method selection - Inform customers that surcharges may apply
- At checkout - Show the exact surcharge amount before confirming
- On receipts - Itemize the surcharge separately
Card Network Rules
| Network | Max Surcharge | Requirements |
|---|---|---|
| Visa | Cannot exceed merchant's cost | Must register, cannot surcharge debit |
| Mastercard | 4% or merchant's cost (lower) | Must notify Mastercard, display at POS |
| American Express | Varies by agreement | Contact Amex for merchant agreement |
| UnionPay | Varies by region | Check regional regulations |
Required Record Keeping
After processing a surcharged payment, store the following fields from the API response for compliance audits:
async function recordSurchargeTransaction(payment, surchargeInfo) {
await db.surchargeRecords.create({
data: {
paymentId: payment.payment_id,
orderId: payment.reference,
baseAmount: payment.amount.value - surchargeInfo.surchargeAmount,
surchargeAmount: surchargeInfo.surchargeAmount,
surchargePercentage: surchargeInfo.surchargePercentage,
totalAmount: payment.amount.value,
currency: payment.amount.currency,
cardBrand: payment.payment_method.brand,
cardType: payment.payment_method.card_type,
customerCountry: payment.customer_country,
customerAcknowledged: surchargeInfo.customerAcknowledged,
disclosureShown: surchargeInfo.disclosure,
createdAt: new Date()
}
});
}Refunding Surcharges
When refunding a surcharged transaction, include the proportional surcharge.
# Full refund including surcharge
curl -X POST https://api.plexypay.com/v2/payments/pay_abc123xyz/refunds \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": {
"value": 102500,
"currency": "KZT"
},
"merchant_id": "merchant_abc123",
"reason": "Customer requested refund",
"include_surcharge": true
}'Reporting
Surcharge Summary
curl "https://api.plexypay.com/v2/reports/surcharge-summary?start_date=2026-03-01&end_date=2026-03-31" \
-H "x-api-key: YOUR_API_KEY"Response:
{
"period": {
"start": "2026-03-01",
"end": "2026-03-31"
},
"summary": {
"total_transactions_with_surcharge": 1250,
"total_surcharge_collected": {
"value": 3125000,
"currency": "KZT"
},
"average_surcharge_percentage": 2.5,
"by_card_brand": {
"visa": {
"count": 800,
"surcharge_total": 2000000
},
"mastercard": {
"count": 400,
"surcharge_total": 1000000
},
"amex": {
"count": 50,
"surcharge_total": 125000
}
}
}
}Testing
| Test Card | Behavior |
|---|---|
4111 1111 1111 1111 | Credit card - surcharge applies |
4000 0000 0000 0002 | Debit card - no surcharge |
3782 822463 10005 | Amex - higher surcharge rate |
Best Practices
Consult with legal counsel to ensure surcharging is permitted in your jurisdiction and for your business type.
Complete required registration with Visa and Mastercard before surcharging.
Show surcharge information prominently before customers enter payment details.
Provide no-fee payment options (debit cards, bank transfers) alongside surcharged methods.
Maintain records of all surcharged transactions for compliance audits.
Monitor regulations and card network rules as they change frequently.
Next Steps
- Analytics & Tracking - Track surcharge impact on conversion
- Payment Methods - Configure available payment methods