Testing Amazon Pay
This section provides information about required Worldpay certification testing for merchants using Amazon Pay as a method of payment. Prior to performing the certification tests detailed in this document, you should complete all required integration with Amazon Pay and have access to their test environment.
The instructions and test information contained in this section reflect element from the V12.x schema. If you use an older version of the schema, you must replace V12.x elements with element from your version of the API. For example, the cnpTxnId
element in V12.x was litleTxnId
in pre-V12 versions of the schema and cnpToken
was litleToken
.
To test Amazon Pay transactions:
-
Obtain a valid Amazon Pay token and submit an
authorization
transaction using the token and data from the Supplied Data Elements for Order Id AmznPay_1. Use any valid token for thecnpToken
value. Verify the transaction approves. -
Submit a
capture
transaction for Order Id AmznPay_1A using thecnpTxnId
value returned in the response messages for Authorization Order Id AmznPay_1. Verify the transaction approves. -
Submit a
credit
transaction for Order Id AmznPay_1B using thecnpTxnId
value returned in the response messages for Authorization Order Id AmznPay_1A. Verify the transaction approves. -
Submit a
void
transaction for Order Id AmznPay_1C using thecnpTxnId
value returned in the response messages for Authorization Order Id AmznPay_1B. Verify the transaction approves. -
Obtain a valid Amazon Pay token and submit a
sale
transaction using the token and data from the Supplied Data Elements for Order Id AmznPay_2. Use any valid token for thecnpToken
value. Verify the transaction approves. -
Obtain an Amazon Pay token (from Amazon Pay) that generates a 560 Response Code and submit either an
authorization
or asale
transaction using the token and data from the Supplied Data Elements for Order Id AmznPay_560. Verify your system handles the 560 response code correctly. -
Obtain an Amazon Pay token (from Amazon Pay) that generates a 561 Response Code and submit either an
authorization
or asale
transaction using the token and data from the Supplied Data Elements for Order Id AmznPay_561. Verify your system handles the 561 response code correctly. -
Submit either an
authorization
or asale
transaction using the data from the Supplied Data Elements for Order Id AmznPay_562. Verify your system handles the 562 response code correctly. -
Submit either an
authorization
or asale
transaction using the data from the Supplied Data Elements for Order Id AmznPay_563. Verify your system handles the 563 response code correctly. -
Submit either an
authorization
or asale
transaction using the data from the Supplied Data Elements for Order Id AmznPay_110. Verify your system handles the 110 response code correctly.
TABLE 2-32 Amazon Pay Test Data
orderId |
Supplied Data Elements |
Key Response Elements |
||
---|---|---|---|---|
Element |
Value |
Element |
Value |
|
AmznPay_1
|
Authorization: <amount> <cnpToken> |
10100 xxxxxxxxxxxxAMZN |
Authorization Response <response> <message> |
000 Approved |
AmznPay_1A
|
Capture: <cnpTxnId>
|
Value returned in Auth response for Order Id AmznPay_1
|
Capture Response: <response> <message> |
000 Approved |
AmznPay_1B
|
Credit: <cnpTxnId>
|
Value returned in Capture response for Order Id Amzn_1A
|
Credit Response: <response> <message> |
000 Approved |
AmznPay_1C
|
Void: <cnpTxnId> |
Use either the value returned in the Credit response for Order Id AmznPay_1B (not Auth). |
Void Response: <response> <message> |
000 Approved |
AmznPay_2
|
Sale: <amount> <number> |
10100 xxxxxxxxxxxxAMZN |
Authorization Response: <response> <message> |
000 Approved |
AmznPay_560
|
Authorization: <amount> <cnpToken> |
56000 560000000000AMZN |
Authorization Response: <response> <message>
|
560 Soft Decline - System Error - Contact Worldpay representative |
AmznPay_561
|
Authorization: <amount> <cnpToken>
|
56100 561111111111AMZN
|
Authorization Response: <response> <message>
|
561 Soft Decline - Amazon Pay - Amazon Unavailable |
AmznPay_562
|
Authorization: <amount> <cnpToken>
|
56200 562222222222AMZN
|
Authorization Response: <response> <message>
|
562 Hard Decline - Amazon Pay - Amazon Declined |
AmznPay_563
|
Authorization: <amount> <cnpToken>
|
56300 563333333333AMZN
|
Authorization Response: <response> <message>
|
563 Hard Decline - Amazon Pay - Invalid Token |
AmznPay_110
|
Authorization: <amount> <cnpToken> |
11000 110000000000AMZN |
Authorization Response: <response> <message> |
110 Insufficient funds |