需要使用微信公眾號(hào)開通微信支付
地址:https://pay.weixin.qq.com/index.php/extend/product/lists?tid=3
微信需要開通 Native支付、H5支付、JSAPI支付
地址 https://pay.weixin.qq.com/index.php/core/cert/api_cert
注意
mch_secret_key
填寫APIv3密鑰(如上圖)mp_app_id
必填,微信支付綁定的公眾號(hào)idmp_app_secret
jsapi支付必填提示
上面截圖中將證書文件放到了{項(xiàng)目}/config/wechat/
下,如果目錄不存在請手動(dòng)創(chuàng)建
地址 https://pay.weixin.qq.com/index.php/extend/pay_setting
JSAPI支付授權(quán)目錄格式為
plus版:https://AI系統(tǒng)域名.com/app/ai/order/
基礎(chǔ)版:https://AI系統(tǒng)域名.com/app/gpt/order/
H5支付域名填寫部署AI系統(tǒng)的域名
將AI域名填寫到JS接口安全域名和網(wǎng)頁授權(quán)域名里
獲得的開發(fā)者密碼填寫到
plus版:plugin/ai/config/payment.php
的 mp_app_secret
選項(xiàng)中
基礎(chǔ)版:plugin/gpt/config/payment.php
的 mp_app_secret
選項(xiàng)中
將AI服務(wù)器IP加進(jìn) IP白名單
注意
支付寶和微信支付都需要webman/ai系統(tǒng)能被外網(wǎng)http調(diào)用,所以無法直接在本地調(diào)試,請放在服務(wù)器上調(diào)試。
大佬V5
竟然發(fā)布已經(jīng)過了3天了,才發(fā)現(xiàn)????
但貌似還不能用??