/**
  * {@inheritDoc}
  */
 public function onException(\Exception $exception, $request, ActionInterface $action = null)
 {
     $this->logger->debug(sprintf('[Payum] %d# %s::execute(%s) throws exception %s', $this->stackLevel, $action ? Humanify::value($action) : 'Payment', Humanify::request($request), Humanify::value($exception)));
     $this->stackLevel--;
 }
Beispiel #2
0
 /**
  * @test
  */
 public function shouldReturnRequestShortClassAndUrlIfRedirectUrlInteractiveRequestOnRequest()
 {
     $request = new RedirectUrlInteractiveRequest('http://example.com/foo');
     $this->assertEquals('RedirectUrlInteractiveRequest{url: http://example.com/foo}', Humanify::request($request));
 }
 /**
  * @param ActionInterface $action
  * @param mixed $request
  *
  * @return RequestNotSupportedException
  */
 public static function createActionNotSupported(ActionInterface $action, $request)
 {
     return new self(sprintf('Action %s is not supported the request %s.', Humanify::value($action), Humanify::request($request)));
 }