Gracias por tu visita. Esta página solo está disponible en inglés.
 Step 3. Specify the parameter values | Amazon Pay

Step 3. Specify the parameter values

After the Amazon Pay button has been selected, you must direct the buyer to the checkout page hosted by Amazon Pay. The URL should contain all data necessary to complete the flow and must be signed with your MWS secret key to ensure that data that has been tampered with can be detected and handled appropriately.

Parameter Equivalent HTML interface parameter Required Need to sign Description
sellerId
(data-ap-seller-id)
Yes Yes This is your unique Seller ID. This is the same as your Merchant ID that appears in Seller Central. You can view your Merchant ID by clicking Settings and then Integration Settings.

Example: ADEMO3053M41F7EXAMPLE
amount
(data-ap-amount)
Yes Yes The amount of the payment.

Example: 25.50
returnURL
(data-ap-return-url)
Yes Yes The URL that you want Amazon Pay to return responses to. This must include the scheme name (either HTTP or HTTPS).

Example: https://www.merchant.com/merchantResponseHandler

If the cancelReturnURL parameter is provided, only successful responses will be returned to this URL.
cancelReturnURL
(data-ap-cancel-return-url)
No Yes The URL that you want Amazon Pay to return responses to in the event that the buyer abandons the checkout or the transaction fails. This must include the scheme name (either HTTP or HTTPS).

Example: https://www.example.com/merchantCancelURL
accessKey
(data-ap-access-key)
Yes Yes Your Amazon MWS public access key.

Example: ADEMOBRU3PYWWEXAMPLE
signature
(data-ap-signature)
Yes No The signature used to sign your request. The signature ensures that the button parameters have not been tampered with. For more information about how to generate the signature, see Step 5: Generate a signature for the payment request.
lwaClientId
(data-ap-lwa-client-id)
Yes Yes The Login with Amazon Client ID of your application.

Example: amzn1.application-oa2-client.demoa234d9024af28f4f6f8078example
currencyCode
(data-ap-currency-code)
No Yes * The currency to use for charging the buyer.

Default: current seller region

Example: USD
sellerNote

(data-ap-note)
No Yes * The message that will appear in the checkout pages.
Max length: 1024 characters
sellerOrderId
(data-ap-seller-order-id)
No Yes * The seller-specified identifier for this order. This is shown in buyer emails and in the transaction history on the Amazon Pay website.

We recommend that you use the following characters only:
  • lowercase a-z
  • uppercase A-Z
  • numbers 0-9
  • dash (-)
  • underscore (_)
Max length: 50 characters
shippingAddressRequired
(data-ap-shipping-address-required)
No Yes * A flag indicating whether the buyer should choose a shipping address. Note: Because this is not a Boolean, enter these values enclosed in quotation marks.

Default: true

Valid values:
  • true
  • false
paymentAction
(data-ap-payment-action)
No Yes * Specifies what happens when a buyer clicks Pay Now at the end of the checkout flow.

Acceptable values:
  • None--Results in Set and Confirm actions only. (You need to initiate authorize and capture actions separately using API requests.)
  • Authorize--Reserves a specified amount against the payment method(s) stored in the order reference.
  • AuthorizeAndCapture--Reserves a specified amount against the payment method(s) stored in the order reference and transfers funds from an authorized payment instrument.
Default: None

*These parameters are required when signing only if you designated a value other than the default.

The following parameters are available in the HTML interface only. These parameters do not require signing.

HTML parameter Required Need to sign Description
data-ap-widget-type Yes No The type of widget to include on the page.

Valid value: expressPaymentButton