[CONTRIBUTION] Authorize Net AIM module
#901
Posted 03 November 2008, 22:28
Please try again and if problems persist, please try another payment method.
Im getting the above error when I go to check out. When I log into my a.net account the orders are the but have general error next to them. if I put in a credit card with only 8 digits I get the same error. Anybody know what the issue could be?
#902
Posted 06 November 2008, 10:15
Checkout shipping page passes fine.
Checkout payment page passes fine.
Checkout confirmation pages does not pass and produces the above error.
I feel like its an issue with the cookies.
I do have shared ssl and believe I have configured it appropriately (https://secure.bluehost.com/~fantasu6). I do have cURL in PHP, I do have an account with Authorize.net, Direct response is delimited response "no", Default Field Separator "comma", Field Encapsulation Char "blank". Transaction Key must be working properly since transactions are posting. Transaction version is 3.1. Site is not in the "catalog" directory but in the main root. Padlocks/ ssl seem to be appearing in the right places (i.e. login page, checkout, and credit card pages, etc.). Nothing in Receipt / Relay URLs.
URL is: https://secure.bluehost.com/~fantasu6/checkout_payment.php
Domain Name: www.fantastictoyfigures.com
Configure files are:
define('HTTP_SERVER', 'http://www.fantastictoyfigures.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://secure.bluehost.com/~fantasu6'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'www.fantastictoyfigures.com');
define('HTTPS_COOKIE_DOMAIN', 'www.fantastictoyfigures.com');
define('HTTP_COOKIE_PATH', '/~fantasu6/');
define('HTTPS_COOKIE_PATH', 'secure.bluehost.com/~fantasu6');
define('DIR_WS_HTTP_CATALOG', '/~fantasu6/../');
define('DIR_WS_HTTPS_CATALOG', '/');
Do you know why I'm not reaching the checkout success page? I keep getting sent back to the checkout payment page with the above error? I hope it's just a simple cookies configuration problem. Please help, I've almost ripped out all my hair.
Thanks,
Kris
#903
Posted 06 November 2008, 10:27
Kris.Ong, on Nov 6 2008, 06:15 AM, said:
#904
Posted 06 November 2008, 10:54
#905
Posted 09 November 2008, 06:52
Randeep
#906
Posted 09 November 2008, 12:37
IcedDante, on Nov 9 2008, 02:52 AM, said:
Randeep
#907
Posted 09 November 2008, 15:15
IcedDante, on Nov 9 2008, 12:52 AM, said:
Randeep
I could not get the stock module to work either. This module offers CCV2. I don't know if the stock module offers that or not.
Edited by rs2k, 09 November 2008, 15:16.
#908
Posted 10 November 2008, 20:23
spencermjax, on Sep 21 2008, 06:35 PM, said:
Thank you to everyone who got involved in constantly making this module better. And thank you Rhea for starting it all. The module works and I'm on my way.
#909
Posted 12 November 2008, 23:37
Any ideas on what to do now? All my client needs is to be able to capture and authorize with Authorize.net
Thanks,
Chris
#910
Posted 19 November 2008, 07:46
curl is a requirement for using this module, although I do believe it has a configuration set up for using a proxy CURL. But I do think you would be better off using a host that supports OSCommerce and basic ecommerce necessities like curl.
cjpopp, on Nov 12 2008, 03:37 PM, said:
Any ideas on what to do now? All my client needs is to be able to capture and authorize with Authorize.net
Thanks,
Chris
#911
Posted 19 November 2008, 07:49
baddog, on Nov 9 2008, 04:37 AM, said:
I had the same experience baddog. I think it is ridiculous that authorize.net, which I believe is a pretty common service, does not work OOTB, but I am very grateful to the people who provided this module which works fantastically. This really needs to be merged into the core since the OOTB errors delayed our launch date significantly.
And yes, the stock module doesn't support CVV2 and this one does. All the more reason to merge.
Good job guys and thanks for the info!
#912
Posted 19 November 2008, 19:27
Any ideas?
#913
Posted 21 November 2008, 15:31
ramel_l2, on Nov 3 2008, 05:28 PM, said:
Please try again and if problems persist, please try another payment method.
Im getting the above error when I go to check out. When I log into my a.net account the orders are the but have general error next to them. if I put in a credit card with only 8 digits I get the same error. Anybody know what the issue could be?
Edited by mrbones, 21 November 2008, 15:40.
#914
Posted 22 November 2008, 17:36
Anybody?
mrbones, on Nov 21 2008, 10:31 AM, said:
#915
Posted 22 November 2008, 18:15
mrbones, on Nov 21 2008, 10:31 AM, said:
#916
Posted 24 November 2008, 18:14
Pretty frustrating when someone within the office messes with your settings and doesn't tell anybody and then asks you to fix it. Anyway, it works now and thanks for the great module.
-mrb
#917
Posted 25 November 2008, 14:44
spencermjax, on Sep 21 2008, 09:35 PM, said:
where is the field "CURL Proxy URL" in the admin. is it in the file manager or in the admin control panel?
#918
Posted 25 November 2008, 15:23
Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance.
and it goes back to the payment infomation screen. PLEASE HELP ME
i am so close an just need a push into the right direction
#919
Posted 03 December 2008, 22:40
#920
Posted 08 December 2008, 20:12
Quote
On some occasions in the past Authorize would receive the payment, but OScommerce would not record it. The help desk at Authorize told me this was a server time out issue, however the company that hosts our site says that my Authorize AIM add on is not properly configured, omitting the critical information as to HOW it is improperly configured. However I did get them to say it has something to do with SSL and cookies. They mentioned forcing cookie use (which if turned on in OSC causes the page to go to cookie_usage.php in stead of checkout_confirmation.php even if the browser has cookies enabled). I have very little knowledge of CURL stuff so I'm at a loss as to how to find out where things are going wrong.
My configure.php reads as follows:
// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
define('HTTP_SERVER', 'http://thegemshop.com'); // eg, http://localhost or - https://localhost should not be NULL for productive servers // changed for AIM (dtk)
define('HTTP_CATALOG_SERVER', 'http://thegemshop.com');// changed for AIM (dtk)
define('HTTPS_CATALOG_SERVER', 'https://thegemshop.com');// changed for AIM (dtk)
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('HTTP_COOKIE_DOMAIN', 'thegemshop.com');// added for aim 12/08/2008(dtk)
define('HTTPS_COOKIE_DOMAIN', 'thegemshop.com');// added for aim 12/08/2008(dtk)
define('HTTP_COOKIE_PATH', '/catalog/');// added for aim 12/08/2008(dtk)
define('HTTPS_COOKIE_PATH', '/catalog/');// added for aim 12/08/2008(dtk)
define('DIR_WS_HTTP_CATALOG', '/catalog/');// added for aim 12/08/2008(dtk)
define('DIR_WS_HTTPS_CATALOG', '/catalog/'); // added for aim 12/08/2008(dtk)
define('DIR_FS_DOCUMENT_ROOT', $DOCUMENT_ROOT); // where your pages are located on the server. if $DOCUMENT_ROOT doesnt suit you, replace with your local path. (eg, /usr/local/apache/htdocs)
define('DIR_WS_ADMIN', '/admin/');
define('DIR_FS_ADMIN', DIR_FS_DOCUMENT_ROOT . DIR_WS_ADMIN);
define('DIR_WS_CATALOG', '/catalog/');
define('DIR_FS_CATALOG', DIR_FS_DOCUMENT_ROOT . DIR_WS_CATALOG);
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
define('DIR_WS_INCLUDES', 'includes/');
define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');
define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');
// define our database connection
define('DB_SERVER', '');
define('DB_SERVER_USERNAME', 'mysql');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', 'osCommerce');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', '');
?>
And the CURL section of authorizenet_aim.php is as follows:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_VERBOSE, 0);
curl_setopt($ch, CURLOPT_CAINFO, 'd:\home\thegemsh\ca-bundle.crt'); // blank response fix
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
if(MODULE_PAYMENT_AUTHORIZENET_AIM_CURL_PROXY != 'none') {
curl_setopt ($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt ($ch, CURLOPT_PROXY,MODULE_PAYMENT_AUTHORIZENET_AIM_CURL_PROXY);
}
$authorize = curl_exec($ch);
curl_close ($ch);
$response = split('\,', $authorize);
// Parse the response code and text for custom error display
$response_code = explode(',', $response[0]);
$response_text = explode(',', $response[3]);
$x_response_code = $response_code[0];
$x_response_text = $response_text[0];
// If the response code is not 1 (approved) then redirect back to the payment page with the appropriate error message
if ($x_response_code != '1') {//try changing this to <> instead of !=
tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . $response[0] . ' - ' . urlencode(MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_DECLINED_MESSAGE), 'SSL', true, false));
//tep_redirect(tep_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . $x_response_text . ' - ' . urlencode(MODULE_PAYMENT_AUTHORIZENET_AIM_TEXT_DECLINED_MESSAGE), 'SSL', true, false));
}
If you notice something missing or you have any idea what may be causing the problem, or how I might be able to track it, please let me know.Thanks.














