I Created a Custom Payment Method Module and its work perfectly but in the redirect to success page i use this code below: Mage_Core_Controller_Varien_Action::_redirect('checkout/onepage/success', array('_secure' => true, '_query'=> $parameters));

in this code i created an array named _query with all parameters from external gateway $parameters so my question how i can read there parameters in success page in checkout success.phtml

2 Answers 2


I reckon you should be able to retrieve this array of parameters by doing:

  • i use your code but the response is null (nothing retrieved) any help plz ? May 17, 2016 at 11:51
  • @mahmoudismail what does Mage::app()->getRequest()->getParams() give you ? May 17, 2016 at 11:54
  • In Success Page my code is <div class="page-title"> <?php echo Mage::app()->getRequest()->getParam('_query'); ?> <h1><?php echo $this->__('Your order has been received..') ?></h1> </div> but print an empty array May 17, 2016 at 11:57
  • @mahmoudismail try to see what you're getting when you use Mage::app()->getRequest()->getParams() ? May 17, 2016 at 11:59
  • i get an empty array array(0) { } May 17, 2016 at 12:10

You can access request variables by using these methods:

Mage::app()->getRequest()->getParams('_query'); // Gets everything, $_GET and $_POST



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.