Checkout by Amazon

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Checkout by Amazon

Post by euroluxantiques » Fri Mar 22, 2013 9:29 pm

Has anyone been able to get this to work? I spent time with an Amazon rep today trying to find my merchantid, access key, and secret key. They don't make it easy. At first, she tried to get me to put the Amazon token in. Then she showed me a merchant id, and I put that in. There are two difference access and secret keys. One under Intergration-->Access Key and the other under Integration-->MWS Access Key. It seems the Integration-->Access Key is the correct one, but Checkout by Amazon still doesn't work. If you are not logged in as a user the Amazon payment button does not seem to always work in the mini cart in the sidebar. It just does nothing. Other times, I get a message that says that I can't check out by Amazon because I am the registered seller. That might be correct if I were logged in, but I am not. If I make up a test account instead and just go through standard checkout and choose Amazon at the end, the "Place Order" button just clears the cart and doesn't go to Amazon. Has anyone else gotten this to work? Any suggestions, or should I just forget it? The Amazon rep was pretty clueless on helping me even find the correct access key and secret key and did not know the difference between merchant id and merchant token. She was even less help trying to troubleshoot this.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Tue Mar 26, 2013 9:12 am

There are two integrations available with Amazon, and you'll need both Access and Secret keys which are available from the Integration tab. Can you review the documentation and make sure that it's setup correctly within the merchant admin?

http://help.ablecommerce.com/mergedProj ... eckout.htm

Thanks
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: Checkout by Amazon

Post by euroluxantiques » Mon Sep 16, 2013 3:32 pm

We've tried again to set this up. Amazon is no help at all. We have followed the setup, gotten the Merchant ID, Secret and Access keys, and filled them in properly. When you choose Amazon Checkout on the website, it actually does talk to Amazon enough to get a list of shipping addresses from Amazon. However, their is no "Go" or "Submit" button or anything to go to the next step of Amazon checkout. Has anybody gotten this working? Google Checkout and PayPal are a breeze, but Amazon Checkout is crazy.

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: Checkout by Amazon

Post by euroluxantiques » Mon Sep 16, 2013 4:11 pm

It seems we can't see the shipping method dialog box. The Recalculate and Place Order buttons seem to be set to Hidden via in-line styles. I assume once a shipping method is selected, the buttons would then be displayed. However, we can't see the shipping methods, almost like Amazon isn't returning them via API or Able's API isn't sending them to Amazon to return??? I have the latest R5 Amazon modules installed and all have absolutely no custom coding.

User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Re: Checkout by Amazon

Post by triplw » Mon Sep 16, 2013 4:23 pm

Just a thought: have you tried the "add new Address" link? Maybe something about your stored address isn't working.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Tue Sep 17, 2013 3:23 am

Within the Seller Central, there should be a setting for Merchant URL. Please add the location to your IPN. It should be something like this -

http://www. your domain .com/AmazonIPN.ashx

Also, working in Sandbox mode is not useful. Here are the developer notes which explain in technical terms how this gateway works. It is not like the other gateways we support...

Checkout by Amazon:

This is similar to PayPal Express Checkout. When Amazon gateway is configured, a special CBA button will appear in the mini basket and also on the full basket page. If you want to initiate checkout using amazon, you click this button. Amazon will authenticate you via a popup window. Once you are authenticated, you will be taken our ~/Checkout/Amazon.aspx page. This is a page that will incorporate widgets provided by Amazon to let you complete the purchase. AbleCommerce is not given access to any of the Amazon data so initially purchases will come in with limited details. We will know the customer name and what they ordered but not much else.

Following the order Amazon will send out an IPN to notify the order is received. At this stage we will be given additional customer details like email address and street address. Our IPN processor locates the related order and updates the details.

Amazon will also send out IPN when the order is ready to be shipped. This is another way of saying that payment has been captured. Our processor must locate this IPN and update the related payment record accordingly.

The only other IPN Amazon will send is if an order is cancelled by the customer. Our processor must take this IPN and execute an order cancellation.

CBA does not support multiple shipping destinations. It does not support the use of gift certificate payments either. It should support the other kids of order adjustments, like quantity discounts, gift wrap charges, taxes, etc.

Some troubles with CBA are that Amazon does not issue IPNs for all the events we would want to know about. Amazon has no ability to let us manipulate an existing order from the AC side and due to limited IPN events we may not be able to automatically remain in sync with the state of orders in the Amazon interface. Finally, in sandbox mode Amazon will never issue the ready to ship IPN so it's impossible for us to test this unless we switch to live mode.

Please let us know if you make any progress.

Thanks
Katie
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: Checkout by Amazon

Post by euroluxantiques » Thu Sep 19, 2013 2:13 pm

Nope. Still not working. I have been on the phone with Amazon for HOURS, and they are totally no help at all. I have followed the instructions step-by-step here:

http://help.ablecommerce.com/mergedProj ... eckout.htm

I feel like this is actually not a complete set-up doc because it does not mention anywhere that I should put in your post above. I'm wondering what else the instructions are missing.

The first strange thing I notice is that on our website http://www.euroluxantiques.com, when I put an item in the basket and then try to use the Amazon payment link in the right sidebar, the button actually does not do anything. It will only work if I first choose PayPal and then go back to the page. Then, the Amazon button seems to work. Looking at the button in Firebug, it seems like it is just an image, rather than a link of any kind.

Once I get the button to work by first clicking on the PayPal button and going back to original page, I get the Amazon popup to login. That works. The next page I get is the Checkout/Amazon.aspx page, but it ONLY shows the Amazon Address Book, and you can choose the shipping address. The choice selected does show in the Shipping To: side of the box. However, the shipping method and payment method boxes do not appear and the "Place Order" button does not appear, as shown in the documentation above. In effect, the customer cannot choose anything after the shipping address and certainly cannot checkout.

I'm out of ideas.

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: Checkout by Amazon

Post by euroluxantiques » Thu Sep 19, 2013 2:14 pm

I did add http://www. your domain .com/AmazonIPN.ashx to our merchant url in Checkout Pipeline in Amazon, BTW.

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: Checkout by Amazon

Post by euroluxantiques » Thu Sep 19, 2013 2:20 pm

I'm not sure if this helps, but this is the error message that shows in the dashboard:

An error has occured at https://www.euroluxantiques.com/Checkou ... xxxxxxxxxx
Exception: Exception of type 'System.Web.HttpUnhandledException' was thrown. Stack Trace: at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequestWithNoAssert(HttpContext context) at System.Web.UI.Page.ProcessRequest(HttpContext context) at ASP.checkout_amazon_aspx.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) Inner Exception: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index Inner Exception Stack Trace: at System.ThrowHelper.ThrowArgumentOutOfRangeException() at CommerceBuilder.DomainModel.PersistableList`1.get_Item(Int32 index) at NHibernate.Collection.Generic.PersistentGenericBag`1.System.Collections.Generic.IList.get_Item(Int32 index) at AbleCommerce.Checkout.Amazon.RecalculateShippingButton_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.OnClick(EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Thu Sep 19, 2013 3:06 pm

Ok. I see what is going on. You have disabled shipping calculations, and this must be a requirement for Amazon Checkout to work. I happen to be working with another customer using Amazon, and I was testing both of your installs to see what the differences were. The button worked fine and produced the pop-up so I could login. My address book appeared, but for the next step, I should be able to select the shipping method. When the shipping method is selected, then the next step on the page is to select the payment method (stored in Amazon). After that, the Place Order button appears. If you add a shipping method, you should be able to test and see if it starts working.

You are correct in that the instructions on our help site are lacking the information about having to enter the Merchant URL. I'm sorry about that. We'll get it corrected as soon as possible.

Another strange little quirk with Amazon, is that you can't be using the same browser that you access the Seller Central with. I have my personal Amazon account that I use to test with, but I use a different browser so there's no conflict.

Please keep me updated!
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: Checkout by Amazon

Post by euroluxantiques » Sat Sep 21, 2013 8:38 am

The problem is that we do "free shipping" on everything in the store. Of course, the amount of shipping is buried in the price, so we do not need to calculate shipping, unless the customer wants faster domestic shipping or it is an international order. I do have UPS and USPS set up as integrated carriers, and I have the following methods set up:

Free methods included in price (ShipMethodTypeId=0), depending on the item:

Ground Free Shipping
Greyhound Bus Free Shipping
Vanline Free Shipping

Calculated upgrades (ShipMethodTypeId=4) for faster domestic shipping or international orders:

UPS Next Day Air®
UPS 2nd Day Air®
UPS Ground
UPS Worldwide Express(SM)
UPS Worldwide Expedited(SM)
UPS Standard
UPS WorldWide Express Plus(SM)
UPS Saver
USPS Global Express Guaranteed (GXG)
USPS Priority Mail
USPS Standard Post
USPS Priority Mail International Lg Pack
USPS Priority Mail International Sm Pack

This works fine on AbleCommerce itself, but what would I need to do to get Amazon to recognize a shipping method?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Sat Sep 21, 2013 2:08 pm

When I tested this the other day, Amazon checkout did not work. But today when I tested, the shipping method section, payment method section, and Place order button appeared. I was testing with the product "Vintage Italian Capodimonte Pitcher Flower Vase Roses".
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: Checkout by Amazon

Post by euroluxantiques » Mon Sep 30, 2013 2:26 pm

Thanks, Katie. With you finding one that works, I think I identified the problem. I found a bunch of products in ac_Products with ShippableId=0, which is the default value assigned in the table. We were not passing the value "1" when we were loading products via our product loader. I updated the default value to "1" and corrected the items with "0" value, and it seems to be working more consistently. I'm thinking maybe Able might want to reconsider that default value for ShippableId. It seems that the ShippableId=0 value makes no difference to Google Checkout or PayPal, BTW.

However, I still have a problem with not being able to click the Amazon checkout button until I have first clicked on PayPal and then navigated back to the page. It's almost like it doesn't really load until you refresh the page again. It seems to do it in all browsers.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Mon Sep 30, 2013 4:01 pm

I'm glad to see that you're making progress. On making products shippable by default? When you add the product through the admin, it is shippable by default. So, I'm not sure what you mean by changing the default value to 1.

I tested your Amazon button again, and it consistently works fine for me. The only thing that I can think of is that it is trying to load your merchant login instead of a personal one. I had this trouble once awhile back, so I had to be careful to use one browser for the merchant login and the other for the personal login. Do you login to seller central with the same browser you are testing AC with?
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Mon Sep 30, 2013 4:52 pm

What build of AC Gold are you using? I have a patch that you'll need after you go live and are taking payments.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Re: Checkout by Amazon

Post by triplw » Sun Oct 06, 2013 1:57 pm

I thought I had this working until I got an angry call from my client. Customers are being charged sales tax when they shouldn't be. I think it's new customers that are clicking on the CBA sidebar button before creating an account. They're using R5 build 5731. I see on R6 the fixed issue [AC8-2113] - Amazon checkout not using correct tax nexus. Is that the fix for the problem? If so can I apply just that to their R5 build before doing the whole upgrade?

Another question: I set up simple pay because they use authorize.net for credit card processing. They aren't doing any kind of Amazon Store or Fulfillment at this time.They are saying that Amazon is requiring them to enter the shipment tracking number in the seller central dashboard before they can get the money for the orders. Is this right? I thought the simple pay solution would work like PayPal and only deal with payments. Does anyone know if tracking numbers are really required?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Mon Oct 07, 2013 8:35 am

Yes, I can get you a patch for the tax issue. I will post a link here today.

As far as the Amazon tracking number requirement? I'm not sure, because we develop these integrations in sandbox mode, so there are some things that we can't test for. Is it possible for you to enter a tracking number and see if this allows you to process the payment?
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Re: Checkout by Amazon

Post by triplw » Mon Oct 07, 2013 9:50 am

Thanks Katie, I'll look for your patch.

My client did upload the tracking and got their payments but thought it was too time consuming. Amazon has a template to do batch uploads and it says that the only required fields are their order-id and ship-date unless it's a partial shipment. For partial shipments they want the product item-id (the number Amazon assigns to your products) for each shipments. I am right that the item-id from Amazon isn't passed back and saved in the AC database?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Mon Oct 07, 2013 11:02 am

Hi,

Here is a link to the patch for Gold R5 - ftp://ftp.ablecommerce.com/patches/Amaz ... GoldR5.zip

Issues fixed are:

1. Taxes were being calculated on the warehouse instead of customer's shipping address. (/bin/CommerceBuilder.dll)
2. Incorrect IPN name caused orders in AC not to change automatically to paid status. (/bin/CommerceBuilder.Amazon.dll)
3. Quantity Discounts on an order were not being correctly calculated on multiple items. (/bin/CommerceBuilder.Amazon.dll)

For anyone who needs this patched for R6 - ftp://ftp.ablecommerce.com/patches/Amaz ... GoldR6.zip

Only items 2. and 3. from above are applicable for R6.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Mon Oct 07, 2013 11:11 am

For partial shipments they want the product item-id (the number Amazon assigns to your products) for each shipments. I am right that the item-id from Amazon isn't passed back and saved in the AC database?
I very much doubt that we are storing the Amazon product Id, or even know about it. The interaction between Amazon and AbleCommerce is very limited. We are receiving the IPN that let's us know if the order has been paid or canceled. This gateway is not like Paypal where the orders on both sides are kept in sync no matter where you decide to capture payment or ship the item. The Amazon API is limited. We are working with what we can, and there is virtually no developer support.
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

euroluxantiques
Commander (CMDR)
Commander (CMDR)
Posts: 118
Joined: Sat Dec 20, 2008 11:27 pm

Re: Checkout by Amazon

Post by euroluxantiques » Thu Oct 10, 2013 8:51 am

You've got that right. Amazon support is horrible. I know more about their system than most of the folks I've spoken with over there, and that's not saying much. Katie, is that patch you listed above the one you mentioned for a few posts previous? I am running build VERSION: 7.0.86.6169. Thanks.

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Thu Oct 10, 2013 9:20 am

Hi,

The patch I linked to is relatively new. The one for R6 includes the fix for quantity discounts and IPN. If you're unsure about whether you have the most recent DLL, you can download the file and compare the versions of the DLL by clicking on the file properties. For R6 it should be CommerceBuilder.Amazon.dll version 7.86.5024.22590

Let me know if you have any questions, and good luck!

Oh, and here is a link to the Hot Patches page for Gold:

http://help.ablecommerce.com/upgrades/a ... s_gold.htm
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Re: Checkout by Amazon

Post by triplw » Tue Oct 29, 2013 6:14 am

I applied the patch for Gold R5 but the tax issue isn't resolved. New customers without an account that have not entered their address in the AC store are erroneously being charged sales tax for the state that the warehouse is in. The site isn't using the MiniBasket control and "Pay with Amazon" button is being accessed on the Basket.aspx page.

Image

Is there a way to resolve this?

User avatar
Katie
AbleCommerce Admin
AbleCommerce Admin
Posts: 2651
Joined: Tue Dec 02, 2003 1:54 am
Contact:

Re: Checkout by Amazon

Post by Katie » Tue Oct 29, 2013 5:18 pm

What version of CommerceBuilder.dll do you have? I have seen the patch work, so maybe the update didn't take?
Thank you for choosing AbleCommerce!

http://help.ablecommerce.com - product support
http://wiki.ablecommerce.com - developer support

User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Re: Checkout by Amazon

Post by triplw » Tue Oct 29, 2013 7:09 pm

CommerceBuilder: 7.85.4938.5888

Post Reply