close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Transaction failing when testing new site

Thread began 8/17/2017 1:07 pm by arule414626 | Last modified 8/21/2017 11:15 am by Ray Borduin | 1482 views | 11 replies |

arule414626

Transaction failing when testing new site

I am rebuilding a site using eCart 6 and MySQLi. I have uploaded all of the files to a folder within the current site root so that I can do some live testing before we actually launch. Everything looks to be operating correctly until I attempt to checkout. Both PayPal and Authorize.net payments fail. I have looked through the code and can't seem to figure out why. This is the result I get on the checkout_failure page when I attempt to get the Authnet_Result: Fatal error: Call to undefined function AuthNet_Result(). I did double-check that all of the files have been uploaded (including the AuthNet_PHP.php where the function exists).

Can this have something to do with trying to communicate with the payment processors from within a folder? The current site operates fine and it was built with an earlier version of eCart.

Sign in to reply to this post

Ray BorduinWebAssist

Try just using this on the failure page, it should give you more information:

php:
<?php

var_dump
($_SESSION);
die();
?>
Sign in to reply to this post
Did this help? Tips are appreciated...

arule414626

It is returning a 270 error - line item 1 is invalid. I have sent you the WAAuthNet_postedValues array as well as WAAuthNet array in a PM. The credit card number, login and transaction key have been removed for security.

It looks likes the issue may be here: x_line_item=437<|><|><|>1<|>3.5<|>YES

The Name of the product and the description are not being sent.

I thought it may be because of the ampersand or long product name for this particular product but it is the same result no matter what the product. Here's the posted line item of a different product: x_description=1 Teen Issues Thumball (3112)&x_line_item=3112<|><|><|>1<|>14.949999809265<|>YES

Any ideas?

Sign in to reply to this post

Ray BorduinWebAssist

The syntax is:
ID<|>NAME<|>DESCRIPTION<|>QUANTITY<|>PRICE<|>TAXABLE

The Name is missing from yours and is a required field.

Sign in to reply to this post
Did this help? Tips are appreciated...

arule414626

I can't figure out why it's missing. I didn't change any of the code that was generated by eCart:

while ( !$YL->EOF() ) {
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "ID";
$AuthNet_itemized[1][$nextIndex] = "".$YL->DisplayInfo("ID") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Name";
$AuthNet_itemized[1][$nextIndex] = "".$YL->DisplayInfo("Name") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Description";
$AuthNet_itemized[1][$nextIndex] = "".$YL->DisplayInfo("Description") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Quantity";
$AuthNet_itemized[1][$nextIndex] = "".$YL->DisplayInfo("Quantity") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Price";
$AuthNet_itemized[1][$nextIndex] = "".$YL->DisplayInfo("Price") ."";
$nextIndex = count($AuthNet_itemized[0]);
$AuthNet_itemized[0][$nextIndex] = "Taxable";
$AuthNet_itemized[1][$nextIndex] = "YES";

$YL->MoveNext();
$cartIndex ++;
}

I placed <?php echo $YL->DisplayInfo("Name"); ?> in the body of the confirm page to make sure the variable displayed correctly and it does. I have no idea why the code is not sending the Name to authorize.net.

Sign in to reply to this post

Ray BorduinWebAssist

I would have to debug the page. Can I get a URL and FTP access in the private area? I can use that to dig into it.

Sign in to reply to this post
Did this help? Tips are appreciated...

arule414626

Thanks Ray! I appreciate the help. I sent info in a PM.

Sign in to reply to this post

Ray BorduinWebAssist

There was a typo in the latest version of AuthNet_PHP.php causing the issue with authorize.net. I updated the file on your server and updated eCart so that if you reinstall it will update your local Dreamweaver version.

The paypal issue was a bad return URL. It didn't include the full domain path and only had the file name. I corrected that in the confirm.php page and it appears to be working now as well.

Sign in to reply to this post
Did this help? Tips are appreciated...

arule414626

Thank you so much for your help!

Sign in to reply to this post

arule414626

I hate to bug you again... but any idea why order info is not being stored in the database after the purchase? I'm kind of at a loss with this new mysqli syntax.

Sign in to reply to this post
loading

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