Skip to main content

Anti-fraud Library

Introduction

To run secure transactions using the Sopague Online Payments API, you must implement the Anti-fraud Library in your project. This JavaScript library plays a key role in reducing fraud without compromising conversion rates.

The Sopague anti-fraud solution uses advanced technology to identify and mitigate risk, improving security without negatively impacting the user experience.


Library capabilities

The anti-fraud library can perform multiple tests and analyses, including:

  • IP geolocation: Identifies the geographic location of transactions to evaluate legitimacy.
  • Device fingerprinting: Analyzes unique device characteristics used in the transaction.
  • Positive/negative lists: Checks configured allow/deny lists.
  • Neural models: Uses AI to detect suspicious behavior patterns.
  • Velocity and proximity monitoring: Evaluates timing and frequency of transactions to identify suspicious activity.

Benefits

  • Fraud reduction: Mitigates risk in real time, protecting your operation.
  • Minimal impact on conversion: Provides strong security without hurting customer experience.
  • Advanced technology: Modern tools (such as AI) enable fast and accurate analysis.

Sopague Library — Complete solution

Sopague now provides the Sopague Library, an integrated solution that combines RSA encryption and anti-fraud in a single JavaScript library.

Solution features

  • 🔒 RSA-OAEP encryption with SHA-256 for sensitive data
  • 🛡️ Built-in anti-fraud with behavioral analysis
  • 📦 Zero dependencies — lightweight and fast
  • 🌐 Compatible with all modern browsers

Full documentation

To implement the Sopague library in your project, see the full documentation, including:

  • Installation and configuration guide
  • Integration examples for NextJS and Vanilla JavaScript
  • Full API with all available methods
  • TypeScript typings
  • Practical usage examples
Recommendation

The Sopague Library is the recommended solution for new projects, offering integrated encryption and anti-fraud features in a single library.

Legacy documentation

The legacy Anti-fraud Library documentation should have been delivered together with the Online Payments API Integration Manual. If you did not receive it, contact the Sopague technical team to request the material.

Important

Make sure to follow the documentation instructions to integrate the library correctly and achieve maximum anti-fraud effectiveness.


Next steps

  1. Implementation: Add the provided library to your project per the documentation instructions.
  2. Testing: Run tests in a safe environment to validate behavior in different scenarios.
  3. Tuning: Adjust settings to maximize effectiveness and minimize false positives.

For questions or support, contact the Sopague technical team.