Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

[CONTRIBUTION] Authorize Net AIM module


Vger

Recommended Posts

To Vger

 

Thank you for all this - I have just installed CCGV (Trad) to replace the customer's custom discount coupon module that was not working with Authorize.net and your two contribs run sweet as a nut.

 

Many thanks

 

Graeme

Link to comment
Share on other sites

Hi Vger,

 

After your email on Feb 10th, I called iXWeb and found out that indeed, my shared SSL is not by proxy. And they are using Apache, and the cURL is compiled for php.

 

So, what should I look for next to get past the enter your card info page?

 

Thanks.

Steve in Ellenton, FL

Link to comment
Share on other sites

If you are running this in Test Mode, then go to the payment modules authorizenet_aim.php file and change the Test address from test. to certification. and see if that works. The A Net test server is hopeless. If that other address does not work then get A Net to put your account Live - that usually sorts things out.

 

Vger

Link to comment
Share on other sites

I have tried test. certification. and now I'm back to secure. for the A Net link. None of these work.

 

I did set A Net to live, but I also changed the OS module to live also. Should I bring A Net live but leave the module in test mode?

 

I am really clueless to why I can't get this to work. It seems like all my ducks are in a row.

Steve in Ellenton, FL

Link to comment
Share on other sites

After again reviewing this thread, I have two questions:

 

1. How can I be certain I installeed the ver. 1.2.1 of this module once it's installed?

 

2. I've seen a file called cc_validation.php mentioned and I do not have this on my server. I do have a cc.php. It seems the cc_validation has something to do with UK cards. Do I need this for US processing as well?

Steve in Ellenton, FL

Link to comment
Share on other sites

After again reviewing this thread, I have two questions:

 

1. How can I be certain I installeed the ver. 1.2.1 of this module once it's installed?

 

2. I've seen a file called cc_validation.php mentioned and I do not have this on my server. I do have a cc.php. It seems the cc_validation has something to do with UK cards. Do I need this for US processing as well?

 

catalog>includes>classes>cc_validation.php

 

;)

 

nothing to do with UK cards, it's needed for the US of A too!

Edited by pixclinic
Link to comment
Share on other sites

catalog>includes>classes>cc_validation.php

 

;)

 

nothing to do with UK cards, it's needed for the US of A too!

 

 

I somehow didn't look under /includes/classes but indeed I do have the cc_validation file there, so that's not my problem.

I am still at a complete loss why all the various suggestions have had abosolutely no impact on the results, positive or negative! :'(

Steve in Ellenton, FL

Link to comment
Share on other sites

after i done all that i still have problem with this contrib.

 

in checkout_confirmation after i type already the cc I'm trying to get to the checkout_success page to finish the purchase but I'm getting back to the payment page with the message on the top that the card is approval.

 

by this case I'm getting an confirmation email and i can see the transaction in a.net

 

I am at this exact same point. Has anyone ever answered this question? I see that it was asked almost a year ago.

Link to comment
Share on other sites

I fixed it.

This is what I did for mine.

I went into my a.net and Direct Response and changed..

Delimited Reponse to NO ( i orignally had YES because of a.net tech support )

Field Encapsulator Char to BLANK ( i originally had " because of a.net tech support )

 

Things I did that Im not sure if they helped before I did the above.

 

In my oscommerce panel

Forced Cookie Use to YES

Check SSL ID to YES

Check user-agent to YES

Check IP address to YES

 

Hell Yeah.

 

and btw test.authorize.net doesn't work for me in this module, i need to use certification.authorize.net although it doesnt matter because i will be using secure.authorize.net shortly

 

BINGO!! THis worked for me too. I apologize for the previous post - right above this one. I hadn't read through the entire thread.

 

Vger - I understand the immense responsibility involved with writing a program like osCommerce. I was a software developer in days gone past. I worked for an engineering firm and had authored a very comprehensive suite using Oracle as the backend. The support issues were overwhelming at times. I got paid very well to do what I did. You did osCommerce, then gave it away for free. Thank you. Your dedication to this product is a shining example of how softweare should be written and handled.

 

My hat's off to you!!

Link to comment
Share on other sites

Thank you for your comments, but I think that Harald Ponce de Leon and the other members of the original osCommerce Team would be most annoyed if I let your post pass without saying that I had absolutely nothing to do with the original development of osCommerce.

 

I have only been involved for the past 3 and a bit years in supporting the project and providing some contributions to it.

 

Vger

Link to comment
Share on other sites

Thank you for your comments, but I think that Harald Ponce de Leon and the other members of the original osCommerce Team would be most annoyed if I let your post pass without saying that I had absolutely nothing to do with the original development of osCommerce.

 

I have only been involved for the past 3 and a bit years in supporting the project and providing some contributions to it.

 

Vger

 

 

My apologies. I thought you were the author. At any rate, I appreciate what they have done here. This is no small task.

 

Many Regards,

Dave Skowron

Red Bear Trading Co., Ltd.

www.redbeartrading.com

Link to comment
Share on other sites

Hi there Vger,

 

Thank you soo much for a great contribution!!

 

But....I have a problem that I haven't seen anywhere in the this thread(and it is long)..

 

I have everything set up according the forum and you. But if if have the Direct Response settings to:

 

Delimited Response: no

Default Field Separator: comma

Field Encapsulation Character: blank (nothing there thus)

 

all the transactions get's approved and no error messages get's displayed after pressing complete order. But if I use any other(except for ", there I'll get back but no error message is displayed other than in the url) as the Field Encapsulation Character I get back to the payment page with an error message like this(this example with the field encapsulation as /):

 

/(TESTMODE) This transaction has been approved./ - Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance.

 

I think I have tried everything there is to try to solve it..What to do now?

 

Thanks!

Link to comment
Share on other sites

I am at a total loss as to why I can't get this module to work.

 

Can anyone post a checklist? I'm thinking something that shows all files & locations, any checnge that should be made to new or existing files, settings, etc.

 

I just went through the original AuthorizeNet_AIM\Install.html today and everything seems to be as it should, yet I still keep looping back to thte payment screen. I gladly accept the help of anyone who's fixed the problem (I'm not proud!)

Steve in Ellenton, FL

Link to comment
Share on other sites

I've been working on trying to get authorize.net to work. I've done everything I can see in the forums.

 

Changed over to "live" in my admin and also at authorize.net using the test CC's

 

Changed this info:

Delimited Reponse to NO

Field Encapsulator Char to BLANK

 

In my oscommerce panel

Forced Cookie Use to YES

Check SSL ID to YES

Check user-agent to YES

Check IP address to YES

 

changed test.authorize.net to certification.authorize.net

 

I'm at a loss. I haven't been getting the orders in my email, so I imagine the orders aren't placed.

 

I've been getting the error:

this transaction cannot be accepted. - Your credit card could not be authorized for this reason. Please correct any information and try again or contact us for further assistance.

 

Please help! I really don't know what to do next.

 

Thanks, Jason

Link to comment
Share on other sites

In Test mode you don't get copies of the orders - but do they display in your Authorize Net account?

 

In osC admin --> Configuration --> Sessions - set all those you have set to 'true' to 'false'.

 

Make sure your SSL cert is working fine.

 

Vger

Link to comment
Share on other sites

In Test mode you don't get copies of the orders - but do they display in your Authorize Net account?

 

In osC admin --> Configuration --> Sessions - set all those you have set to 'true' to 'false'.

 

Make sure your SSL cert is working fine.

 

Vger

 

Thanks Vger. I've done tests both in test mode and live mode. In either mode, stock is never deducted, no emails of invoices are sent, and nothing gets displayed in my authorize.net account.

 

How do I make sure my ssl certi is working ok?

 

Thank you so much for your help,

Jason

Link to comment
Share on other sites

Make sure that you get the yellow padlock on all https pages, without any warning messages.

 

Make sure that your http and https_cookie_domain settings are correct in includes/configure.php

 

If your ssl cert is a full cert and made out to yourdomain.com then your https_cookie_domain is just 'yourdomain.com' and if the full ssl cert has the www. then it's 'www.yourdomain.com'

 

Neither http nor https_cookie_domain starts with 'http:// or 'https://

 

Vger

Link to comment
Share on other sites

Make sure that you get the yellow padlock on all https pages, without any warning messages.

 

Make sure that your http and https_cookie_domain settings are correct in includes/configure.php

 

If your ssl cert is a full cert and made out to yourdomain.com then your https_cookie_domain is just 'yourdomain.com' and if the full ssl cert has the www. then it's 'www.yourdomain.com'

 

Neither http nor https_cookie_domain starts with 'http:// or 'https://

 

Vger

 

 

Thanks again for your help Vger. I'm such a newbie I don't even know how to start checking these things. I had my provider put in my ssl cert. Should I have them check all this info?

 

Thanks, Jason

Link to comment
Share on other sites

Thanks again for your help Vger. I'm such a newbie I don't even know how to start checking these things. I had my provider put in my ssl cert. Should I have them check all this info?

 

Thanks, Jason

 

 

Thanks Again Vger! I did check the includes/configure against my ssl info and they were different. I changed them. I do believe I'm having ssl cert problems. When I go to do a test checkout, the pages read, You are entering a page that is not secure...I only know this now because i used IE to do the test. Normally, I use Safari, and the warnings never come up. When I did the test in live mode, however, I still had problems connection to authorize.net.

 

Is there anything else I need to change? I noticed just above http_cookie_domain was "Enable_SSL" and it's set to false. Shouldn't that be True?

Link to comment
Share on other sites

Yes, enable_ssl must be set to true.

 

Vger

 

 

I feel I'm actually getting somewhere on this. I think this is right now:

 

Admin/includes/configure:

define('HTTP_SERVER', 'https://subcitizen.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'https://subcitizen.com');

define('HTTPS_CATALOG_SERVER', 'https://subcitizen.com');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

 

(I didn't know I needed to configure that file too.)

 

and

 

Catalog/includes/configure:

define('HTTP_SERVER', 'http://www.subcitizen.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://www.subcitizen.com'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.subcitizen.com');

define('HTTPS_COOKIE_DOMAIN', 'www.subcitizen.com');

 

It's still not connecting to authorize.net though. My https pages are loading. That is a good sign.

 

Any other things I should check out?

 

Thanks again for all your help and responses!

 

Jason

Link to comment
Share on other sites

Without knowing where your store is installed, other than that it is in a folder, the only other advice I can give is about the http and https_cookie_paths, which should both be '/folder_name/'

 

Vger

 

 

I'm not sure what you mean. Here's my info regarding cookie paths:

 

define('HTTP_COOKIE_PATH', '/');

define('HTTPS_COOKIE_PATH', '/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

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/');

Link to comment
Share on other sites

If I go to http://www.subcitizen.com/index.php there is no osCommerce website there - so it must be in a folder e.g. /shop or /catalog etc.

 

So these settings would be something like:

 

define('HTTP_COOKIE_PATH', '/shop/');

define('HTTPS_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/shop/');

define('DIR_WS_HTTPS_CATALOG', '/shop/');

 

Vger

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...