Custom Pay-in Fees
Custom Pay-in Fees
Custom Pay-in Fees
Custom pay-in fees allow merchants to add additional fee line items to purchase checkouts. These fees appear as separate line items to the customer during checkout and are added to the subtotal before payment processing.
Common use cases include:
Pay-in fees are added to the subtotal and processed as part of the total transaction. The merchant receives the full amount (subtotal + fees) in their settlement.
There are three ways to configure custom pay-in fees:
Fees passed via SDK or JWT take precedence over merchant dashboard configuration. If you pass customPayInFees via the SDK or JWT, the dashboard settings will be ignored for that transaction.
Use the dashboard to set default fees that apply to all checkouts.
For each fee, configure:
The preview shows how fees will display on a $100 subtotal. Fixed fees appear as their configured amount, while percentage fees are calculated based on the subtotal.
For dynamic fee application (e.g., applying different VAT rates based on customer country), pass fees directly to the Coinflow SDK.
Each fee requires the following configuration:
The fee values shown above (VAT rates, service fee amounts) are examples only and do not reflect actual values for your integration. Consult with your tax advisor for applicable rates and contact the Coinflow integrations team if you need assistance configuring fees for your specific use case.
For server-to-server integrations, you can include customPayInFees in a JWT token. This is the most secure approach as it prevents client-side tampering with fee values.
When tokenizing your checkout parameters, include the customPayInFees array in your request:
Then pass the returned checkoutJwtToken to the Coinflow SDK or Checkout API:
When using the SDK without JWT tokenization, pass customPayInFees directly as a prop (see Configure Fees via SDK). For production environments with sensitive fee configurations, we recommend using JWT tokens to prevent tampering.
Fees are calculated and displayed in the checkout UI as follows:
For a $100.00 subtotal with:
Percentage fees are calculated based on the original subtotal, not the running total. Multiple fees do not compound on each other.
During checkout, customers see the fee breakdown as separate line items:
This transparent breakdown helps customers understand exactly what theyāre paying for.
Choose line item labels that clearly communicate what the fee is for. Examples:
Some jurisdictions require specific fee disclosures or have regulations about surcharging. Ensure your fee configuration complies with local laws.
Use the sandbox environment to verify fees display correctly and calculate as expected before enabling in production.