arguments['keys']['amount']; $this->logger->log('Attempting payment of '.$amount.' for '.$proceedingJoinPoint->methodName); try { $result = $proceedingJoinPoint->process(); $this->logger->log('Payment of '.$amount.'succeeded'); return $result; } catch (Throwable $e) { $this->logger->error('Payment of '.$amount.' failed: '.$e->getMessage()); return false; } } }