OpenCart 🇺🇦

Схема

protected mixed validate ( )

Аргументы

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

Описание

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

Исходный код

if (!$this->user->hasPermission('modify', 'payment/liqpay')) {
	$this->error['warning'] = $this->language->get('error_permission');
}

if (!$this->request->post['liqpay_merchant']) {
	$this->error['merchant'] = $this->language->get('error_merchant');
}

if (!$this->request->post['liqpay_signature']) {
	$this->error['signature'] = $this->language->get('error_signature');
}

if (!$this->error) {
	return true;
} else {
	return false;
}