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 0ea49d3c authored by alessio's avatar alessio Committed by attilak

Renamed AdyenInitiatePaymentsInterface and AdyenInitiatePayments,

changed endpoint to 3ds2Process
parent 5c9e1a54
......@@ -24,7 +24,7 @@
namespace Adyen\Payment\Api;
interface AdyenInitiatePaymentsInterface
interface Adyen3DS2ProcessInterface
{
/**
* Returns string
......
......@@ -23,9 +23,9 @@
namespace Adyen\Payment\Model;
use Adyen\Payment\Api\AdyenInitiatePaymentsInterface;
use Adyen\Payment\Api\Adyen3DS2ProcessInterface;
class AdyenInitiatePayments implements AdyenInitiatePaymentsInterface
class Adyen3DS2Process implements Adyen3DS2ProcessInterface
{
public function __construct()
{
......
......@@ -43,7 +43,7 @@ class AdyenCcDataAssignObserver extends AbstractDataAssignObserver
const JAVA_ENABLED = 'java_enabled';
const SCREEN_COLOR_DEPTH = 'screen_color_depth';
const SCREEN_WIDTH = 'screen_width';
const SCREEN_HEIGHT = 'screen_hegiht';
const SCREEN_HEIGHT = 'screen_height';
const TIMEZONE_OFFSET = 'timezone_offset';
/**
......
......@@ -883,8 +883,8 @@
type="Adyen\Payment\Model\AdyenRequestMerchantSession"/>
<preference for="Adyen\Payment\Api\AdyenInitiateTerminalApiInterface"
type="Adyen\Payment\Model\AdyenInitiateTerminalApi"/>
<preference for="Adyen\Payment\Api\AdyenInitiatePaymentsInterface"
type="Adyen\Payment\Model\AdyenInitiatePayments"/>
<preference for="Adyen\Payment\Api\Adyen3DS2ProcessInterface"
type="Adyen\Payment\Model\Adyen3DS2Process"/>
<preference for="Magento\Checkout\Api\PaymentInformationManagementInterface"
type="Adyen\Payment\Model\AdyenPaymentInformationManagement"/>
<type name="Magento\Vault\Api\PaymentTokenRepositoryInterface">
......
......@@ -58,8 +58,8 @@
</resources>
</route>
<route url="/V1/adyen/payments" method="POST">
<service class="Adyen\Payment\Api\AdyenInitiatePaymentsInterface" method="initiate"/>
<route url="/V1/adyen/3ds2Process" method="POST">
<service class="Adyen\Payment\Api\Adyen3DS2ProcessInterface" method="initiate"/>
<resources>
<resource ref="anonymous"/>
</resources>
......
......@@ -202,7 +202,7 @@ define(
'java_enabled': navigator.javaEnabled(),
'screen_color_depth': screen.colorDepth,
'screen_width': screen.width,
'screen_hegiht': screen.height,
'screen_height': screen.height,
'timezone_offset': new Date().getTimezoneOffset()
}
};
......@@ -237,7 +237,7 @@ define(
fullScreenLoader.startLoader();
var serviceUrl = urlBuilder.createUrl('/adyen/payments', {});
var serviceUrl = urlBuilder.createUrl('/adyen/3ds2Process', {});
var payload = {
"payload": JSON.stringify(self.getData()),
......
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