2013-06-18 2 views
0

magento에 대한 맞춤 결제 방법을 찾고 있습니다. '주문 단계'동안 오류가 발생한 경우 사용자를 '결제 정보'(즉, 사용자가 결제 수단을 선택하는 ceckout 프로세스의 일부)로 리디렉션하고 싶습니다.Magento : 결제 방법을 선택하려면 리디렉션

이것을 달성하고 가능한 오류를 출력하는 방법이 있습니까?

답변

0

글쎄, "place order"란 "주문 저장"을 의미하는 최종 프로세스를 의미합니다.

본인의 기본 지불 모델에이 행을 입력했다고 가정합니다.

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. 
관련 문제