Hey guys,
at first I must say your library is great and it saves a lot of time. Thank you for the excellent work!
While implementing this module I had a strange behaviour. I saw the following message over and over in the PHP error log but the module was working like expected:
Zend\View\Renderer\PhpRenderer::render: Unable to render template "payum/capture/do"; resolver could not resolve to a file
It turnded out the ZF2 redirect plugin just sends the HTTP redirection header, but the initial request is processed to the end at the server. I found out that instead of just using
$this->redirect()->toUrl($reply->getUrl());
within your controllers, you should return it(or false) to prevent further processing of the request. (@see http://framework.zend.com/manual/current/en/modules/zend.mvc.plugins.html#redirect-plugin)