close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

eWay XML

Thread began 7/25/2012 7:01 am by jarrad407561 | Last modified 7/26/2012 9:42 pm by jarrad407561 | 2280 views | 6 replies |

jarrad407561

eWay XML

Hi, I'm trying to adapt my code to use the beagle anti-fraud XML.. Not having any luck so far, and I can't seem to find a way to display the gateway response, or some sort of error message that could help me debug.

Could someone offer some code to print some error debugging info on the checkout-failure page?

Thanks,

JT

Sign in to reply to this post

Jason ByrnesWebAssist

To return the Full request and Full response from eWay, open the bindings panel, click the plus button and select eCart -> Checkout -> Local Checkout Response. from the gateway list, select eWay XML.

in the bindings panel, expand the eway binding group and add the Full request and Full response bindings to your page.

Another way to see the errors, is to write the entire contents of the session to the page:

php:
<pre><?php var_dump($_SESSION); ?></pre>
Sign in to reply to this post

jarrad407561

Thanks Jason.

I got an error message
[ERRORMESSAGE] => Error: XML not formated correctly to eWAY standards. Reason:Whitespace is not allowed at this location.
Error Code:-1072896749(Test CVN Gateway)

I'm guessing the problem is whitespace somewhere in the XML, does this message give any indication of where to look?

I've studied the whole XML request and cannot see anything wrong, and no whitespace that isnt necessary.

Sign in to reply to this post

jarrad407561

I have found the reason, and this could have been causing intermittent failures for years, it was because an "&" symbol was sent in the XML in the ewayCustomerInvoiceDescription field.
I str_replace'd the "&" symbol for "and".. All fixed.

Sign in to reply to this post

Jason ByrnesWebAssist

Glad to hear you found the problem.

Sign in to reply to this post

The eWAY Team

Rapid API

We're pleased to hear that the issue has been resolved. If you have any more difficulties with the Beagle XML gateway, you might consider using Rapid API instead (a new gateway which has Beagle and Token built-in, as well as keeping your servers free of card data).

Call us if we can be of any assistance!

Kind regards,
The eWAY Team

Sign in to reply to this post

jarrad407561

Thanks, I got the Beagle working too, just adapted the old XML api to include ip address and country code

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...