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


Use this in your controller:

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


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:

  • Can I call these in model also @prince – Learing_Coder May 31 '17 at 9:01
  • Look my update please. – PЯINCƏ May 31 '17 at 10:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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