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&";
關於支付寶接口的用法在這說下
1、 合作者身份ID(partner)和交易安全校驗碼(key)是商戶與支付寶簽約后,商戶獲得的支付寶商戶唯一識別碼與密鑰。當商戶把支付寶功能接入商戶網站時會用到它們,以便讓支付寶認證商戶。
2、接口的代碼網上很多,參數設置,包括與支付寶簽約后獲得的合作者身份ID和安全交易效驗碼,然后就可以集成到網站上應用了!