VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: PRO on February 04, 2012, 13:43:39 PM

Title: Authorize.net in Latest Version (Please Test)
Post by: PRO on February 04, 2012, 13:43:39 PM
http://forum.virtuemart.net/index.php?topic=96945.0

Authorize.net AIM method is in the latest version. Please tes people.

Thanks you,

Report problems here.

Title: Re: Authorize.net in Latest Version (Please Test)
Post by: muasif80 on February 10, 2012, 21:00:35 PM
Hello,

This is a great news. I have taken a look at the plugin. I have used my test account api and transaction keys but when I confirm the order it gives me this message 'Error connecting to AuthorizeNet'

Also 'You must have a valid Secure Sockets Layer (SSL) certificate.' is this a requirement to use this plugin? Or its a recommendation?

UPDATE: I have further investigated and found out that the error I am getting is indeed because of not verifying using ssl. Now the question is how to do that while making curl post. I don' see an option where we can set an ssl certificate to be used along with the curl request. And also we don't have an option where we can disable the ssl verification that is done in all cases by default for the latest curl version.

UPDATE: I am able to successfully place a test order after disabling the ssl verification by writing a line of code. Perhaps its not the correct way and either I should be able to define the ssl certificate for the plugin in the admin backend or I should be able to disable ssl verification using a configuration option in the admin backend.

Perhaps there is something else that I am missing and I need to know in order to use the plugin appropriately.

Regards,
Asif
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: martindavidbrown on March 14, 2012, 00:03:56 AM
@muasif80:
If you wouldn't mind, please elaborate on how you were able to successfully process a transaction. What line of code did you add to get things working? I have checked and double-checked all settings, have a valid SSL certificate installed and confirmed to be working (green lock), and continue to get the "Error connecting to AuthorizeNet" message. Very frustrating...

Any assistance you, or anyone else, could provide would be appreciated.

Thanks.
Dave
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: alatak on March 14, 2012, 09:42:27 AM
Hi

QuoteAlso 'You must have a valid Secure Sockets Layer (SSL) certificate.' is this a requirement to use this plugin? Or its a recommendation?
It is a recommendation. SSL will encrypt the credit card information given by the shopper.
The SSL option is set in virtueMart configuration "Enable SSL for sensible areas (recommended)"
Just to test, you can try it without SSL

QuoteI am able to successfully place a test order after disabling the ssl verification by writing a line of code.
which line of code?

Do you have developper / sandbox account?
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: sfjoomster on March 16, 2012, 02:27:23 AM
I'm using VM 2.0.2 Joomla 2.5.1 with the Authorize.net Payment Method.

My Authorize.net account is set to live and I've tried testing it with a product thats .99 US.

Everytime I complete the order (using visa or mastercard) I get the following error at the end of the checkout process.

Thank you for your order!
There was an error while processing your transaction: This transaction cannot be accepted. (3)

I get an email from the site with the following information

Authorize.net has returned the following order number . We could not find this order.

Error while processing the payment for the order number

Looking at the order in VM I see that no information is listed under the Payment Method and the order status is Pending.

Payment Method
Payment Name    Credit Card
Discount or Fee per Transaction    0.00
Discount or Fee per Total Amount    
Authorization Code    0
Transaction ID    0
Response Code    0
Response Subcode    0
Response Reason Code    0.00
Response Reason Text    0
Transaction Type    0
Account number    0
Card Type    0
Card Code Response    0
CAVV response    0
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: PRO on March 16, 2012, 14:01:17 PM
do you have your configuration setup right?

Do you have ssl installed?
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: sfjoomster on March 16, 2012, 19:12:41 PM
Quote from: BanquetTables.pro on March 16, 2012, 14:01:17 PM
do you have your configuration setup right?

Do you have ssl installed?

I have my configuration setup correctly - as near as I can tell. I've done numerous installation of VM over the past few years, This is the first using Joomla 2.5 and VM 2.0.X.

I have an SSL certificate and Enable SSL for sensible areas is on.

Heres some additional info on the server settings.
MYSQL - 5.1.56
PHP - 5.2.17

Relevant PHP Settings
Safe Mode    On
Open basedir    None
Display Errors    On
Short Open Tags    On
File Uploads    On
Magic Quotes    On
Register Globals    Off
Output Buffering    Off
Session Save Path    /tmp
Session Auto Start    0
XML Enabled    Yes
Zlib Enabled    Yes
Native ZIP Enabled    Yes
Disabled Functions    popen,passthru,escapeshellarg,escapeshellcmd,exec,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,system,blob,exec,escapeshellarg,pfsockopen,stream_get_transports,stream_set_blocking,phpinfo
Mbstring Enabled    Yes
Iconv Available    Yes
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: perlarenee on March 27, 2012, 20:18:18 PM
Can there be a field added to the parameters to allow redirecting the url to an emulator? Like there was in vm1
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: alatak on March 27, 2012, 21:09:23 PM
Hi

Are youtalking about that parameter which was in VM1 :"Authorize.net Server Hostname"
Yes I can add it.
Can you just tell me why you need it? for my knowledge :)
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: perlarenee on March 28, 2012, 18:18:13 PM
Thanks. It's because when you need to hook vm up to an authorize.net emulator (for example epn has one) you have to redirect the server hostname to the emulator site. Vvm 1 had an 'epn' payment class name that made manually configuring the server hostname to point to epn unnecessary. vm2 doesn't have all the class names yet as far as i could tell so at least we'll need to be able to manually configure it.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on April 25, 2012, 22:04:47 PM
In testing the current Authorize.net plugin (AIM Method)

VM Version 2.0.6 - Joomla 2.5.4

Received the dreaded "Error connecting to AuthorizeNet" message.

After researching, the issue appears to be with CURL validation of the far side SSL Certificate (SSL PEER).

Here's a fix (maybe temporary) - Add a line to explicitly NOT verify the SSL certificate of Authorize.net - See example below:

In file /plugins/vmpayment/authorizenet/authorizenet.php near line 800 you'll see the function that needs an edit to allow the SSL POST to operate correctly.
___

function _sendRequest($post_url, $post_string) {
   $this->logInfo("_sendRequest" . "\n\n", 'message');
   $curl_request = curl_init($post_url);
   //Added the next line to fix SSL verification issue (CURL error verifying the far end SSL Cert)
   curl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);
   //End Authorize.net fix
   curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post_string);
   curl_setopt($curl_request, CURLOPT_HEADER, 0);
   ~ Remainder of function truncated for brevity
___

Once the line above is added, the Auth.net (and other emulators) SSL Post works successfully.

See the following post for more details about the CURL issue, documented here: http://ademar.name/blog/2006/04/curl-ssl-certificate-problem-v.html

Hope this helps someone out there...

Thanks,

Glenn Geller
VDO-Ph International
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: alatak on April 25, 2012, 22:51:42 PM
Hi,

Ok. Thank you very much for the link. I am looking at it.

But strange I did the tests with a SSL certificate.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on April 26, 2012, 22:27:40 PM
My belief is that the issue is with the server certificate on Authorize.net (or emulator) side...

Most likely, it is the root certificate that is not "checking out", at least according to CURL.

I updated my server certificate to have "increased compatibility", thinking this could make some difference in the CURL HTTP Post, but still got the same error result.

As the issue is CURL specific, it could be the CURL implementation does not have the facility to "check" the issuer certificate properly, resulting in the error.

In any case, I am glad it's working for me now, and I can process orders as needed.

Thanks again,

Glenn Geller
VDO-Ph International

Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on April 30, 2012, 19:52:06 PM
Everything working nicely now with our Authorize.net setup in VM, thanks for a great plugin!

However, there is some text that reads "For authorize.net, please enter your Credit Card informations:" shown on the page that collects the credit card information.

We would like to change this text to not display anything about Authorize.net (Something generic like "Please enter your Credit Card information below"), but cannot find the text string anywhere in the lang files, or elsewhere so far.

Could someone let me know where would we change this information?

Thanks,

Glenn Geller
VDO-Ph International
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: PRO on April 30, 2012, 20:04:35 PM
Quote from: vdoph on April 30, 2012, 19:52:06 PM
Everything working nicely now with our Authorize.net setup in VM, thanks for a great plugin!

However, there is some text that reads "For authorize.net, please enter your Credit Card informations:" shown on the page that collects the credit card information.

We would like to change this text to not display anything about Authorize.net (Something generic like "Please enter your Credit Card information below"), but cannot find the text string anywhere in the lang files, or elsewhere so far.

Could someone let me know where would we change this information?

Thanks,

Glenn Geller
VDO-Ph International


http://forum.virtuemart.net/index.php?topic=92944.0
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on April 30, 2012, 20:32:19 PM
Thanks BanquetTablesPro, I'll check that out!

GG
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on April 30, 2012, 20:34:51 PM
Also, I've noticed another interesting issue...

When going through the Credit Card checkout, there seems to be multiple "error text" generating.

e.g.

Card Number Invalid
Card CVV Number Invalid or Missing
Card Number Invalid
Card CVV Number Invalid or Missing
Card Number Invalid
Card CVV Number Invalid or Missing

Anyone know of a fix or override for this?

Thanks,

Glenn Geller
VDO-Ph International
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on April 30, 2012, 20:47:04 PM
Here's another quickie (I hope)...

When I want to allow a "Free Order", via discount code, and the ONLY payment type I have is Authorize.net, I am running into an issue.

Specifically, when a discount code (coupon) is entered that reduces the TOTAL of the order to zero (0.00), and Authorize.net is selected...

When the order attempts to complete, I receive the message (custom) "There was an error while processing your transaction: A valid amount is required. (3)
Your order could not be completed, please check your inputted data and try again."

I then updated the Authorize.net plugin to a "minimum amount" of 0.01, and created a "No Payment Necessary" payment type, in an attempt to override this, but to no avail.

Still, the Credit Card is the ONLY payment type offered, and will not allow me to complete a 0.00 order.

Anyone have any thoughts on this?

Thanks,

Glenn Geller
VDO-Ph International
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: PRO on April 30, 2012, 20:59:18 PM
Quote from: vdoph on April 30, 2012, 20:34:51 PM
Also, I've noticed another interesting issue...

When going through the Credit Card checkout, there seems to be multiple "error text" generating.

e.g.

Card Number Invalid
Card CVV Number Invalid or Missing
Card Number Invalid
Card CVV Number Invalid or Missing
Card Number Invalid
Card CVV Number Invalid or Missing

Anyone know of a fix or override for this?

Thanks,

Glenn Geller
VDO-Ph International

disable, "automatic select payment"
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on April 30, 2012, 21:44:34 PM
Quote from: BanquetTables.pro on April 30, 2012, 20:04:35 PM
Quote from: vdoph on April 30, 2012, 19:52:06 PM
Everything working nicely now with our Authorize.net setup in VM, thanks for a great plugin!

However, there is some text that reads "For authorize.net, please enter your Credit Card informations:" shown on the page that collects the credit card information.

We would like to change this text to not display anything about Authorize.net (Something generic like "Please enter your Credit Card information below"), but cannot find the text string anywhere in the lang files, or elsewhere so far.

Could someone let me know where would we change this information?

Thanks,

Glenn Geller
VDO-Ph International


http://forum.virtuemart.net/index.php?topic=92944.0

Thanks again, BanquetTablesPro

But, I'm aware of the "Override" functionality of Joomla, and see how it cascades down to VirtueMart...

However, I still cannot find any line that reads "For authorize.net, please enter your Credit Card informations:", or any of the string, at least in the files I've searched so far...

If I can't find the string, and it's corresponding Key, I don't know how to override this text successfully.

I think I may still need to be pointed in the direction of the language file containing the string that reads: "For authorize.net, please enter your Credit Card informations:" as used by the Authorize.net Plugin?

Thanks again for your help,

Glenn Geller
VDO-Ph International
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: PRO on May 01, 2012, 14:55:01 PM
administrator/language/en/en-GB.plg_vmpayment_authorizenet.ini


VMPAYMENT_AUTHORIZENET_COMPLETE_FORM="For authorize.net, please enter your Credit Card informations: "

Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on May 01, 2012, 19:30:06 PM
Quote from: BanquetTables.pro on May 01, 2012, 14:55:01 PM
administrator/language/en/en-GB.plg_vmpayment_authorizenet.ini


VMPAYMENT_AUTHORIZENET_COMPLETE_FORM="For authorize.net, please enter your Credit Card informations: "

Got it, in administrator folder... I am now realizing that's where the plugin text files are...

Thanks so much!

GG
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on May 02, 2012, 20:07:20 PM
Quote from: BanquetTables.pro on April 30, 2012, 20:59:18 PM
Quote from: vdoph on April 30, 2012, 20:34:51 PM
Also, I've noticed another interesting issue...

When going through the Credit Card checkout, there seems to be multiple "error text" generating.

e.g.

Card Number Invalid
Card CVV Number Invalid or Missing
Card Number Invalid
Card CVV Number Invalid or Missing
Card Number Invalid
Card CVV Number Invalid or Missing

Anyone know of a fix or override for this?

Thanks,

Glenn Geller
VDO-Ph International

disable, "automatic select payment"

Indeed, I disabled "automatic select payment", but of course, then it didn't auto select the payment.

Still needs to be fixed in a future VM release, I suppose... or hacked temporarily. I will continue to research.

Thanks,

Glenn Geller
VDO-Ph International
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: belen15 on May 21, 2012, 22:51:37 PM
I am also having problems with my authorize.net account on Virtuemart 2.0.6. I keep receiving this error: "There was an error while processing your transaction: This transaction has been declined. (2) Order not completed, data is not valid."

I have tried several different credit cards, but it's still not working.

Please help! Thank you :)
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: alatak on May 22, 2012, 12:04:36 PM
HI,

I have just checked, authorize.net works. But you need to disable the "automatic select payment" in the VM configuration. Have you done it?
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: dontflinch on June 22, 2012, 19:49:03 PM
I am not sure what is the problem with this payment plugin in 2.0.7.g but I updated to that one and started getting the 'error connecting' and the invalid data errors.  I reverted just that plugin folder to 2.0.6 version and it works again...
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: vdoph on June 23, 2012, 00:57:04 AM
I had to manually change the file to allow my system to connect to the Authorize.net server securely...

Please see quote below.

Thanks,

Glenn

Quote from: vdoph on April 25, 2012, 22:04:47 PM
In testing the current Authorize.net plugin (AIM Method)

VM Version 2.0.6 - Joomla 2.5.4

Received the dreaded "Error connecting to AuthorizeNet" message.

After researching, the issue appears to be with CURL validation of the far side SSL Certificate (SSL PEER).

Here's a fix (maybe temporary) - Add a line to explicitly NOT verify the SSL certificate of Authorize.net - See example below:

In file /plugins/vmpayment/authorizenet/authorizenet.php near line 800 you'll see the function that needs an edit to allow the SSL POST to operate correctly.
___

function _sendRequest($post_url, $post_string) {
   $this->logInfo("_sendRequest" . "\n\n", 'message');
   $curl_request = curl_init($post_url);
   //Added the next line to fix SSL verification issue (CURL error verifying the far end SSL Cert)
   curl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);
   //End Authorize.net fix
   curl_setopt($curl_request, CURLOPT_POSTFIELDS, $post_string);
   curl_setopt($curl_request, CURLOPT_HEADER, 0);
   ~ Remainder of function truncated for brevity
___

Once the line above is added, the Auth.net (and other emulators) SSL Post works successfully.

See the following post for more details about the CURL issue, documented here: http://ademar.name/blog/2006/04/curl-ssl-certificate-problem-v.html

Hope this helps someone out there...

Thanks,

Glenn Geller
VDO-Ph International
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: dontflinch on June 23, 2012, 01:28:36 AM
hi glenn,

I should have added that I remember making the edit you posted in my last version and in fact I did try to do that again.

I expected it would fix it, but it did not.


p.s.  thanks for posting (before and now) though I appreciate it
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: partswench on June 25, 2012, 22:38:48 PM
ready to scream here

this is not working
put in the change to the plug code
SSl installed
curl installed
sensible areas checked

any clues to this

vm2.0.6 current joomla

http://crommy.com

virtual batch of brownies to anyone who can help
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: Stonedfury on June 27, 2012, 20:35:55 PM
Hello. We are looking to upgrade/migrate our site and I just want to make sure that authorize.net has this approved and it works?

I couldn't find a straight up front answer.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: PRO on June 27, 2012, 22:39:11 PM
Quote from: Stonedfury on June 27, 2012, 20:35:55 PM
Hello. We are looking to upgrade/migrate our site and I just want to make sure that authorize.net has this approved and it works?

I couldn't find a straight up front answer.

I use this on my site

and MAKE SURE, you do not migrate a live site
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: muasif80 on June 30, 2012, 22:25:55 PM
I have tried to use self signed certificate but it has not worked with Joomla 2.5.4/Virtuemart 2.0.6.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: danjapro on July 26, 2012, 01:14:47 AM

Has anyone been able to get Authorizenet Plugin to actually go thru.

We read your article on  converting the authorizenet payment module to work for Bluepay.
http://forum.virtuemart.net/index.php?topic=19158.0

However, we have Virtuemart 2.0.8, latest version, with Authorizenet Payment Plugin, we have changed the x_login, x_authendtication.

But it will not work with the BluePay,

Have you gotten it to work with virtuemart 2.0, if so can you please direct us or show us how.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: don4timbs on August 04, 2012, 10:42:54 AM
Please I need a payment plugin that would allow me accept payment on my virtuemart 2 thru GTPay/Interswitch Webpay ( DOCUMENTATION AVAILABLE ON: https://gtpay.gtbank.com/public/? ).

Please I need someone that can help soon.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: sschlee on August 16, 2012, 13:56:50 PM
I'm having an issue with an endless loop going from the cart page (with bill to, ship to, payment and shipping breakdown) to the credit card page. When you confirm order/Check Out Now, you go to the "Please select a payment method" page.  I enter the credit card info and click "Save". It sends me back to the cart page and this is an endless loop.  I have tried as many things as I can from what I have found on many message boards.  I have tried different templates and also turned off SEF and still stuck in this loop. It happens in sandbox and regular mode as well.  I have created the _System folder, have SSL, static IP, etc, etc, etc.

When SEF is off, I get the following error logs:
[Wed Aug 15 00:23:05 2012] [error] [client 24.178.5.206] File does not exist: /home/woodsb/public_html/templates/_system, referer: https://www.woodsboots.com/index.php?option=com_virtuemart [Wed Aug 15 00:23:05 2012] [error] [client 24.178.5.206] File does not exist: /home/woodsb/public_html/404.shtml, referer: https://www.woodsboots.com/index.php?option=com_virtuemart

When SEF is on, I get the following error logs:
[Wed Aug 15 00:03:03 2012] [error] [client 24.178.5.206] File does not exist: /home/woodsb/public_html/templates/_system, referer: https://www.woodsboots.com/index.php/component/virtuemart/cart/editpayment [Wed Aug 15 00:03:03 2012] [error] [client 24.178.5.206] File does not exist: /home/woodsb/public_html/404.shtml, referer: https://www.woodsboots.com/index.php/component/virtuemart/cart/editpayment

Please help me out.  I am COMPLETELY lost here.
To see the issue, please check out: http://www.woodsboots.com/index.php

Thanks for the help!
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: sschlee on August 16, 2012, 14:07:48 PM
One more thing.  I tested with PayPal and had no problems, but still having the same issues with Authorize.net plugin.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: dontflinch on August 16, 2012, 17:17:47 PM
your error log seems to indicate there is a stray underscore somewhere.  the system template folder should just be system not _system.

have you tried turning on debugging?
Title: There was an error while processing your transaction: (TESTMODE) Email is requir
Post by: mikeritter on August 19, 2012, 00:13:36 AM
Fixed CURL as posted above.

Authorize.net account is in TEST MODE.

SSL is valid.

Now getting error:


There was an error while processing your transaction: (TESTMODE) Email is required. (3)

SOLVED:

Variable was missing in authorizenet.php. Around line 745 I added:

'x_email'      => isset($usrBT->email) ? $this->_getField ($usrBT->email, 100) : '',//get email

Also added
'x_ship_to_company'    => 'company',//filler for company var

to solve related issue
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: alatak on August 20, 2012, 10:35:21 AM
Hello,

Quote

   //Added the next line to fix SSL verification issue (CURL error verifying the far end SSL Cert)
   curl_setopt($curl_request, CURLOPT_SSL_VERIFYPEER, 0);
   //End Authorize.net fix
 
Ok i have added this fix.
As well as this one:

'x_email'      => isset($usrBT->email) ? $this->_getField ($usrBT->email, 100) : '',//get email


for the parameter x_ship_to_company, i have added
'x_ship_to_company'    => isset($usrST->company) ? $this->_getField ($usrST->company, 50) : '',

Title: Re: Authorize.net in Latest Version (Please Test)
Post by: martingillespi on October 06, 2012, 21:15:29 PM
I have already test this new version of Authorize.net. Many of new features has been added in it and some existing functionality has changed to improve its performance. I sure people will like this latest version of Authorize.net.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: controlledfate on November 10, 2012, 03:39:39 AM
I am using the latest version of Joomla and VirtueMart that is using Authorize.net to process payments. When I enter a credit card, I get the following error message:

        There was an error while processing your transaction: This transaction cannot be accepted. (3)
        Order not completed, data is not valid



Title: Re: Authorize.net in Latest Version (Please Test)
Post by: PRO on November 12, 2012, 21:10:12 PM
Quote from: controlledfate on November 10, 2012, 03:39:39 AM
I am using the latest version of Joomla and VirtueMart that is using Authorize.net to process payments. When I enter a credit card, I get the following error message:

        There was an error while processing your transaction: This transaction cannot be accepted. (3)
        Order not completed, data is not valid





have you looked in the authorize.net logs?

it should say why
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: sleepigrl on November 14, 2012, 21:19:38 PM
Quote from: controlledfate on November 10, 2012, 03:39:39 AM
I am using the latest version of Joomla and VirtueMart that is using Authorize.net to process payments. When I enter a credit card, I get the following error message:

        There was an error while processing your transaction: This transaction cannot be accepted. (3)
        Order not completed, data is not valid


I've seen this happen with a development/merchant account mismatch.

If you're sending test transactions to the sandbox URL, you MUST have an authorize.net developer account.
If you're sending transactions to the live URL, you MUST have an active merchant account (your merchant account can be in test mode).



Title: Re: Authorize.net in Latest Version (Please Test)
Post by: efocus on November 29, 2012, 22:33:31 PM
Quote from: PRO on May 01, 2012, 14:55:01 PM
administrator/language/en/en-GB.plg_vmpayment_authorizenet.ini


VMPAYMENT_AUTHORIZENET_COMPLETE_FORM="For authorize.net, please enter your Credit Card informations: "



It would be great if these could be handled with Joomla's Language Manager Overrides instead. I'm a big fan of those now.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: beetlejuice on December 06, 2012, 22:56:11 PM
Quote from: PRO on November 12, 2012, 21:10:12 PM
Quote from: controlledfate on November 10, 2012, 03:39:39 AM
I am using the latest version of Joomla and VirtueMart that is using Authorize.net to process payments. When I enter a credit card, I get the following error message:

        There was an error while processing your transaction: This transaction cannot be accepted. (3)
        Order not completed, data is not valid




have you looked in the authorize.net logs?

it should say why

Sorry for a noob question, but I've just been asked to take over a Joomla/Virtuemart site and have a couple of authorizenet issues. Where can I find these logs?


Thanks
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: DrZero on December 15, 2012, 20:01:59 PM
So I'm using the Joomla 2.5.7 and Virtuemart 2.0.10 which has these changes with the Curl and the other two lines of code in it already stated.....and I'm still getting the error.  This really needs to be fixed.  Please can someone keep this post going until there is a fix found or if I missed another post that does fix this, can someone please post that post here.  Also, I was looking for the logs as well, and I can't find any logs.  If someone could post that location as well, please do.

Thanks!
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: DrZero on December 27, 2012, 00:36:48 AM
Ok guys, as simple as this may sound, it fixed my problem and hopefully someone elses:

In previous versions of the payment plugin you had to put your authorize server in which was normally "secure.authorize.net" and worked just fine. Well after hours of digging on the web and actually working with a developer, it was not known that the code for this plugin required the full link to the servers...which happens to be " https://secure.authorize.net/gateway/transact.dll ". This resolved my problem.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: surf1punk on January 25, 2013, 17:09:54 PM
Does anyone actually have Authorize.net working in the latest version of VM? I'm in 2.0.18a and all I get is

        There was an error while processing your transaction: This transaction has been declined. (2)
        Order not completed, data is not valid

when trying to process an order. Paypal checkout works fine. and I'm using https://secure.authorize.net/gateway/transact.dll for the hostname.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: Stonedfury on May 17, 2013, 17:59:20 PM
Quote from: PRO on June 27, 2012, 22:39:11 PM
Quote from: Stonedfury on June 27, 2012, 20:35:55 PM
Hello. We are looking to upgrade/migrate our site and I just want to make sure that authorize.net has this approved and it works?

I couldn't find a straight up front answer.

I use this on my site

and MAKE SURE, you do not migrate a live site
I did migrate a live site but after I had everything set up. :) I am just now experiencing (to my knowledge) an issue with the authorize.net plugin.

Example: Visit the site & add to cart -> visit cart and put in information as a guest -> select payment & BAM! there's no authorize.net plugin loaded to pay. Now login as a registered user and again BAM! The authorize.net is there now. Hmmm I do have it set up for registered and anonymous

UPDATE: If there is BT information it shows. This is causing confusion as the paypal and google wallet load. Is there a reason for this? I know you need to have an address to pay with the card but maybe still have it load at the least. I am still growing my skills and do not want to even dip into the plugin.

Also one last question on this.

[attachment cleanup by admin]
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: mendonmike on May 31, 2013, 18:31:53 PM
I have read through this forum and checked my configurations as well as the PHP code changes suggested here. All changes are already in my files, yet I am unable to process cc transactions through the authorize.net plugin. It continually gives me the " The merchant login ID or password is invalid or the account is inactive. (3)" error that has been talked about here.

I have also double-checked all authorization elements and my authorize.net account. It is active, it is in test mode, and I even regenerated and copied the transaction key to make sure I didn't have any transcription errors. I have an SSL certificate installed on my site and it appears to be active (I see the closed lock in my address bar).

I am using the following configuration:
Joomla! 2.5.11
VirtueMart 2.0.20b

This is a new install, and I am new to both Joomla! and VirtueMart. I see numerous posts in this thread that indicate people are successfully using this plugin, but I can't seem to get past step one! Any ideas or help would be greatly appreciated. My site is almost ready to go live, I just need to resolve this bug and make sure it will be reliable.
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: AngelinaC on June 11, 2013, 07:45:53 AM
Like Mendonmike - I get the precise same error.  Our processor company contact said said that all changes that should be made have been made.  Still get the error: The merchant login ID or password is invalid or the account is inactive. (3)

They asked whether we had another install that virtuemart could be pulling from (the answer is no.) 

The ssl is in order, the configuration is a-ok. 

We have vm latest as of today - no update  needed and jooma 2.5.6 or x.x.7.

any suggestions of other files we might need to change?



(I think it may not be new - but really like your front page!  Quite kicky!)   
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: Stonedfury on October 30, 2013, 18:58:23 PM
Just happened today. Error connecting to Authorize.net " Order not completed data is not valid." any ideas?
No error code, or authorize.net error code. Checked server firewall and turned off along with cleaning of records. Still nothing. Contacted host and all systems are go. Contacted Authorize.net and no issues on their end or error logs of the process being denied.

No edits, no changes, no updates. Just random stop working. I turned on debug in both the Authorize.net plugin and virtuemart with no results as to an issue.

Wanted to add: I have turned on Authorize.net Test, left plugin in production mode.


[attachment cleanup by admin]
Title: Re: Authorize.net in Latest Version (Please Test)
Post by: Stonedfury on October 30, 2013, 20:56:20 PM
debug output
Quotevmdebug My selected language by JFactory::getLanguage()->getTag() en-GB
vmdebug self::$_jpConfig->lang en_gb
vmdebug vmTime: loadConfig db no: 0.012372016906738
vmdebug Start used Ram 14M
vmdebug getOrderWeight Var1:


vmdebug getOrderWeight Var1:

vmdebug shipmentmethod Free Shipping = FALSE for variable weight = 0.2501 Reason: is NOT within Range of the condition from 0.000 to 0.001
vmdebug shipmentmethod Free Shipping = TRUE for variable products quantity = 2 Reason: no boundary conditions set
vmdebug shipmentmethod Free Shipping = TRUE for variable order amount = 42.75 Reason: no boundary conditions set
vmdebug shipmentmethod Free Shipping = TRUE for variable zip = 93221 Reason: is lower than the set 99999
vmdebug shipmentmethod Free Shipping = TRUE for variable virtuemart_country_id = 172, 223, Reason: Country in rule or none set
vmdebug vmTime: onSelectedCalculatePrice before test 1: 0.4931001663208
vmdebug vmTime: onSelectedCalculatePrice before test 1: 0.80128908157349
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2510271072388
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.251638174057
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2520332336426
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2524750232697
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2528741359711
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2533252239227
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2537281513214
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.254420042038
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2551081180573
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2555332183838
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2559421062469
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2579340934753
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.258415222168
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2587950229645
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2636890411377
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2643151283264
vmdebug checkValidOrderingField:VirtueMartModelProduct programmer choosed invalid ordering pc.ordering, use pc.ordering
vmdebug checkValidOrderingField:VirtueMartModelProduct programmer choosed invalid ordering pc.ordering, use pc.ordering
vmdebug ValidateCouponCode ValidateCouponCode ValidateCouponCode Var1:


Error connecting to AuthorizeNet
Order not completed, data is not valid
vmdebug My selected language by JFactory::getLanguage()->getTag() en-GB
vmdebug self::$_jpConfig->lang en_gb
vmdebug vmTime: loadConfig db no: 0.0079100131988525
vmdebug Start used Ram 14M
vmdebug checkValidOrderingField:VirtueMartModelProduct programmer choosed invalid ordering pc.ordering, use pc.ordering
vmdebug getOrderWeight Var1:


vmdebug getOrderWeight Var1:


vmdebug shipmentmethod Free Shipping = FALSE for variable weight = 0.2501 Reason: is NOT within Range of the condition from 0.000 to 0.001
vmdebug shipmentmethod Free Shipping = TRUE for variable products quantity = 2 Reason: no boundary conditions set
vmdebug shipmentmethod Free Shipping = TRUE for variable order amount = 42.75 Reason: no boundary conditions set
vmdebug shipmentmethod Free Shipping = TRUE for variable zip = 93221 Reason: is lower than the set 99999
vmdebug shipmentmethod Free Shipping = TRUE for variable virtuemart_country_id = 172, 223, Reason: Country in rule or none set
vmdebug vmTime: onSelectedCalculatePrice before test 1: 0.39338207244873
vmdebug vmTime: onSelectedCalculatePrice before test 1: 0.68141102790833
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2461309432983
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2466819286346
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2468860149384
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2488660812378
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.250335931778
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2517409324646
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2521579265594
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2523369789124
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2525341510773
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2529900074005
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.253448009491
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2554759979248
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2556910514832
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2558789253235
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2560739517212
vmdebug vmTime: onSelectedCalculatePrice before test 2: 1.2562501430511
vmdebug checkValidOrderingField:VirtueMartModelProduct programmer choosed invalid ordering pc.ordering, use pc.ordering
vmdebug vmTime: VirtuemartControllerCart Finished task editpayment: 1.6570398807526
vmdebug End used Ram 29.25M
vmdebug Peak memory peak 29.25M
vmdebug checkValidOrderingField:VirtueMartModelProduct programmer choosed invalid ordering pc.ordering, use pc.ordering