Hi all,
I'm new to VirtueMart, and having a little trouble connecting Authorize.net to my Virtuemart store. I ran test transactions in the Authorize.net sandbox and got success messages and confirmation. I even had success when my Authorize.net account was in test mode, but now that I've disabled test mode, I get the following message upon checkout:
Error connecting to AuthorizeNet
Order not completed, data is not valid
I'm wondering if there is a simple solution. Any ideas? I'm probably just missing something obvious. What's the best way to begin debugging?
Thanks ahead of time!
Arryn
PHP V. 5.2.17; VirtueMart 2.0.8e; AIO 2.0.8e; Joomla! 2.5.6 Stable; Web Server: Apache; Database Version: 5.5.23-55; Using SSL
For others who may have the same problem, adding the line
var_dump( curl_getinfo($curl_request) );
at ~ line 806 of plugins/vmpayment/authorizenet/authorizenet.php results in the following:
bool(false) array(20) { ["url"]=> string(0) "" ["content_type"]=> NULL ["http_code"]=> int(0) ["header_size"]=> int(0) ["request_size"]=> int(0) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0) ["namelookup_time"]=> float(0) ["connect_time"]=> float(0) ["pretransfer_time"]=> float(0) ["size_upload"]=> float(0) ["size_download"]=> float(0) ["speed_download"]=> float(0) ["speed_upload"]=> float(0) ["download_content_length"]=> float(-1) ["upload_content_length"]=> float(-1) ["starttransfer_time"]=> float(0) ["redirect_time"]=> float(0) }
However, if I checkout using my Authorize.net sandbox account instead, the request looks like this:
bool(false) array(20) { ["url"]=> string(47) "https://test.authorize.net/gateway/transact.dll" ["content_type"]=> string(9) "text/html" ["http_code"]=> int(200) ["header_size"]=> int(171) ["request_size"]=> int(852) ["filetime"]=> int(-1) ["ssl_verify_result"]=> int(0) ["redirect_count"]=> int(0) ["total_time"]=> float(0.364712) ["namelookup_time"]=> float(0.002005) ["connect_time"]=> float(0.047477) ["pretransfer_time"]=> float(0.257021) ["size_upload"]=> float(704) ["size_download"]=> float(346) ["speed_download"]=> float(948) ["speed_upload"]=> float(1930) ["download_content_length"]=> float(346) ["upload_content_length"]=> float(704) ["starttransfer_time"]=> float(0.364679) ["redirect_time"]=> float(0) }
This looks better...why doesn't it work for https://secure.authorize.net/gateway/transact.dll?
OK, I'm an idiot. If any other poor souls have this problem, try enabling "Secure Post" in Virtuemart > Payment Methods > [Your Authorize.net instance] > Configuration.
HI ArrynFlynn
I have Secure Post enabled, but its not working for me.
I am a step behind you in this set up. I am getting the
Error connecting to AuthorizeNet
Order not completed, data is not valid
but i am still in test mode. If you can help me get to where you are maybe mine would work too.
This is what i have for the other fields. Tell me if you have the same.
Authorize.net hostname https://secure.authorize.net/gateway/transact.dll
Login ID - my Auth.net test ID
Transaction Key - my Auth.net test Key
Secure Post No
Auhorize.Net Sandbox Parameters https://test.authorize.net/gateway/transact.dll
Use Sandbox No
Authorize.net Sandbox hostname
Sandbox Login ID
Sandbox Transaction Key
VirtueMart Parameters
Credit Cards
Visa
Mastercard
American Express
Any suggestions?
atilla
Just got this today. Just randomly out of the blue. VM 2.0.24 J 2.5.14 php 5.4 Working store until today.