3D Secure for card payments
3D Secure
3D Secure (3DS) is a card network protocol. It confirms that the cardholder is the person using the card. Visa calls it Visa Secure. Mastercard calls it Mastercard Identity Check.
With COS Card Payments, you can send 3DS results with a pull payment.
This page covers 3DS for COS Card Payments. For 3DS on cards that Cross River issues, see Online authentication.
How 3DS works with Cross River
With Cross River, 3DS has 3 parts:
- You authenticate the cardholder. You integrate with Cardinal Commerce or another 3DS provider of your choice. Only you can start 3DS authentication, through your 3DS provider.
- You pass the 3DS results to Cross River. Add your 3DS provider's values to the threeDomainSecure object in POST /cardpayments/v1/payments.
- The rest of the payment flow stays the same. Cross River validates the 3DS values. It then sends them to the card network with the payment. Card tokens, webhooks, statuses, and payment retrieval work as they do today.
sequenceDiagram
participant C as Cardholder
participant P as Your platform
participant D as Your 3DS provider
participant X as Cross River
participant N as Card network
C->>P: Starts a payment with their card
P->>D: Authenticate the cardholder
D-->>C: Challenge, if the issuer requires one
D-->>P: 3DS results (ECI, CAVV or UCAF, transaction ID)
P->>X: POST /cardpayments/v1/payments with threeDomainSecure
X->>N: Payment with 3DS values
N-->>X: Approved or rejected
X-->>P: Webhook events, as for any card paymentWhen to send 3DS
- Pull payments only. 3DS applies to pull payments. On a push payment, Cross River doesn't send the 3DS values to the card network. Leave them out of push payments.
- Optional. Without 3DS values, Cross River processes the pull payment as it does today.
3DS results
Your 3DS provider returns the authentication results. You send them to Cross River with the payment:
Result | Card brand | What it is |
|---|---|---|
ECI | Visa and Mastercard | Electronic Commerce Indicator, a 2-digit code that shows the authentication result |
CAVV | Visa | Cardholder Authentication Verification Value, Visa's proof that the issuer authenticated the cardholder |
UCAF | Mastercard | Universal Cardholder Authentication Field, Mastercard's proof that the issuer authenticated the cardholder |
DS transaction ID | Mastercard | The 3DS 2 Directory Server transaction ID (dsTransactionId), a 36-character UUID |
The ECI shows one of 3 results. Each card brand uses its own values:
Result | Visa ECI | Mastercard ECI |
|---|---|---|
Fully authenticated | 05 | 02 |
Authentication attempted | 06 | 01 |
Not authenticated | 07 | 00 |
Retries on other rails
When a rail fails, Cross River retries the payment on your product's next rail. Each rail sends only the 3DS values for its own card network. A retry on another network's rail sends the payment without 3DS data. A rail without 3DS support also sends it without 3DS data.
Next steps
- Add 3D Secure to card payments: send a pull payment with 3DS values