Skip to content

Commit

Permalink
Merge pull request #164 from razorpay/update_order_currency
Browse files Browse the repository at this point in the history
PON-74: updated base amount and currency to quote amount and currency
  • Loading branch information
ramth05 authored Nov 26, 2019
2 parents c31dc60 + eafc5af commit a1e83d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Controller/Payment/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(

public function execute()
{
$amount = (int) (round($this->getQuote()->getBaseGrandTotal(), 2) * 100);
$amount = (int) (round($this->getQuote()->getGrandTotal(), 2) * 100);

$receipt_id = $this->getQuote()->getId();

Expand All @@ -66,7 +66,7 @@ public function execute()
$order = $this->rzp->order->create([
'amount' => $amount,
'receipt' => $receipt_id,
'currency' => $this->_currency,
'currency' => $this->getQuote()->getQuoteCurrencyCode(),
'payment_capture' => $payment_capture
]);

Expand Down

0 comments on commit a1e83d0

Please sign in to comment.