0

I Have Created a custom payment method which enabled in admin and showing in

one-step checkout page, But on clicking the proceed order the order payment

is not redirecting to a success page, Can anyone help me in these

Thanks In advance

1
  • Please, add code of the method to your question May 30, 2017 at 5:29

1 Answer 1

1

Use this in your controller:

$this->_redirect('checkout/onepage/success', array('_secure'=>true));

EDIT:

Why do you need to redirect from a model ? generally the redirects should happen in controllers. However if you have some exception in your case and you should to redirect from a model, try this code below:

Mage::app()->getFrontController()->getResponse()->setRedirect(Mage::getUrl('checkout/onepage/success'));
Mage::app()->getResponse()->sendResponse();       
return;
2
  • Can I call these in model also @prince May 31, 2017 at 9:01
  • Look my update please.
    – PЯINCƎ
    May 31, 2017 at 10:36

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.