Magento的支付宝模块

限制magento在中国应用的一个主要障碍就是没有相应的支付宝模块,现在转载一个Magento的支付宝测试版本,大家可以下来试试。

注:需要系统有mb_convert_encoding libs 或 iconv libs

点击下载:Alipay支付宝模块

评论

我把接口开源了:) 大家可以到magento-connec

我把接口开源了:)

大家可以到magento-connect下载呵呵

http://www.magentocommerce.com/extension/2226/alipay-payment-gateway----...

这是广大用户的福音啊,感谢你的工作

这是广大用户的福音啊,感谢你的工作

本来是想选这个系统,但没有支付宝接口也就没得选了

本来是想选这个系统,但没有支付宝接口也就没得选了

安装致命错误

Fatal error: Maximum execution time of 120 seconds exceeded in D:xampphtdocsmagentolibZendDbAdapterPdoAbstract.php on line 146

 

前面所有的配置检测都OK, 然后进行安装, 结果等好半天就出了这么个摸不着头脑的致命错误.

前一个页面的数据库连接是localhost:mysqlpo

前一个页面的数据库连接是localhost:mysqlport(default:3306) 

最近在用magento,需要开发支付模块。我也在官网上找了

最近在用magento,需要开发支付模块。我也在官网上找了相关文档http://www.magentocommerce.com/wiki/how-to/create-payment-method-module。但只是一些配置的介绍。其中需要对magento内置的接口函数进行自定义。这些接口不是太明白,

  1. <?php
  2.  
  3. /**
  4. * Our test CC module adapter
  5. */
  6. class Mage_NewModule_Model_PaymentMethod extends Mage_Payment_Model_Method_Cc
  7. {
  8.     /**
  9.     * unique internal payment method identifier
  10.     *
  11.     * @var string [a-z0-9_]
  12.     */
  13.     protected $_code = 'newmodule';
  14.  
  15.     /**
  16.      * Here are examples of flags that will determine functionality availability
  17.      * of this module to be used by frontend and backend.
  18.      *
  19.      * @see all flags and their defaults in Mage_Payment_Model_Method_Abstract
  20.      *
  21.      * It is possible to have a custom dynamic logic by overloading
  22.      * public function can* for each flag respectively
  23.      */
  24.      
  25.     /**
  26.      * Is this payment method a gateway (online auth/charge) ?
  27.      */
  28.     protected $_isGateway               = true;
  29.  
  30.     /**
  31.      * Can authorize online?
  32.      */
  33.     protected $_canAuthorize            = true;
  34.  
  35.     /**
  36.      * Can capture funds online?
  37.      */
  38.     protected $_canCapture              = true;
  39.  
  40.     /**
  41.      * Can capture partial amounts online?
  42.      */
  43.     protected $_canCapturePartial       = false;
  44.  
  45.     /**
  46.      * Can refund online?
  47.      */
  48.     protected $_canRefund               = false;
  49.  
  50.     /**
  51.      * Can void transactions online?
  52.      */
  53.     protected $_canVoid                 = true;
  54.  
  55.     /**
  56.      * Can use this payment method in administration panel?
  57.      */
  58.     protected $_canUseInternal          = true;
  59.  
  60.     /**
  61.      * Can show this payment method as an option on checkout payment page?
  62.      */
  63.     protected $_canUseCheckout          = true;
  64.  
  65.     /**
  66.      * Is this payment method suitable for multi-shipping checkout?
  67.      */
  68.     protected $_canUseForMultishipping  = true;
  69.  
  70.     /**
  71.      * Can save credit card information for future processing?
  72.      */
  73.     protected $_canSaveCc = false;
  74.  
  75.     /**
  76.      * Here you will need to implement authorize, capture and void public methods
  77.      *
  78.      * @see examples of transaction specific public methods such as
  79.      * authorize, capture and void in Mage_Paygate_Model_Authorizenet
  80.      */
  81. }
  82. ?>

您已经有这样的经验,能否做一下更详尽的说明或解释。我下了您开发的Alipay模块,不是太明白。还是这些文件结构是怎么安排的。是否有相关文档。magento的开发文档实在太少了。用户使用文档倒是写的不错。

不好意思,网站上的ALIPAY的支付模块并不是我开发的,是

不好意思,网站上的ALIPAY的支付模块并不是我开发的,是从网上搜到的。