$this->language->load('payment/authorizenet_aim');
$this->data['text_credit_card'] = $this->language->get('text_credit_card');
$this->data['text_wait'] = $this->language->get('text_wait');
$this->data['entry_cc_owner'] = $this->language->get('entry_cc_owner');
$this->data['entry_cc_number'] = $this->language->get('entry_cc_number');
$this->data['entry_cc_expire_date'] = $this->language->get('entry_cc_expire_date');
$this->data['entry_cc_cvv2'] = $this->language->get('entry_cc_cvv2');
$this->data['button_confirm'] = $this->language->get('button_confirm');
$this->data['months'] = array();
for ($i = 1; $i <= 12; $i++) {
$this->data['months'][] = array(
'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)),
'value' => sprintf('%02d', $i)
);
}
$today = getdate();
$this->data['year_expire'] = array();
for ($i = $today['year']; $i < $today['year'] + 11; $i++) {
$this->data['year_expire'][] = array(
'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)),
'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))
);
}
if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/authorizenet_aim.tpl')) {
$this->template = $this->config->get('config_template') . '/template/payment/authorizenet_aim.tpl';
} else {
$this->template = 'default/template/payment/authorizenet_aim.tpl';
}
$this->render();