GET /Tools/country
When to Use This
Use Country Lookup when the issuing country changes what your checkout should do. Common cases:- Routing. Sending a card to the gateway account that covers its region, which is the core of a multi-gateway setup.
- Regulation. Deciding whether a transaction falls under rules that apply to a particular region, such as European authentication requirements.
- Pricing and presentment. Choosing the currency or the tax treatment to show before the customer commits.
- Risk. Comparing the issuing country with the billing or shipping address.
How It Works
Pass the first 6 to 11 digits of the card number as theiin query parameter. The endpoint returns the ISO 3166 alpha-2 code for the issuing country in a countryCode field.
Example: Route by Issuing Country
Look the country up once the customer has entered enough digits, then pick the gateway account that serves that region.A BIN identifies the issuer, not the cardholder. A customer living in one country can carry a card issued in another, so treat the issuing country as a routing and risk signal rather than as the customer’s location.
Next Steps
Country Lookup API
Endpoint reference.
Metadata Lookup
Everything known about a BIN, including the country.