View Single Post
  #22  
Old 06-17-2004, 05:56 AM
 
DanUK DanUK is offline
 

X-Adept
  
Join Date: Dec 2003
Location: UK
Posts: 800
 

Default

Finally, seem to have got it to work. The only difference being I put the:

Code:
$card_expire = $card_expire_Month.substr($card_expire_Year,2,2);

Statement in payment/payment_cc.php where I originally put the concatenating code in my original example, so:

Code:
require "../include/payment_method.php"; if ($REQUEST_METHOD=="POST") { $order_details = ""; HERE! >>>> $card_expire = $card_expire_Month.substr($card_expire_Year,2,2); if ($store_cc) {

Now I get a 2 digit month and year. I'm off now to do the same with the "valid from" date.

Oh, I've also used the numerical equivalent for the displaying of month seen as CC's only use digits -believe you me, some people have difficulty trying to work out the numeric value of a month so best keep things simple, so:

Code:
{html_select_date prefix="card_expire_" time=$time month_format=%m start_year="-2" end_year="+8"}

noting the month_format=%m attribute.

Dan

Dan
__________________
4.4.2

and

4.6.1
Reply With Quote