Welcome to our new developer portal! Use the "Ask" button to chat with our AI Agent.
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Decision engine

Decision engine

D1’s decision engine evaluates available signals and returns a Tokenization decision to the payment network TSP (for example, MDES or VTS) on behalf of the Issuer.

The decision is one of:

  • GREEN: approve

  • YELLOW: approve with step-up authentication

  • RED: decline

For the end-to-end flow, see Processing the decision.

Terminology in the D1 API

  • The End User is called a consumer in the D1 API (for example, consumerId).

  • A token requestor can be an xPay Wallets provider (such as Apple Pay, Google Pay, or Samsung Pay) or an e-commerce merchant.

Data used for decisioning

The D1 decision engine combines the following data:

  • Card data.

  • End User (consumer) data provided by the Issuer (check Get Started section for details).

  • Token requestor signals forwarded by the payment network TSP (for example, wallet/device signals for xPay Wallets).

High-level view of decision inputs across the Issuer backend, D1, the payment network TSP, and the token requestor

Rule categories

D1 evaluates signals in five categories:

  • Card

  • End User data

  • Counters

  • Card capture

  • Wallet scoring

The Issuer configures decisioning preferences for some rules during D1 onboarding.

1

Card

D1 performs a set of mandatory checks to ensure the card can be tokenized.

If any of the checks below fail, D1 returns RED (decline):

Check
Result
Description

Card not found

RED

D1 cannot retrieve the card using the provided card details (for example, PAN and expiry date).

Card terminated

RED

The card exists, but it has been deleted or replaced.

Invalid CSC

RED

The card exists, but the provided CSC does not match CVV2 or dCVV2.

Card suspended

RED

The card exists, but it is suspended (for example, reported lost or stolen).

Card expired

RED

The card exists, but it is expired.

2

End User (consumer)

If the payment network TSP provides a phone number in the Tokenization request, D1 can compare it to the phone number you provided for the End User.

Comparison is performed on the subscriber number (MSISDN format). If the values are not comparable (for example, invalid formatting), the rule does not apply.

Check
Result
Description

Phone number mismatch

RED or YELLOW

The End User phone number does not match the token requestor phone number.

You choose whether the mismatch results in RED or YELLOW during D1 onboarding.

3

Counters

Counters are optional checks used to rate-limit Tokenization requests.

When enabled, the Issuer configures thresholds during D1 onboarding.

Check
Result
Description

Tokenization count exceeds limit for the same PAN

RED

Limits the maximum number of digital cards that can be associated with a single card.

Tokenization count exceeds limit for the same device

RED

Limits the maximum number of digital cards that can be stored on a single device.

Too many Tokenization requests on the same device in a given time window

RED

Limits the Tokenization rate for a device.

Too many CSC verification attempts

RED

Limits repeated CSC failures.

4

Card capture

The CSC is a 3- or 4-digit number associated with a card. Depending on how the card details were captured, the CSC may or may not be available.

For example, with Card-on-file (COF), the CSC is typically not stored and may not be present.

D1 applies the following rules:

Check
Result
Description

Capture method indicates in-app, token, or COF

GREEN

The CSC is not required.

Digital card type is e-commerce

GREEN

The CSC is not required.

Digital card type is not e-commerce and the CSC is missing

YELLOW

Missing CSC increases fraud risk for this capture type.

5

Wallet scoring

Some token requestors (typically xPay Wallets) provide risk signals through the payment network TSP, such as:

  • A recommendation

  • A device score

  • An account score

D1 combines these signals into a single score from 1 (highest risk) to 5 (lowest risk). The Issuer maps each score to a D1 decision (GREEN/YELLOW/RED) during D1 onboarding.

Score
Typical mapping
Description

1

RED or YELLOW

Strong risk indication from the token requestor.

2

RED or YELLOW

Elevated risk indication from the token requestor.

3

YELLOW or GREEN

Insufficient signals to assert low risk.

4

YELLOW or GREEN

Low risk indication.

5

YELLOW or GREEN

Strong low-risk indication.

For merchants, wallet/device signals are typically not available because the digital card is stored in the cloud.

D1 does not evaluate device risk by itself. It relies on signals provided by the token requestor (when available) through the payment network TSP.

How D1 computes the final decision

The decision returned to the payment network TSP is always one of the three outcomes described in Processing the decision.

To keep decisioning predictable and aligned with payment network protocols, D1 evaluates categories in this order:

  1. Card, End User data, counters, and card capture

  2. Wallet scoring (when available)

Wallet scoring is evaluated last because it is optional, depends on the token requestor, and may not be provided for merchants.

The final decision is the most restrictive outcome across all checks:

  • If any check returns RED, the final decision is RED.

  • Otherwise, if any check returns YELLOW, the final decision is YELLOW.

  • Otherwise, the final decision is GREEN.

Last updated

Was this helpful?