Skip to main content

Testing Scenarios Guide

The Aurora Payments Sandbox environment is a fully isolated sandbox that mirrors production behavior without processing real transactions. Use it to validate your integration before going live.

This guide covers everything you need to test your integration thoroughly — from basic happy-path flows to edge cases, automated test suites, and load testing.

info

All examples in this guide use the Sandbox base URL: https://uat.arise.risewithaurora.com

Test Environment Setup

Prerequisites

Before running tests, ensure you have:

  1. A Sandbox merchant account provisioned by Aurora.
  2. A Sandbox API Key (Client ID and Client Secret). See Creating an API Key.
  3. An API Token generated from your Sandbox credentials. See Creating an API Token.

Test Card Numbers and Scenarios

Use the following card numbers in the Sandbox environment to simulate specific payment outcomes. These cards are only valid in Sandbox and will be rejected in production.

Successful Transactions

Card NumberBrandCVVExpiry
4012 0000 9876 5439Visa999Any future date
4111 1111 1111 1111Visa999Any future date
5146 3150 0000 0055Mastercard998Any future date
5146 3122 0000 0035Mastercard998Any future date
5282 2651 9026 0890Mastercard998Any future date
3714 496353 92376Amex9997Any future date
3770 270560 60401Amex9997Any future date
3702 951011 14559Amex9997Any future date
6011 0009 9302 6909Discover996Any future date
6011 9601 1794 1160Discover996Any future date

Declined Transactions

Card NumberTransaction AmountScenarioExpected Error Code
Any Testing Card with wrong CVVAny amountDeclined (Wrong CVV)N7 CVV2 verification failed
Any Visa Card$0.06Declined (Pick up card)07 Pick up card, special condition (fraud account)
Any Visa Card$0.07Declined (Lost Card)41 Lost card, pick up (fraud account)
Any Visa Card$0.08Declined (Stolen Card)43 Stolen card, pick up (fraud account)
Any Visa Card$0.21Declined (Insufficient funds)51 Insufficient funds
Any Visa Card$0.23Declined (Withdrawal Limit exceeded)61 Exceeds approval amount limit
Any Visa Card$51.00Declined (Partial decline)Partial authorization (sale) is not allowed, decline.
Any Visa Card$0.45Failed Transaction96 SYSTEM ERROR

Address Verification Service (AVS) Scenarios

Address FieldExpected Value for AVS Pass
Address (Line 1)8320
Zip Code85284

Test ACH Account Numbers and Scenarios

Use the following account numbers in the Sandbox environment to simulate specific payment outcomes. These accounts are only valid in Sandbox and will be rejected in production.

Successful Transactions

Routing NumberAccount NumberAccount TypeScenario
021000021Any Number (9-12 chars)AnySuccessful ACH transaction
011401533Any Number (9-12 chars)AnySuccessful ACH transaction
091000019Any Number (9-12 chars)AnySuccessful ACH transaction

Declined ACH Transactions

Routing NumberAccount NumberAccount TypeScenario
123123123111111111AnyReturned NSF (next day)
123123123222222222AnyReturned Other (next day)
123123123444444444AnyCleared, then Charged Back (next day)
123123123987654321AnyFails Express Verify (immediate)
123123123999999999AnyFails Verify Plus

Error Condition Testing

Test each error type to ensure your integration handles failures gracefully and communicates clearly with end users.

HTTP Error Codes

HTTP StatusError CodeCommon CauseHandling Recommendation
400VALIDATION_ERRORMissing or malformed request fieldDisplay field-level validation messages to the user
401UNAUTHORIZEDMissing, expired, or invalid tokenRefresh the token and retry the request once
403FORBIDDENToken lacks required permissionCheck API Key permissions in the merchant portal
404NOT_FOUNDResource does not exist or belongs to another merchantVerify the resource ID and merchant scope
429RATE_LIMITEDToo many requests in a short periodImplement exponential backoff with jitter
500INTERNAL_ERRORUnexpected server errorRetry with exponential backoff; alert if persistent
503SERVICE_UNAVAILABLEAurora service temporarily unavailableRetry after a delay; do not retry immediately

Edge Case Handling

Duplicate Transactions

Submit two identical requests with the same Reference ID value within a short window (Default: 10 minutes).

TBD

Load Testing

warning

Coordinate with Aurora before running load tests against the Sandbox environment. High traffic against shared Sandbox infrastructure can affect other merchants using the same environment. Contact isvsupport@risewithaurora.com to schedule a load test window.

What to Measure

Focus your load tests on the endpoints your integration uses most heavily. For each endpoint, measure:

MetricAcceptable TargetNotes
P95 latency< 2 secondsFor token creation and payment session endpoints
P99 latency< 5 secondsUnder sustained load
Error rate< 0.1%Excluding intentional decline scenarios
ThroughputMatch expected peak TPSRamp up gradually — do not start at peak
Token refresh success rate100%Tokens must never silently fail to refresh