Add sanctions screening to your Stripe payment flow.
const stripe = require('stripe')(process.env.STRIPE_KEY);
async function createChargeWithScreening(amount, currency, customer) {
// Screen customer name before charging
const resp = await fetch(
`https://sanctionsai.dev/sanctions?name=${encodeURIComponent(customer.name)}`
);
const result = await resp.json();
if (result.blocked) {
throw new Error("Customer matches OFAC SDN list");
}
// Safe to charge
return await stripe.paymentIntents.create({
amount, currency, customer: customer.id
});
}
Check any wallet, name, or entity against OFAC, EU, UN sanctions lists in real time.
Free wallet checker