Skip to content

Use cases_

Payment fraud prevention

Catch mismatched cards, VPNs and datacenter traffic at checkout.

Fraud loves a mismatch. Before you authorize a card, check the issuing country against the IP, see whether the request comes from a datacenter, VPN or Tor exit, and read a composite risk score — the payments-aware signals a plain geo API cannot give you.

Why it works_

The signal a geo API cannot give you

01

BIN vs IP country

The killer signal: a Nigerian card from a Pakistani IP is worth a second look.

02

Anonymity detection

Datacenter, VPN and Tor exits surfaced and scored.

03

Your policy, your call

A transparent score and named signals feed your rules; you decide the threshold.

The data behind it

One call, these response blocks.

This page maps to these blocks of the same response every other page reads:

  • Network & fraud
payment-fraud-prevention.sh
curl -X POST "https://api.localesense.com/v1/fraud/check" \
  -H "Authorization: Bearer ls_live_..." \
  -d '{"ip":"203.135.62.10","bin":"539983"}'
In practice

What your code sees, per request.

The sample on the right is the shape of the real response for a visitor in Karachi — every value attributable, nothing guessed. Point the same call at any of the 197 markets.

Try it live in the docs
GET /v1/self 200 OK · sample
  • Risk 12/100 · no VPN · BIN match

Keep exploring_

Related use cases

FAQs

Payment fraud prevention — frequently asked

How can I detect payment fraud before authorizing a card?

Call /v1/fraud/check with the IP and the card BIN before you authorize. It compares the card's issuing country to the IP's location, flags datacenter, VPN and Tor traffic, and returns a composite risk score — the payments-aware checks a plain geo lookup cannot do.

What signals catch stolen-card fraud that geolocation misses?

The strongest is BIN-versus-IP country mismatch: a card issued in one country being used from an IP in another. Combined with anonymity signals — hosting, VPN and Tor — it catches patterns a location-only API is blind to.

Will this block legitimate customers?

Not on its own — it never blocks anything. It returns named signals and a transparent score that feed your rules, so you set the threshold and decide what to challenge or review. Legitimate buyers on a VPN, for instance, stay your call, not ours.

Get started

Try it free

10,000 requests a month, no card. Every tier includes live FX and the full formatting engine.

Get your API key