支付寶接口升級通知
來源:杭州兆合信息技術(shù)有限公司 作者:佚名 時間:2013-04-10
點擊次數(shù):
尊敬的支付寶用戶:
計劃于2013年3月20日,支付寶將要停止商戶接口訪問(https://www.alipay.com/cooperate/gateway.do)。
現(xiàn)在,在此通知各位已經(jīng)在使用支付寶接口的商戶,建議您盡快切換您網(wǎng)站支付寶接口的通知網(wǎng)關(guān)。
依據(jù)我們提供的代碼示例,您只需要更改兩處地方:
請求地址——
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&
論壇、網(wǎng)店系統(tǒng)修改方法如下:
1、如果商戶使用的是商派的網(wǎng)店系統(tǒng),可以按照以下方式升級:
ShopEx 48系列:用戶在支付方式后臺點擊升級按鈕,即可
ECshop 用戶:點擊論壇 進(jìn)行修改
------------
自助集成模式,各開發(fā)語言具體修改方法如下:
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&";
以上為各個語言的網(wǎng)關(guān)修改方法。
如果您修改后,出現(xiàn)了問題,那么建議您恢復(fù)原代碼繼續(xù)使用。
注意:這個修改只針對2012年2月28上午10點半以前已經(jīng)下載接口包在使用的客戶。在此后下載接口包的客戶無需做代碼修改。