Account Name Inquiry
Check a name against the card account with the issuer before a charge, payout, or card verification, and decline or flag mismatches.
Account Name Inquiry (ANI) asks the card's issuer whether a name matches the name on the card account. Pay.com runs the check before it authorizes the payment, so you can decline a payment whose name doesn't match, or let it through and flag it for review.
Requirements
ANI runs on a payment when all of these are true:
- ANI is turned on for your account.
- The card is a Visa or Mastercard card. ANI works on cards, saved cards, Apple Pay, Google Pay, and network tokens.
- ANI is requested by the API request, your account defaults, or a Configuration rule.
How the check works
Pay.com sends the name to the issuer through the card network. The issuer compares it with the name on the account and returns a result for the full name and for each part of it. Pay.com then compares the result with the results you accept:
- Accepted: Pay.com authorizes the payment as usual and records the result.
- Not accepted: Pay.com declines the payment with
decline_code: name_mismatch, without authorizing it.
By default Pay.com sends the cardholder name on the card. Set
use_customer_name to true to send the customer's first and last name from
the customer instead.
If the customer has no first or last name, Pay.com sends the cardholder name.
If the check can't run, for example because the network didn't respond, the
result is not_performed, and Pay.com never declines the payment because of
the error itself. Whether the payment proceeds depends on whether you accept
not_performed.
Check the name on a payment
Add name_verification under payment_method_options.card on a payment
request. This charge declines unless the name matches fully or partially.
Amounts are in the currency's smallest unit, so 5000 is $50.00 USD.
{
"amount": 5000,
"currency": "usd",
"source": "pm_card_692434600374304768",
"payment_method_options": {
"card": {
"name_verification": {
"enabled": true,
"accepted_results": ["match", "partial_match"]
}
}
}
}{
"id": "chrg_692434850019280896",
"resource": "charge",
"status": "succeeded",
"amount": 5000,
"currency": "usd",
"payment_method_details": {
"type": "card",
"card": {
"brand": "visa",
"last4": "4242",
"name_verification": "partial_match"
}
},
"underlying_network_details": {
"network": "visa",
"visa": {
"ani": {
"status": "00",
"full_name": "50",
"first_name": "01",
"middle_name": "01",
"last_name": "50"
}
}
}
}A declined payment returns an error with code: card_declined and
decline_code: name_mismatch. The error also carries payment_method_details
and underlying_network_details, so you can read the result:
{
"error": {
"type": "payment_method_error",
"code": "card_declined",
"decline_code": "name_mismatch",
"charge": "chrg_692435013307916288",
"payment_method_details": {
"card": {
"name_verification": "no_match"
}
},
"underlying_network_details": {
"network": "visa",
"visa": {
"ani": {
"status": "00",
"full_name": "99",
"first_name": "99",
"middle_name": "01",
"last_name": "99"
}
}
}
}
}Verify a saved card's name
To check a name without charging the customer, verify the saved card with
POST /v1/payment_methods/{payment_method_id}/verify.
Pay.com sends a zero-amount verification to the issuer and runs ANI with it.
The card, customer, and billing details come from the saved payment method, and
the customer's default payment method doesn't change.
{
"payment_method_options": {
"card": {
"name_verification": {
"enabled": true,
"use_customer_name": true,
"accepted_results": ["match", "partial_match"]
}
}
}
}{
"id": "pm_card_692434600374304768",
"resource": "payment_method",
"type": "card",
"customer": "cust_692434598712557568",
"card": {
"brand": "visa",
"last4": "4242",
"exp_month": "12",
"exp_year": "2028",
"name_verification": "match"
}
}If the result isn't one you accept, the call returns 400 with a
payment_method_error and decline_code: name_mismatch, and the saved payment
method stays as it was. The verify call takes pm_ IDs only. If the
verification requires 3D Secure, it's declined with authentication_required.
Where you can request ANI
Pass name_verification in the payment method options of any of these
requests:
| Request | Field |
|---|---|
POST /v1/charges | payment_method_options.card.name_verification |
POST /v1/holds | payment_method_options.card.name_verification |
POST /v1/sessions/payment | payment_method_options.card.name_verification |
POST /v1/sessions/setup | payment_method_options.card.name_verification |
POST /v1/payment_methods | payment_method_options.card.name_verification |
POST /v1/payment_methods/{id}/verify | payment_method_options.card.name_verification |
POST /v1/payouts | payout_method_options.card.name_verification |
Options
The name_verification object takes these fields. None of them is required.
| Field | Type | Description |
|---|---|---|
enabled | boolean | Whether to run ANI on this request. |
use_customer_name | boolean | Send the customer's first and last name instead of the cardholder name. |
accepted_results | array | The overall results that let the payment proceed. Each is one of match, partial_match, no_match, not_performed, or not_supported. By default all five are accepted. |
accepted_results_by_field | object | Results to accept for each part of the name, in first_name, middle_name, last_name, and full_name. Each is an array of match, partial_match, or no_match. |
Choose the results you accept
By default all results are accepted, so ANI records the result and never declines. To decline payments that don't match, list only the results you accept. This configuration accepts a full or partial match and lets the payment proceed when the network can't run the check:
{
"payment_method_options": {
"card": {
"name_verification": {
"enabled": true,
"accepted_results": ["match", "partial_match", "not_performed", "not_supported"]
}
}
}
}accepted_results_by_field adds a second way for a payment to be accepted. It
never declines a payment on its own. If every name part you list has a result
in its array, the payment proceeds even when its overall result isn't in
accepted_results. For example, this accepts a payment whose last name
matches, regardless of the first name result:
{
"name_verification": {
"enabled": true,
"accepted_results": ["match"],
"accepted_results_by_field": {
"last_name": ["match"]
}
}
}An empty accepted_results array accepts nothing, so every payment is declined
unless accepted_results_by_field accepts it. Pay.com declines payments only
when your account's risk checks are live. If they run in learn mode, Pay.com
records the result and lets the payment through.
Read the result
The overall result is in payment_method_details.card.name_verification on
charges, holds, and payouts, and in card.name_verification on payment
methods:
| Result | Meaning |
|---|---|
match | The name matches the issuer's records. |
partial_match | Part of the name matches the issuer's records. |
no_match | The name doesn't match the issuer's records. |
not_performed | The check didn't run, for example because the network or issuer didn't respond, or the card isn't on a network ANI supports. |
not_supported | The issuer or network reported that it doesn't support the check. |
The network's own codes are in underlying_network_details, under the card
network's key, for example visa.ani or mastercard.ani. On card payouts the
key can be the payout network, such as visa_direct. The object is present for
every result:
| Field | Codes |
|---|---|
status | 00 the check ran, 01 it didn't run, 02 it isn't supported |
full_name, first_name, middle_name, last_name | 01 match, 50 partial match, 99 no match |
Account defaults
Set ANI defaults for your account so you don't need to pass
name_verification on every request. In the Pay.com dashboard, go to
Settings → Payment Methods Configuration, open your default
configuration set, and set Card → Name Verification. If you don't see
it, ask your account manager to turn it on.
| Setting | Request field |
|---|---|
| Request Name Check | enabled |
| Use Customer Name | use_customer_name |
| Name Verification Result, in the Simple mode | accepted_results |
| The results for each part of the name, in the Advanced mode | accepted_results_by_field |
Other configuration sets hold the same settings for Configuration rules to
apply. To read your defaults through the API, call
GET /v1/merchants/current/payment_method_options
and read request_ani, use_customer_name_ani, accepted_ani_results, and
accepted_ani_results_breakdown in card. You can't change them through the
API.
Pay.com builds the options for each payment in this order:
- The configuration set of a matching Configuration rule, or your default configuration set if no rule matches.
- The
name_verificationfields in the request. Each field you send replaces the default, and each field you leave out keeps it. - A matching Configuration Overrides rule, which wins over both.
The payment's payment_method_options.card.name_verification shows the options
that applied.
Flag mismatches for review
To keep payments with weak name results and review them later, accept those results and add a review rule with an ANI result condition. The rule flags the transaction or the customer after the payment succeeds, without declining it. See Rule conditions for the fields a review rule can read.
Name checks on other payment methods
Card payouts accept the same name_verification object under
payout_method_options.card. Several non-card methods provide their own name
or identity checks:
| Method | Options field | How it works |
|---|---|---|
| Interac e-Transfer payouts | payout_method_options.interac.name_verification | Set enabled and similarity_acceptance (decimal string from "0" to "1", such as "0.85"). Both the customer's first and last names must meet the threshold against the recipient's Interac profile. If similarity_acceptance is 0 or missing, Pay.com doesn't compare names. Whether or not you check names, payouts fail if the recipient isn't registered for autodeposit, or if the amount is over the recipient's maximum. |
| Skrill and Neteller | payout_method_options.skrill.verification, payment_method_options.skrill.verification, and payment_method_options.neteller.verification | Skrill returns a verification level for the wallet and a match result for each customer detail. Pay.com checks them only when enabled is true and accepted_verification_level_values has at least one value. The wallet's verification level must be in that list, and every field set to true in require_match_for_customer_details (first_name, last_name, country, postal_code, line1, and dob) must match exactly. If a check fails, the payout fails. The same verification object works on Skrill and Neteller payments. |
| Cash App Pay | payment_method_options.cashapp.name_verification and phone_verification | name_verification compares the customer's full name against the Cash App account holder's name using similarity_acceptance (decimal string from "0" to "1", defaulting to "0.85"), declining lower scores with name_mismatch. phone_verification checks the last four digits of the customer's phone number against the Cash App account. |
| US bank accounts (Plaid Link) | Account-level setting | When enabled by your account manager, Pay.com reads the account holder's name from the bank when the customer links the account through Plaid Link and saves it on the payment method. |
Next steps
- Review rules: Flag transactions or customers by their ANI result.
- Rule conditions: Review every field a rule can read.
- Verify a payment method API: View the full endpoint reference.