Order Completed on eWay error

truecms.net.au - February 23, 2009 - 22:54
Project:Ubercart eWay Payment Gateway
Version:5.x-0.3
Component:Code
Category:bug report
Priority:critical
Assigned:ssherriff
Status:won't fix
Issue tags:eWay XML error
Description

Hi.
There seems to be a major issue with the module completing the order (and thus invoice being sent to the customer) despite eWay returns error:

#############################################
Credit card payment declined: Error: XML not formated correctly to eWAY standards. Reason:Whitespace is not allowed at this location. Error Code:-1072896749:
#############################################

The customer tried to place the order twice and both times the same error appears. The customer also didn't use spaces in the credit card number entered. This is ongoing issue since the first version of the module (the one that hasn't been placed into Drupal projects yet) and now is the latest 5.0.3. This issue happen every 10-15 purchase attempts. Sometimes when customers use too short names (like X Y Lee for example) the transaction brings error as well.

Please let me know if you need more information. I can also help you to debug this issue if needed.

#1

ssherriff - March 1, 2009 - 23:20
Assigned to:Anonymous» ssherriff

Yeah, the most amount of information possible would be good. Ok, so this doesn't happen every time. You mention short names brings the problems, were you able to test the same information that caused the issue with the live system, with the testing merchant id? It would be great if you could give me exact details I could enter that would cause the bug to appear.

#2

grim assim - March 20, 2009 - 12:38

Hi,

I think this is going to be caused from this situation
http://www.magentocommerce.com/boards/viewthread/11467/

Perhaps as koyan form the Magento site says

"The PHP example on the eWay site uses a straight version of htmlentities to prepare ALL XML inserts.
They recommended i use the full version formatted for UTF-8 e.g. htmlentities(trim($var),ENT_QUOTES,’UTF-8’)"

Assim

#3

NegaXul - March 27, 2009 - 04:48

I think this is coming from having illegal characters in the various fields (characters like &) one option is to enclose some fields in the CDATA tags. One example is where the title of the product is being used.

#4

Justin W Freeman - September 4, 2009 - 20:44
Status:active» won't fix

No longer maintaining the 5.x branch.

 
 

Drupal is a registered trademark of Dries Buytaert.