diff --git a/Plugin/PaymentVaultDeleteToken.php b/Plugin/PaymentVaultDeleteToken.php index 451a10a17..9159ab749 100644 --- a/Plugin/PaymentVaultDeleteToken.php +++ b/Plugin/PaymentVaultDeleteToken.php @@ -70,10 +70,9 @@ public function beforeDelete(PaymentTokenRepositoryInterface $subject, PaymentTo ); $response = $recurringService->disable(new DisableRequest($request)); - + $responseData = json_decode(json_encode($response->jsonSerialize()), true); $this->dataHelper->logResponse($responseData); - } catch (AdyenException $e) { $this->adyenLogger->error(sprintf( 'Error while attempting to disable token with id %s: %s',