News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Authorize.net in Latest Version (Please Test)

Started by PRO, February 04, 2012, 13:43:39 PM

Previous topic - Next topic

PRO

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.


muasif80

#1
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
1. Expertise: PHP and JAVA Expert (SCJP)
2. DEV Tools: Eclipse PDT - WAMP - XDebug
3. www.mayotitech.com/products.php

martindavidbrown

@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

alatak

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?

sfjoomster

#4
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

PRO

do you have your configuration setup right?

Do you have ssl installed?

sfjoomster

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

perlarenee

Can there be a field added to the parameters to allow redirecting the url to an emulator? Like there was in vm1

alatak

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 :)

perlarenee

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.

vdoph

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
Thanks,

Glenn Geller
VDO-Ph International

alatak

Hi,

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

But strange I did the tests with a SSL certificate.

vdoph

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

Thanks,

Glenn Geller
VDO-Ph International

vdoph

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
Thanks,

Glenn Geller
VDO-Ph International

PRO

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