Skip to content

Commit

Permalink
Cast of order_name & currency_code
Browse files Browse the repository at this point in the history
  • Loading branch information
waldix authored Aug 10, 2018
1 parent f308b67 commit 66a0bed
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -132,4 +132,4 @@ private function add_transaction($order) {

$this->db->query($query);
}
}
}

0 comments on commit 66a0bed

Please sign in to comment.