uawdijnntqw1x1x1
IP : 3.145.90.221
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
sudancam
/
.trash
/
tyblue.6
/
..
/
catalog
/
controller
/
extension
/
payment
/
liqpay.php
/
/
<?php class ControllerExtensionPaymentLiqPay extends Controller { public function index() { $data['button_confirm'] = $this->language->get('button_confirm'); $this->load->model('checkout/order'); if(!isset($this->session->data['order_id'])) { return false; } $order_info = $this->model_checkout_order->getOrder($this->session->data['order_id']); $data['action'] = 'https://liqpay.ua/?do=clickNbuy'; $xml = '<request>'; $xml .= ' <version>1.2</version>'; $xml .= ' <result_url>' . $this->url->link('checkout/success', '', true) . '</result_url>'; $xml .= ' <server_url>' . $this->url->link('extension/payment/liqpay/callback', '', true) . '</server_url>'; $xml .= ' <merchant_id>' . $this->config->get('payment_liqpay_merchant') . '</merchant_id>'; $xml .= ' <order_id>' . $this->session->data['order_id'] . '</order_id>'; $xml .= ' <amount>' . $this->currency->format($order_info['total'], $order_info['currency_code'], $order_info['currency_value'], false) . '</amount>'; $xml .= ' <currency>' . $order_info['currency_code'] . '</currency>'; $xml .= ' <description>' . $this->config->get('config_name') . ' ' . $order_info['payment_firstname'] . ' ' . $order_info['payment_address_1'] . ' ' . $order_info['payment_address_2'] . ' ' . $order_info['payment_city'] . ' ' . $order_info['email'] . '</description>'; $xml .= ' <default_phone></default_phone>'; $xml .= ' <pay_way>' . $this->config->get('payment_liqpay_type') . '</pay_way>'; $xml .= '</request>'; $data['xml'] = base64_encode($xml); $data['signature'] = base64_encode(sha1($this->config->get('payment_liqpay_signature') . $xml . $this->config->get('payment_liqpay_signature'), true)); return $this->load->view('extension/payment/liqpay', $data); } public function callback() { $xml = base64_decode($this->request->post['operation_xml']); $signature = base64_encode(sha1($this->config->get('payment_liqpay_signature') . $xml . $this->config->get('payment_liqpay_signature'), true)); $posleft = strpos($xml, 'order_id'); $posright = strpos($xml, '/order_id'); $order_id = substr($xml, $posleft + 9, $posright - $posleft - 10); if ($signature == $this->request->post['signature']) { $this->load->model('checkout/order'); $this->model_checkout_order->addOrderHistory($order_id, $this->config->get('config_order_status_id')); } } }
/home/sudancam/.trash/tyblue.6/../catalog/controller/extension/payment/liqpay.php