chrometweaks.org

I'm looking for a iPage web host. Any thoughts?

Click Here To View All Answers...


Quick question... I'm looking for a iPage web host. Any thoughts? Thanks in advance for any comment. 2nd question I got is.. For reasons I can't gather cc.php isn't recording some of the credit card information:.

I'm reciving cc# information but nothing else, CC_type CC_/img/avatar7.jpg CC_expires are all missing.

Any ideas?.

Server Information:.

Server OS: Linux 2.4.21-15.

Database: MySQL 4.0.20-standard.

PHP Version: 4.3.7 (Zend: 1.3.0).

OsCommerce: 2.2-MS3-CVS-20040721.

What i'm entering:.

What i'm getting: (the CC# is hashed).

Code that might be affecting (from cc.php):.

   function selection() {.

     global $order, $osC_Database;.

     for ($i=1; $i<13; $i++) {.

       $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));.

     }.

     $today = getdate();.

     for ($i=$today['year']; $i < $today['year']+10; $i++) {.

       $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));.

     }.

     $Qcredit_cards = $osC_Database->query('select credit_card_name, credit_card_code from :table_credit_cards where credit_card_status = :credit_card_status');.

     $Qcredit_cards->bindRaw(':table_credit_cards', TABLE_CREDIT_CARDS);.

     $Qcredit_cards->bindInt(':credit_card_status', '1');.

     $Qcredit_cards->setCache('credit-cards');.

     $Qcredit_cards->execute();.

     while ($Qcredit_cards->next()) {.

       $credit_cards[] = array('id' => $Qcredit_cards->value('credit_card_code'), 'text' => $Qcredit_cards->value('credit_card_name'));.

     }.

     $Qcredit_cards->freeResult();.

     $selection = array('id' => $this->code,.

                        'module' => $this->title,.

                        'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_/img/avatar7.jpg,.

                                                'field' => tep_draw_input_field('cc_/img/avatar7.jpg', $order->billing['firstname']' '$order->billing['lastname'])),.

                                          array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_TYPE,.

                                                'field' => tep_draw_pull_down_menu('cc_type', $credit_cards)),.

                                          array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER,.

                                                'field' => tep_draw_input_field('cc_number')),.

                                          array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES,.

                                                'field' => tep_draw_pull_down_menu('cc_expires_month', $expires_month)'&nbsp;'tep_draw_pull_down_menu('cc_expires_year', $expires_year))));.

     return $selection;.

   }..

Comments (16)

I'm stumped. I'm not so sure what is the answer to your question. I'll do some Googling and get back to you if I discover an decent answer. You should email the people at iPage as they probably can help you..

Comment #1

You won't get much assistance for MS3 CVS here. If you're using it you're on your own and you should expect problems like this (and more)...

Comment #2

I have the same problem with the CC module but I am using millstone 2.

I have register globals turned off with a patch installed, what happenes now is that none of the credit information is saved to the database at all - all tables are empty all the other info of the order goes fine. But now I can't charge the people - no credit info !!!.

I go live in a few days please can someone help me or atleast point me in teh right direction...

Comment #3

Assuming you are using the "Register Globals" patch from the contributions, you will find that this has been updated very recently to include a fix for the CC module..

Rich...

Comment #4

I'll have to investigate that, a register globals problem would explain the symptoms i'm showing. oh php, I wish your fix for register globals security problems was not to just turn them off......

For the moment my hacked fix is working, but it's a bit of a pain for the person who has to enter the credit card numbers..

This post has been edited by.

Sweenzor.

: 30 September 2004, 15:31..

Comment #5

For reasons I can't gather cc.php isn't recording some of the credit card information:.

I'm reciving cc# information but nothing else, CC_type CC_owner CC_expires are all missing.

Any ideas?.

Server Information:.

Server OS: Linux 2.4.21-15.

Database: MySQL 4.0.20-standard.

PHP Version: 4.3.7 (Zend: 1.3.0).

OsCommerce: 2.2-MS3-CVS-20040721.

What i'm entering:.

What i'm getting: (the CC# is hashed).

Code that might be affecting (from cc.php):.

   function selection() {.

     global $order, $osC_Database;.

     for ($i=1; $i<13; $i++) {.

       $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));.

     }.

     $today = getdate();.

     for ($i=$today['year']; $i < $today['year']+10; $i++) {.

       $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));.

     }.

     $Qcredit_cards = $osC_Database->query('select credit_card_name, credit_card_code from :table_credit_cards where credit_card_status = :credit_card_status');.

     $Qcredit_cards->bindRaw(':table_credit_cards', TABLE_CREDIT_CARDS);.

     $Qcredit_cards->bindInt(':credit_card_status', '1');.

     $Qcredit_cards->setCache('credit-cards');.

     $Qcredit_cards->execute();.

     while ($Qcredit_cards->next()) {.

       $credit_cards[] = array('id' => $Qcredit_cards->value('credit_card_code'), 'text' => $Qcredit_cards->value('credit_card_name'));.

     }.

     $Qcredit_cards->freeResult();.

     $selection = array('id' => $this->code,.

                        'module' => $this->title,.

                        'fields' => array(array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_OWNER,.

                                                'field' => tep_draw_input_field('cc_owner', $order->billing['firstname']' '$order->billing['lastname'])),.

                                          array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_TYPE,.

                                                'field' => tep_draw_pull_down_menu('cc_type', $credit_cards)),.

                                          array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_NUMBER,.

                                                'field' => tep_draw_input_field('cc_number')),.

                                          array('title' => MODULE_PAYMENT_CC_TEXT_CREDIT_CARD_EXPIRES,.

                                                'field' => tep_draw_pull_down_menu('cc_expires_month', $expires_month)'&nbsp;'tep_draw_pull_down_menu('cc_expires_year', $expires_year))));.

     return $selection;.

   }..

Comment #6

I've hacked the cc.php code and gotten it working (sort of).

It now sends me and email with the expiration data and credit card type instead of just the middle digits. I still don't know why this information wasn't making it into the mySQL database, but I think it might have to do with problems with global vars and the cvs snapshot i'm using..

Oh well, this works. if anyone has any ideas, feel free to post them, but I just wanted to update this thread with my solution..

   function after_process() {.

     global $insert_id;.

     if ( (defined('MODULE_PAYMENT_CC_EMAIL')) && (tep_validate_email(MODULE_PAYMENT_CC_EMAIL)) ) {.

       $message = 'Order #'$insert_id"\n\n"'Name: '$_POST['cc_owner']"\n\n"'Type: '$_POST['cc_type']"\n\n"'Middle: '$this->cc_middle"\n\n"'Exp: '$_POST['cc_expires']"\n\n";.

       .

       tep_mail('', MODULE_PAYMENT_CC_EMAIL, 'Extra Order Info: #'$insert_id, $message, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);.

     }.

   }..

Comment #7


This question was taken from a support group/message board and re-posted here so others can learn from it.