Skip to content
Amazon Pay - Express Demo
Branch: master
Clone or download
Latest commit 922dda8 Jun 6, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Adding standard files Mar 13, 2018
csharp Add cancel return url parameter to cSharp example Feb 18, 2016
helper Create Jan 19, 2016
php error due to https jQuery, missing sellerOrderId Apr 26, 2018
python Fixed simple syntax error and copy/paste error in the python example. May 5, 2016
ruby Add cancel return url parameter to ruby sample Feb 18, 2016
.gitignore Initial commit. Aug 6, 2015 Adding standard files Mar 13, 2018 Adding standard files Mar 13, 2018
LICENSE Initial commit. Aug 6, 2015
NOTICE.txt Initial commit. Aug 6, 2015 Update Jan 10, 2018


Have a simple payments need? Express Integration is the quickest way to enable Amazon Pay on your web and mobile sites. For simple purchases where you already know the tax and shipping costs, you can integrate in minutes by using the Express Integration, which adds simple HTML and JavaScript snippets. The demos included in this repository show how to perform an Express Integration in various languages (C#, Java, PHP, Ruby, Python).

These examples are suitable for the following scenarios:
  • If your parameters will change dynamically on the checkout page and cannot be preloaded.
  • If you have a multi-item shopping cart.
  • If your store contains multiple items wherein using static buttons for each item is not feasible.
The demos follow this pattern:
  • A simple cart page is displayed with Item name and Quantity.
  • The dynamic parameters are passed to the backend and a signature is calculated.
  • The signature is appended to a data-structure along with the other parameters and encoded in JSON.
  • The JSON-encoded string is then passed through the Javascript in the frontend.
  • The checkout process begins once the signature and the other required input parameters are verified.
For language-specific installation and configuration instructions, please see the readme file in the subdirectory of the language of your choice. To run the demos you will also need to register with Amazon Pay.

Dynamic Parameters

1. amount

The amount of the payment.

2. sellerNote

The message that will appear in the checkout pages (maximum length of 1024 characters).

3. sellerOrderId

The seller-specified identifier of this order. This is displayed in emails to your buyers and in the transaction history on the Amazon Payments website.
We recommend that you use the following characters only: lowercase a-z, uppercase A-Z, numbers 0-9, dash (-), or underscore (_).
Max length: 50 characters

4. currencyCode

The currency to use to charge the buyer (eg - 'USD'). This defaults to currency for your region.

Endpoint URL

1.Sandbox Endpoint

2. Production Endpoint

You can’t perform that action at this time.