Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
sapph110 (Guest)
sapph110 (Guest)
Hi,
I need to pass the credit card expiration year and month to my gateway. I've tried every combination of set variable that I can and nothing is working. Here's what it looks like:
 
In order_confirmation.php
// orginal code from v 2.3
$variables["cc_start_date"] = va_date(array("MM"," / ","YYYY"), $cc_start_date);
$variables["cc_expiry_date"] = va_date(array("MM"," / ","YYYY"), $cc_expiry_date);
$variables["cc_start_year"] = va_date(array("YY"), $cc_start_date);
$variables["cc_start_yyyy"] = va_date(array("YYYY"), $cc_start_date);
$variables["cc_expiry_year"] = va_date(array("YY"), $cc_expiry_date);
$variables["cc_expiry_yyyy"] = va_date(array("YYYY"), $cc_expiry_date);
$variables["cc_start_month"] = va_date(array("MM"), $cc_start_date);
$variables["cc_expiry_month"] = va_date(array("MM"), $cc_expiry_date);
 
// code I added further down where other code of this type exists
$t->set_var("cc_expiry_yyyy", $variables["cc_expiry_yyyy"]);
$t->set_var("cc_expiry_month", $variables["cc_expiry_month"]);
 
then in order_confirmation.html, I added this to the form
<input type="hidden" name="expmonth" value="{cc_expiry_month}">
<input type="hidden" name="expyear" value="{cc_expiry_yyyy}">
 
Can someone please tell what is wrong with this and how I can put the month and year of the expiration date on the order_confirmation form.
 
Thank you.
 
Rosanne