Исходный код метода:
$this->language->load('payment/pp_pro_pf');
$this->data['text_credit_card'] = $this->language->get('text_credit_card');
$this->data['text_start_date'] = $this->language->get('text_start_date');
$this->data['text_issue'] = $this->language->get('text_issue');
$this->data['text_wait'] = $this->language->get('text_wait');
$this->data['entry_cc_owner'] = $this->language->get('entry_cc_owner');
$this->data['entry_cc_type'] = $this->language->get('entry_cc_type');
$this->data['entry_cc_number'] = $this->language->get('entry_cc_number');
$this->data['entry_cc_start_date'] = $this->language->get('entry_cc_start_date');
$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['entry_cc_issue'] = $this->language->get('entry_cc_issue');
$this->data['button_confirm'] = $this->language->get('button_confirm');
$this->load->model('checkout/order');
$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);
$this->data['owner'] = $order_info['payment_firstname'] . ' ' . $order_info['payment_lastname'];
$this->data['cards'] = array();
$this->data['cards'][] = array(
'text' => 'Visa',
'value' => '0'
);
$this->data['cards'][] = array(
'text' => 'MasterCard',
'value' => '1'
);
$this->data['cards'][] = array(
'text' => 'Maestro',
'value' => '9'
);
$this->data['cards'][] = array(
'text' => 'Solo',
'value' => 'S'
);
$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_valid'] = array();
for ($i = $today['year'] - 10; $i < $today['year'] + 1; $i++) {
$this->data['year_valid'][] = array(
'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)),
'value' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i))
);
}
$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/pp_pro_pf.tpl')) {
$this->template = $this->config->get('config_template') . '/template/payment/pp_pro_pf.tpl';
} else {
$this->template = 'default/template/payment/pp_pro_pf.tpl';
}
$this->render();