Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

COCARD payment module


spencermjax

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?

Link to comment
Share on other sites

  • 1 year later...

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.

Link to comment
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
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...