Amazon Pay

Amazon Pay provides consumers a secure, trusted, and convenient method of using their Amazon account/credentials to make purchases on merchant sites. To do this, Amazon embeds a widget into your checkout flow that allows the consumer to sign into their Amazon account and select one of their payment methods, without leaving your site. You receive an token from Amazon Pay, which you submit to Worldpay in an authorization or Sale transaction. Figure 1-13 provides an overview of the Amazon Pay/Worldpay message flow.

FIGURE 1-13 Amazon Pay Message Flow

  1. After the consumer signs in and consents to the charge using Amazon Pay, your system communicates with Amazon Pay receiving a permission ID. The consumer then selects one of the payment methods saved in the Amazon Pay profile. Your systems again communicates with Amazon Pay receiving an Amazon Pay token and payment information in return.

  2. Your system submits an Authorization or Sale transaction to Worldpay (see Authorization example below), using the Amazon Pay token (cnpToken element).

  3. Worldpay communicates with Amazon Pay to retrieve the PAN information associated with the Amazon Pay token. We then send the transactional information to the card brands for approval.

  4. Worldpay sends the sends the Approval/Decline back to your system.

Example:  Authorization Message with Amazon Pay Token

<authorization id="99999" customerId="444" reportGroup="RG1">

  <orderId>F12345</orderId>

  <amount>15000</amount>

  <orderSource>telephone</orderSource>

  <billToAddress>

    <name>John Doe</name>

    <addressLine1>15 Main Street</addressLine1>

    <city>San Jose</city>

    <state>CA</state>

    <zip>95032-1234</zip>

    <country>USA</country>

    <phone>9782750000</phone>

    <email>jdoe@worldpay.com</email>

  </billToAddress>

  <shipToAddress>

    <name>Jane Doe</name>

    <addressLine1>15 Main Street</addressLine1>

    <city>San Jose</city>

    <state>CA</state>

    <zip>95032-1234</zip>

    <country>USA</country>

    <phone>9782750000</phone>

    <email>jdoe@worldpay.com</email>

  </shipToAddress>

  <token>

    <cnpToken>111100010103AMZN</cnpToken>

  </token>

</authorization>