Are you looking for test card numbers?

Would you like to contact support?

Payment-method icon

Amazon Pay

Learn how to accept Amazon Pay payments.

This is the Amazon Pay logo  Read more

Check out Amazon Pay's website to learn more about this payment method.

Enabled for hundreds of millions of active Amazon customers globally, Amazon Pay provides shoppers a familiar, fast, and secure payment experience using information already stored in their Amazon account.

Payment type Payment flow Countries Currencies Recurring Refunds Partial refunds Separate
Partial captures Chargebacks
Wallet Direct International Multiple -x- -white_check_mark- -white_check_mark- -x- -white_check_mark- -white_check_mark-


You can implement Amazon Pay if your business is located in any of the following:

  • Austria
  • Belgium
  • Cyprus
  • Denmark
  • France
  • Germany
  • Hungary
  • Ireland
  • Italy
  • Luxembourg
  • Netherlands
  • Portugal
  • Spain
  • Sweden
  • Switzerland
  • United Kingdom

For more information on Amazon Pay availability, see the list of Supported browsers.

Before you begin

These instructions explain how to add Amazon Pay to your existing API-only integration. The API-only integration works the same way for all payment methods. If you haven't done this integration yet, refer to our API-only integration guide.

Before starting your Amazon Pay integration:

  1. Make sure that you have set up your back end implementation.
  2. Add Amazon Pay in your test Customer Area.
  3. Register with Amazon for an Amazon Pay account.
  4. Follow the steps on Amazon Pay's documentation to integrate with Amazon Pay.

Build your payment form for Amazon Pay

Show Amazon Pay as an available payment method in countries where Amazon Pay is supported. When the shopper selects Amazon Pay, they are presented with the payment sheet.

We provide logos for Amazon Pay which you can use on your payment form. For more information, refer to Downloading logos.

You can also submit a /paymentMethods request specifying:

  • countryCode: Country where Amazon Pay is supported. For example, NL.
  • amount.currency: You can only accept payments in the currency that you used when you registered with Amazon Pay. For example, EUR.

In the response, you receive paymentMethod.type: amazonpay.

/paymentMethods response
    "details": [
            "key": "amazonPayToken",
            "type": "text"
    "name": "Amazon Pay",
    "supportsRecurring": false,
    "type": "amazonpay"

Make a payment

Refer to Amazon Pay's documentation to integrate with Amazon Pay.

  1. Start a checkout session and follow all subsequent steps as described in Amazon Pay’s documentation.
  2. Make a Get Checkout Session call to get the  amazonPayToken from the response.
  3. From your server, make a /payments request, providing:

    • paymentMethod.type: amazonpay
    • paymentMethod.amazonPayToken: This is the amazonPayToken that you obtained from the Get Checkout Session response.
curl \
-H "x-API-key: YOUR_X-API-KEY" \
-H "content-type: application/json" \
-d '{
  "amount": {
    "currency": "EUR",
    "value": 1000
  "reference": "YOUR_ORDER_NUMBER",
  "paymentMethod": {
    "type": "amazonpay",
  "returnUrl": "",
  "merchantAccount": "YOUR_MERCHANT_ACCOUNT"
# Set your X-API-KEY with the API key from the Customer Area.
adyen =
adyen.api_key = "YOUR_X-API-KEY"

response = adyen.checkout.payments({
  :amount => {
    :currency => "EUR",
    :value => 1000
  :reference => "YOUR_ORDER_NUMBER",
  :paymentMethod => {
    :type => "amazonpay",
    :amazonPayToken => "160583287597AMZN"
  :returnUrl => "",
  :merchantAccount => "YOUR_MERCHANT_ACCOUNT"
// Set your X-API-KEY with the API key from the Customer Area.
$client = new \Adyen\Client();
$service = new \Adyen\Service\Checkout($client);

$params = array(
  "amount" => array(
    "currency" => "EUR",
    "value" => 1000
  "reference" => "YOUR_ORDER_NUMBER",
  "paymentMethod" => array(
    "type" => "amazonpay",
    "amazonPayToken" => "160583287597AMZN"
  "returnUrl" => "",
  "merchantAccount" => "YOUR_MERCHANT_ACCOUNT"
$result = $service->payments($params);
#Set your X-API-KEY with the API key from the Customer Area.
adyen = Adyen.Adyen()
adyen.client.xapikey = 'YOUR_X-API-KEY'

result = adyen.checkout.payments({
   'amount': {
      'value': 1000,
      'currency': 'EUR'
   'reference': 'YOUR_ORDER_NUMBER',
   'paymentMethod': {
      'type': 'amazonpay',
      'amazonPayToken': '160583287597AMZN'
   'returnUrl': '',
   'merchantAccount': 'YOUR_MERCHANT_ACCOUNT'
const {Client, Config, CheckoutAPI} = require('@adyen/api-library');
const config = new Config();
// Set your X-API-KEY with the API key from the Customer Area.
config.apiKey = '[API_KEY]';
config.merchantAccount = '[YOUR_MERCHANT_ACCOUNT]';
const client = new Client({ config });
const checkout = new CheckoutAPI(client);
    amount: { currency: "EUR", value: 1000 },
    paymentMethod: {
        type: 'amazonpay',
        amazonPayToken: '160583287597AMZN'
    reference: "YOUR_ORDER_NUMBER",
    merchantAccount: config.merchantAccount,
    returnUrl: "adyencheckout://"
}).then(res => res);

The /payments response contains:

  • pspReference: Adyen's unique reference for the payment.
  • resultCode: Authorised
/payments response
   "pspReference": "881539337151149C",
   "resultCode": "Authorised"

You can also enable 3D Secure as a part of the checkout process. However, the 3D Secure flow is handled outside of the Amazon Pay checkout flow. If the shopper used a card that requires 3D Secure authentication before the payment can be completed, you receive an action.type redirect in the response.

/payments response for a card that requires 3D Secure authentication
  1. If you received an action object, use the information in this object to redirect the shopper to another website to complete the 3D Secure authentication. Otherwise, proceed to presenting the payment result to your shopper.

Cards with 3D Secure: Handle the redirect

If the shopper used a card that requires 3D Secure authentication, you need to redirect the shopper to another website where they complete the authentication.

  1. To complete the payment, redirect the shopper to the action.url returned in the /payments response.
    When using the HTTP GET method:
    For security reasons, when displaying the redirect in the app, we recommend that you use SFSafariViewController for iOS or Chrome Custom Tabs for Android, instead of WebView objects. Also refer to the security best practices for WebView.
  2. After the shopper is redirected back to your website or app, check the payment result by making a /payments/details request, specifying:
    • paymentData: Value you received in the /payments response.
    • details: Object that contains the URL-decoded values of the parameters that were returned when the shopper was redirected back to your website or app. For example, payload or redirectResult.
    The parameters can vary based on the payment method configuration. To check which parameters you should submit, always check the details array from the /payments response.
    /payments/details request
           "{hint:Verify the parameters from /payments response}payload{/hint}":"Ab02b4c0!BQABAgCW5sxB4e/=="
    You receive a response containing:
    • resultCode: Use this to present the result to your shopper.
    • pspReference: Our unique identifier for the transaction.
    /payments/details response
       "resultCode": "Authorised",
       "pspReference": "88154795347618C"

Present the payment result

Use the resultCode that you received in the /payments or /payments/details response to present the payment result to your shopper.

The resultCode values you can receive for Amazon Pay are:

resultCode Description Action to take
Authorised The payment was successful. Inform the shopper that the payment has been successful.
If you are using manual capture, you also need to capture the payment.
Cancelled The shopper cancelled the payment. Ask the shopper whether they want to continue with the order, or ask them to select a different payment method.
Error There was an error when the payment was being processed. For more information, check the refusalReason field. Inform the shopper that there was an error processing their payment.
Refused The payment was refused. For more information, check the refusalReason field. Redirect the shopper back to the payment page and ask them to try the payment again using a different card. For more information on how to do this, check Amazon Pay's documentation.
Additional resultCode values are possible in case of the 3D Secure authentication flow. For more information, refer to Result codes.

Test and go live

To test Amazon Pay, you must follow the Amazon Pay testing guidelines.
You can check the status of an Amazon Pay test payment in your Customer Area > Transactions > Payments.

Before you can accept live Amazon Pay payments, you need to submit a request for Amazon Pay in your live Customer Area.

For more information, see Amazon Pay's test environment setup.

See also