Blocked payments
Read why Pay.com blocked a payment, unblock customers with block reviews, and block cards and bank accounts with the blacklists.
Pay.com blocks a payment before it reaches the card network when a payment
rule, fraud score threshold, or risk list triggers a block. The payment fails,
and its decline_code tells you what blocked it. This page lists the codes and
shows how to unblock a customer or block a card.
Decline codes
A blocked charge or hold is still created, with status: "failed". The API
returns an error with code: card_declined and one of these decline codes:
decline_code | What blocked the payment | Where to look |
|---|---|---|
blocked_by_risk_rule | One of your payment rules with the Block action. | risk_assessment_details.rule_id, and the rule's Logs tab |
blocked_by_pay_com | A rule Pay.com runs on your account. | Contact Pay.com support. |
blocked_by_risk_score | The advanced fraud screening score fell in a block range. | risk_assessment_details.score and flags |
cancelled_by_risk | A cancel rule voided the payment after the network approved it. | risk_assessment_details.rule_id |
name_mismatch | The Account Name Inquiry result isn't one you accept. | payment_method_details.card.name_verification |
duplicate_card | The duplicate card check found the card saved for another customer. | The duplicate_card_check option |
blocked_by_merchant | You blocked the payment session with POST /v1/sessions/payment/{id}/block, or its bank account is in your bank account blacklist. | The session, or the bank account blacklist |
A fraud decline comes from the issuer, not from Pay.com's rules or score.
Payments your accepted card options refuse, such as a card brand or funding
type you don't accept, fail with their own codes, such as blocked_brand or
blocked_funding. See
Errors for every code.
Read the block in the response
The error carries the charge or hold ID, and risk_assessment_details shows
what set the outcome. underlying_network_details is null, because the
payment never reached the network.
{
"error": {
"type": "payment_method_error",
"code": "card_declined",
"decline_code": "blocked_by_risk_rule",
"charge": "chrg_697560953687902208",
"risk_assessment_details": {
"outcome": "block",
"outcome_source": "rule",
"rule_id": "rl_697560098213463040"
},
"underlying_network_details": null
}
}For a score block, outcome_source is score and score holds the fraud
score. In the Pay.com dashboard, Activity filters payments by Matched
Payment Rules under Risk.
Unblock a customer
When one of your Block payment rules blocks a payment from a customer,
Pay.com creates a customer block review (cblrv_…) and sends a
customer_block_review.created event. Blocks by a risk score or by a Pay.com
rule don't create reviews.
To review them in the dashboard, go to Rules → Payment → All Blocked Customers to Review. For each customer:
- Allow excludes the customer from the rule that blocked them, Forever or Temporary (1 week, 2 weeks, 1 month, or a custom duration). Their next payments skip that rule.
- Snooze hides the review for a set time without allowing the customer.
With the API, use the customer block review's ID:
| Request | What it does |
|---|---|
POST /v1/customer_block_reviews/{id}/exclude | Excludes the customer from the rule until excluded_until or permanently. The status becomes excluded_temporary or excluded. |
POST /v1/customer_block_reviews/{id}/snooze | Snoozes the review until snoozed_until or permanently. The status becomes snoozed_temporary or snoozed. |
GET /v1/customer_block_reviews/rule/{id} | Lists a rule's reviews. |
GET /v1/customer_block_reviews/customer/{id} | Lists a customer's reviews. |
GET /v1/customer_block_reviews/rule/{id}/customers | Lists the customers excluded from a rule. |
To exclude a customer from all your Block payment rules, open the customer in Customers, go to Excluded Rules, and click Exclude customer from all Block Rules. This adds them to the Excluded from block rules list, which action rules can also add to.
Block a card
The card blacklist blocks future payments from a card. Pay.com stores the card itself, not the payment method ID, so every payment method saved for the same card on your account is blocked.
To add a card in the dashboard, go to Rules → Risk Lists, open the card
blacklist, click +, and enter the Payment Method ID (pm_card_…). It
doesn't take card numbers.
To add a card through the API, send its payment method ID in source to
PUT /v1/value_lists/card_blacklist.
To block every card, Apple Pay, and Google Pay payment method of a customer,
send their customer_reference_id instead.
{
"source": "pm_card_692434600374304768"
}{
"id": "296645958265997335",
"name": "Card blacklist",
"alias": "pm_card_blacklist",
"type": "card",
"items": 1,
"internal": true
}Pay.com creates the card blacklist the first time you add a card. To list the
cards in it, call
GET /v1/value_lists/card_blacklist
with page and limit. To unblock a card, send the same body to
DELETE /v1/value_lists/card_blacklist.
To block an individual card, pass a pm_card_ ID in source, or pass
customer_reference_id to block all of a customer's cards, Apple Pay, and
Google Pay payment methods. To add a card by its token (tok_card_…), use a
custom risk list of type card instead. See
Manage lists with the API.
Block a bank account
The bank account blacklist blocks charges, holds, verifications, and payouts
that use a bank account. Pay.com declines them with blocked_by_merchant
before it sends them to the processor. Like the card blacklist, it stores the
bank account itself, so every payment method saved for the same account is
blocked.
To add a bank account, send its payment method ID
(pm_<country>_bank_account_…) in source to
PUT /v1/value_lists/bank_account_blacklist.
To block every bank account saved for a customer, send their
customer_reference_id instead.
{
"source": "pm_us_bank_account_296645958265997316"
}Pay.com creates the bank account blacklist the first time you add a bank
account. To list its entries, call
GET /v1/value_lists/bank_account_blacklist
with page and limit. To unblock a bank account, send the same body to
DELETE /v1/value_lists/bank_account_blacklist.
Payouts through a provider's own payout method, such as Volt or Vyne, aren't checked against the bank account blacklist.
Next steps
- Payment rules: Create the rules that block payments.
- Action rules: Add cards and customers to lists automatically.
- Risk lists: Block emails, IP addresses, BINs, and other values.