close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Eway XML Error for Rebill

Thread began 1/19/2010 2:03 pm by jo4koalas392067 | Last modified 1/20/2010 7:42 pm by jo4koalas392067 | 1784 views | 2 replies

Jason ByrnesWebAssist

this part of the eWAY_XML_PHP.php file:

php:
for ($x=0; $x<count($reqArray[0]); $x++)  {

    $varvalueArray[strtolower($reqArray[0][$x])] = $reqArray[1][$x];
  }
  for ($x=0; $x<count($optArray[0]); $x++)  {
    $varvalueArray[strtolower($optArray[0][$x])] = $optArray[1][$x];
  }
  for ($x=0; $x<2; $x++)  {
    $varvalueArray[strtolower($itemArray[0][$x])] = $itemArray[1][$x];
  }




is creating a supper array out of the $reqArray, $optArray and $itemArray array's that are created on the confirm page.

This code:

php:
strtolower($reqArray[0][$x])


is used to convert the name used for the array piece on the confirm page to lower case. So the name of each array piece is the lower case version of the name created on the confirm page.

When you are building up the xml, you need to refer to each array piece using the all lower case name.

in other words:

php:
"<eWayCustomerID>" . $varvalueArray["eWayCustomerID"] . "</eWayCustomerID>".



should be:

php:
"<eWayCustomerID>" . $varvalueArray["ewaycustomerid"] . "</eWayCustomerID>".




you can verify the correct names to with this code:

php:
<?php var_dump($varvalueArray); ?>

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...