Magento支付网关

Magento支付网关,magento,payment,gateway,Magento,Payment,Gateway,我在网上查了一下,没有找到像我们的解决方案那样适合magento的东西。我们是一个支付网关,接收信息,处理并返回OK/fail页面。(restul方法) 怎么做有什么线索吗?我知道Magento是MVC,我对此很熟悉。在他们的网站上,他们教授如何创建一种只在magento内部授权的付款方式。我想发布到URL($STOREID,$AMOUNT,$ORDERID)。处理付款后,我会将状态返回给Magento,交易将完成 任何帮助都将不胜感激 问候, 蒂亚戈更正确的方法 或者创建一个新的控制器 您可

我在网上查了一下,没有找到像我们的解决方案那样适合magento的东西。我们是一个支付网关,接收信息,处理并返回OK/fail页面。(restul方法)

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

任何帮助都将不胜感激

问候,

蒂亚戈

更正确的方法

或者创建一个新的控制器 您可以随意命名,控制器的外观应如下所示:

 <?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');   
    }

    }

Tks伙计!我试试看。