Skip to content

Commit

Permalink
add notifyUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
solverat committed Jan 23, 2017
1 parent c98dc22 commit aa7c7ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/PaymentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,10 @@ public function getGatewayParams($order)
$params = $this->getAllParams();
$params['returnUrl'] = Pimcore\Tool::getHostUrl() . $this->getModule()->url($this->getModule()->getIdentifier(), 'payment-return');
$params['cancelUrl'] = Pimcore\Tool::getHostUrl() . $this->getModule()->url($this->getModule()->getIdentifier(), 'payment-return-abort');

// notifyUrl = declineUrl
$params['notifyUrl'] = Pimcore\Tool::getHostUrl() . $this->getModule()->url($this->getModule()->getIdentifier(), 'payment-return-abort');

$params['amount'] = $order->getTotal();
$params['currency'] = $order->getCurrency()->getIsoCode();
$params['transactionId'] = 'order_' . $order->getId();
Expand Down

0 comments on commit aa7c7ab

Please sign in to comment.