Linux altar53.supremepanel53.com 4.18.0-553.8.1.lve.el8.x86_64 #1 SMP Thu Jul 4 16:24:39 UTC 2024 x86_64
/ home/ bdapparelinfo/ dhakazone.com/ catalog/ controller/ extension/ payment/ |
|
<?php class ControllerExtensionPaymentPayza extends Controller { public function index() { $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']); $data['action'] = 'https://secure.payza.com/checkout'; $data['ap_merchant'] = $this->config->get('payment_payza_merchant'); $data['ap_amount'] = $this->currency->format($order_info['total'], $order_info['currency_code'], $order_info['currency_value'], false); $data['ap_currency'] = $order_info['currency_code']; $data['ap_purchasetype'] = 'Item'; $data['ap_itemname'] = $this->config->get('config_name') . ' - #' . $this->session->data['order_id']; $data['ap_itemcode'] = $this->session->data['order_id']; $data['ap_returnurl'] = $this->url->link('checkout/success'); $data['ap_cancelurl'] = $this->url->link('checkout/checkout', '', true); return $this->load->view('extension/payment/payza', $data); } public function callback() { if (isset($this->request->post['ap_securitycode']) && ($this->request->post['ap_securitycode'] == $this->config->get('payment_payza_security'))) { $this->load->model('checkout/order'); $this->model_checkout_order->addOrderHistory($this->request->post['ap_itemcode'], $this->config->get('payment_payza_order_status_id')); } } }