Does any one have a payment module set up for bartercard?
I would really like to add one, but have no idea where to start.
Does any one have a payment module set up for bartercard?
I would really like to add one, but have no idea where to start.
I am wanting to add a new credit card, which is Bartercard. Because the Australian Bankcard is no longer around I tried changing the two files which contain the information for Bankcard to Bartercard and changing the first four digits to those of Bartercard which are 6009 and it is a 16 digit number, but I kept getting the message that it was not a valid credit card.
Is there anything else I should be changing to get it to work? Or how do I set up a whole new credit card?
CAn you give me the link to the two files?Originally Posted by ginar
I tried to modify these two files
/includes/classes/cc_validation.php
if (ereg('^4[0-9]{12}([0-9]{3})?$', $this->cc_number) and CC_ENABLED_VISA=='1') {
$this->cc_type = 'Visa';
} elseif (ereg('^5[1-5][0-9]{14}$', $this->cc_number) and CC_ENABLED_MC=='1') {
$this->cc_type = 'Master Card';
define('TEXT_ACCEPTED_CREDIT_CARDS', '<strong>We accept:</strong> ');
// cc enabled text
define('TEXT_CC_ENABLED_VISA','Visa');
define('TEXT_CC_ENABLED_MC','MC');
define('TEXT_CC_ENABLED_AMEX','AmEx');
define('TEXT_CC_ENABLED_DINERS_CLUB','Diners Club');
define('TEXT_CC_ENABLED_DISCOVER','Discover');
define('TEXT_CC_ENABLED_JCB','JCB');
define('TEXT_CC_ENABLED_AUSTRALIAN_BARTERCARD','Bartercard');
// for images define these as:
// define('IMAGE_CC_ENABLED_VISA',zen_image(DIR_WS_IMAGES . 'filename.jpg');
// use the function
// echo zen_get_cc_enabled('IMAGE_');
// cc enabled image
define('IMAGE_CC_ENABLED_VISA', zen_image($template->get_template_dir('cc1.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc1.gif'));
define('IMAGE_CC_ENABLED_MC', zen_image($template->get_template_dir('cc2.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc2.gif'));
define('IMAGE_CC_ENABLED_AMEX', zen_image($template->get_template_dir('cc3.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc3.gif'));
define('IMAGE_CC_ENABLED_DINERS_CLUB', zen_image($template->get_template_dir('cc4.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc4.gif'));
define('IMAGE_CC_ENABLED_DISCOVER', zen_image($template->get_template_dir('cc5.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc5.gif'));
define('IMAGE_CC_ENABLED_JCB', zen_image($template->get_template_dir('cc6.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc6.gif'));
define('IMAGE_CC_ENABLED_AUSTRALIAN_BARTERCARD', zen_image($template->get_template_dir('cc7.gif', DIR_WS_TEMPLATE, $current_page_base,'images/icons'). '/' . 'cc7.gif'));
?>
Have I done this correctly or are these other files or tables I need to alter?
So did you ever get any joy on this one? I f you did or if you worked out another way to process bartercard transactions please let me know.
Steve
I have just finished developing a bartercard payment module.
Marc
Bookmarks