首先開通支付配置(小程序后台)
在驗證地址時,需要在接口處寫上驗證代碼
在進行第一驗證之后
支付后字節服務器會正常推送數據流
file_get_contents('php://input')
{"echostr":"Dhvqy7R","msg":"{\"appid\":\"\",\"cp_orderno\":\"\",\"cp_extra\":\"\",\"amount_cent\":100,\"amount_coin\":10}","nonce":"7708","signature":"859d78e5956bdbf539369c1dbb2dd79574ebb173","timestamp":"1634090665"}
通過進行簽名的驗證 和 訂單信息的驗證 就可以進行處理