Mark1 Posted February 9, 2003 Share Posted February 9, 2003 Ok, I have read this thread from top to bottom. I have tried many things to correct my problems. After all was said, and done, I was getting the error: "There has been an error processing you credit card, please try again." After trying many of the suggested fixes, I am getting a blank page after checkout. I am not getting any e-mails sent to the customer e-mails account, nor am I getting any e-mails sent to my store owner account. Is the blank page a good sign? Mark Link to comment Share on other sites More sharing options...
ryans1000 Posted February 11, 2003 Share Posted February 11, 2003 I found out my problem. My webhost said I had Curl but after calling them again, they told me I needed to switch servers because it wasn't set up right or wasn't installed or something like that. I also found out that OSCommerce comes with a new method of communicating with Authorize.net - Simple Integration Method (SIM). I have the OSC daily release of 1/28 and that is the method that was included. From what I've heard, OSC use to come with the Weblink - Relay Responce method of connecting with Authorize.net but Authorize.net is weeding that method out because they are raising their security standards. However the SIM method is secure enough. So I just had to set everything up correctly in the Admin section of OSC and go to Authorize.net and set that up for SIM and I was good to go. The thing that bothers me is that i found no documentation about this with OSC. You would think they would give you some instructions with the download. Did I miss them or is there no documentation. I wasted numerous hours trying to get this to work and it would have taken 15 minutes if there was documentation :( Link to comment Share on other sites More sharing options...
vtec Posted March 1, 2003 Share Posted March 1, 2003 i have the OSC part setup but i am still having problems. i am curious how you set up the auth.net side of the picture. i have the most recent snapshot installed as of today with no mods(got so mad i wiped and reinstalled). any help would be much appreciated Link to comment Share on other sites More sharing options...
skeedo Posted May 13, 2003 Share Posted May 13, 2003 I have also throroughly read through this thread and cannot find an answer to the authorize.net problem I am getting. When the confirm order button is pressed and information is sent to authorize.net, the page stalls and eventually times out with a DNS error. Help?!! Link to comment Share on other sites More sharing options...
crock Posted May 25, 2003 Share Posted May 25, 2003 I've tried everything suggested in this forum and everything I can think of with this mod and it just doesn't work.. osCommerce 2.2MS1 Curl installed and verified PHP is not is safe mode submission taking place from a HTTPS connection (port 443 as required) It's almost like the connection is slipping into a straight HTTP connection and isn't being made to Authorize.net. I really wonder how many have gotten this mod to work. :cry: Link to comment Share on other sites More sharing options...
crock Posted May 26, 2003 Share Posted May 26, 2003 For those having trouble with this mod, and if you are unsure if you're even connecting to Authorize.net...here's the stand alone code to process a test order with Authorize.net. After entering it, execute it from a HTTPS page. It will give you the verbose results from Anet... This works on my system without a problem. Now to track down the problem with this mod. :roll: <?php /* + + + AUTHORIZENET.COM / PHP + + + */ // [1] Set Variables $path_to_curl = "/usr/local/bin"; // NO trailing slash $error = ""; $test_mode = false; $authorized = false; $data = ""; $response = ""; $x_Test_Request = "FALSE"; // [2] Seed Data Array For POSTING // // NOTE: the $_REQUEST field names much match your HTML checkout form $post_array = array( "x_Login" => "PUT YOUR LOGIN HERE" ,"x_Password" => "PUT YOUR PASSWORD HERE" ,"x_Type" => "AUTH_ONLY" ,"x_Method" => "CC" ,"x_Version" => "3.0" ,"x_ADC_Delim_Data" => "TRUE" ,"x_ADC_URL" => "FALSE" ,"x_Test_Request" => "TRUE" ,"x_Amount" => 100.00 ,"x_Card_Num" => "4007000000027" ,"x_Exp_Date" => "12/05" ,"x_Email" => "PUT YOUR EMAIL ADDRESS HERE" ,"x_Phone" => "PUT YOUR PHONE HERE" ,"x_First_Name" => "PUT YOUR FIRST NAME HERE" ,"x_Last_Name" => "PUT YOUR LAST NAME HERE" ,"x_Company" => "" ,"x_Address" => "154 Anywhere" ,"x_City" => "Anywhere" ,"x_State" => "PA" ,"x_Zip" => "19070" ,"x_Ship_To_First_Name" => "" ,"x_Ship_To_Last_Name" => "" ,"x_Ship_To_Company" => "" ,"x_Ship_To_Address" => "" ,"x_Ship_To_City" => "" ,"x_Ship_To_State" => "" ,"x_Ship_To_Zip" => "" ); // [3] Convert Array to POST string (key_1=val_1&key_2=val_2...) reset($post_array); while (list ($key, $val) = each($post_array)) { $data .= $key . "=" . urlencode($val) . "&"; } // [4] Securely POST to AuthorizeNet using "curl" exec($path_to_curl . "/curl -m 120 -d "$data" https://secure.authorize.net//gateway/transact.dll -L", $response); // [5] Handle Response FROM AuthorizeNet // Set $authorized = TRUE if transaction was successful if (is_array($response)) { if (count($response) > 0) { // Change the array key indexing from 0-base to 1-base $temp_response = "," . $response[0]; $response_array = explode(",", $temp_response); unset($response_array[0]); if ($response_array[1] == 1) { $authorized = true; } else { $error = "<b>" . $response_array[4] . "</b> "; } // Debugging Text if ($test_mode) { //set above in step [1] while (list ($key, $val) = each($response_array)) { print("<b>$key</b> = " . $val . "<br>n"); } } } else { $authorized = false; } } else { $authorized = false; } // Successful Authorization... if($authorized) { $error = ""; print("Successful Order Processed!"); } else { // Credit Card Error (returned from authorizenet) $error .= "We're sorry, but your credit card information was not accepted. Please re-check the credit card type, number, and expiration date you entered."; } echo $error; ?> Link to comment Share on other sites More sharing options...
♥monte22 Posted August 7, 2003 Share Posted August 7, 2003 ANYONE PLEASE HELP!! I have tried everythin in here and it is still not working. I am running curl, but in safe mode. I have tried the safe mode work around and still no luck. ANYONE? Link to comment Share on other sites More sharing options...
♥monte22 Posted August 7, 2003 Share Posted August 7, 2003 Ok, now I'm not sure if I am in safe mode or not. You can see here: http://12.129.198.136/phpinfo That is my server config. Either way I can not get it to work. Please help. Link to comment Share on other sites More sharing options...
♥monte22 Posted August 7, 2003 Share Posted August 7, 2003 Ok my server is: http://12.129.198.136/phpinfo A person I know uses the same company and their server is: http://12.129.198.132/phpinfo They got this working on theirs. Is there something different between these two that would allow it to work on his and not mine? Thanks Link to comment Share on other sites More sharing options...
Guest Posted August 14, 2003 Share Posted August 14, 2003 Mark1 I'm running into the same problem here. I have regenerated my transaction key and retried and it still fails. I have not changed anything with my payment and it fails. I set the thing into test mode and it still fails. I spoke with authorize.net and they say that they are not being passed any information from my site, or at least they can't see that they do. I'm using MS1. $Id: authorizenet.php,v 1.47 2003/02/14 05:51:31 hpdl Exp $ Hope we get this fixed, let me know if you have any ideas Link to comment Share on other sites More sharing options...
OregonBum Posted September 6, 2003 Share Posted September 6, 2003 Because of other custom shopping carts on the server, I need to be able to stick with the SIM (Simple Integration Method). I've already entered my response relay in at Authorize.net I'm coming up with the dreaded "There has been an error processing your credit card. Please try again." But, with no code to tell me what's going on. 1. Is there a way to get that code to show up. 2. And, is there a way to change the default test cc#? Authorize.net has a new one: 4007000000027 / any expiration date. Thanks Chris Link to comment Share on other sites More sharing options...
Guest Posted September 6, 2003 Share Posted September 6, 2003 Chris, check out this post: http://www.oscommerce.com/forums/viewtopic.php...ghlight=#213941. I was able to get the response code and resolve my problem. Let me know if it doesn't work and we can see about tweaking it. As far as the test CC number, I'm not too sure about that one. Link to comment Share on other sites More sharing options...
OregonBum Posted September 8, 2003 Share Posted September 8, 2003 Thanks, I was able to get the codes to come up: RC=3, RSC=2, RRC=33 That matches up to a field left blank. I realized that for our other areas we require the Card Code - the 3 digits from the back of the card, and would like to keep that if at all possible for added security. Is there a way to put that in? :) Chris Link to comment Share on other sites More sharing options...
Guest Posted September 8, 2003 Share Posted September 8, 2003 I'm sorry, but I don't know how to do that. It is quite beyond my skill as a peon. Perhaps one of the other members will read this and post thier thoughts on this. Sorry :cry: Link to comment Share on other sites More sharing options...
chieffan Posted October 7, 2003 Share Posted October 7, 2003 I had been pulling my hair out but got the module to work without cURL. using oscommerce ms2.2 All I did was install the authorize.net module Entered the username and key On Authorize.net I left the password required field checked because that field looks for the transaction key. in the response/receipt url I have this link under the gray area http://www.yourdomain.com/catalog/checkout_process.php That was the only modification I made on Authorize.net One huge problem I had is my address on my card did not match what I had in the cart and I kept getting declined. Once I changed it worked gret. Link to comment Share on other sites More sharing options...
akah Posted October 7, 2003 Share Posted October 7, 2003 I am unable to get this module working correctly. First I think it wa DNS updating on the authorize.net server but now all I can get is the following.... There has been an error processing your card. Please try again. I saw earlier in this post some talk about getting the exact error codes but when I tried to follow the link that explains how to obtain this information the link is dead. 1. Does anyone know how to obtain these error codes and their definitions? 2. Would anyone be willing to possibly talk me through getting this to work? Thanks. -Alex Link to comment Share on other sites More sharing options...
akah Posted October 8, 2003 Share Posted October 8, 2003 OK. I got the test code earlier in this post to work but I am still unable to get the module via the OSC interface working. One of my problems earlier atleast with the test code was the fact that the password had a "$" in it and the code was not passing the password correctly. Anyway that is solved. I am still getting an error when trying to use this module and I have tried every possible combination. I am currently working on the mod submitted for the AIM posting. Right now I am trying to figure out what is being sent to Authorize.net but I cannot figure out how to print that out so I can see it. I think if I can print out what is being sent to authorize.net it will make figuring out the problem easier. Is there a way to "echo $data" or something to figure out what I am sending them and see what the error in the data may be? Link to comment Share on other sites More sharing options...
Guest Posted October 8, 2003 Share Posted October 8, 2003 Hey all, i just installed oscommerce and wondering since with all these problems, what should i be isntalling that is guarenteed to work? Link to comment Share on other sites More sharing options...
niceguy167 Posted October 8, 2003 Share Posted October 8, 2003 what i would like is for someone to post a complete like howto on how to get authorize.net working correctly so we could all follow it. Link to comment Share on other sites More sharing options...
suzw Posted October 8, 2003 Share Posted October 8, 2003 This may help, but not solve everything: You need to add the following to /catalog/includes/modules/authorizenet_direct.php (approx line 23) x_relay_response => 'FALSE', //this is required FIELD NAME/FIELD VALUE in authorizenet must have NOW I am still not sure if x_tran_key value is actually flowing properly...i'm not showing it see following: admin/modules.php?set=payment&module=&action=edit when you add your transaction key to blank it does not show up as a value...script is probably incomplete...please check your Authorizenet transaction key must be able to be identified I hope this helps put you on the correct track to solving this issue. I will post solution if I can find one. If someone else finds the solution please post it. Thanks, suzw Suz Link to comment Share on other sites More sharing options...
Guest Posted October 8, 2003 Share Posted October 8, 2003 what i would like is for someone to post a complete like howto on how to get authorize.net working correctly so we could all follow it. i agree Link to comment Share on other sites More sharing options...
akah Posted October 8, 2003 Share Posted October 8, 2003 First I finally got this working.. the error ended up being Authorize.net was sending the wrong information to my clients bank and thus the transaction was getting rejected. So second I want to share how I resolved the issue to hopefully help some others. The thing I would do is make a test.php with the code below. Plus in your information.. I used real credit card information. Once the test is successful you will get "Successful Order Processed!" back in a return. I was running it from the CLI using php test.php. Then change the variable "x_Test_Request" => "TRUE" to "FALSE". And run it again. If you are getting an error at this point it will cime back to you. I ended up using password instead of transaction id and in the authorize.net control panel checked passsword required for all transactions. I was unable to get the transaction id working but I am going to play around with it later as I assume I was using an old ID. Once you are running the test.php from the command line you will be able to see the error and it should point you to the problem rather quickly. The code below has already been posted and I forget by who so I apologize for not giving the proper credit however this is not my code at all.... <?php /* + + + AUTHORIZENET.COM / PHP + + + */ // [1] Set Variables $path_to_curl = "/usr/bin"; // NO trailing slash $error = ""; $test_mode = false; $authorized = false; $data = ""; $response = ""; $x_Test_Request = "FALSE"; // [2] Seed Data Array For POSTING // // NOTE: the $_REQUEST field names much match your HTML checkout form $post_array = array( "x_Login" => "USERNAME HERE" ,"x_Password" => "PASSWORD HERE" ,"x_Type" => "AUTH_CAPTURE" ,"x_Method" => "CC" ,"x_Version" => "3.1" ,"x_ADC_Delim_Data" => "TRUE" ,"x_ADC_URL" => "FALSE" ,"x_Test_Request" => "TRUE" ,"x_Amount" => .10 ,"x_Card_Num" => "CREDIT CARD INFO" ,"x_Exp_Date" => "EXP DATE" ,"x_Email" => "EMAIL HERE" ,"x_Phone" => "PHONE NUMBER" ,"x_First_Name" => "FIRST NAME" ,"x_Last_Name" => "LAST NAME" ,"x_Company" => "" ,"x_Address" => "ADDRESS" ,"x_City" => "CITY" ,"x_State" => "STATE" ,"x_Zip" => "ZIP CODE" ,"x_Ship_To_First_Name" => "" ,"x_Ship_To_Last_Name" => "" ,"x_Ship_To_Company" => "" ,"x_Ship_To_Address" => "" ,"x_Ship_To_City" => "" ,"x_Ship_To_State" => "" ,"x_Ship_To_Zip" => "" ); // [3] Convert Array to POST string (key_1=val_1&key_2=val_2...) reset($post_array); while (list ($key, $val) = each($post_array)) { $data .= $key . "=" . urlencode($val) . "&"; } // [4] Securely POST to AuthorizeNet using "curl" exec($path_to_curl . "/curl -m 120 -d \"$data\" https://secure.authorize.net//gateway/transact.dll -L", $response); // [5] Handle Response FROM AuthorizeNet // Set $authorized = TRUE if transaction was successful if (is_array($response)) { if (count($response) > 0) { // Change the array key indexing from 0-base to 1-base $temp_response = "," . $response[0]; $response_array = explode(",", $temp_response); unset($response_array[0]); if ($response_array[1] == 1) { $authorized = true; } else { $error = "<b>" . $response_array[4] . "</b> "; } // Debugging Text if ($test_mode) { //set above in step [1] while (list ($key, $val) = each($response_array)) { print("<b>$key</b> = " . $val . "<br>\n"); } } } else { $authorized = false; } } else { $authorized = false; } // Successful Authorization... if($authorized) { $error = ""; print("Successful Order Processed!"); } else { // Credit Card Error (returned from authorizenet) $error .= "We're sorry, but your credit card information was not accepted. Please re-check the credit card type, number, and expirat ion date you entered."; } echo $error; echo $data; ?> Link to comment Share on other sites More sharing options...
sneakersource Posted October 9, 2003 Share Posted October 9, 2003 Hi Folks. I have seen that a lot of people have been having problems with the install for ADC for authorize.net. Well, i can assure you that it is not the script or the php as i ripped it all apart and there was notthing wrong. The problem lies within your server. To check what install of Curl and path easily through your admin panel go to - Tools > Server Info On this page scroll down to see if the curl variable is there or press CTRL + F and type in curl in to the search box. You need to find the Curl heading. Mine reads like this curl CURL support enabled CURL Information libcurl/7.10.3 OpenSSL/0.9.7b ipv6 zlib/1.1.4 Now you have found this you know whether you have curl, if it is not there you have not. If you have not got it, well you have 2 options, contact server admin and ask them to install cURL and openSSL and connect them together or change to a server that has this capabilities. (see bottom) Download this file - Authorizenet ADC Direct Connection Contribution and extract to a directory and call this ADC (just work in this folder) Then you need to configure the authorizenet_direct.php script within this file. This is dead easy. The main possible variables for my server (Linux Based i assume) are /usr/bin/curl or /usr/local/bin/curl Modify this at the bottom of the authorizenet_direct.php page. Use the readme file to set up the control panel settings in Authorize.net and MAKE SURE YOU GET A NEW TRANSACTION KEY! (I emphasise this as we have changed the data in authorize.net account) Once these variables have been set uninstall the standard authorize.net module in your admin payment module section. Upload the new files to the server as per folder structure within the ADC folder(Please Note: If you have installed any modules that have modified the checkout_process.php file (for instance - OSAffiliate) please make the relavant changes to this new file to add them contributions on. It is easier to add to this file then to add the new file to the existing checkout_process.php file.) Overwrite the existing files and then reinstall the modification in the admin panel. Add the transaction Key from authorize.net and configure the variables in the payment admin for this and you have installed the ADC successfully. I hope this helps you because i could have done with this before i installed it and tried to break it apart to find errors. I spent 3 days trying to put a test through and i got sick of the warning at the top. Are you having host troubles? My host is pretty cheap and the features are endless. Like - 1000MB Storage, Free Domain or Domain Transfer, 500 Email accounts with webmail or Pop, A Massive 30GB Data Transfer per month, PHP Support, MySql, SSI, Frontpage 2000/2002 Extension, shared (free) SSL Secure Server, Password Protected Directories, Free Content like news etc, Search Engine Position Report, Gif Optimizer, Banner Creator, $50.00 advertising credit at Overture, and one of the most comprehensive site stats programs available. It also includes serveral shopping carts pre-installed including osc (version 2.1 so i suggest a new install to the database). This costs me $96 Per Year. I can not beat this anywhere on the net and i have been working on here for years. The domain alone would cost you about $20. If you have an interest in the hosting, email me and i will email you a full feature list and a link for the host. If you install on their server, i will provide support for the installation of this ADC MODULE (only this 1) after a fresh install (or site transfer) has taken place successfully. I can help install and test before a domain is transfered for seamless switch between hosts. Drop me an email and i will give you a hand. I usually reply within 24 hours. [email protected] or [email protected] Well, thank you for reading all this and i hope i have helped you. Marc :D Link to comment Share on other sites More sharing options...
daisuke Posted December 13, 2003 Share Posted December 13, 2003 Thanks for your tutorial sneakersource! I uploaded a foolproof package of all the fixes onto the contributions for ADC. Enjoy! Link to comment Share on other sites More sharing options...
iamclayb Posted December 15, 2003 Share Posted December 15, 2003 Hi Everyone! I have been working over 2 problems getting authorize.net to work. First, at checkout it would simply go back to the login page. Then I installed the authorizenet_direct.php module which fixed that problem but created a new one which is talked about so much in this thread. (credit card info is incorrect...) The problem was solved when I changed the /usr/bin/curl to /usr/local/bin/curl in authorizenet_direct.php. So, perhaps that is what is causing the problem? Many thanks to sneakersource for mentioning the alternative location. Clay Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.