Jump to content
Latest News: (loading..)
SpongeMaximus

Checkout by Amazon migration from SOAP to MWS

Recommended Posts

Having searched high and low for a sign that even a single person has successfully updated their Checkout by Amazon payment module to use the new Amazon Merchant Web Services (MWS) protocol (which will become mandatory on October 8th when they shut off SOAP support), I thought I'd just ask it here: Has anyone been able to do it?

 

I've searched these forums, the osCMax forums, and even the Zen Cart forums, and have only been able to turn up a small handful of people expressing variations of the same concern: How will the October 8th switch to MWS affect me? Not a single one of them has gotten an answer. I'm writing this (embarrassingly long) post in the hope of maybe discovering a kindred soul.

 

Right now, customers on my osC site can choose Checkout By Amazon as a payment method, before they even create an account or log in to my site. If they choose CBA, they are taken to an Amazon payment page where they enter their Amazon login info, review the details of their order, and confirm. After that, they are taken back to my osC checkout_success.php page. Their customer account and address book entries are automatically created on my site, and their order is created in my database and viewable from my /admin/orders.php page. I can process, ship, or cancel the order from within my site's backend, and the information (shipping status, tracking number, etc.) is transmitted to Amazon. In other words, it all works as it should, and it has been for months.

 

Then I started getting the e-mails from Amazon that say:

 

Hello from Checkout by Amazon:

 

According to our records you have used SOAP (Simple Object Access Protocol) to manage your Checkout by Amazon orders within the last 30 days. This is a follow-up to messages that have been sent to you by the Amazon MWS team starting April of 2011 to remind you that Amazon plans to discontinue support of SOAP on October 8, 2012. This e-mail contains important information to help you implement our latest technology that will replace SOAP.

 

Amazon Marketplace Web Service (Amazon MWS) is replacing SOAP for sellers and developers who have integrated with Checkout by Amazon. While we will continue to support the current state of SOAP until October 8, 2012, after October 8th, 2012, SOAP operations will be discontinued.

 

To the extent that I've been able to dive into this, it looks as though, at the very least, come October 8th I will no longer be able to update/process/ship/cancel orders from within my site's backend, as those are all SOAP operations. I tried to narrow down exactly where the SOAP operations were being performed, and I did a little test in which I commented out a small section in catalog/checkout_by_amazon/library/merchantAtAPIs/lib/amazon/amazon_merchant_at_soap_client.php. The section I commented out was:

 

// Parse the WSDL and get the client
  $this->client = new SOAP_Client(WSDLPATH, true, false, $proxy, false);	

  if (PEAR::isError($this->client)) {
	 $this->error = "Error: " . $this->client->getMessage();
	 return false;
  }

 

I left it commented out for a short time, and it seemed like Checkout By Amazon orders could still come through to my site and appear along with the rest of the orders in admin/orders.php. However, when I attempted to cancel out a test order I had placed using CBA during this time, the process failed. As soon as I uncommented the section above and tried again, it worked.

 

The bottom line is, I don't know where to go from here. Amazon themselves seemed to create and support the osCommerce Checkout By Amazon payment mod back in 2009-ish (the one found in the Contributions section of addons dot oscommerce dot com), but from what I can tell (and I've searched endlessly), they no longer do, and have virtually nothing to say on the topic of the upcoming switch to MWS as it pertains to the osCommerce mod. Attempts to get help from Amazon themselves have beem mostly futile-- one day their answer is that we don't have to do anything and the CBA mod will continue to function normally (nothing seems to support this) and the next day they go back to insisting that we're using SOAP operations and we have to update by October 8th or everything will stop working.

 

And perhaps most maddeningly of all, I've only been able to find very few people in the same situation-- people who have the CBA mod working right now the way it should, and who are concerned about the October 8th switch to MWS. And they haven't gotten any answers, either. So are there really fewer than half a dozen people in the world who run a shop that uses osC/osCMax/ZenCart and accepts Checkout By Amazon payments, or are there a lot more but they just don't know or care about the switch to MWS, or have I lost my mind and this really isn't as big a deal as I'm thinking it is? :blink: That last one is certainly a possibility.

Share this post


Link to post
Share on other sites

For what it's worth, and in case anyone else as confused as I was stumbles across this, it looks like the "Checkout by Amazon UK and DE" contribution (most recent version, uploaded September 6th 2012) DOES use the MWS operations, and with some tweaking (especially to the includes/modules/amazon_payment/inline_config.php file) it will work with a US-based site. I'm working with the version for osC 2.2, found here. From what I can tell, it's a lot more streamlined than the no longer supported 2009 Checkout By Amazon contrib-- it doesn't create as many tables in the database, and it still allows you to manage your CBA orders from within your osC orders.php page. Installation was easy thanks to the detailed instructions provided, and with some relatively minor modifications to the way it displays my store's checkout_shipping and checkout_confirmation pages, it will be perfect. A huge and heartfelt thanks to Holbi (DataLink UK Ltd.), the developer(s)! :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×