Skip to content

Commit

Permalink
Use base currency and total insead of order currency
Browse files Browse the repository at this point in the history
  • Loading branch information
harshilmathur committed May 28, 2015
1 parent f97cd02 commit 7ec9216
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/community/Razorpay/Payments/Model/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ public function getQuote() {
public function getFormFields() {
$order_id = $this->getCheckout()->getLastRealOrderId();
$order = Mage::getModel('sales/order')->loadByIncrementId($order_id);
$amount = round($order->getGrandTotal(), 2);
$currency_code = $order->getOrderCurrencyCode();
$amount = round($order->getBaseGrandTotal(), 2);
$currency_code = $order->getBaseCurrencyCode();
$b = $order->getBillingAddress();

$fields = array();
Expand Down

0 comments on commit 7ec9216

Please sign in to comment.