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 7fd60d77 authored by Imran Shakil's avatar Imran Shakil Committed by GitHub

Bugfix/896 card type server error (#897)

* Update PaymentLink.php

To avoid "class not found" exception

* [bugfix/896] check array key
Co-authored-by: default avatarshakil imran <shakil.imran@monotaro.com>
Co-authored-by: default avatarAttila Kiss <42297201+cyattilakiss@users.noreply.github.com>
parent 6d9c1b77
...@@ -66,7 +66,7 @@ class CheckoutResponseValidator extends AbstractValidator ...@@ -66,7 +66,7 @@ class CheckoutResponseValidator extends AbstractValidator
$payment->setAdditionalInformation('3dActive', false); $payment->setAdditionalInformation('3dActive', false);
$isValid = true; $isValid = true;
$errorMessages = []; $errorMessages = [];
$resultCode = $response['resultCode']; $resultCode = array_key_exists("resultCode", $response) ? $response['resultCode']:'';
// validate result // validate result
if (!empty($resultCode)) { if (!empty($resultCode)) {
$payment->setAdditionalInformation('resultCode', $resultCode); $payment->setAdditionalInformation('resultCode', $resultCode);
......
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