Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help With OSC MS2.2 RC1


Teamjr

Recommended Posts

Posted

Hello,

 

Was wondering if someone also has had this problem. I have in checkout_process.php the following line,

 

'cc_number' => (substr_replace($_POST['cc_number'], ' xxxx xxxx xxxx ', 0, -4)),

 

which is supposed to only enter the last four digits of the credit card into the database. All I get is xxxx, xxxx? Any reason why it may not be writing correctly to the database?

 

Thanks TJR

Posted

Thought this might help

 

http://www.w3schools.com/php/func_string_substr_replace.asp

 

I also googled

 

php last 4 digits credit card

 

This gave http://www.webmasterworld.com/forum88/2751.htm

 

Might also be worthwhile checking if without the fix the whole number is being stored as if there is nothing there to start with any manipulation is going to give puzzling results

 

Enjoy

Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Archived

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

×
×
  • Create New...