Jump to content
clustersolutions

cURL error (60): Peer certificate cannot be authenticated with given CA certificates

Recommended Posts

If I remove my API key it works fine, if I have my API key in there it fails.  I'm assuming that means it is working and it is something with my API?

Share this post


Link to post
Share on other sites

If you remove the API Key, the module won't work, at least not correctly. The key is what authorize.net checks to make sure you are connecting to your account. Without it, you can't.

Share this post


Link to post
Share on other sites

Right what I mean is, if I test connection without my API key in, I get a test successful result.  If I enter my API key in, it fails.  Additionally, if I enter a sandbox API key in, it works.

 

The owner of the store I am working on is fairly PO'd so trying to CMB and prove it's defintely the key.  They gave me a contact number and authorize says that it is a card in person account and that's the problem but their authorize vendor says that's BS so at this point i'm just trying to get things straight.

Share this post


Link to post
Share on other sites

Just an update... I got the updated key and sure enough it did work.  With that said, Authorize.net is not seeing the invoice number, only the amount.  What do I need to do to fix that?

Share this post


Link to post
Share on other sites

@@duckydan

Here's how I modified mine for the invoice number.  Right before the line

      $params = array('x_login' => substr(MODULE_PAYMENT_AUTHORIZENET_CC_AIM_LOGIN_ID, 0, 20),

add

// A.NET INVOICE NUMBER FIX
// find the next order_id to pass as x_Invoice_Num
        $inv_id = tep_db_query("select orders_id from " . TABLE_ORDERS . " order by orders_id DESC limit 1");
        $last_inv = tep_db_fetch_array($inv_id);
        $next_inv = $last_inv['orders_id']+1;
// END A.NET INVOICE NUMBER FIX

then you'll need to add this somewhere in the array

                      'x_Invoice_Num' => $next_inv,

And that will transmit the invoice number.


I'm not really a dog.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×