我正在为magento制作自定义付款方式。在“下订单阶段”期间出现错误的情况下,我想将用户重定向到“付款信息”(即,用户选择付款方法的结账过程的一部分)。
有没有办法实现这一点并输出任何可能的错误?
答案 0 :(得分:0)
好吧,如果通过“下订单”表示最终流程,即“保存订单”。
我想您将这些行放在主要付款模式中。
public function getOrderPlaceRedirectUrl(){
return Mage::getUrl('yourmodule/yourcontroller/yourmethod');
}
In yourmethod, deal with exceptions (search by 'try catch - php').. and when you get one of these exceptions, redirect to your onestep page.
Unfortunelly, at this point (onestep) page, i don't know exactly how you can focus on payment method. But , just take a look at the calls in that phase that you can figure it out.