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 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);
$this->vaultHelper->saveRecurringDetails($orderPayment->getPayment(), $response['additionalData']);
$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