Skip to main content

Testing Guide

Use this guide to test your integration with the Connected Payments payment platform before moving to production. Our test environment allows you to simulate various payment scenarios without processing real transactions.

Important

Never use real card numbers, production credentials, customer data, or any live transaction information in the Sandbox environment. This includes but is not limited to:

Cardholder names, real email addresses, production API keys, live merchant IDs, real bank account details, and actual customer personally identifiable information (PII).

Only use the test cards, credentials, and data provided in this guide.


Test Card Numbers​

Basic Test Cards​

Use these cards for standard payment testing. Any future expiry date and any 3-digit CVV can be used.

Visa​

Card NumberUse Case
4111111111111111Standard successful payment
4242424242424242Standard successful payment
4012000033330026Standard successful payment
4000056655665556Standard successful payment
4000000760000002Standard successful payment

Mastercard​

Card NumberUse Case
5555555555554444Standard successful payment
5105105105105100Standard successful payment
5111111111111118Standard successful payment
5666555544443333Standard successful payment
2223000000000023Mastercard 2-series BIN

American Express​

Card NumberUse Case
378282246310005Standard successful payment
371449635398431Standard successful payment
378734493671000Standard successful payment

Diners Club​

Card NumberUse Case
36259600000012Standard successful payment
3528111100000001Standard successful payment

Discover​

Card NumberUse Case
6011111111111117Standard successful payment

Testing Specific Scenarios​

Response Code Testing​

Test different response codes by using specific transaction amounts with the response code test cards below. The rule works only with these cards.

How it works:

Take the amount in cents and look at its last 3 digits:

  • If they're above 100, the response code is those 3 digits. For example, $7.16 (716 cents) returns 716.
  • Otherwise, the response code is the last 2 digits. For example, $10.05 (1,005 cents) returns 05, and $10.00 returns 00.

Response Code Examples​

AmountResponse CodeStatusDescription
$10.0000ApprovedGeneric approval
$20.0808ApprovedHonour with identification
$10.0505DeclinedDo not honour
$10.5151DeclinedInsufficient funds
$10.5454DeclinedExpired card
$7.16716DeclinedDuplicate merchant reference (platform code)

Amounts whose last 3 digits are above 100 return that 3-digit value even when it isn't a real response code. For example, $62.01 returns 201 and $9,999.00 returns 900. Don't use these to test real outcomes.

Test Cards for Response Code Testing​

Use these cards with the amounts above to test specific response codes:

Card TypeCard Number
Visa4041370000456459
Visa4000001234562345678
Visa4005550000000001
Mastercard5123456789012346
Amex342345678901238
Diners36876543210125

Example Test:

Card: 4041370000456459
Amount: $10.05
Expected Result: Declined with response code 05

Timeout and Delay Testing​

Test how your integration handles slow responses and timeouts.

How it works:

  • The delay in milliseconds equals the transaction amount in cents
  • Example: $50.00 (5,000 cents) creates a 5,000 ms (5 second) delay
  • Example: $2.00 (200 cents) creates a 200 ms delay
  • To set the delay directly, send metadata.delay with a value in milliseconds
  • The maximum delay is 600,000 ms (10 minutes). Longer delays fail with response code 799

To test your client timeout, use a delay longer than your timeout. For example, $1,100.00 gives a 110 second delay, longer than the recommended 100 second client timeout.

Delay Test Card​

Card TypeCard NumberBehavior
Mastercard5163200000000008Delays response based on amount

Example Test:

Card: 5163200000000008
Amount: $50.00
Expected Result: 5 second delay before approval

Note: Actual response times may vary due to network latency.


3D Secure Testing​

Test 3D Secure (3DS) authentication flows including frictionless and challenge-based authentication.

3DS Test Cards​

Card NumberCard TypeTest ScenarioAdditional Info
5111220000000009MastercardFriction test (authenticated)Use PIN: 1234
5200000000004447MastercardFriction test (error)Use PIN: 1234
5200000000002227MastercardFrictionless authentication failure (bank)-
5200000000003332MastercardFrictionless authentication failure (auth)-

3DS with Fraud Detection​

Test 3DS combined with fraud detection scenarios:


Fraud Detection Testing​

Test fraud detection and risk management scenarios using Forter integration.

Basic Fraud Testing​

Use specific email addresses to simulate different fraud detection outcomes:

Email AddressFraud Result
[email protected]Approved - Low risk
[email protected]Declined - High risk
[email protected]Not reviewed - Manual review required

PSD2 and SCA Testing​

Test Strong Customer Authentication (SCA) exemptions and exclusions:


Click to Pay Testing​

Test Click to Pay functionality with various scenarios.

Response Code Testing​

Card TypeCard NumberTest Scenario
Mastercard5186001700008785Response code testing
Mastercard5186001700009726Response code testing
Mastercard5120350100064537Response code testing
Mastercard5120350100064545Response code testing
Mastercard5186001700001434Response code testing
Visa4622943127011022Response code testing
Visa4622943127011030Response code testing
Amex373708623186001Response code testing

Delay Testing​

Card TypeCard NumberTest Scenario
Mastercard5186001700009908Response delay testing
Mastercard5120350100064552Response delay testing
Visa4622943127011048Response delay testing
Amex377222581193005Response delay testing

Approval Testing​

Card TypeCard NumberTest Scenario
Mastercard5186001700008876Approve only
Mastercard5186001700001434Approve only
Mastercard5120350100064560Approve only
Mastercard5120350100064578Approve only
Visa4622943127011055Approve only
Visa4622943127011063Approve only
Visa4622943127011071Approve only
Visa4622943127011089Approve only
Amex372399427875006Approve only
Amex371316662951004Approve only

Various Test Workflows​

Complete all test cases below before moving to production. This ensures your integration handles all common payment scenarios correctly.

Payment Testing​

Test CaseCard NumberAmountExpected Result
Successful Payment4111111111111111$10.00Payment approved with response code 00
Declined Payment - Insufficient Funds4041370000456459$10.51Payment declined with response code 51
Declined Payment - Expired Card4041370000456459$10.54Payment declined with response code 54
Multiple Card BrandsVisa, Mastercard, Amex, DinersVariousAll brands processed correctly

Security & Authentication​

Test CaseCard NumberAdditional InfoExpected Result
3DS Challenge - Success5111220000000009PIN: 12343DS challenge presented, authentication successful
3DS Challenge - Failure5200000000004447PIN: 12343DS challenge presented, authentication fails
3DS Frictionless Flow5248480000200068Email: [email protected]No challenge, frictionless authentication
3DS Authentication Failure5200000000002227-Authentication fails at bank level

Advanced Features​

Test CaseCard NumberAmountExpected Result
Successful Payment5186001700008876AnyPayment approved via Click to Pay
Response Code Testing5186001700008785$10.05Declined with response code 05
Delay Handling5186001700009908$50.005 second delay, then approval

Integration & UX​

Test CaseDescriptionExpected Result
API AuthenticationVerify API credentials workingProper authentication and error handling for invalid credentials
Webhook DeliveryVerify webhooks received for payment eventsWebhooks delivered and signature validation works
Error Response HandlingTest all error response formatsIntegration handles network, API, and validation errors