diff --git a/controllers/DatatransController.php b/controllers/DatatransController.php index 624ed31..91d26a6 100644 --- a/controllers/DatatransController.php +++ b/controllers/DatatransController.php @@ -19,11 +19,6 @@ */ class Globalpay_DatatransController extends Globalpay_PaymentController { - /** - * This Action can be called via Frontend - * - * @throws \Exception - */ public function successAction() { $this->disableLayout(); diff --git a/controllers/PaymentController.php b/controllers/PaymentController.php index a7a3fe7..cbe2457 100644 --- a/controllers/PaymentController.php +++ b/controllers/PaymentController.php @@ -48,7 +48,7 @@ protected function handleOmnipayResponse(\Omnipay\Common\Message\ResponseInterfa try { if ($response->isSuccessful()) { \Pimcore\Logger::notice(sprintf('Globalpay Gateway payment [%s]: Gateway successfully responded redirect!', $this->getGatewayName())); - $this->forwardSuccess($paymentObject); + $this->forwardSuccess($paymentObject, $response); } else if ($response->isRedirect()) { if ($response instanceof \Omnipay\Common\Message\RedirectResponseInterface) { \Pimcore\Logger::notice(sprintf('Globalpay Gateway payment [%s]: response is a redirect. RedirectMethod: %s', $this->getGatewayName(), $response->getRedirectMethod())); @@ -127,7 +127,7 @@ protected function getPaymentObject(\Omnipay\Common\Message\AbstractResponse $pu /** * Complete the purchase * - * @return \Omnipay\Common\Message\AbstractResponse + * @return \Omnipay\Common\Message\ResponseInterface * * @throws Exception */