Skip to content
This repository has been archived by the owner on Nov 10, 2021. It is now read-only.

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dpfaffenbauer committed Jan 13, 2017
1 parent f491060 commit 83ff7f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions controllers/DatatransController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@
*/
class Globalpay_DatatransController extends Globalpay_PaymentController
{
/**
* This Action can be called via Frontend
*
* @throws \Exception
*/
public function successAction()
{
$this->disableLayout();
Expand Down
4 changes: 2 additions & 2 deletions controllers/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit 83ff7f4

Please sign in to comment.