Php 授权和捕获功能未启动magento自定义支付网关

Php 授权和捕获功能未启动magento自定义支付网关,php,magento,payment-gateway,magento-1.9,magento-1.8,Php,Magento,Payment Gateway,Magento 1.9,Magento 1.8,我已经创建了一个自定义支付网关,但是当我尝试下订单时,捕获和授权功能没有启动。我不是苏,这里少了什么。以下是我的付款模式代码: class RD_Echeck_Model_Paymentmethod extends Mage_Payment_Model_Method_Abstract { protected $_code = 'echeck'; protected $_formBlockType = 'echeck/form_echeck'; protected $_i

我已经创建了一个自定义支付网关,但是当我尝试下订单时,捕获和授权功能没有启动。我不是苏,这里少了什么。以下是我的付款模式代码:

class RD_Echeck_Model_Paymentmethod extends Mage_Payment_Model_Method_Abstract {
    protected $_code  = 'echeck';
    protected $_formBlockType = 'echeck/form_echeck';
    protected $_infoBlockType = 'echeck/info_echeck';
    protected $_canAuthorize = true;
    protected $_canCapture = true;
    protected $_canRefund = false;


public function authorize(Varien_Object $payment, $amount)
{
    echo 'sa';die;
    Mage::log('** Capturing **');
    // Third-party API stuff would go here, with exceptions being thrown if the gateway determines they've provided an invalid card, etc.
}

public function capture(Varien_Object $payment, $amount)
{
    echo 'sa';die;
    Mage::log('** Capturing **');
    // Third-party API stuff would go here, with exceptions being thrown if the gateway determines they've provided an invalid card, etc.
}

}
我的XML支付配置:

  <default>
    <payment>
      <echeck>
        <active>1</active>
        <model>echeck/paymentmethod</model>
        <order_status>pending</order_status>
        <title>TheEcheck</title>
        <allowspecific>0</allowspecific>
        <payment_action>sale</payment_action>
      </echeck>
    </payment>
  </default>

1.
电子支票/付款方式
悬而未决的
检查
0
销售

我已经更改了配置文件,现在一切正常。我刚刚添加了付款操作作为授权

  <default>
    <payment>
      <echeck>
        <active>1</active>
        <model>echeck/echeck</model>
        <order_status>processing</order_status>
        <payment_action>authorize</payment_action>
        <title>TheEcheck</title>
        <currency>USD</currency>
        <allowspecific>0</allowspecific>
      </echeck>
    </payment>
  </default>

1.
埃切克
处理
授权
检查
美元
0