We will be off from 27/1 (Monday) to 31/1 (Friday) (GMT +7) for our Tet Holiday (Lunar New Year) in our country

Commit 667fd8ec authored by Rik ter Beek's avatar Rik ter Beek

#67 use order currency and amount instead of base

parent aa89f491
...@@ -54,8 +54,8 @@ class PaymentDataBuilder implements BuilderInterface ...@@ -54,8 +54,8 @@ class PaymentDataBuilder implements BuilderInterface
/** @var \Magento\Payment\Gateway\Data\PaymentDataObject $paymentDataObject */ /** @var \Magento\Payment\Gateway\Data\PaymentDataObject $paymentDataObject */
$paymentDataObject = \Magento\Payment\Gateway\Helper\SubjectReader::readPayment($buildSubject); $paymentDataObject = \Magento\Payment\Gateway\Helper\SubjectReader::readPayment($buildSubject);
$order = $paymentDataObject->getOrder(); $order = $paymentDataObject->getOrder();
$orderCurrencyCode = $order->getCurrencyCode(); $orderCurrencyCode = $order->getOrderCurrencyCode();
$amount = $order->getGrandTotalAmount(); $amount = $order->getGrandTotal();
$amount = ['currency' => $orderCurrencyCode, $amount = ['currency' => $orderCurrencyCode,
'value' => $this->adyenHelper->formatAmount($amount, $orderCurrencyCode)]; 'value' => $this->adyenHelper->formatAmount($amount, $orderCurrencyCode)];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment