Amazon

A step-by-step guide for setting up your Amazon payments services integration in the Payrails portal.

📘

Who should use this guide

This guide is intended for merchants who:

  • Use Payrails as a payment orchestrator
  • Use Amazon Payment Service (APS) for payments
  • Are approved to process raw card data

_We use a server-to-server integration with Amazon, so your account must be enabled to process raw card data. If this isn’t enabled, payments won’t work in production. Please contact your Amazon account manager or support team to activate it.


Create and configure an Amazon Payment Service integration in Payrails

  1. Log in to the Payrails portal.
  2. Go to SettingsIntegrations.
  3. Select Add instance to create a new integration configuration.
  4. Select the workspaces where this integration should be available.

About workspaces
Workspaces determine where this integration can be used. They allow you to isolate provider setups by region or business line, or share a single configuration across multiple environments.


Step 1: Choose the integration type

  • Select Payment and continue to the next step.
A screenshot showing the integration type selection form.

Step 2: Choose the provider

  • Select Amazon Payment Service and continue to the next step.
A screenshot showing the Amazon integration selected.

Step 3: Configure your Amazon Payment Service integration

📋

What you’ll need from Amazon Payment Service

Before you begin, make sure you have access to:

  • APS Merchant identifier
  • APS Access code
  • APS SHA request phrase and SHA response phrase (SHA256)

Sign in to your Amazon Payment Service dashboard to complete this step.


Integration instance name

An integration instance is a specific payment provider setup in Payrails. You can create multiple instances for each provider based on region, currency, or business needs. Choose a clear, consistent name, as it is used in routing.

In Payrails

  • Enter a clear and descriptive Instance name.
A screenshot showing the Payrails integration instance name field.

Account details

In Amazon

  1. Sign in to the Amazon Payment Service (APS) merchant dashboard.
  2. Navigate to Merchant managementIntegration settingsSecurity settings.
  3. Copy the Merchant identifier.

In Payrails

  • Paste the Merchant identifier into the Merchant ID field.
A screenshot showing the Klarna account fields.

Credentials

🔑

Start by testing your integration using Amazon's sandbox credentials. When you finish testing, switch to production credentials and go live.

Make sure the credentials you enter in Payrails match the environment you are configuring (test or live).

In Amazon

  1. On Security settings, copy the Access code value.

In Payrails

  • Paste the value into the Access code field.

In Amazon

  1. Select SHA256.
  2. Copy the SHA Request phrase and SHA Response phrase.

In Payrails

  • Paste the values into the corresponding SHA Request phrase and SHA Response phrase fields.

Payment methods

In Payrails

  • Select the payment methods that should be enabled.
A screenshot showing the payment methods available on Amazon Payment Service (APS).

Webhook (Direct Transaction Feedback)

🔔

Payrails uses Amazon Payment Service Direct Transaction Feedback to receive asynchronous payment status updates.

Configure the feedback URL in the same environment (test or production) as your Payrails integration.

In Amazon

  1. Navigate to Merchant managementIntegration settingsTechnical settings.
  2. Select Trusted channel.

Alternatively, you may be asked to select your activated integration and choose Hosted Checkout, Custom Integration, or Mobile SDK.

In Payrails

  • Copy the Notification URL.
A screenshot showing the Payrails integration instance name field.

In Amazon

  1. Paste the Payrails Notification URL into the Direct Transaction Feedback URL field.
  2. Choose Yes for the Downgrade CVV 3DS option.
  3. Select Save changes.

Enable the integration

In Payrails

  • Select Save account to enable the integration.

The Enabled status confirms that the Amazon Payment Service integration is active and available for routing.

A screenshot showing the enabled Klarna integration.

Your Amazon Payment Service integration is now ready to process payments in the selected environment.


Next steps

  1. Run a test payment using an Amazon Payment Service test card.
  2. Verify that:
    • The payment appears in Amazon Payment Service.
    • The payment status updates correctly in Payrails.
  3. Once verified in test mode, repeat the setup in live mode.

→ Continue to: Test a payment