Testing Your Applications for Free

Topics

Amazon FPS provides an environment called the sandbox for testing your applications. In the sandbox you can try out your applications without incurring charges or making purchases. We recommend that you test all of your requests in the sandbox before exposing them on your web site.

The Amazon FPS Sandbox enables you to try the following:

For information about signing up for an Amazon FPS Sandbox account, go to the Amazon Flexible Payments Service Getting Started Guide. For more information about the Amazon FPS Sandbox, go to https://payments-sandbox.amazon.com.

Sandbox Endpoints

Sandbox endpoints are different from Amazon FPS production endpoints. The Amazon FPS Sandbox endpoints are as follows:

  • Amazon FPS API sandbox— https://fps.sandbox.amazonaws.com

  • Amazon Co-Branded service sandbox— https://authorize.payments-sandbox.amazon.com/cobranded-ui/actions/start

Sandbox Use

You can test the following user experiences in the sandbox:

  • Registering for a business or personal account via a Co-Branded service request

  • Depositing funds into a test account's Amazon Payments account using a Pay request

  • Checking the account balance for a test account

  • Checking the activity for a test account

Error Simulation

The sandbox accepts any random number as a credit card and token ID in Pay and Reserve requests. However, you can simulate a variety of declines that occur by using a specific token IDs and Amounts in the sandbox, as shown in the following three tables.

The following table shows the errors you can simulate by entering specific SenderTokenId values.

ErrorSenderTokenId Value
Email address not verified

E3FR7BARJV3PB631PMKV74PGKCJLBHI1Q1K

MQN7BJ2JJICPDKN3N1CJIKFZ8D7NN

Suspended account

H216UECZ8ZM1G8G4QA3V7RKF8JDFZ9SI3SJA

FSGUKBBNDHX1NVM8GUQRZNRNAHER

Closed account

Z1LGRXR4HMDZBSFKXELA32KZASGWD8IHMHZ

CK4DETR784LDLD1GMFW4P3WT8VTGX

The following table shows the errors you can simulate by entering specific RecipientTokenId values. These token IDs are relevant only in marketplace environments.

ErrorRecipientTokenId Value
Email address not verified

C4LGSEMXN11FTUXZ2X2C7QVFHN5DVBGQJ

NF17AIQXXXQSX4DRG4KJFCN2KRFUUZI

Suspended account

R3VK49XVGCAZTJSXKN7ZSBHPMFGKM5VEEQTX

GMVE8CFUZ2G5RLLMAB4J6TQRL6BU

Closed account

P1LL7A1LHK935DBGI5NAYCXOCLVEBHBNIU

7PBXBAMRKKNLDEPI8M3MUSLZT2VANZ

The following table shows the errors you can simulate by entering specific Amount values.

ErrorAmount Value
FailureAmounts that include a "7" or "8" after a decimal point of the form N.7n or N.8n, where N and n are any numbers, for example, 20.7, 100.73, 4.8, 0.81