Jump to content
Sign in to follow this  
spencermjax

COCARD payment module

Recommended Posts

-OScommerce payment module (COCARD)-

 

I have an existing oscommerce site using Authorize.net

 

My client has changed gateway merchants to COCARD (cocard.net)

 

I have Gateway API Documentation and sample code available for COCARD.

 

any ideas on where would be the fastest place to get a payment module created for this?

Share this post


Link to post
Share on other sites

Hi Spencer. Did you ever find a solution for this company? When I sign into their site portal, it is basically suggesting that I can either have my customers go to their site for checkout, or that I will likely be storing CC numbers on my site. Neither of which are going to happen.

Share this post


Link to post
Share on other sites

I solved my problems with the quick help of the kind people over at Cocard which I guess is also NMI. There is a module for NMI in the contributions section, but it is outdated so don't bother. They use the "Authorize.net AIM" module as an emulator. It currently comes standard in the default OSC vanilla store. You will have to install this module through the control panel (module>payments) BUT FIRST you will have to make an edit to authorizenet_cc_aim.php (catalog>includes>modules>payment), to the POST address.

 

catalog>includes>modules>payment>authorizenet_cc_aim.php

find around line 173

switch (MODULE_PAYMENT_AUTHORIZENET_CC_AIM_TRANSACTION_SERVER) {
       case 'Live':
         $gateway_url = 'https://secure.authorize.net/gateway/transact.dll';
         break;

       default:
         $gateway_url = 'https://test.authorize.net/gateway/transact.dll';
         break;
     }

 

and change to

 

switch (MODULE_PAYMENT_AUTHORIZENET_CC_AIM_TRANSACTION_SERVER) {
       case 'Live':
         $gateway_url = 'https://secure.nmi.com/gateway/transact.dll';
         break;

       default:
         $gateway_url = 'https://secure.nmi.com/gateway/transact.dll';
         break;
     }

 

then upload/replace this file and instll the module in the admin section.

 

You can use the following credentials for testing of submitting transactions:

 

API ID is your gateway username = (testing user is "demo")

Transaction Key is your gateway password = (testing password is "password")

 

and use your 'real' Cocard/NMI credetials for when you are live. I left the field "HD5 hash" empty. All is working great now.

 

Hope this helps.

Edited by TheShadowKnows

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
Sign in to follow this  

×