Seller Account | Community Guidelines | Seller Support Blog | Help


Amazon Seller Community » Amazon Payments forums » Merchant and Developer Announcements

Thread: Troubleshooting Signature Issues with Checkout by Amazon

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 0 - Pages: 1 Threads: [ Previous | Next ]
cbateam

Click to report this message to  Administrator

Report

Posts: 96
From: Seattle, WA USA
Registered: 3/12/08
Troubleshooting Signature Issues with Checkout by Amazon
Posted: May 18, 2009 2:42 PM

There are few common problems with signing carts for Checkout by Amazon, typically involving one of these issues:

Using the wrong AWS Access Keys

If using XML, signing and sending the wrong content

If using HTML, sending the wrong content, incorrectly encoding the text values, and incorrectly sorting the fields

Steps for Resolution with Access-Key--related Issues
1. Use your Checkout by Amazon-based AWS Access Key ID and Secret Access Key
You might have different AWS keys because you have accounts for other purposes, but when you build Checkout by Amazon solutions, be sure you use the AWS key associated with your Checkout by Amazon account.

Here's how to get your Checkout by Amazon AWS keys:

a. Log in to Seller Central.

b. Click the Integration tab, click Access Key, and then get your keys. Be sure you use the AWS keys you get in Seller Central--they are assigned to your Checkout by Amazon account.

2. Use your AWS Secret Access Key to sign the cart, and send your AWS Access Key ID (as aws_access_key_id) along with your cart. (Remember, don't send your Secret Access Key: only you and those you trust should know this key value.)

For more information on getting and using your Access Key ID and Secret Access Key, including when and how to use them, please refer to the Integration Guide (PDF).

Steps for Resolution with Signature-related Issues
1.For XML-based buttons, sign the code as-is
If you are using XML-based buttons, be sure you use your AWS Access Key ID to sign the XML as-is; that is, sign the XML object exactly as you send to us. Don't add or remove content

2, For HTML-based buttons, include all fields, sort, and then sign your code
If you are using HTML-based buttons, be sure you do the following:

a. Include all your input fields when you concatenate them in the string to be sorted.

b. URL-encode each field included in the string before you calculate the signature; that is, if you have a Title field with spaces, be sure you URL-encode the field value before you concatenate it into the string.

c. Sort all your input fields alphabetically purely by field name.

Here's an example of how to perform these steps when you send an HTML-based cart. Note that this example shows just a few fields--your actual cart will contain more:

...
<input name="item_title_1" value="The 10% Solution">
<input name="item_description_1" value="A Sherlock Holmes Remembrance">
...
<input name="item_title_2" value="The Great Gatsby">
<input name="item_description_2" value="A novel of the 20s">
...


a. Be sure you include all input fields.

b. URL-encode the values for every input field:

item_title_1="The 10% Solution"

becomes

item_title_1=The%2010%25%20Solution



c. Sort all included fields by field name and then concatenate the resulting values:
...&item_description_1=A%20Sherlock%20Holmes%20Remembrance&item_description_2=A%20novel%20of%20the%2020s
& item_title_1=The%2010%25%20Solution&...

Note
If you have more than one item in the cart, you still sort the values alphabetically, so that if you have three descriptions and three titles, you would have item_description_1, item_item_description_2, and item_item_description_3 before item_title_1.

Legend
Amazonian
Helpful Answer
Correct Answer






Conditions of Use | Privacy Notice © 1996-2009, Amazon.com, Inc. or its affiliates