Don’t Trade UX for Security With Your Payment API
The post Don’t Trade UX for Security With Your Payment API appeared first on Blog – Datadome.
Payment API Security Basics
Application Programming Interfaces (APIs) are used to take action (e.g. to trigger a payment). They are also gateways to meticulously organized data. Usually stored in predefined formats like databases, spreadsheets, or SQL servers, this kind of structured data is a convenient target for hackers and fraudsters seeking to extract specific information. Therefore, protecting the data is critical.
An API without adequate protection can lead to unauthorized access and/or exposure of sensitive data, such as personally identifiable information (PII), financial data, and any other confidential information the API handles. Data breaches via APIs can result in reputational damage, financial losses, and legal consequences for organizations.
Let’s take a look at how payment APIs can secure online transactions against bots and fraud, and the potential impacts on user experience (UX).
The Challenge: Effectively Balance Security With User Experience
Payment service providers (PSPs) integrate with e-commerce sites through APIs to accept various types of payments and to securely process transactions. But merchants are typically recommended to set up their own fraud prevention and authentication tools to protect their systems against fraudulent transactions, which can become costly.
Even for transactions that are ultimately declined, the cost of the PSP processing fraudulent transactions (often the result of carding and card cracking) can be considerable. Add the cost of authentication protocols like 3-D Secure (3DS), and your costs can become much higher than the price of specialized bot and fraud protection.
The last thing you want is for an inaccurate tool to be implemented with the intention of helping ensure the buyer is the real cardholder. The wrong security tool can end up adding extra friction to the user experience (UX) without the benefit of securing your site against advanced bots.
A goal for all tools involved in the customer journey should be to minimize friction by cutting out extra steps (like a human having to solve a CAPTCHA). Therefore, you need a highly accurate solution that can differentiate between humans and bots.
How CAPTCHAs Are Used in Payment Security
CAPTCHAs are often applied to different payment scenarios:
- Anti-Fraud Measures: A CAPTCHA can be integrated to validate a user’s identity before proceeding with payment. CAPTCHAs can also be combined with two-factor authentication (2FA), presenting a challenge after users enter their credentials or authentication code (but before they proceed to payment). The goal here is to ensure the payment request is coming from a human and help prevent bots from initiating fraudulent transactions.
- Account Creation & Verification: When setting up a new payment account or adding a payment method, CAPTCHAs can be used to ensure that the user creating or modifying the account is a real person. This helps prevent bots from creating fraudulent accounts or using stolen payment information.
- Suspicious Activity Detection: If the system’s other security protocols—like bot and fraud protection—detect unusual behavior, such as multiple failed login attempts or rapid payment requests, the user may be prompted to solve a CAPTCHA to confirm their authenticity.
- High-Risk Transactions: For high-risk transactions, CAPTCHAs can add an extra layer of security by requiring users to solve a CAPTCHA before proceeding with their payment.
How Traditional CAPTCHAs Negatively Impact User Experience (UX)
Most retail and travel site users will only give your page three seconds to load before leaving—often abandoning their cart out of frustration. Studies show that adding friction in the last steps of the checkout/payment process can significantly impact revenue and conversion rates. For example, approximately 21% of 3DS payments are not successful, and 8% of that number is due to user abandonment.
Traditional CAPTCHAs, by their very nature, add a hard stop into the customer journey. Tools like Google’s reCAPTCHA, have big impacts on user experience because they:
- Interrupt users’ navigation through your customer journey.
- Fail to support accessibility, with limited visual and audio options.
- Typically take a long time to load and/or solve, with an average reCAPTCHA solve time of around 20 seconds. (Remember, most users won’t wait more than three seconds for the page to load.)
- Gather a lot of customer information and use it for purposes besides security. (Increasing the risk of data privacy violations.)
- Are not adequate at stopping bots on their own.
All told, you do not want to have too many human users met with CAPTCHA challenges, especially during checkout. Plus—on their own, CAPTCHAs are not effective bot security. So no matter who your PSP is, your goal should be to sort out humans from bots, before they reach your payment API, with as little impact on UX as possible.
Your PSPs’ Payment API Security is Not Enough
At the end of the day, online businesses cannot afford to solely rely on the security measures put in place by your payment service providers to protect payment APIs. Bot and fraud protection, especially at the payment endpoint, should always be a multi-layered shield. You cannot protect your users and your business solely with a CAPTCHA, because CAPTCHAs hurt your user experience while allowing advanced bots through.
Online merchants need smart, automated solutions that accurately determine the intent of a user and only present a CAPTCHA if absolutely necessary based on other signals collected. Understanding user intent is the key to separating real customers from fraudsters. Intent can only be analyzed by looking at the customer’s entire journey, not just how they act when they reach the PSP.
Use DataDome to Secure APIs, Without Impacting User Experience
DataDome’s bot mitigation software protects API endpoints from malicious bot activity with the highest level of precision. The solution reduces security risks, builds trust between merchants and partners, and helps businesses avoid temporary PSP bans by protecting the exchange of data without compromising speed or accuracy.
Through our solution, DataDome fortifies the access points to API data, providing a robust defense against high chargeback rates, brute force attacks, credential stuffing, DoS attacks, and scraping.
Want to see how DataDome can protect your business against fraud? Try it free for 30 days or schedule a demo today.

