Requirements
Compliance
Surcharges must comply with legal, regulatory, and card scheme requirements. For example, schemes require that you provide signage to inform customers about the payment methods that are subject to surcharges, and the related costs such as the surcharge percentage. Surcharging is also subject to specific local/jurisdictional restrictions. For example, in the European Economic Area (EEA) surcharges are not allowed on payments made with a consumer card that was issued in the EEA. And in the US surcharges are not allowed on payments made with a debit card. The Adyen surcharge feature does not include automated global compliance enforcement. You must validate your setup against the compliance considerations and local mandates. We strongly recommend you consult your own legal advisor on compliance with regulatory and legal implications and use the correct settings based on our Surcharge compliance guide.How it works
When your user’s customer pays:- You collect the customer’s card details on your checkout page.
- From your server, you make a /cardDetails request using the customer’s card details, to get the information that helps to make a decision about the surcharge.
- The logic you implemented decides if a surcharge is allowed and calculates the surcharge amount, using the data from the /cardDetails response.
- You display the surcharge amount on your checkout page.
- When the customer proceeds to pay, you make a /payments request that includes the surcharge amount.
Get card details
Use the customer’s raw or encrypted card number to make an API request that retrieves the details of the card that helps to determine whether you can apply surcharge to a payment.- In your payment form, collect the card number of the customer with either of the following:
-
From your server, make a /cardDetails request, including:
Make a request to get information about the card
curl
Java
PHP
C#
NodeJS (JavaScript)
Go
Python
Ruby
NodeJS (TypeScript)
-
In the response, note the following data to:
- Determine whether a surcharge is applicable for a payment.
- Calculate the surcharge amount that you can apply.
Example /cardDetails response - Use the data from the response to build your logic that determines whether you can apply surcharge on a payment with this card, and calculate the surcharge amount. Refer to our Surcharge compliance guide when determining to which transactions you can apply a surcharge.
Make a payment with a surcharge
A surcharge is a type of transaction fee imposed by the card scheme, paid by your user’s customer. Similar to the other transaction fees, you can use split instructions to define how to book the surcharge. You can book the surcharge amount either to your user’s balance account, or to your liable balance account.- Make a /payments request with your API only with raw card data integration, or with your API only with encrypted card data integration.
-
In your request include a surcharge object, that specifies the
valueof the surcharge you apply to the transaction. -
Calculate the value you need to pass in the
amount.valuefield in your /payments request by adding the surcharge amount to the original transaction amount. - In the splits array, add a split item for the surcharge.
-
For the split item of the surcharge, specify the following fields:
Example split payment with surcharge
Here is an example of how you can split the payment and surcharge amount at the time of payment, when a customer pays EUR 400.00.- EUR 394.00 are booked to your user’s balance account as payment for the goods or services.
- EUR 2.00 are booked to your user’s balance account as the surcharge.
- EUR 4.00 are booked to your liable balance account as your marketplace’s commission.
- All transaction fees are booked to your user’s balance account, deducted from the sale amount.
reference from the request is returned as the merchantReference. You need this information for reconciliation.
Response
Track fund movements
To track the status of the fund transfers initiated by a surcharge:-
Listen to the following webhooks:
- Transfer webhooks: Adyen sends a balancePlatform.transfer.created webhook to inform your server that funds will be credited to balance accounts, and balancePlatform.transfer.updated webhooks after every status change.
- Transaction webhooks: Adyen sends a balancePlatform.transaction.created webhook to inform your server that funds have been credited to a balance account.
- Acknowledge the webhooks. We send these webhooks for every split item in the payment.
-
In the balancePlatform.transfer.updated webhook payload, note that the
eventarray includes all previous transfer events, and thesequenceNumberdefines the number of webhooks sent for the transfer, including the current one.
Webhook examples
The following examples show the webhooks you receive for a surcharge. We send webhooks for each balance account involved in the payment, and each split of the payment amount, including the surcharge. You can identify surcharge-related transfer webhooks by the following values:
**
1. Incoming transfer received
When a transfer request is received to credit funds for the surcharge to your user’s balance account, Adyen sends a balancePlatform.transfer.created webhook withstatus received and direction incoming. The webhook provides information about the transfer, such as the payment and split references and which user and balance account is credited with the funds.
Transfer received
2. Incoming transfer authorized
When the transfer request is authorized, Adyen sends a balancePlatform.transfer.updated webhook withstatus authorised.
Transfer authorized
3. Incoming transfer captured
When the funds are credited to your user’s balance account, Adyen sends a balancePlatform.transfer.updated webhook withstatus captured and the transactionId.
Transfer captured
4. Transaction booked
When the funds are credited, Adyen also sends a balancePlatform.transaction.created webhook, which includes information about the related transaction. Transaction createdReports and reconciliation
To have full visibility of the surcharge amounts that were added to payments, we strongly recommend you add an extra column Surcharge Amount to the following reports:- Payment Accounting Report (PAR)
- Settlement Detail Report (SDR)
- The Balance Platform Accounting Report (BPAR) contains extra lines with information related to surcharges.
- The Balance Platform Statement Report (BPSR) contains extra lines showing the impact of the surcharges on the balance account.