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 a9b0234a authored by rikt's avatar rikt

Merge branch 'develop' of https://github.com/Adyen/adyen-magento2 into develop

parents 125242d1 54f1f616
......@@ -97,7 +97,6 @@ class AdyenThreeDS2Process implements AdyenThreeDS2ProcessInterface
try {
$client = $this->adyenHelper->initializeAdyenClient($quote->getStoreId());
$service = $this->adyenHelper->createAdyenCheckoutService($client);
$requestOptions['idempotencyKey'] = $quote->reserveOrderId()->getReservedOrderId();
$result = $service->paymentsDetails($request);
} catch (\Adyen\AdyenException $e) {
......
......@@ -118,8 +118,7 @@ class PaymentRequest extends DataObject
try {
$client = $this->_adyenHelper->initializeAdyenClient($storeId);
$service = $this->_adyenHelper->createAdyenCheckoutService($client);
$requestOptions['idempotencyKey'] = $order->getIncrementId();
$result = $service->paymentsDetails($request, $requestOptions);
$result = $service->paymentsDetails($request);
} catch (\Adyen\AdyenException $e) {
throw new \Magento\Framework\Exception\LocalizedException(__('3D secure failed'));
}
......
......@@ -32,7 +32,7 @@ define(
/**
* Retrieve the list of available payment methods from the server
*/
retrieveAvailablePaymentMethods: function (callback = null) {
retrieveAvailablePaymentMethods: function (callback) {
var self = this;
// retrieve payment methods
......@@ -56,7 +56,7 @@ define(
).done(
function (response) {
self.setPaymentMethods(response);
if (callback !== null) {
if (callback) {
callback();
}
}
......
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