Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

credit card type


Guest

Recommended Posts

Hi,

 

Just wondering how I could get the type of credit card the person was using(visa or mastercard) to include in the confirmation email that checkout_process.php sends to us. I tried using the variable $order->info['cc_type'] but that didn't work. I think the variable is in the cc_validation class object? How could I access it from the checkout_process.php file? Any help would be much appreciated!

 

Thanks a bunch,

Steve

Link to comment
Share on other sites

If I'm correct, the first 4 numbers of the credit card determines what type of card it is (i.e. Visa = 4214 xxxx xxxx xxxx). Create a statement that detects this value and outputs the response.

 

Good Luck.

 

-R

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...