Skip to main content
Payment brands, such as card schemes and debit network providers, charge a fee for accepting payments on their payment network, called a payment acceptance fee. Usually, businesses include the costs for payment-related fees in the prices they charge. But in some countries/regions it is common to pass on these costs as a surcharge when the customer uses a card for payment.

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 shopper proceeds to pay:
  1. Collect the shopper’s card details on your checkout page.
  2. From your server, make a /cardDetails request using the shopper’s card details, to get the information that helps to make a decision about the surcharge.
  3. Implement logic to decide if a surcharge is allowed, and to calculate the surcharge amount, using the data from the /cardDetails response.
  4. Display the surcharge amount on your checkout page.
  5. When the shopper proceeds to pay, from your server, 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.
  1. In your payment form, collect the card number of the customer with either of the following:
  2. 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)

  3. 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
  4. 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 including the surcharge

After you calculate the surcharge amount, disclose the surcharge amount to your shopper and include the surcharge in your payment request.
  1. Make a /payments request with your API only with raw card data integration, or with your API only with encrypted card data integration.
  2. In your request include a surcharge object, that specifies the value of the surcharge you apply to the transaction.
  3. Calculate the value you need to pass in the amount.value object in your /payments request by adding the surcharge amount to the original transaction amount. Make a payment with encrypted card details including a surcharge
    The /payments response contains:
    • pspReference: Our unique identifier for the transaction.
    • resultCode: Use this to present the payment result to your shopper.
    • merchantReference: The reference from the /payments request.
    • additionalData: Additional information about the transaction. You can optionally enable receiving the surcharge amount in additional data.
For transactions where you apply a surcharge, when you make a capture, or refund request, pass the full amount that includes the surcharge amount.

Receive the surcharge in additional data

To receive the amount of surcharge you apply to a transaction in the additionalData object of the /payments response, or in the AUTHORISATION webhook:
  1. In your Customer Area, go to Developers > Additional data.
  2. Select Surcharge amount.
  3. Select Save configuration.

Reporting

Test and go live

Before going live with your integration, use our test card numbers to test that you make a successful payment that includes a surcharge.

See also