PHP微信商戶支付企業付款到零錢功能(完)
阿新 • • 發佈:2018-11-17
一、開通條件
企業付款為企業提供付款至使用者零錢的能力,支援通過API介面付款,或通過微信支付商戶平臺(pay.weixin.qq.com)網頁操作付款。
使用條件
- 商戶號(或同主體其他非服務商商戶號)已入駐90日
- 商戶號(或同主體其他非服務商商戶號)有30天連續正常交易
- 登入微信支付商戶平臺-產品中心,開通企業付款。
具體的可以看微信支付開發文件
二、程式碼展示
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
//企業付款到微信零錢,PHP介面呼叫方法 define("APPID", "wxe062425f740c30d8"); // 商戶賬號appid define("MCHID", "10000098"); // 商戶號 define("SECRECT_KEY", "453436425252" |
三、呼叫方法
1
|
sendMoney(1,'gdgfdg56456223423','xxxx測試','xxx');
|
呼叫的話,稍微在修改下,加上自己的業務邏輯就行了。
四、呼叫效果
也可以下載檔案,我寫的是一個類檔案:
PHP微信商戶支付企業付款到零錢功能