Use the Adyen Cost Estimation API to pre-calculate interchange and scheme fee costs. Knowing these costs prior actual payment authorisation gives you an opportunity to charge those costs to the cardholder, if necessary.
To retrieve this information, make the call to the
/getCostEstimate endpoint. The response to this call contains the amount of the interchange and scheme fees charged by the network for this transaction, and also which surcharging policy is possible (based on current regulations).
The following example shows how to estimate costs of accepting a 12.34 EUR payment, with 3D Secure enabled and Level 3 data also passed along with the cost estimation request.
If you are PCI-compliant at Level 1 or 2, you can submit a request with raw card data to the https://pal-test.adyen.com/pal/servlet/BinLookup/getCostEstimate endpoint.
For information on available request fields, refer to the GetCostEstimateRequest topic.
The following example shows how to submit the cost estimation request with encrypted card data (using Hosting the CSE library):
The following example shows the sample response with
costEstimateAmount equal to 0.25 EUR.
For information on available response fields, refer to the GetCostEstimateResponse topic.