From 66a0bed05b09ec418588510cba028c46595be1b6 Mon Sep 17 00:00:00 2001 From: waldix Date: Fri, 10 Aug 2018 16:36:45 -0500 Subject: [PATCH] Cast of order_name & currency_code --- .../controller/extension/payment/compropago_cash.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upload/catalog/controller/extension/payment/compropago_cash.php b/upload/catalog/controller/extension/payment/compropago_cash.php index 0f31fac..425642e 100644 --- a/upload/catalog/controller/extension/payment/compropago_cash.php +++ b/upload/catalog/controller/extension/payment/compropago_cash.php @@ -94,12 +94,12 @@ private function create_order($order) { ); $order_info = [ - 'order_id' => $this->session->data['order_id'], - 'order_name' => $this->session->data['order_id'], + 'order_id' => "{$this->session->data['order_id']}", + 'order_name' => "{$this->session->data['order_id']}", 'order_price' => floatval($order['total']), 'customer_name' => $order['payment_firstname'] . ' ' . $order['payment_lastname'], 'customer_email' => $order['email'], - 'currency' => $order['currency_code'], + 'currency' => strtoupper($order['currency_code']), 'payment_type' => $this->request->post['provider'], 'app_client_name' => 'opencart', 'app_client_version' => VERSION @@ -132,4 +132,4 @@ private function add_transaction($order) { $this->db->query($query); } -} \ No newline at end of file +}