# Amazon Pay Integration
Amazon Pay is one of many online payment services that offer low friction,
secure checkout across different platforms. There is a partial integration of
Amazon Pay for merchants
into the Retail Demo Store.
If you enter your Amazon Pay credentials as parameters into CloudFormation when
deploying or updating this demo, an Amazon Pay button will be generated for you,
signed with those credentials. This Amazon Pay button allows users to intitate a
checkout session with your Amazon Pay store as the seller.
**Note:** *This is a partial integration that does not cover the full checkout process.
We go as far as initiating a checkout session which you can test by logging in with a sandbox user.*
## How to Set up Amazon Pay Integration
In order to set up the integration so that you can initiate a checkout session, we need to set up an
Amazon Pay merchant account, as well as a store, and obtain the integration credentials for that store. Having
obtained these credentials we can supply them to Retail Demo Store so that it can start a credentialed
checkout session which you can enter by authenticating a test user. For more information about integrating
with Amazon Pay see
these instructions.
Here are step-by-step instructions to get you started with Amazon Pay in the Retail Demo Store:
- Set up an Amazon Pay account at
https://sellercentral.amazon.com/.
- Select your sandbox testing account and create a test account as explained
here. This test account will be different to your merchant account. For example, your main
account may be RetailDemoStore@gmail.com and your test user may be
Brian@test.com. This test user will be used to take on the role of a shopper
checking out on the store.
- Obtain your account's integration details as described
here. The details you will need to obtain from the "Integration Central" hub in Seller Central are:
- Your merchant ID.
- Your store ID.
- Your public API key ID.
- Your private key (this will be downloaded as a .pem file).
-
If creating a new deployment of Retail Demo Store, enter this information as parameters when deploying your
CloudFormation template. If updating a deployment, follow the process for updating and enter
this information as parameters when re-deploying your CloudFormation template.
Note: Using the CloudFormation UI you will need to copy the contents of the private key .pem file into the pivate key parameter text field.
-
If all is going well, the Amazon Pay button will show up on the checkout page. Note that this button will
initiate an Amazon Pay session but will not receive any callbacks from Amazon Pay to continue the checkout.
Instead, you will be redirected to the Amazon Pay developer pages and the purchase will be automatically
accepted by Retail Demo Store.