Card Policy
Decide which cards your business accepts -- by card type and by brand -- and have Card Vault refuse the rest at every place a card enters, before anything is charged or stored.
What it does
Every card number starts with a BIN -- its first 6 to 8 digits, which identify the issuing bank and the kind of card. Card Policy looks at the BIN of each card as it is entered, works out the card's type (credit, debit, prepaid, charge or deferred debit) and brand (Visa, Mastercard, American Express, Discover, JCB or UnionPay), and checks both against the rules you set. A refused card is stopped before any payment authorization, card verification or vault write, so it costs you nothing.
Typical uses: a hotel that takes only credit and charge cards for incidentals, or a business that does not accept a particular brand.
Setting your policy
In the Card Vault dashboard go to Settings > Card Policy (Administrator role).
- Card types accepted -- tick the types you take: Credit, Debit, Prepaid, Charge, Deferred debit.
- Brands -- tick the brands you take: Visa, Mastercard, American Express, Discover, JCB, UnionPay.
- Unknown cards -- what to do when the card's type cannot be determined: Allow (the default -- the card is accepted and the decision is recorded) or Block.
- Message -- the text your customer sees when a card is refused (up to 300 characters). If you leave it empty they see "The type of card entered is not supported".
- Segment overrides -- if you use segments, a segment can have its own policy (for example, one property that also accepts debit). A segment without an override follows the account-wide policy.
- Activity, last 30 days -- how many cards were refused, broken down by card type and by brand, so you can see the effect of a change.
Where it applies
The same policy is enforced everywhere a card can enter your vault:
- Hosted card forms, the hosted card iframes and JS fields
- Card requests sent to your customers
- Third-party credit card authorization forms
- The dashboard: adding a card and the virtual terminal
- The API: vault, card profiles and charges that vault on success
What your customer sees
On forms, the card number field checks the card as it is typed and shows your message under the field straight away. If the customer submits anyway, the submission is refused with the same message.
What your integration sees
A refusal is not an error -- it is a normal outcome you should handle like a decline.
- JS fields -- while the customer types,
onChangefor the card number field reportsaccepted: falsewith yourmessage. On submit,onDeclinefires withcode: "CARD_NOT_ACCEPTED",messageand yourref. See JS fields. - Hosted card iframes -- the iframe posts
cv:fieldchangeto your page withfield: "cardnumber",acceptedandmessageas the customer types, andcv:declinewithcode: "CARD_NOT_ACCEPTED"andmessageif a refused card is submitted. - API --
422 Card Not Acceptedwith problem typehttps://api.cardvault.dev/errors/card-not-accepted. Nothing is vaulted or charged.
What is shared, and what is kept
- Only the BIN -- the first 6 to 8 digits -- is used for the lookup. The rest of the card number is never sent.
- Each decision (allowed or refused) is recorded with the BIN only, which is what the Activity view counts.