v2版的付款码支付目前只能使用xml 的数据格式,请问我若开通云调用中的开放接口服务,是使用json 或是 xml 格式传输? 原文链接:https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/basic/openapi/wxpay.html 接口与微信支付原接口(文档)的不同点在于:私有安全链路,免证书管理商户号填入 sub_mch_id 字段,小程序/公众号 appid 填入 sub_appid 字段免填写以下字段:mch_id、appid、sign、sign_type接口入参和返回值都为 JSON 而不是 XML 代码示例使用的 Content-Type: application/json 原文链接: https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/basic/openapi/agent.html cURL 代码示例 curl --location --request POST 'http://_HOST_/pay/unifiedOrder' \ --header 'Content-Type: application/json' \ --data-raw '{ "openid": "oFkBexampleopenidOvsi8i8", "body" : "小秋TIT店-周公子超市", "out_trade_no": "sds11a1f11232", "spbill_create_ip" : "127.0.0.1", "sub_mch_id" : "1900006511", "total_fee" : 1, "env_id": "test-f0b102", "callback_type": 2, "container": { "service": "test", "path": "/paycallback" }, "profit_sharing": "Y" }' -v
微信云托管内开发付款码支付后台是否需要签名(sign),签名类型 随机字符串等参数?刚刚开始微信云托管,请多多指教。原文链接:https://developers.weixin.qq.com/miniprogram/dev/wxcloudrun/src/basic/openapi/wxpay.html 云托管微信支付接口与微信支付原接口(文档)的不同点在于:私有安全链路,免证书管理商户号填入 sub_mch_id 字段,小程序/公众号 appid 填入 sub_appid 字段免填写以下字段:mch_id、appid、sign、sign_type接口入参和返回值都为 JSON 而不是 XML
2021-09-13