Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cc_number in cc_validation.php - GLOBALS


vsopvs

Recommended Posts

Posted

Hi everybody;

 

register_globals is on in php.ini (i also checked through phpinfo()).

 

I set

 

$GLOBALS['cc_type'] = $this->cc_type;

 

etc in includes/classes/cc_validation.php, expecting this to be written to ORDERS_TABLE, but this does not happen somehow.

 

I traced it through includes/classes/order.php, if i set the value directly (for testing) - it gets written to the database ... but not through GLOBALS set in cc_validation.php ...

 

Any advice?

 

Thanks

vs

Posted

what are you trying to accomplish? what payment module are you going to use?

Posted
what are you trying to accomplish?? what payment module are you going to use?

 

I am using linkpointbasic.php, and the site is up & running for more than a year, everything is fine.

 

It's just the client requested credit card info to be saved in the database, and there's a section in includes/classes/order.php where they use isset($GLOBALS['cc_number']) to set cc info before the database record is inserted, so i wanted to set respective GLOBALS in cc_validation.php ...

 

But it does not work somehow, even though register_globals is On ...

Posted

you should probably read your merchant account agreement on storing credit cards, most merchant accounts forbid you to store the info and they could cancel you at anytime if they see this.

Posted
you should probably read your merchant account agreement on storing credit cards, most merchant accounts forbid you to store the info and they could cancel you at anytime if they see this.

 

Do you think Big Brother reads my $GLOBALS? :blink:

 

Well ... considering the Patriot Act ... they might :'(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...