【公告】于2013年3月20日支付宝接口网关地址切换

 
尊敬的支付宝用户:
计划于2013年3月20日,支付宝将要停止商户接口访问(https://www.alipay.com/cooperate/gateway.do)。
现在,在此通知各位已经在使用支付宝接口的商户,建议您尽快切换您网站支付宝接口的通知网关。

依据我们提供的代码示例,您只需要更改两处地方:
请求地址——
https://www.alipay.com/cooperate/gateway.do?
替换成:
https://mapi.alipay.com/gateway.do?

通知验证地址——
https://www.alipay.com/cooperate/gateway.do?service=notify_verify&
替换成:
https://mapi.alipay.com/gateway.do?service=notify_verify&



各开发语言具体修改方法如下:

ASP编程语言:
打开class文件夹下的alipay_notify.asp文件,
修改20行代码HTTPS_VERIFY_URL = "https://www.alipay.com/cooperate/gateway.do?service=notify_verify&"
为:HTTPS_VERIFY_URL = "https://mapi.alipay.com/gateway.do?service=notify_verify&"

PHP编程语言:
打开lib文件夹下的alipay_notify.class.php文件,
修改22行代码:var $https_verify_url = 'https://www.alipay.com/cooperate/gateway.do?service=notify_verify&';
为:var $https_verify_url = 'https://mapi.alipay.com/gateway.do?service=notify_verify&';

.net编程语言
打开app_code文件夹下的AlipayNotify.cs文件,
修改HTTPS支付宝通知路径:private string Https_veryfy_url = "https://www.alipay.com/cooperate/gateway.do?service=notify_verify&";
为: private string Https_veryfy_url = "https://mapi.alipay.com/gateway.do?service=notify_verify&";

Java编程语言
打开src\com\alipay\util下面的 AlipayNotify.java文件,
修改HTTPS形式消息验证地址:private static final String HTTPS_VERIFY_URL = "https://www.alipay.com/cooperate/gateway.do?service=notify_verify&";
为:private static final String HTTPS_VERIFY_URL = "https://mapi.alipay.com/gateway.do? service=notify_verify&";

以上为各个语言的网关修改方法。

如果您修改后,出现了问题,那么建议您恢复原代码继续使用。

注意:这个修改只针对2012年2月28上午10点半以前已经下载接口包在使用的客户。在此后下载接口包的客户无需做代码修改。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值