<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    
    <channel>
    
    <title>Bugs</title>
    <link>http://www.magentocommerce.com/boards/</link>
    <description>Magento Forums</description>
    <dc:language>en</dc:language>
    <dc:rights>Copyright 2008</dc:rights>
    <dc:date>2008-09-05T16:29:11-08:00</dc:date>
    <admin:generatorAgent rdf:resource="http://expressionengine.com/" />
    

    <item>
      <title>Enabling EWay breaks checkout</title>
      <link>http://www.magentocommerce.com/boards/viewthread/12972/</link>
      <guid>http://www.magentocommerce.com/boards/viewthread/12972/#When:02:52:18Z</guid>
      <description><![CDATA[<p>Simply setting it to Yes (Direct) makes the checkout page not work on version 1.0.19870.4
</p>
<p>
Changing it to no fixes the checkout. 
</p>
<p>
Any ideas?
</p>
<p>
Thanks a lot for the extension.
</p>]]></description>
      <dc:date>2008-07-24T02:52:18-08:00</dc:date>
    </item>

    <item>
      <title>A couple of possible issues</title>
      <link>http://www.magentocommerce.com/boards/viewthread/14545/</link>
      <guid>http://www.magentocommerce.com/boards/viewthread/14545/#When:21:18:37Z</guid>
      <description><![CDATA[<p>Phew, I have finished tearing my hair out. 
</p>
<p>
1) Installing EWay automatically updates Magento without warning the user. Ouch!! It has taken me hours to update my customisations to work with 1.1.2. I had to start with a fresh installation.
</p>
<p>
2) Even on a completely fresh install of 1.1.2, installing Eway still goes and fetches and installs all the latest code as extensions. And, this breaks the checkout even if Eway itself is disabled or uninstalled. The Accordion stuff in the onepage checkout never activates the first stage, and viewing Firefox&#8217;s log reveals heaps of javascript errors with undefined things. 
</p>
<p>
3) To get around this I fudged my way through installing Eway manually on top of a fresh install of 1.1.2 and got it working
</p>
<p>
4) But, it only installs things in the default theme, not in any custom themes that are present, so again I had to figure out which files and directories needed copying, and copy them over
</p>
<p>
1 and probably 2 are not Eway&#8217;s fault.
</p>
<p>
4, I don&#8217;t know if that is a &#8220;bug&#8221; or just standard operating procedure for Magento but if the latter, some documentation would be nice so as to know what to copy!
</p>]]></description>
      <dc:date>2008-08-09T21:18:37-08:00</dc:date>
    </item>

    <item>
      <title>eWay bug &#45; data not prepared properly for XML</title>
      <link>http://www.magentocommerce.com/boards/viewthread/11467/</link>
      <guid>http://www.magentocommerce.com/boards/viewthread/11467/#When:22:15:48Z</guid>
      <description><![CDATA[<p>Hi, 
</p>
<p>
Firstly, thanks for integrating the eWay gateway PHP into Magento! 
<br />
Saved many people lots of time, including myself.
</p>
<p>
I installed it via Magento Connect quite easily, and everything was working with test and live accounts.
<br />
After a few days however, my client was getting reports of random transactions getting declined when payments were submitted to eWay.
<br />
The response message was a javascript alert right at the end of the payment process, and the transaction could not proceed: 
<br />
&#8220;xml formatted to eway standards whitespace not allowed at this location&#8221;
</p>
<p>
I contacted eWay support, and they said this is becuase there was a ampersand or special character in the data somewhere. 
<br />
Sure enough, the title of the product had an ampersand in it.&nbsp; However, this didn&#8217;t seem right, as it is very common for products or addresses to have special characters in them. They should be prepared for xml / database etc.
</p>
<p>
The PHP example on the eWay site uses a straight version of htmlentities to prepare ALL XML inserts.
<br />
They recommended i use the full version formatted for UTF-8 e.g. htmlentities(trim($var),ENT_QUOTES,&#8217;UTF-8&#8217;)
</p>
<p>
I updated the page \Eway\Model\Direct.php to have html entity conversion on ALL variables, except the CC details which should be already parsed.
<br />
<div class="codeblock"><code>
//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$this-&gt;getQuote()-&gt;reserveOrderId();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">"&lt;ewaygateway&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCustomerID&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getCustomerId</span><span style="color: #007700">()&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCustomerID&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayTotalAmount&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getAmount</span><span style="color: #007700">()*</span><span style="color: #0000BB">100</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayTotalAmount&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCardHoldersName&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$payment</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getCcOwner</span><span style="color: #007700">()),</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">,</span><span style="color: #DD0000">'UTF-8'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCardHoldersName&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCardNumber&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$payment</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getCcNumber</span><span style="color: #007700">()&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCardNumber&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCardExpiryMonth&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$payment</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getCcExpMonth</span><span style="color: #007700">()&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCardExpiryMonth&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCardExpiryYear&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$payment</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getCcExpYear</span><span style="color: #007700">()&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCardExpiryYear&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayTrxnNumber&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">''&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayTrxnNumber&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCustomerInvoiceDescription&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$invoiceDesc</span><span style="color: #007700">),</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">,</span><span style="color: #DD0000">'UTF-8'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCustomerInvoiceDescription&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCustomerFirstName&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$billing</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getFirstname</span><span style="color: #007700">()),</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">,</span><span style="color: #DD0000">'UTF-8'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCustomerFirstName&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCustomerLastName&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$billing</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getLastname</span><span style="color: #007700">()),</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">,</span><span style="color: #DD0000">'UTF-8'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCustomerLastName&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCustomerEmail&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$payment</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getOrder</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">getCustomerEmail</span><span style="color: #007700">()),</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">,</span><span style="color: #DD0000">'UTF-8'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCustomerEmail&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCustomerAddress&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$formatedAddress</span><span style="color: #007700">),</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">,</span><span style="color: #DD0000">'UTF-8'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCustomerAddress&gt;"</span><span style="color: #007700">;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCustomerPostcode&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">htmlentities</span><span style="color: #007700">(</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$billing</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getPostcode</span><span style="color: #007700">()),</span><span style="color: #0000BB">ENT_QUOTES</span><span style="color: #007700">,</span><span style="color: #DD0000">'UTF-8'</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCustomerPostcode&gt;"</span><span style="color: #007700">;<br /></span><span style="color: #FF8000">//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$xml&nbsp;.=&nbsp;"&lt;ewayCustomerInvoiceRef&gt;"&nbsp;.&nbsp;$this-&gt;getQuote()-&gt;getReservedOrderId()&nbsp;.&nbsp;"&lt;/ewayCustomerInvoiceRef&gt;";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$xml&nbsp;</span><span style="color: #007700">.=&nbsp;</span><span style="color: #DD0000">"&lt;ewayCustomerInvoiceRef&gt;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">''&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"&lt;/ewayCustomerInvoiceRef&gt;"</span><span style="color: #007700">;</span>
</code></div>
</p>
<p>
It now works as expected, which is great!
</p>
<p>
1 other questions for you: Why did you not include the Magento Order ID in the XML - see commented line out above. I was wondering why no order ID was visible in the eWay admin earlier as well. Was it causing bugs, and do you see any reason why i could not uncomment it so i can have the corresponding order in eWay for reference?
</p>
<p>
thanks again!
</p>]]></description>
      <dc:date>2008-07-03T22:15:48-08:00</dc:date>
    </item>

    
    </channel>
</rss>