Amazon Pay

Amazon Pay is a service that lets your customers use the payment methods already associated with their Amazon account to make payments for goods or services. To make a payment, they can use any of the payment methods on file in their Amazon account.

Summary

The necessary operations to integrate Amazon Pay are:

Setup:

Sign in on Amazon Pay SellerCentral

Configure Amazon Pay

Generate a MWS Token

Use Amazon Pay credentials to set up your Gestpay account, first in sandbox then in production

Integrate Amazon Pay button in the list of the available payment methods on your website, to agree with Amazon

Execute the payment:

Execute the encryption of the data

redirect the user to the payment page

Read of the result and decrypt of the response

If you’re using Amazon Pay with the shipping address selection mode, you have to read the shipping and billing address by calling CallReadTrxS2S

3. Generate MWS Token

The MWS Token is needed to delegate Gestpay to operate on your behalf.

To generate the MWS Token:

From your seller account dashboard, click on the Settings menu and then User Permissions.

On this page you’ll see all MWS developer permissions. Click on Authorise a Developer button to generate a new one:

In the next window, set this data:

property

value

Developer’s Name

Gestpay

Developer ID

5535-2867-1582

Once you’ve saved the developer info in Amazon, you’ll see the MWS token in the table “Amazon MWS Developer Permissions” on the previous page (see the second step).

4. Gestpay Configuration

In Gestpay backoffice, insert Amazon Pay credentials received when signed in:

The Show Address Widget checkbox allows the selection of the address from Amazon Pay during the payment by showing the widget; This setting can be disabled if the merchant sells non-shippable items (e.g. non physical goods).

Amazon Pay payment flow with the Payment Page

To use Amazon Pay:

start the payment process by calling Encrypt with mandatory data

redirect the user to the payment page, passing the CryptDecryptString received in response.

Gestpay will call the merchant’ Positive (or Negative) Response URL to acknowledge the status of the transaction; Gestpay will also call the merchant’ Server-to-Server URL. The merchant has to decrypt the parameters and read the transaction status.