Skip to content

Commit

Permalink
MAG2-302 - Fixed a data masking bug
Browse files Browse the repository at this point in the history
  • Loading branch information
FatchipRobert committed Dec 14, 2023
1 parent 0820079 commit a9b8566
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions Model/Methods/AmazonPay.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ public function getPaymentSpecificParameters(Order $oOrder)
*/
protected function handleResponse($aResponse, Order $oOrder, $amount)
{
$aResponse = parent::handleResponse($aResponse, $oOrder, $amount);
if ($aResponse['status'] == 'ERROR') {
if (!$this->blIsRetry && $this->checkoutSession->getAmazonRetryAsync() && $aResponse['errorcode'] == 980) {
$aResponse = $this->authorizationRequest->sendRequest($this, $oOrder, $amount);
Expand Down
1 change: 1 addition & 0 deletions Model/Methods/BNPL/BNPLBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ public function assignData(DataObject $data)
*/
protected function handleResponse($aResponse, Order $oOrder, $amount)
{
$aResponse = parent::handleResponse($aResponse, $oOrder, $amount);
if (isset($aResponse['status']) && $aResponse['status'] == 'ERROR' && isset($aResponse['errorcode']) && $aResponse['errorcode'] == '307') {
$aBans = $this->checkoutSession->getPayonePaymentBans();
if (empty($aBans)) {
Expand Down
1 change: 1 addition & 0 deletions Model/Methods/Barzahlen.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ public function getAuthorizationMode()
*/
protected function handleResponse($aResponse, Order $oOrder, $amount)
{
$aResponse = parent::handleResponse($aResponse, $oOrder, $amount);
if (isset($aResponse['status']) && $aResponse['status'] == 'APPROVED' && isset($aResponse['add_paydata[instruction_notes]'])) {
$sInstructionNotes = urldecode($aResponse['add_paydata[instruction_notes]']);
$this->checkoutSession->setPayoneInstructionNotes($sInstructionNotes);
Expand Down
1 change: 1 addition & 0 deletions Model/Methods/Ratepay/RatepayBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ public function isAvailable(\Magento\Quote\Api\Data\CartInterface $quote = null)
*/
protected function handleResponse($aResponse, Order $oOrder, $amount)
{
$aResponse = parent::handleResponse($aResponse, $oOrder, $amount);
$this->checkoutSession->unsPayoneRatepayDeviceFingerprintToken();
if (isset($aResponse['status']) && $aResponse['status'] == 'ERROR'
&& isset($aResponse['errorcode']) && $aResponse['errorcode'] == '307'
Expand Down
1 change: 1 addition & 0 deletions Model/Methods/SafeInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ public function assignData(DataObject $data)
*/
protected function handleResponse($aResponse, Order $oOrder, $amount)
{
$aResponse = parent::handleResponse($aResponse, $oOrder, $amount);
if (isset($aResponse['status']) && $aResponse['status'] == 'ERROR'
&& isset($aResponse['errorcode']) && $aResponse['errorcode'] == '351'
) {
Expand Down

0 comments on commit a9b8566

Please sign in to comment.