We will work on Apr 26th (Saturday) and will be off from Apr 30th (Wednesday) until May 2nd (Friday) for public holiday in our country

Commit c10b6e4a authored by Imran Shakil's avatar Imran Shakil Committed by GitHub

Bugfix/905 missing token error in logs (#906)

* Update PaymentLink.php

To avoid "class not found" exception

* [905] check user defined flag
Co-authored-by: default avatarshakil imran <shakil.imran@monotaro.com>
Co-authored-by: default avatarAlexandros Moraitis <alexandros.moraitis@adyen.com>
parent 8e021bab
......@@ -54,6 +54,10 @@ class VaultDetailsHandler implements HandlerInterface
}
/** @var PaymentDataObject $orderPayment */
$orderPayment = SubjectReader::readPayment($handlingSubject);
$additionalData = $orderPayment->getPayment()->getAdditionalInformation();
$tokenEnabler = array_key_exists("is_active_payment_token_enabler", $additionalData) ? $additionalData['is_active_payment_token_enabler']:false;
if ($tokenEnabler) {
$this->vaultHelper->saveRecurringDetails($orderPayment->getPayment(), $response['additionalData']);
}
}
}
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