From 2657ce1b3881eb44c34d8d028a1c35bf85232b87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89bano=20Lopes?= Date: Tue, 20 Dec 2022 00:22:09 -0300 Subject: [PATCH] Final review on the 3DS documentation --- docs/THREEDS-INTEGRATION.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/THREEDS-INTEGRATION.md b/docs/THREEDS-INTEGRATION.md index 7170e25..0bd27d2 100644 --- a/docs/THREEDS-INTEGRATION.md +++ b/docs/THREEDS-INTEGRATION.md @@ -2,11 +2,11 @@ ### Implementation -First it is necessary to find where the payment method ThreeDs response is received, then create a plugin/preference and inject the class Signifyd\Connect\Model\ThreeDsIntegration to set the gateway data and use the method setThreeDsData to store the data to be sent to Signifyd. +First it is necessary to find where the payment method ThreeDs response is received, then create a plugin/preference/observer and inject the class Signifyd\Connect\Model\ThreeDsIntegration. On the injected class, use the method setThreeDsData to store the data to be sent to Signifyd. To set gateway data it is necessary to map the data according to the Signifyd documentation (https://docs.signifyd.com/#operation/Transaction in transactions > threeDsResult). Note: Before accessing array elements, assert that you're accessing an array to avoid fatal errors. -The final plugin/preference class should look like the bellow one: +The final plugin/preference/observer class should look like the bellow one: ```php threeDsIntegration->setThreeDsData($threeDsData, $quoteId); +```