Web Hosting Forum | Lunarpages
News: October 6, 2008 - Submit Your Site for the October 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
October 12, 2008, 10:07:38 PM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Authorize.net + osCommerce: I'm getting a checkout error  (Read 292 times)
Mr V
Newbie
*
Offline Offline

Posts: 5



« on: July 04, 2008, 07:46:55 AM »

This one has me totally baffled; The checkout on my website will fail sometimes depending on what is installed on the computer that is used. This is definitely not a browser problem. On my computer which I use for web developing, it works perfectly every time; on my dad's new Dell, it fails every time with an ominous error message (included below).  Why do you think that is?

V

PS: the oscommerce checkout mentioned above is only 1 page long and utilizes ajax and javascript.

---message reads---

Credit Card Error!
   The first four digits of the number entered are: <br>If that number is correct, we do not accept that type of credit card.<br>If it is wrong, please try again.
« Last Edit: July 04, 2008, 07:54:05 AM by Mr V » Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3400



« Reply #1 on: July 04, 2008, 10:16:57 AM »

Does it really not give the first four digits? If so, the code may be depending on register global variables being on  to move information from the form to the processing page. Go to the "PHP & MySQL" board and read my topic on dealing with register globals (you'll have to turn them back on in .htaccess). By the way, the latest osCommerce (2.2 Release Candidate 2a) no longer requires register globals to be on.

If that doesn't do the trick, maybe Javascript is shut off on your father's browser? I think it needs to be "on" in order to use osCommerce (which has a fair amount of JS in use). If that's it, consider adding

Code:
<noscript><p>You need Javascript to be "on" to use all the functions in osCommerce.</p></noscript>

near the top of the index.php page. If he's using Internet Explorer, I think "Internet" sites (not in the trusted category) are denied use of JS by default.
Logged

Mr V
Newbie
*
Offline Offline

Posts: 5



« Reply #2 on: July 04, 2008, 12:51:26 PM »

Thanks!!! I'll try out your suggestions - starting with the javascript - and let you know what happens.
Logged
Mr V
Newbie
*
Offline Offline

Posts: 5



« Reply #3 on: July 05, 2008, 07:42:03 PM »

Well, the problem is not related to Javascript and according to my admin panel, register globals is turned on (though I didn't mess around with it at all).

It occurs to me that the checkout only works on computers running XP Professional. I've heard several places that Authorize.net requires Curl support to function properly and was wondering if this might be the problem. How does one configure cURL support anyways?


Thanks for your help.
Logged
MrPhil
Quantum Encyclopedia Writer
*****
Offline Offline

Posts: 3400



« Reply #4 on: July 06, 2008, 09:03:46 AM »

I've never heard of cURL caring what browser or what OS was on the visitor's PC. As far as I know, it's strictly on the server. If it works for some, it should work for all, unless there's code somewhere that asks what browser software is being used and tries to do different things based on that. I don't recall seeing any such code in osCommerce itself, but it's possible that Authorize.net might do it. I would look for some difference in browser settings between the XP Pro systems that work, and other systems that don't work -- particularly who allows JavaScript and what browsers are being used. Do you have a php.ini setting to explicitly turn on  register globals? If you don't, the default on most servers is off. Don't forget to run a page with phpinfo(); to list all the settings in effect -- it will tell you if cURL is enabled and whether register globals are on or off. I've never worked with Authorize.net, so that's all I can think of at the moment.
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.6 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM