Skip to content

Commit

Permalink
Also use store url at redirecturl.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Jacobs committed Jun 8, 2016
1 parent 6c95083 commit 2d71d58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion app/code/community/Mollie/Mpm/controllers/ApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,13 @@ public function paymentAction ()
$session->setMollieQuoteId($session->getQuoteId());
}

$store_code = Mage::app()->getStore()->getCode();
$store_url = Mage::app()->getStore($store_code)->getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK);

// Assign required value's
$amount = $this->getAmount($order);
$description = str_replace('%', $order->getIncrementId(), Mage::helper('mpm/data')->getConfig('mollie', 'description'));
$redirect_url = Mage::getUrl('mpm/api/return') . '?order_id=' . intval($order_id) . '&utm_nooverride=1';
$redirect_url = str_replace('/admin/', $store_url, Mage::getUrl('mpm/api/return') . '?order_id=' . intval($order_id) . '&utm_nooverride=1');
$method = $this->getRequest()->getParam('method_id', NULL);
$issuer = $this->getRequest()->getParam('issuer', NULL);

Expand Down
2 changes: 1 addition & 1 deletion changelog.mdown
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Changelog #

## Changes in release 4.2.3 ##
+ Using store url at webhook to truly enable multistore functions.
+ Using store url at webhook/redirecturl to truly enable multistore functions.
+ Added bank transfer due date (This will send a email to the customer when he/she uses bank transfer)

## Changes in release 4.2.2 ##
Expand Down

0 comments on commit 2d71d58

Please sign in to comment.