Configuration
Before testing 3DS in the sandbox environment, ensure:- 3DS is configured for each card scheme (Visa, Mastercard, American Express, etc.) on your primary card connector
- Flow rules do not skip 3DS for the test scenarios you want to verify
- You’re using the correct test card numbers for your desired outcome
Testing with hosted embed and web flows
The Gr4vy 3DS integration uses 3DSecure.io as the 3DS provider. Use the following test cards to simulate different authentication scenarios.Frictionless authentication - successful
These cards return a frictionless response with successful authentication (transStatus: Y).
| Card Number | Scheme | Expiry | Security Code | Outcome |
|---|---|---|---|---|
5200000000001203 | Mastercard | 03/30 | 100 | Frictionless success |
4111111111101203 | Visa | 03/30 | 100 | Frictionless success |
340000000022003 | American Express | 03/30 | 1000 | Frictionless success |
3558111111121203 | JCB | 03/30 | 100 | Frictionless success |
Challenge flow - manual and automatic
These cards trigger a challenge that requires user interaction.| Card Number | Scheme | Expiry | Security Code | Outcome |
|---|---|---|---|---|
5240000000001072 | Mastercard | 03/30 | 100 | Challenge required |
4111111111181072 | Visa | 03/30 | 100 | Challenge required |
340000000082072 | American Express | 03/30 | 1000 | Challenge required |
3558111111121872 | JCB | 03/30 | 100 | Challenge required |
- Manual challenge (card ending in 72): You can choose to pass or fail the challenge.
- Automatic challenge (card ending in 70): The challenge automatically passes.
Card not enrolled
Cards without 3DS enrollment skip authentication.| Card Number | Scheme | Expiry | Security Code | Outcome |
|---|---|---|---|---|
9000100111111111 | Visa | 03/30 | 100 | Not enrolled |
Advanced testing scenarios
For more detailed testing including message version variations and 3DS method handling, refer to the 3DSecure.io sandbox documentation. The following test card patterns can be used for specific scenarios:- Message version testing: Cards with patterns like
xxxxin positions 2-4 determine the 3DS message version (2.1, 2.2, or 2.3.1). - 3DS Method: Cards with
x0xxpattern include 3DS Method,x1xxexclude it,x2xxsimulate timeout. - Challenge outcomes: Cards with
xx70auto-pass,xx71auto-fail,xx72allow manual selection.
Testing with native mobile SDKs
The native iOS (Swift) and Android (Kotlin) SDKs use a different 3DS provider than the web-based flows. The preceding test cards and scenarios documented do not apply to native mobile integrations.For testing 3DS with the native mobile SDKs, refer to the dedicated testing guides:The native SDKs provide their own set of test cards and challenge scenarios.