OpenCart 🇺🇦

Схема

protected mixed index ( )

Аргументы

Аргумент Возможный тип Описание
У метода нет аргументов

Описание

Метод пока еще не документирован.

Исходный код

$this->data['button_confirm'] = $this->language->get('button_confirm');

if (!$this->config->get('paymate_test')) {
	$this->data['action'] = 'https://www.paymate.com/PayMate/ExpressPayment';
} else {
	$this->data['action'] = 'https://www.paymate.com.au/PayMate/TestExpressPayment';
}

$this->load->model('checkout/order');

$order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']);

$this->data['mid'] = $this->config->get('paymate_username');
$this->data['amt'] = $this->currency->format($order_info['total'], $order_info['currency_code'], $order_info['currency_value'], false); 

$this->data['currency'] = $order_info['currency_code'];
$this->data['ref'] = $order_info['order_id'];

$this->data['pmt_sender_email'] = $order_info['email'];
$this->data['pmt_contact_firstname'] = html_entity_decode($order_info['payment_firstname'], ENT_QUOTES, 'UTF-8');
$this->data['pmt_contact_surname'] = html_entity_decode($order_info['payment_lastname'], ENT_QUOTES, 'UTF-8');
$this->data['pmt_contact_phone'] = $order_info['telephone'];
$this->data['pmt_country'] = $order_info['payment_iso_code_2'];

$this->data['regindi_address1'] = html_entity_decode($order_info['payment_address_1'], ENT_QUOTES, 'UTF-8');
$this->data['regindi_address2'] = html_entity_decode($order_info['payment_address_2'], ENT_QUOTES, 'UTF-8');
$this->data['regindi_sub'] = html_entity_decode($order_info['payment_city'], ENT_QUOTES, 'UTF-8');
$this->data['regindi_state'] = html_entity_decode($order_info['payment_zone'], ENT_QUOTES, 'UTF-8');
$this->data['regindi_pcode'] = html_entity_decode($order_info['payment_postcode'], ENT_QUOTES, 'UTF-8');

$this->data['return'] = $this->url->link('payment/paymate/callback', 'hash=' . md5($order_info['order_id'] . $this->currency->format($order_info['total'], $order_info['currency_code'], $order_info['currency_value'], false) . $order_info['currency_code'] . $this->config->get('paymate_password')));

if (file_exists(DIR_TEMPLATE . $this->config->get('config_template') . '/template/payment/paymate.tpl')) {
	$this->template = $this->config->get('config_template') . '/template/payment/paymate.tpl';
} else {
	$this->template = 'default/template/payment/paymate.tpl';
}	

$this->render();