【问题标题】:Magento Payment GatewayMagento 支付网关
【发布时间】:2013-12-07 19:50:04
【问题描述】:

我在网上查看并没有找到任何像我们的解决方案一样的 magento。我们是一个支付网关,它接收信息、处理并向页面返回 OK/fail。 (恢复方法)。

有什么线索可以做吗?我知道 Magento 是 MVC,我对此很熟悉。在他们的网站上,他们教授如何创建仅在 magento 内授权的付款方式。我想发布到一个 URL($STOREID、$AMOUNT、$ORDERID)。处理完付款后,我会将状态返回给Magento,交易就完成了。

任何帮助将不胜感激。

问候,

蒂亚戈

【问题讨论】:

    标签: magento payment gateway


    【解决方案1】:

    更正确的方法 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');   
        }
    
        }
    

    【讨论】:

    • 谢谢哥们!我会试试的。
    猜你喜欢
    • 2014-08-22
    • 2015-05-24
    • 2011-09-08
    • 1970-01-01
    • 1970-01-01
    • 2017-10-02
    • 1970-01-01
    • 1970-01-01
    • 2013-01-21
    相关资源
    最近更新 更多