2013-11-22 2 views
-1

나는 웹을보고 있었고 우리 솔루션과 같은 magento를 찾지 못했습니다. 우리는 정보를 받고, 처리하고, OK/실패를 페이지에 반환하는 지불 게이트웨이입니다. (restul 접근법).자홍색 지불 게이트웨이

어떻게해야할까요? 저는 Magento가 MVC이고 저는 그것에 익숙하다는 것을 알고 있습니다. 그들의 웹 사이트에서 그들은 magento 내에서만 승인하는 지불 방법을 만드는 방법을 가르칩니다. URL ($ STOREID, $ AMOUNT, $ ORDERID)에 게시하고 싶습니다. 지불 처리가 끝나면 상태를 Magento로 반환하고 거래가 완료됩니다.

도움이 될 것입니다.

감사합니다,

티아고

답변

0

더 올바른 방법 http://www.magentocommerce.com/api/rest/introduction.html

또는 당신이 원하는대로 새 컨트롤러 이름을 생성하고이 같은 보여야 컨트롤러 :

<?php 
    class Namespace_Module_Brand_IndexController extends Mage_Core_Controller_Front_Action 
    { 
    public function indexAction() 
    { 
    $post = $this->getRequest()->getPost(); 
    $params = $this->getRequest()->getParams(); 

    $current_checkout = Mage::getSingleton('checkout/session'); 

    //do whatever you want based on the information provided 
    //you might also want to know about: 
    $this->_redirect('path/to/redirect'); 
    $this->_forward('path/to/action'); 
    } 

    } 
+0

Tks 버디! 나는 그것을 시도 할 것이다. –