Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

problem with credit card expiration date


thecodingmonkey

Recommended Posts

Not really sure how to get this to 2 digits but I am pretty sure the page to look into is catalog/includes/classes/cc_validation.php

 

Look int here first.

 

JM

Always remember, we need patience, guidance and most of all understanding.

 

My Contributions

Link to comment
Share on other sites

Find the following line in your payment module file:

$this->cc_expiry_year = $cc_validation->cc_expiry_year;

 

Add the following line after above:

 

$this->cc_expiry_year = substr($this->cc_expiry_year, -2)

 

Hope it helps!

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...