Jump to content

[SOLVED] Need to edit CC Expiration date!


Recommended Posts

I am using the authorize.net module, but have set it up to work with network merchants, inc. Everything is working properly as far as post url and account etc.

 

THE PROBLEM:

network merchants needs the expiration date in MMYY form. when i select a month that isn't double digit, it does not go thru since it only offers single digit number (1,2,3,4,5,6,7,8,9). Does anyone know how to change it so that the months display as (01,02,03,04,etc) ??

 

Any help is greatly appreciated!

Link to comment
Share on other sites

I fixed it. go into modules/authorizeaim/validation.php

 

Replace

 

$_POST['x_exp_date'] = $_POST['x_exp_date_m'].$_POST['x_exp_date_y'];

 

with this:

 

$_POST['x_exp_date'] = str_pad($_POST['x_exp_date_m'],2,'0',STR_PAD_LEFT).$_POST['x_exp_date_y'];

Link to comment
Share on other sites

×
×
  • Create New...