Jump to content


Corporate Sponsors


Latest News: (loading..)

Checkout by Amazon for osCommerce Support Thread


  • You cannot reply to this topic
41 replies to this topic

#21 drewg123

  • Community Member
  • 1 posts
  • Real Name:Drew

Posted 12 September 2009, 22:01

What exactly is the checkout supposed to look like?

I set up an account and installed the modules.

All I see is a "Checkout with Amazon" button on the login page of the shopping cart.

But when I go to the Payment info page I do not see the Amazon option. Only my paypal and 2checkout options.

Is ther supposed to be an amazon option on the Payment page? I never see a button or option except on the login page or my cart contents page.

#22 rgvsean

  • Community Member
  • 88 posts
  • Real Name:Sean

Posted 20 September 2009, 08:06

Normally when you install a payment module you then have to log into admin and "Install" it or activate it there too.

#23 WIBFAB

  • Community Member
  • 5 posts
  • Real Name:Christa Shogren

Posted 28 September 2009, 20:45

View PostAmazon Payments Team, on Mar 4 2009, 05:21 PM, said:

This module adds Checkout by Amazon as a checkout option on your store, providing your customers with the same checkout experience available on Amazon.com.

Features of the module:
  • Customers can place orders using the same information available in their Amazon account. Amazon 1-Click® support is included
  • You can manage orders placed through Checkout by Amazon in the osCommerce admin UI
  • Shipping calculations can be done using flat rate, per item, table rate, zone rates and dynamic shipping carrier rates from UPS, USPS and FedEx
  • Tax calculations can be done using osCommerce tax settings
Please post any bugs or errors you see while using it so that they can be fixed. Feedback is welcome.


Does the shipping portion of this module allow for a weight/size based shipping? We ship large items that need to be calcualted this way. If it does not, will it work with UPS XML?

#24 natashome

  • Community Member
  • 197 posts
  • Real Name:natashome

Posted 20 October 2009, 08:03

I have installed this on Rc2.2 on a PHP5 linux host.
Here are the admin errors i get on Admin-Modules-Shipping Modules-Amazon... when i try to click install:

Fatal error: Call to undefined function tep_cfg_select_option_amazon_module_payment_checkoutbyamazon_shipping_carrier() in /home/content/..../admin/modules.php(215) : eval()'d code on line 1

This is on Admin-Modules-Payment Modules

1054 - Unknown column 'downloads_flag' in 'field list'

insert ignore into orders_status (orders_status_id, language_id, orders_status_name, public_flag, downloads_flag) values ('1003', '1', 'Amazon Cancelled', '1', '1')

[TEP STOP]

Any help please?
Thanks

#25 MrE03

  • Community Member
  • 88 posts
  • Real Name:jb

Posted 27 October 2009, 03:47

am i missing a step, because the shipping information to retrieve through oscommerce is not working. I would like to try and use the ups xml and fedex contribution thats installed on my site, however nothing is working.

thanks

#26 totalnumpty

  • Community Member
  • 242 posts
  • Real Name:Gaz
  • Gender:Male
  • Location:U.K.

Posted 29 October 2009, 07:18

So when is the rest of the world going to get it?

(just as importantly, when will the rest of the world be allowed to sell on Amazon Marketplace etc?
Wearing a seatbelt prevents head injuries when the computer crashes - - - Yeah Right!!! - not in this office.

#27 omagian

  • Community Member
  • 1 posts
  • Real Name:Omagian

Posted 18 November 2009, 11:39

i just integrated my oscommerce with amazon
& i'm having a problem with my amazon payments
i get this error

We're sorry, but there's a problem with this order. Please contact the merchant directly for assistance in completing this order.

the amazon error console shows
Date: Nov 18, 2009 3:30:46 AM PST
Client Request ID: N/A
Order Value: N/A
Severity: ERROR
Error Type: CheckoutCart
Error Code: InvalidInput-NoItems
Error Message: This input is not valid. Detail: There are no items in the cart provided.

#28 divine

  • Community Member
  • 11 posts
  • Real Name:Cristina
  • Gender:Female
  • Location:Columbus, OH

Posted 21 January 2010, 23:46

I'm having a strange issue. I set this module up in sandbox mode and have been testing it. It was working fine and then suddenly yesterday I start getting this error. I've done searches and don't see any info on it. Help!

Quote

The order is not valid. Detail: Invalid Cart XML: The order XML does not validate against the schema [cvc-minLength-valid: Value '' with length = '0' is not facet-valid with respect to minLength '1' for type 'NonEmptyString'.].

This is after you go through the OSC cart and click the Confirm Order and redirect to the Amazon payment page.
[font="Times New Roman"]Cristina

#29 sarafina

  • Community Member
  • 108 posts
  • Real Name:Sandrine

Posted 25 April 2010, 15:14

Is this still only for U.S.? I am in Canada but see no mention of it anywhere...
Contributions installed: Purchase without Account / STS/ All Products/ Header Tags Controller

#30 smurfi_wsz

  • Community Member
  • 5 posts
  • Real Name:René

Posted 30 April 2010, 05:55

same quertion like the prev. post but from germany?
currently we use pl...-systems and they've a module called amazon payments and it's working ... but we'll move to osc and we need this payment type cause many customers used to use it!!!

are there contribs for generating a catalog.csv which i can upload to my sellercentral-europe account, not the s***y .xcl cause i'm on linux and don't like that m$-crap :-" ?

Edited by smurfi_wsz, 30 April 2010, 05:59.


#31 th0th

  • Community Member
  • 3 posts
  • Real Name:ken

Posted 29 July 2010, 23:03

Did you ever get a solution to this??? I am having the same problem.

Thanks,

Ken


View Postdivine, on 21 January 2010, 23:46, said:

I'm having a strange issue. I set this module up in sandbox mode and have been testing it. It was working fine and then suddenly yesterday I start getting this error. I've done searches and don't see any info on it. Help!



This is after you go through the OSC cart and click the Confirm Order and redirect to the Amazon payment page.


#32 Op999

  • Community Member
  • 44 posts
  • Real Name:Omar Perez

Posted 29 November 2010, 18:53

Hello -- seem to have most of it working on the admin side, but I get this error when testing the cart:

Fatal error: Call to undefined function: substr_compare() in /homepages/11/d206294808/htdocs/checkout_by_amazon/custom_data.php on line 53


Any clues what this might mean?

#33 suyash21

  • Community Member
  • 1 posts
  • Real Name:Suyash

Posted 16 September 2011, 07:45

Hi,
I have a huge problem about installation of this plugin.
I am using osCommerce 2.2rc2a.
Its giving me several errors of includes & required files.
As I see the code I couldn't find following files/folders in the zip
require_once('PEAR/PEAR.php');
require_once('HTTP/Request.php');
require_once('checkout_by_amazon/checkout_by_amazon_util_dao.php');
require_once('checkout_by_amazon_order_dao.php');
require_once('checkout_by_amazon_order_request_handler.php');

How it will work now??


Please let me know if anybody has the solution I have followed all the necessary steps of installing this plugin mentioned in readme file.

Attached is the screenshot of my errors when I click on the option Amazon Orders from left column of admin.

Thank you.

Attached Files



#34 aeroflight

  • Community Member
  • 13 posts
  • Real Name:Wylie Coyote

Posted 12 November 2011, 07:55

Since upgrading to the new USPS method 5.2/6.1 it seems amazon checkout has a character limit for DisplayableShippingLabel which is only in Amazon's API code.

The exact message response message from Amazon is:
The order is not valid. Detail: Invalid Cart XML: The content of field DisplayableShippingLabel is longer than maximum allowed. For this field, the maximum allowed length is 100.

With the new XML feature from USPS, amazon is not reading the code is including the ml characters, which looks like this.
<DisplayableShippingLabel>United States Postal Service&amp;nbsp;&lt;br&gt;0 lbs, 11.36 oz (First-Class Mail Package (---Approx. delivery time 2 Days))</DisplayableShippingLabel>

Since it is very doubtful Amazon will increase their field limit or filter to deal with the additional information being returned by USPS, it looks like three files provided by amazon will need some code revision.
./checkout_by_amazon/checkout_by_amazon_cart.php
./checkout_by_amazon/CBAIOPNxml.php
./checkout_by_amazon/checkout_by_amazon_shipping_processor.php

I propose setting a max limit in the three files to fix this issue. '#maxlength' => 100 The second option would be $DisplayableShippingLabel = substr($whateverthestringbeingcovertedis,0,100); The last option is to filter. Any suggestions?

#35 aeroflight

  • Community Member
  • 13 posts
  • Real Name:Wylie Coyote

Posted 17 November 2011, 18:57

The plot thickens with Amazon. Under the new USPS xml data as in the previous post, the field reference is too long. Amazon appears to have no clue how to fix the issue.

"In talking with the engineers they stated they do not have the ability to increase the number of characters accepted in the shipping console. However, they did provide me with a link here you can use a file to add additional characters. Please see the following link for more information:

http://amazonpayments.s3.amazonaws.com/documents/Using_Custom_Data_Fields.pdf

There is a few problems with their pdf and solution, One it doesn't work. Two it will never work.

The field DisplayableShippingLabel is generated in Amazon's API and is not a customizable or an added field. That means if you customize that field per Amazons publication, it is no longer considered and therefore shipping is no longer considered. See a problem here? The call back feature is also affected and fails.

For some reason Amazon cannot understand the shipping data from USPS is being passed directly to Amazon's API
That means Amazons system either must accept the data in its entirety or *AMAZON* must determine which portion of the field they want. It is not up to us.

Lastly, anyone using the old rate card is aware USPS is phasing it out by the end of first quarter 2012. That means if you upgrade you will have this problem and amazon payment will *NOT* work for any USPS service over 100 characters. Which in the all of the services.

#36 SpongeMaximus

  • Community Member
  • 9 posts
  • Real Name:Geoff
  • Gender:Male

Posted 09 December 2011, 16:17

I'm having a hard time figuring out at what point any of the order information is written to my store's database, so that I can manage Amazon Checkout orders from my store's Admin/Orders page rather than having to go to Seller Central on Amazon. The instructions for the mod make it pretty clear that this should happen, but I'm not seeing it.

I've installed the Amazon Checkout Integration mod (v 2.3) on my osC store, and after a day of configuring the many settings (both in my store's Admin and in my Amazon Payments seller account) I've got it working, to the point where I can place an order on my site, click the Checkout by Amazon button instead of my usual osC checkout button, fill in my Amazon e-mail/password, and place the order, but nothing ever comes through to my osC store. I see the order in my Amazon Seller Central account, first under Pending and then after a little while under "Total unshipped," but I'm not seeing any integration with my osC store's Orders page, even though I inserted the code and uploaded the necessary files as per the mod's instructions.

UPDATE: Hah. It looks like everything WAS working just fine, it just takes quite a long time (about 40 minutes in this case) for the order to show up on my osC's Orders page. I guess it only updates once an hour, every time the XML orders report is generated by Amazon.

Edited by SpongeMaximus, 09 December 2011, 16:21.


#37 SpongeMaximus

  • Community Member
  • 9 posts
  • Real Name:Geoff
  • Gender:Male

Posted 14 December 2011, 21:03

Another question: How does the CBA mod determine which shipping options to show to the customer once they've entered their Amazon account email and password and are looking at their order? Because as far as I can tell, it just shows them most (but not all) of the available, active shipping modules from my osC store, whether or not they're applicable. To illustrate, the following is copy-and-pasted from the screen in question:

Choose a shipping speed:

FLAT - Standard Shipping - $4.50

UPS2DAY - 2 Day Shipping (not available to Alaska & Hawaii) - $19.00

ZONES - - $0.00

ZONESPRIORITY - - $0.00

UPS3DAY - 3 Day Shipping - $14.50

UPSNEXTDAY - Next Day Shipping (not available to Alaska & Hawaii) - $35.00


The all-uppercase words are literally the php filenames of the shipping mods. In case anyone's interested, I got the actual names of the mods to display instead by changing

catalog/checkout_by_amazon/checkout_by_amazon_shipping_processor, line 80
strtoupper($quotes['id'])
to:

strtoupper($quotes['module'])
However, the selection still offers the customer shipping options that it shouldn't, such as ZONES and ZONESPRIORITY which are for non-U.S. orders. It also doesn't offer the "Free Shipping for Orders over $X" option (from freeamount.php) even if their cart contains more than $X worth of items.

For those who are successfully using the CBA mod, have you run into this issue with the selection of shipping mods?

Edited by SpongeMaximus, 14 December 2011, 21:08.


#38 SpongeMaximus

  • Community Member
  • 9 posts
  • Real Name:Geoff
  • Gender:Male

Posted 27 December 2011, 15:54

In case anyone stumbles in here in the future, looking for answers to the problems I've been having...

I got around the issue of which shipping modules are displayed by inserting some conditional stuff (i.e. "IF the ship-to country is domestic AND IF the order total is greater than my minimum amount for free shipping, THEN include the freeamount shipping mod").

So now everything is working more or less correctly, with two exceptions:

1) Sometimes it takes a long time (up to four days, so far) for approved orders to make it to my osC Admin "Orders" page, despite it being set to grab a new XML orders report every hour. We just came back in after Christmas weekend, and there were close to thirty orders sitting in "Total Unshipped" on Amazon Seller Central, some of them going back to December 23rd. As we puzzled over what could be wrong, suddenly they all poured in and finally appeared on our Admin > Orders page around 9:30am Eastern. It was as though someone at Amazon had a 4-day weekend as well, then came in this morning and threw a switch, pushing them all through at once. This was all with zero input or changes on our end. Does anyone know if for some reason Amazon only sends unshipped order reports during business hours? This could be a huge problem if someone selects Overnight shipping and then has to wait four days for us to even see their order on our end.

2) When they come through to our Admin > Orders page, items don't have any attributes. The chosen attributes are partially listed in the item's Name field, but it cuts off after 80 characters, as is Amazon's policy for naming items. So it will look like "1 x Jobst Opaque 15-20 mmHg Moderate Compression Pantyhose (Color: Black, Length..." and that's it. On Seller Central, I can see what options the customer chose since Amazon lists the item's SKU including the option values in brackets (i.e. "SKU: 181{3}6{2}33{5}51"). But something isn't getting done in checkout_by_amazon_order_builder.php to populate the orders_products_attributes table in my database.

If anyone is reading this (and I know people are) and feels like letting me know where else I might find support for the Checkout By Amazon mod, I'd be very grateful. I've checked the osCMax forums, the Amazon Services Seller forums, and even the Zen Cart forums, but no one else seems to be having these issues.

#39 SpongeMaximus

  • Community Member
  • 9 posts
  • Real Name:Geoff
  • Gender:Male

Posted 27 December 2011, 20:59

And problem number 3, posted here for future generations to find:

When we go to ship the orders in the osC backend, using the fields added to the orders.php by the CBA mod, it inevitably comes back with "Failed" and the error message "We were unable to charge the customer's payment method." There appears to be exactly zero documentation online surrounding this error message or what may be causing it. If I can get an answer from Amazon themselves (although basically no one there seems to have any experience with osCommerce integration, somehow) I'll post it here in case it helps anyone in the future.

#40 SpongeMaximus

  • Community Member
  • 9 posts
  • Real Name:Geoff
  • Gender:Male

Posted 27 December 2011, 22:01

Update on problem number 3:

Every time I attempt to update the status of a CBA order in my osC store's Admin > Orders page, the CBA mod seems to create an order processing report in XML and submit it to Amazon, where it is then rejected with errors, likely causing the "We were unable to charge the customer's payment method" error I mentioned previously. Examining the order processing reports SEEMS to show that for some reason, the Amazon Order ID being submitted contains extra characters that aren't expected, thus throwing the error.

The XML report shows, among other things, the following Results (I've replaced the actual order ID numbers with x's):

<ResultDescription>XML Parsing Error at Line 2, Column 16: cvc-pattern-valid: Value &apos;xxx-xxxxxxx-xxxxxxx &apos; is not facet-valid with respect to pattern &apos;\w{3}-\w{7}-\w{7}&apos; for type &apos;#AnonType_AmazonOrderID&apos;.</ResultDescription>
 
[and later in the xml file...]
 
 
<ResultDescription>XML Parsing Error at Line 2, Column 16: cvc-type.3.1.3: The value &apos;xxx-xxxxxxx-xxxxxxx &apos; of element &apos;AmazonOrderID&apos; is not valid.</ResultDescription>


Notice the extra space after the last "x" and before the closing "&apos;" ? I'm guessing that shouldn't be there. Another clue as to that being the problem is in my OSC database, in the amazon_orders_status_history table, in the xml column, the Amazon Order ID looks like this:<AmazonOrderID>xxx-xxxxxxx-xxxxxxx\r</AmazonOrderID>

That "\r" at the end seems to be throwing the whole thing off. Now to try to find out WHY there is an extra space and/or "\r" (carriage return) being added onto the end of the Amazon Order ID, thereby making it invalid.