来源于:http://trac.seagullproject.org/wiki/Integration/Paypal

集成 Paypal

几年前,我在当时LIB的基础上,将一些quick Paypal(快速支付)代码集成到一起。从这里获取代码

内容类似于下面:

  1. rw-r~~r~~ 1 demian demian 8294 May 3 00:07 IpnMgr.php
  2. rw-r~~r~~ 1 demian demian 4595 May 3 00:09 paypal_ipn.php
  3. rw-r~~r~~ 1 demian demian 1605 May 3 00:08 Transaction.php
  4. rw-rw-r~~ 1 demian demian 876 May 3 00:11 transaction.sql

虽然代码是旧的,但是Seagull只变了一点点,所你几乎可以复制并粘贴下列这些代码。

  • IpnMgr.php: 管理Paypal通知,像调用一个静态文件那样调用,如example.com/paypal.php
  • paypal_ipn.php: 负责主要业务逻辑的类
  • Transaction.php: 创建的实体
  • transaction.sql: 创建表的sql语句,这个表可以用来保存事务

事实上,其中的一些思想可以集成到PEAR的Payment_Process包,作为Paypal驱动器

 
integration/paypal.txt · 最后更改: 2010/05/30 00:21 (外部编辑)
 
Except where otherwise noted, content on this wiki is licensed under the following license:GNU Free Documentation License 1.2