Overview
Specified sets of cards can be blocked from appearing in Payment Methods lists, etc.
This topic describes how to specify sets of cards for blocking.
Card Attributes
You can use various combinations of the following card attributes to specify collections of cards to be blocked:
brand
: visa, mastercard, amex, diners, discover, jcb, dankort, unionpaycardProduct
: debit, creditcardType
: consumer, corporatecountry
: {all 2-letter ISO country codes}
Blocking List
A set of cards for blocking is:
- The intersection of card attribute values belonging to these card attribute sets:
brand
,cardProduct
,cardType
, andcountry
.
A blocking list is a collection of one or more set of cards.
For example: [["visa","credit","corporate"],["amex","GB","prepaid"]]
This blocks Visa corporate credit cards, as well as British prepaid Amex cards.
Blocking a Card
To block a set of cards, simply include the blockCards
parameter in the request and specify a blocking list.
blockCards
Parameter Syntax:
blockCards
: [[[ brand
][, cardProduct
][, cardType
][, country
]], [n-blocking list]]
Example blockCards
Blocking Lists
blockCards
: [[“visa”,”credit”,”corporate”],[“amex”,”GB”,”prepaid”]] // Visa corporate credit cards and British prepaid Amex cards are blocked
Refer to the relevant topic to see examples:
- For Web SDK, see the Blocking Cards topic.
- For Simply Connect, see the Card Blocking Rules topic.