Skip to main content
If you want to be in full control of surcharges, you can specify the surcharge amount in your in-person payment request. We refer to this as dynamic surcharge. To calculate the surcharge amount, you can use a third-party service or create your own calculation logic. If you accept ecommerce as well as point-of-sale payments, you can use the same calculation logic for both sales channels, taking into account all applicable compliance requirements. Depending on your use case, you can combine dynamic surcharge with configuration-based surcharge.

Requirements

In addition to the general surcharge requirements, take into account the following information.

How it works

To use dynamic surcharge:
  1. Design the customer experience. We recommend the following:
    • To inform customers about the changed amount after the surcharge is calculated, configure showing the surcharge confirmation screen. If you hide this screen, regulations require you to provide another form of surcharge disclosure.
    • Use the single tap flow. This means that for contactless payments, customers do not need to tap again when they confirm they accept the surcharge. Contact our Support Team to enable single tap.
  2. To get the details that are needed to calculate the surcharge amount, you make a card acquisition request. These details include, for example, the transaction amount and currency, card brand, funding source, and issuing country of the card. Note the following:
    • In Australia the surcharge compliance requirements are simple enough that you can consider skipping card acquisition.
    • Also note that Mobile solutions currently do not support card acquisition.
  3. On the payment terminal, a payment screen appears and the customer taps, inserts, or swipes their card.
  4. When you receive the card acquisition response, you pass the details for the surcharge calculation to your own surcharge calculation logic or to the third-party surcharge calculation service.
  5. When you get the calculated surcharge amount from your own system or the third party, you make a payment request with the surcharge amount as the surchargeFee in the SaleToAcquirerData. The payment request must also refer to the card acquisition.
  6. The surcharge confirmation screen appears. This enables the customer to accept the surcharge, or cancel the transaction. In a Mobile solution or if you configured to skip this Adyen-provided confirmation screen, you must provide another form of disclosure.
  7. If the customer accepts the surcharge, the payment is processed and the payment response shows the surcharge amount in the TotalFeesAmount field.

Show the confirmation screen

Adyen provides a surcharge confirmation screen that appears on the payment terminal to let the customer review and accept the surcharge, or cancel the transaction. You can configure this screen to be skipped. But if you do, you must provide another form of disclosure. To configure showing or hiding the surcharge confirmation screen:
  1. Optionally, check the current setting for the surcharge confirmation screen by making a GET request to the /terminalSettings endpoint for the company account, merchant account, store or terminal. Check the surcharge.askConfirmation parameter.
  2. Make a PATCH request to the /terminalSettings endpoint for the company account, merchant account, store or terminal.
    In the request body, specify a surcharge object with the following parameter:
    Show the surcharge confirmation screen
  3. Note that the response returns the setting for the surcharge confirmation screen as well as all other terminal settings at the level where you made the request.

1. Make a card acquisition request

To calculate the surcharge amount, you need to know certain details. For example, if the customer is using a credit or debit card, and where the card was issued. We recommend getting these details through a card acquisition request. The response provides the details of the card that the customer presents to the payment terminal.
  1. Make a Terminal API card acquisition request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to CardAcquisition.
    The examples show a card acquisition when the customer wants to purchase USD 620.00 worth of goods or services. Simple card acquisition request
    When the card acquisition succeeds, the response contains a message of CARD_ACQ_COMPLETED in the AdditionalResponse. Card acquisition response
  2. From the CardAcquisitionResponse, get the details that are needed for the surcharge calculation. Also get the POITransactionID details, which you will need to specify later in your payment request. As an example, the AdditionalResponse from the CardAcquisitionResponse above includes the following details that can be useful for the surcharge calculation: If the AdditionalResponse doesn’t include the expected details, check if you enabled receiving those details. Refer to Receive identifiers.
  3. Pass the relevant details to your own surcharge calculation system or to your third-party surcharge calculation service.

2. Add a surcharge to the payment request

When you have received the calculated surcharge amount from your own system or the third-party surcharge calculation service, make a Terminal API payment request with the surcharge amount specified using the surchargeFee field inside SaleToAcquirerData. In the following example, a surcharge of USD 6.00 is added to an original amount of USD 620.00.
  1. Format a string in one of the following ways, using surchargeFee as the parameter and the calculated surcharge amount as the value. Do not use minor units for the surcharge amount.
    • Option 1: as a JSON object converted to a Base64-encoded string. Surcharge in JSON format
      Note that the surcharge amount must be specified as a string value, not as a numeric value. Converted to Base64
    • Option 2: as a string consisting of a key-value pair. Surcharge as a key-value pair
    You will send the resulting string in the SaleToAcquirerData.
  2. Make a Terminal API payment request, specifying:
    • The standard SaleToPOIRequest.MessageHeader object, with MessageClass set to Service and MessageCategory set to Payment.
    Payment request with surcharge
  3. In the PaymentResponse note the following:
    • PaymentResult.AmountsResp:
      • TotalFeesAmount: The surcharge amount.
      • AuthorizedAmount: The total authorized amount, consisting of the original amount plus the surcharge amount.
    • Response.AdditionalResponse:
      • posAuthAmountValue: The total authorized amount in minor units.
      • surchargeAmount: The surcharge amount in minor units.
    Payment response

See also