Overview
Fraudsters often hide behind VPNs, residential proxies, Tor exit nodes, and datacenter IPs when they test stolen cards or ship goods to reshippers. At checkout, you want a fast IP check before you capture payment: enough signal to step up verification without turning away every privacy-conscious shopper. Greip exposes those signals in thesecurity module on IP Lookup and IP Geolocation. Pair them with Payment Fraud Detection when you already send full transaction context. For field-level reference, see VPN/Proxy Detection.
Where to call Greip in checkout
Run the IP check on the server when the customer submits checkout (or when they land on the payment step), using the client IP you trust (for exampleX-Forwarded-For only after your edge strips untrusted values).
Typical flow:
- Read
customer_ipfrom the checkout session. - Call Greip with
params=security(and optionallocationif you compare billing country to geo). - Map
data.securityto allow, challenge, or block. - Only then call your payment processor or run payment scoring.
Request shape
Bearer auth in theAuthorization header. Request the security module with the params query parameter.
IP Lookup (recommended at checkout)
Optional: payment scoring in the same flow
If you already call Payment Fraud Detection, include at leastcustomer_ip (and billing/shipping fields you collect). Greip evaluates transaction rules in one request; you can still run a dedicated IP lookup when you only need VPN/proxy/Tor/hosting flags before showing the card form.
Minimal payment body shape:
Security fields to use at checkout
Whenparams includes security, data.security contains:
Example
security object:
When to challenge vs block
Treat Greip signals as inputs to your policy, not hard-coded declines. Suggested starting points:
Combine signals: for example challenge when
vpn_or_proxy or hosting is true, block when tor or bot is true, and block when is_blacklisted is true regardless of other flags.
Example: map security to a checkout decision
action to your checkout:
- allow: continue to payment capture.
- challenge: require step-up authentication or hold the order for review.
- block: show a generic error and do not retry the same card blindly (log
securityfor analysts).
Related guides
- Payment Fraud: broader pre-purchase scoring and supporting endpoints.
- Chargeback Fraud: post-authorization patterns and BIN/country mismatches.
- Customize modules: other
paramsmodules (location,currency, and more).