Skip to content

Commit

Permalink
Switched usage of number_format to currency->format
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankamencherla committed Jan 27, 2017
1 parent 2a7d7d7 commit 57ddb75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion catalog/controller/extension/payment/razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function index()
$data['currency_code'] = 'INR';
$data['display_currency'] = $order_info['currency_code'];
$data['display_total'] = number_format($display_total, 2, '.', '');
$data['total'] = (int) number_format($order_info['total'], 2, '.', '') * 100;
$data['total'] = $this->currency->format($order_info['total'], 'INR', 1, false) * 100;
$data['merchant_order_id'] = $this->session->data['order_id'];
$data['card_holder_name'] = $order_info['payment_firstname'].' '.$order_info['payment_lastname'];
$data['email'] = $order_info['email'];
Expand Down
2 changes: 1 addition & 1 deletion catalog/controller/payment/razorpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function index()
$data['currency_code'] = 'INR';
$data['display_currency'] = $order_info['currency_code'];
$data['display_total'] = number_format($display_total, 2, '.', '');
$data['total'] = (int) number_format($order_info['total'], 2, '.', '') * 100;
$data['total'] = $this->currency->format($order_info['total'], 'INR', 1, false) * 100;
$data['merchant_order_id'] = $this->session->data['order_id'];
$data['card_holder_name'] = $order_info['payment_firstname'].' '.$order_info['payment_lastname'];
$data['email'] = $order_info['email'];
Expand Down

0 comments on commit 57ddb75

Please sign in to comment.