Just putting the finishing touches on a beanstream gateway
they (bank) want the submission to include 2 digits for the cc exp month and year
i found some code for shortening the year to 2 digits (from linkpoint API module)
'trnExpYear' => substr($order->payment_details['cc_exp_year'], 2, 2),
that works fine...
however for the month it works for oct nov dec (10,11,12) but not the other months
i.e. sept (is 9 I need it to be 09)
any thoughts on how to add a zero only when the month is one digit
here is the line that drops the month value into the array
'trnExpMonth' => $order->payment_details['cc_exp_month'],
thanks




Joined: 08/19/2007