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 50300519 authored by rikterbeek's avatar rikterbeek

#19 use minor amount for partial capture and refund with connection to Adyen

parent aeb28511
......@@ -312,6 +312,9 @@ class PaymentRequest extends DataObject
$merchantAccount = $this->_adyenHelper->getAdyenAbstractConfigData("merchant_account");
$currency = $payment->getOrder()->getBaseCurrencyCode();
//format the amount to minor units
$amount = $this->_adyenHelper->formatAmount($amount, $currency);
$modificationAmount = array('currency' => $currency, 'value' => $amount);
$request = array(
......@@ -377,6 +380,9 @@ class PaymentRequest extends DataObject
$merchantAccount = $this->_adyenHelper->getAdyenAbstractConfigData("merchant_account");
$currency = $payment->getOrder()->getBaseCurrencyCode();
//format the amount to minor units
$amount = $this->_adyenHelper->formatAmount($amount, $currency);
$modificationAmount = array('currency' => $currency, 'value' => $amount);
$request = array(
......
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