Testing Guide

Use the testing guide to trigger specific transaction response while testing in the sandbox.

 

Testing in the Sandbox
The sandbox environment is separate from the live production environment and requires separate credentials.  Using your production credentials in the sandbox or your sandbox credentials in the production environment returns Response Reason Code 13.  Sign up for a sandbox account at https://developer.authorize.net/hello_world/sandbox/.  

Our sandbox functions like the live payment gateway. However, sandbox transactions do not process live payments. The response from the sandbox varies depending on the card type, ZIP code, and amount.

 

Test Card Numbers
The following test credit card numbers will only work in the sandbox. Use an expiration date after today’s date. If the card code is required, please use any 3-digit combination for Visa, Mastercard, Discover, Diners Club, EnRoute, and JCB; use a 4-digit combination for American Express.

 

Test Card Brand Number
American Express  370000000000002
Discover 6011000000000012
JCB 3088000000000017
Diners Club/ Carte Blanche 38000000000006
Visa 4007000000027
  4012888818888
  4111111111111111
Mastercard 5424000000000015
  2223000010309703
  2223000010309711
 

Testing Solution ID

The following test solution IDs should be used in the sandbox environment:

AAA100302
AAA100303
AAA100304

Note: Production solution IDs cannot be used in the sandbox. See the Solution ID Integration Guide for more details.

 

Generating Card Responses

In all of the tables, the first column shows the value to use to trigger the response shown in the second column.

GENERAL RESPONSES

Use the ZIP code below to generate declined transactions.

ZIP Code
Response Code
Response Text
Notes
46282 2 This transaction has been declined. General bank decline.

 

AVS RESPONSES
When testing AVS, use the ZIP codes below to generate specific AVS responses. See the Support Center article, "What Are the Different Address Verification Service (AVS) Response Codes?", for an explanation of AVS responses.

Zip Code
Visa Response
Mastercard Response Discover Response American Express Response Discover Response JCB Response
46201 A A A A A A
46203 E E E Y E E
46204 G E E N/A E E
46205 N N N N N N
46207 R R R R R R
46208 S S S S S S
46209 U U U U U U
46211 E W W N/A W W
46214 N/A X X N/A X X
46217 Z Z Z Y Z Z

 

CVV RESPONSES

When testing CVV, use the card codes below to generate specific CVV responses.

Card Code
CVV Response CVV Status
900 M Matched.
901 N Does not match.
902 S Should be on the card, but is not indicated.
903 U The issuer is not certified for CVV processing or has not provided an encryption key.
904 P Is not processed.

 

PARTIAL AUTHORIZATION RESPONSES

When testing partial authorization, use zip codes (card not present transactions) and amounts (card present transactions) to produce specific responses.

ZIP CODE
(if card not present)
AMOUNT
(if card present)
RESULT REMAINING
BALANCE
AUTHORIZED
AMOUNT
46225
$462.25 Partial Authorization
n/a $1.23
46226 $462.26 Prepaid Authorization
$1.23 Full Amount
46227 $426.27 Prepaid Authorization
-$1.23 (see below for explanation) Full Amount
46228 $462.28 Prepaid Authorization $0 Full Amount

 

In what circumstances would a card have a negative balance?

A prepaid card has a negative balance if it is a reloadable card that is linked to a bank account and has a monthly fee. If the customer uses the complete balance and the bank charges the monthly fee, the card would have a negative balance until the customer reloads the card.

 

Transaction Amount Triggers (Deprecated)

The following tables list current correspondences between transaction amounts and specific responses.

Note: These values are deprecated in favor of the ZIP code values listed above, and may be removed from the sandbox without advance notice.

 

GENERAL RESPONSES

AMOUNT RESPONSE CODE RESPONSE TEXT NOTES
$70.02 2 This transaction has been declined. General bank decline.
$70.03 3 This transaction has been declined. Referral to voice authorization center.
$70.05 35 An error occurred during processing. Call Merchant Service Provider.
An unknown error occurred during processing.

 

AVS RESPONSES

AMOUNT Visa Mastercard American Express Discover
$70.40 E X E X
$70.42 A A A A
$70.43 Z Z Z Z
$70.44 N N N N
$70.45 U U U U
$70.46 S S S S
$70.47 R R R R
$70.48 E W N W
$70.49 P E Y E
$70.50 G E E E
$70.51 E E Z E
$70.52 Y E Y E
$70.53 E E A E
$70.54 E E U E
$70.55 Y E Z E
$70.56 E E Y E
$70.57 Y E A E
$70.60 A E E E
$70.61 G E
E E
$70.62 Y E Z E
$70.63 Y E
A E
$70.64 G E E E
$70.65 N E E E
$70.66 Y E Y E
$70.67 Z E E E
$70.94 P P P P

 

CVV RESPONSES

AMOUNT
CVV RESPONSE CVV STATUS
$70.70 M Matched.
$70.71 N Does not match.
$70.72 P
Is not processed.
$70.73 S Should be on the card, but is not indicated.
$70.74 U The issuer is not certified for CVV processing or has not provided an encryption key.
 

Testing Account Updater

For details on how to test the Account Updater service, see the Account Updater User Guide, pages 47-47.