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