Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Credit card information


hrt

Recommended Posts

Posted

During my troubleshooting for the downloads issue I'm having (another post), I noticed that credit card numbers are stored in the database, I would like to modify the code to store only the last four digits. If I did this near the bottom of the checkout_success.php file, would it cause a problem? Has anyone done this already?

Posted

Shouldn't be a problem.

Don't know where exactly it gets stored in stock OSC, but extracting the last 4 digits is pretty trivial,

 

eg:

$cc='****-****-****-' . substr($cc, -4);

 

Where $cc is the user input

Posted

There's also the split credit card number option in admin -> payments.

 

Only a partial cc number is stored in the db.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

Can't seem to find that option, perhaps I'm running an older version.

 

There's also the split credit card number option in admin -> payments.

 

Only a partial cc number is stored in the db.

Posted

you need to enable the cc module, then 'configure' the cc module, you can select the split cc portion then

Posted
Can't seem to find that option, perhaps I'm running an older version.

 

Are you using the Credit Card Module that comes in the stock set-up?

 

If so, Go Modules -> Payment, Click on Credit Card, then Edit. You'll find the option there.

Local: Mac OS X 10.5.8 - Apache 2.2/php 5.3.0/MySQL 5.4.10 • Web Servers: Linux

Tools: BBEdit, Coda, Versions (Subversion), Sequel Pro (db management)

Posted

OK, found it and activated it. I was only using the Payflow Pro contribution, will the stock credit card module conflict?

Archived

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

×
×
  • Create New...