By SanctionsAI team · Updated 2026-08-09

Integrate sanctions screening into a payment gateway

Add real-time sanctions screening before payment authorization.

Integration pattern

async function processPayment(payment) {
    // Step 1: Screen counterparty
    const screen = await fetch(
        `https://sanctionsai.dev/sanctions?wallet=${payment.wallet}`
    );
    const result = await screen.json();
    
    // Step 2: Block if sanctioned
    if (result.blocked) {
        await logBlock(payment, result.matches);
        return { status: "blocked", reason: "OFAC_MATCH" };
    }
    
    // Step 3: Proceed if clean
    await logScreen(payment, "clean");
    return await executePayment(payment);
}

Integration steps

StepActionOn failure
Extract IDGet wallet/nameAbort
ScreenCall APIFail safe: block
LogRecord resultAlert
ExecuteProceed if cleanBlock if flagged

Screen your agent's next payment

Check any wallet, name, or entity against OFAC, EU, UN sanctions lists in real time.

Free wallet checker

Frequently Asked Questions

Is the SanctionsAI API free?
Yes. Free tier: 5 checks/day by IP, no API key. Dev: $19/mo for 10,000 checks. Team: $99/mo for 100,000.
How fast is the API?
Sub-200ms for wallet and name checks. Suitable for real-time payment flows.
Can I use this in production?
Yes. Production-grade with 99.9% uptime. Use Dev or Team plan for production volume.
What happens if the API is down?
Fail safe: block the transaction and log the error. Never proceed without a clean screening result.

← Back to examples · SanctionsAI