TomatoCart

68686 Downloads
320 users online
Notice
  • The administrator has disabled public write access.
  • Only logged-in/registered users are allowed to contribute to the forum.
  • The administrator has disabled public write access.
  • Only logged-in/registered users are allowed to contribute to the forum.
  • The administrator has disabled public write access.
  • Only logged-in/registered users are allowed to contribute to the forum.
  • The administrator has disabled public write access.
  • Only logged-in/registered users are allowed to contribute to the forum.
  • The administrator has disabled public write access.
  • Only logged-in/registered users are allowed to contribute to the forum.
TomatoCart Community
Welcome, Guest
Please Login or Register.    Lost Password?
Bookmark and Share

支付宝模块(2010/10/01修正版)
(1 viewing) (1) Guest
Go to bottomPage: 123
TOPIC: 支付宝模块(2010/10/01修正版)
#3613
支付宝模块(2010/10/01修正版) 1 Year, 8 Months ago Karma: 1
点击这里下载

实现:
· 纯担保交易接口
· 即时到账接口
· 标准双接口(担保+即时到账)
由于目前我只有纯担保交易的许可,只做了这一接口的测试,另外两个接口没有测试,欢迎各位朋友参与测试,如果有问题请直接发贴,我尽力解决。

如果您的网站使用了此插件,请给http://www.homycar.com/ 做个回链,谢谢。

附件中除支付宝插件这外,还对另外两个文件进行了修改,否则无法正常使用:

1、includes/modules/order_confirmation_form.php:原文件中订单“确认”按钮在提交表单(form)的里面,提交后支付宝网关端会把这个按钮提交过来的值与其它值一起做和校验,而支付宝模块提交过去的校验和中并没有包含这一项,从而导致校验失败不能正常支付。新文件将按钮移到了表单外面,采用JS提交表单,目前还不知道是否对PayPal之类的支付手段产生影响。
2、checkout.php:由于TomatoCart在支付回调页面的单一入口checkout.php?callback=XXXXX&module=YYYYYY中,采用了_GET['callback']来获取参数,而支付宝的通知是采用POST方式发送,因此checkout.php->osC_Template::setup('cart')这种机制导致支付模块不能正常接支付宝发来的通知,导致不能更新相关的订单信息。

安装方法:

FTP上传到服务器后,在管理后台中启用支付宝模块。

补充:
建议在管理后台 -> 系统设置 -> 订单状态管理 中,将“准备货物”设置为默认状态,否则会出现下面两个问题:
1、支付后订单状态不能更新为“已付款”;
2、如果用户在最后一步(确认订单)时不点击“确认”,取消了支付操作,则会在后台看到一个状态为“未处理”的订单。这个问题也会在PayPal模块上出现。

修改历史
2010/10/01 修正了支付宝通知回调处理中不能正确校验的问题(导致不能正常更新订单状态)
xemean
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Beijing, China Birthday: 01/01
Last Edit: 2010/10/01 01:56 By xemean.
The administrator has disabled public write access.
 
#3670
Re:支付宝模块(测试版) 1 Year, 8 Months ago Karma: 0
非常感谢老大分享胜利的果实,但是我在把模块文件放到程序文件夹之后,在后台刷新,所有的支付模块都不见了
hualun
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3674
Re:支付宝模块(测试版) 1 Year, 8 Months ago Karma: 1
呃……我这里没有发现这个问题。
我重新装了一个测试用TomatoCart,再将这些文件上传上去,并没有发现问题。
你确定用的是TomatoCart v1.01,而不是svn的1.1版? 1.1版没有测试过,不知道是否通用。
试试再支付宝相关文件删除,刷新看有没有。
xemean
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Beijing, China Birthday: 01/01
The administrator has disabled public write access.
 
#3678
Re:支付宝模块(测试版) 1 Year, 8 Months ago Karma: 0
非常感谢老大的回复。
我装的是网站首页提供的下载包,我现在怀疑是我的环境问题。弄好了再来汇报情况
hualun
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#3681
Re:支付宝模块(测试版) 1 Year, 8 Months ago Karma: 0
已经在WINDOWS下安装成功,原来真的是我的测试环境有问题
hualun
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#4893
Re:支付宝模块(2010/10/01修正版) 1 Year, 7 Months ago Karma: 0
希望中文版能集成支付宝这个模块 毕竟国内在线购物网站用不了支付宝的话约等于白做网站
ghostq
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2010/10/19 04:24 By ghostq.
The administrator has disabled public write access.
 
Go to top Page: 123

Latest Blog Post

How to install the Authorizenet AIM payment module

Authorize.Net enables merchants to authorize, settle and manage credit card and electronic check transactions via Web sites, retail stores, mail ...

Blog | jack.yin(weijian) | Wednesday, 2 May 2012

More in: About Us

-
+
3

contact_us

info@tomatocart.com
partner@tomatocart.com
support@tomatocart.com
Gtalk: jack.yin@tomatocart.com
Facebook Google+ Linkedin Twitter

Newsletter Subscription