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 9ee82d39 authored by Giorgos Adam's avatar Giorgos Adam Committed by GitHub

Merge pull request #221 from Adyen/remove-csetoken

Remove cse token from additional data to prevent persisting it
parents b29b1216 457b5961
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
namespace Adyen\Payment\Gateway\Request; namespace Adyen\Payment\Gateway\Request;
use Magento\Payment\Gateway\Request\BuilderInterface; use Magento\Payment\Gateway\Request\BuilderInterface;
use Adyen\Payment\Observer\AdyenCcDataAssignObserver;
class CcAuthorizationDataBuilder implements BuilderInterface class CcAuthorizationDataBuilder implements BuilderInterface
{ {
...@@ -66,7 +67,10 @@ class CcAuthorizationDataBuilder implements BuilderInterface ...@@ -66,7 +67,10 @@ class CcAuthorizationDataBuilder implements BuilderInterface
if ($this->adyenHelper->getAdyenCcConfigDataFlag('cse_enabled', $storeId)) { if ($this->adyenHelper->getAdyenCcConfigDataFlag('cse_enabled', $storeId)) {
$request['additionalData']['card.encrypted.json'] = $request['additionalData']['card.encrypted.json'] =
$payment->getAdditionalInformation("encrypted_data"); $payment->getAdditionalInformation(AdyenCcDataAssignObserver::ENCRYPTED_DATA);
// Remove from additional data
$payment->unsAdditionalInformation(AdyenCcDataAssignObserver::ENCRYPTED_DATA);
} else { } else {
$requestCreditCardDetails = [ $requestCreditCardDetails = [
"expiryMonth" => $payment->getCcExpMonth(), "expiryMonth" => $payment->getCcExpMonth(),
......
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