Closed majiameng closed 2 months ago
v3 付款码不支持服务商模式,微信支付目前也无相关文档支持
2024年7月8日 22:50,Tinymeng微梦 @.***> 写道:
使用的 yansongda/pay:v3.7.4 ,微信刷卡支付v3 服务商支付报错,是插件没有兼容服务商模式,还是微信这种支付没有兼容服务商呢?
报错日志 2024-07-06T10:39:24.987252+00:00 > yansongda.artful.INFO > [Artful] 请求第三方 API 成功 {"rocket":{"radar":{"url":"https://api.mch.weixin.qq.com/v3/pay/transactions/codepay","method":"POST","headers":{"Host":["api.mch.weixin.qq.com"],"Accept":["application/json, text/plain, application/x-gzip"],"User-Agent":["yansongda/pay-v3"],"Content-Type":["application/json; charset=utf-8"],"Authorization":["WECHATPAY2-SHA256-RSA2048 mchid=\"1679165617\",nonce_str=\"RcqWkCwvRKQXlq2kIU7sABKij4IIaLsn\",timestamp=\"1720262364\",serial_no=\"5219C90BF1DF65E3EC13AC72EBD663E20ADDDF54\",signature=\"qR9vsh6+z1HYQkjeYsKoL8YF0g4meYEMhorRpOktmxJBA5jOyvgOeBae+bJzeD06euXW3inKeknfM+eyyE5pI3EoL3VycAaw6lbk00D6v6QyINYhWTkolWM06R86+DZEjkja9BmlEMrHif6kDG7N6p3H5IsyfejibJX9Kd8rEC4xrq7rSi82u/0FoQ2Uux82d+vUxx3H/S4xxPXcV/TWm6ifV+VjN88VDND/VtA0LA+XUVV1KKInaEuEimK1uyUcB6LRkZAyz8LaISHbtk8+o4TMw7gTEsomuanPoo+12Fnu+TxlSJYMcWsmCpQJcLiYqkmn4rZkmchDixEKbt385w==\""]},"body":"{\"out_trade_no\":\"202407061834204038\",\"description\":\"陪护订单-2024070611821338501-扫收款码\",\"amount\":{\"total\":1,\"currency\":\"CNY\"},\"payer\":{\"auth_code\":\"132719712697781102\"},\"scene_info\":{\"store_info\":{\"id\":\"32914093\"}},\"appid\":\"wx50bb73bbccb39f48\",\"mchid\":\"1679165617\"}"},"params":{"out_trade_no":"202407061834204038","description":"陪护订>单-2024070611821338501-扫收款码","amount":{"total":1.0,"currency":"CNY"},"payer":{"auth_code":"132719712697781102"},"scene_info":{"store_info":{"id":"32914093"}}},"payload":{"out_trade_no":"202407061834204038","description":"陪护订单-2024070611821338501-扫收款码","amount":{"total":1.0,"currency":"CNY"},"payer":{"auth_code":"132719712697781102"},"scene_info":{"store_info":{"id":"32914093"}},"_method":"POST","_url":"v3/pay/transactions/codepay","appid":"wx50bb73bbccb39f48","mchid":"1679165617","_body":"{\"out_trade_no\":\"202407061834204038\",\"description\":\"陪护订单-2024070611821338501-扫收款码\",\"amount\":{\"total\":1,\"currency\":\"CNY\"},\"payer\":{\"auth_code\":\"132719712697781102\"},\"scene_info\":{\"store_info\":{\"id\":\"32914093\"}},\"appid\":\"wx50bb73bbccb39f48\",\"mchid\":\"1679165617\"}","_authorization":"WECHATPAY2-SHA256-RSA2048 mchid=\"1679165617\",nonce_str=\"RcqWkCwvRKQXlq2kIU7sABKij4IIaLsn\",timestamp=\"1720262364\",serial_no=\"5219C90BF1DF65E3EC13AC72EBD663E20ADDDF54\",signature=\"qR9vsh6+z1HYQkjeYsKoL8YF0g4meYEMhorRpOktmxJBA5jOyvgOeBae+bJzeD06euXW3inKeknfM+eyyE5pI3EoL3VycAaw6lbk00D6v6QyINYhWTkolWM06R86+DZEjkja9BmlEMrHif6kDG7N6p3H5IsyfejibJX9Kd8rEC4xrq7rSi82u/0FoQ2Uux82d+vUxx3H/S4xxPXcV/TWm6ifV+VjN88VDND/VtA0LA+XUVV1KKInaEuEimK1uyUcB6LRkZAyz8LaISHbtk8+o4TMw7gTEsomuanPoo+12Fnu+TxlSJYMcWsmCpQJcLiYqkmn4rZkmchDixEKbt385w==\""},"packer":"Yansongda\Artful\Contract\PackerInterface","direction":"Yansongda\Artful\Contract\DirectionInterface","destination":{"GuzzleHttp\Psr7\Response":[]},"destination_origin":{"status":400,"headers":{"Server":["nginx"],"Date":["Sat, 06 Jul 2024 10:39:24 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["69"],"Connection":["keep-alive"],"Keep-Alive":["timeout=8"],"Cache-Control":["no-cache, must-revalidate"],"X-Content-Type-Options":["nosniff"],"Request-ID":["08DCBDA4B40610890618CDBF8C58200E28EAB205-268443704"],"Content-Language":["zh-CN"],"Wechatpay-Nonce":["f91f7c128dba56f01c7dbac1c2400e8f"],"Wechatpay-Signature":["P7xA/cca8FbKrP2yqWzvLyrI/dGLzQmxYiFIVaP+/t40IYJadGbVjfJJ/h/pzxuFWplHcsgBddwVP3aDfJyAwib9nPIJrxLCivT3A7K9pzcKTneJK4wVMXhYryYIxspyh9tbLEAHSOykgcx9PedgmtdlYLwRLFIv/Fn1tJ/1vECiOtIxHzVICWrzLdOapKVUO232Sr8r9WY1+x0oVe9mawhB4XtHILWowOn9Z5eTB9qiutg4aSKWuvo09N5EnGjV+uW7DHLKoMi8+NLQalqSu/P664saWEoRYBNv7slvVUth2YHWJvK6PEwJ3jA4suFyLZ0LZ4NKo9H1nVEV7XnEKw=="],"Wechatpay-Timestamp":["1720262364"],"Wechatpay-Serial":["4FDB8BB0BA0AE2985CB7390F74ECD314FFF75F33"],"Wechatpay-Signature-Type":["WECHATPAY2-SHA256-RSA2048"],"MMLAS-VERIFYRESULT":["CAASRwoty5p537XkfXD0cKAk4+QWMlfmYTyI5SxWscCFwthXTwRC2V9XCh5tBF4HDphQEggViTFc5Js/2xgDINy9pLQGKgS4KKIpGkEEq59qndUspXV8JVmZECEHGEpvZHErCTDnNoIsxO2xN2CsagdRKXMap5TEFrjn7agKwNjALMM+1I1XmL9+YcXjhjCFggg="]},"body":"{\"code\":\"PARAM_ERROR\",\"message\":\"受理机构必须传入sub_mch_id\"}"}}}
— Reply to this email directly, view it on GitHub https://github.com/yansongda/pay/issues/1009, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2RXOXF5DPHFQP3KZVB2Q3ZLKRLHAVCNFSM6AAAAABKRAEVAKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TKOBVHA2DEMQ. You are receiving this because you are subscribed to this thread.
v3 付款码不支持服务商模式,微信支付目前也无相关文档支持 … 2024年7月8日 22:50,Tinymeng微梦 @.***> 写道: 使用的 yansongda/pay:v3.7.4 ,微信刷卡支付v3 服务商支付报错,是插件没有兼容服务商模式,还是微信这种支付没有兼容服务商呢? 报错日志 2024-07-06T10:39:24.987252+00:00 > yansongda.artful.INFO > [Artful] 请求第三方 API 成功 {"rocket":{"radar":{"url":"https://api.mch.weixin.qq.com/v3/pay/transactions/codepay","method":"POST","headers":{"Host":["api.mch.weixin.qq.com"],"Accept":["application/json, text/plain, application/x-gzip"],"User-Agent":["yansongda/pay-v3"],"Content-Type":["application/json; charset=utf-8"],"Authorization":["WECHATPAY2-SHA256-RSA2048 mchid=\"1679165617\",nonce_str=\"RcqWkCwvRKQXlq2kIU7sABKij4IIaLsn\",timestamp=\"1720262364\",serial_no=\"5219C90BF1DF65E3EC13AC72EBD663E20ADDDF54\",signature=\"qR9vsh6+z1HYQkjeYsKoL8YF0g4meYEMhorRpOktmxJBA5jOyvgOeBae+bJzeD06euXW3inKeknfM+eyyE5pI3EoL3VycAaw6lbk00D6v6QyINYhWTkolWM06R86+DZEjkja9BmlEMrHif6kDG7N6p3H5IsyfejibJX9Kd8rEC4xrq7rSi82u/0FoQ2Uux82d+vUxx3H/S4xxPXcV/TWm6ifV+VjN88VDND/VtA0LA+XUVV1KKInaEuEimK1uyUcB6LRkZAyz8LaISHbtk8+o4TMw7gTEsomuanPoo+12Fnu+TxlSJYMcWsmCpQJcLiYqkmn4rZkmchDixEKbt385w==\""]},"body":"{\"out_trade_no\":\"202407061834204038\",\"description\":\"陪护订单-2024070611821338501-扫收款码\",\"amount\":{\"total\":1,\"currency\":\"CNY\"},\"payer\":{\"auth_code\":\"132719712697781102\"},\"scene_info\":{\"store_info\":{\"id\":\"32914093\"}},\"appid\":\"wx50bb73bbccb39f48\",\"mchid\":\"1679165617\"}"},"params":{"out_trade_no":"202407061834204038","description":"陪护订>单-2024070611821338501-扫收款码","amount":{"total":1.0,"currency":"CNY"},"payer":{"auth_code":"132719712697781102"},"scene_info":{"store_info":{"id":"32914093"}}},"payload":{"out_trade_no":"202407061834204038","description":"陪护订单-2024070611821338501-扫收款码","amount":{"total":1.0,"currency":"CNY"},"payer":{"auth_code":"132719712697781102"},"scene_info":{"store_info":{"id":"32914093"}},"_method":"POST","_url":"v3/pay/transactions/codepay","appid":"wx50bb73bbccb39f48","mchid":"1679165617","_body":"{\"out_trade_no\":\"202407061834204038\",\"description\":\"陪护订单-2024070611821338501-扫收款码\",\"amount\":{\"total\":1,\"currency\":\"CNY\"},\"payer\":{\"auth_code\":\"132719712697781102\"},\"scene_info\":{\"store_info\":{\"id\":\"32914093\"}},\"appid\":\"wx50bb73bbccb39f48\",\"mchid\":\"1679165617\"}","_authorization":"WECHATPAY2-SHA256-RSA2048 mchid=\"1679165617\",nonce_str=\"RcqWkCwvRKQXlq2kIU7sABKij4IIaLsn\",timestamp=\"1720262364\",serial_no=\"5219C90BF1DF65E3EC13AC72EBD663E20ADDDF54\",signature=\"qR9vsh6+z1HYQkjeYsKoL8YF0g4meYEMhorRpOktmxJBA5jOyvgOeBae+bJzeD06euXW3inKeknfM+eyyE5pI3EoL3VycAaw6lbk00D6v6QyINYhWTkolWM06R86+DZEjkja9BmlEMrHif6kDG7N6p3H5IsyfejibJX9Kd8rEC4xrq7rSi82u/0FoQ2Uux82d+vUxx3H/S4xxPXcV/TWm6ifV+VjN88VDND/VtA0LA+XUVV1KKInaEuEimK1uyUcB6LRkZAyz8LaISHbtk8+o4TMw7gTEsomuanPoo+12Fnu+TxlSJYMcWsmCpQJcLiYqkmn4rZkmchDixEKbt385w==\""},"packer":"Yansongda\Artful\Contract\PackerInterface","direction":"Yansongda\Artful\Contract\DirectionInterface","destination":{"GuzzleHttp\Psr7\Response":[]},"destination_origin":{"status":400,"headers":{"Server":["nginx"],"Date":["Sat, 06 Jul 2024 10:39:24 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["69"],"Connection":["keep-alive"],"Keep-Alive":["timeout=8"],"Cache-Control":["no-cache, must-revalidate"],"X-Content-Type-Options":["nosniff"],"Request-ID":["08DCBDA4B40610890618CDBF8C58200E28EAB205-268443704"],"Content-Language":["zh-CN"],"Wechatpay-Nonce":["f91f7c128dba56f01c7dbac1c2400e8f"],"Wechatpay-Signature":["P7xA/cca8FbKrP2yqWzvLyrI/dGLzQmxYiFIVaP+/t40IYJadGbVjfJJ/h/pzxuFWplHcsgBddwVP3aDfJyAwib9nPIJrxLCivT3A7K9pzcKTneJK4wVMXhYryYIxspyh9tbLEAHSOykgcx9PedgmtdlYLwRLFIv/Fn1tJ/1vECiOtIxHzVICWrzLdOapKVUO232Sr8r9WY1+x0oVe9mawhB4XtHILWowOn9Z5eTB9qiutg4aSKWuvo09N5EnGjV+uW7DHLKoMi8+NLQalqSu/P664saWEoRYBNv7slvVUth2YHWJvK6PEwJ3jA4suFyLZ0LZ4NKo9H1nVEV7XnEKw=="],"Wechatpay-Timestamp":["1720262364"],"Wechatpay-Serial":["4FDB8BB0BA0AE2985CB7390F74ECD314FFF75F33"],"Wechatpay-Signature-Type":["WECHATPAY2-SHA256-RSA2048"],"MMLAS-VERIFYRESULT":["CAASRwoty5p537XkfXD0cKAk4+QWMlfmYTyI5SxWscCFwthXTwRC2V9XCh5tBF4HDphQEggViTFc5Js/2xgDINy9pLQGKgS4KKIpGkEEq59qndUspXV8JVmZECEHGEpvZHErCTDnNoIsxO2xN2CsagdRKXMap5TEFrjn7agKwNjALMM+1I1XmL9+YcXjhjCFggg="]},"body":"{\"code\":\"PARAM_ERROR\",\"message\":\"受理机构必须传入sub_mch_id\"}"}}} — Reply to this email directly, view it on GitHub <#1009>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC2RXOXF5DPHFQP3KZVB2Q3ZLKRLHAVCNFSM6AAAAABKRAEVAKVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4TKOBVHA2DEMQ. You are receiving this because you are subscribed to this thread.
不好意思这么晚打扰您,麻烦问一下,怎么指定用v2版本呀,就是我有的用v3有的用v2,在文档里没找到
使用 v3.6 版本,更新日志:
版本已更新到v3.6,我查看了更新日志,也仔细查看了yansongda\pay\src\Shortcut\Wechat 目录里的所有class,pos支付直接去调用v3版本了,不知道支付时怎么去调用v2,没有看懂是怎么区分版本的,跪求怎么调用。
3.6 明明是 v2 的,你从哪儿看出来是 v3 的?
https://github.com/yansongda/pay/blob/v3.6.5/src/Shortcut/Wechat/PosShortcut.php
使用的 yansongda/pay:v3.7.4 ,微信刷卡支付v3 服务商支付报错,是插件没有兼容服务商模式,还是微信这种支付没有兼容服务商呢?
报错日志
2024-07-06T10:39:24.987252+00:00 > yansongda.artful.INFO > [Artful] 请求第三方 API 成功 {"rocket":{"radar":{"url":"https://api.mch.weixin.qq.com/v3/pay/transactions/codepay","method":"POST","headers":{"Host":["api.mch.weixin.qq.com"],"Accept":["application/json, text/plain, application/x-gzip"],"User-Agent":["yansongda/pay-v3"],"Content-Type":["application/json; charset=utf-8"],"Authorization":["WECHATPAY2-SHA256-RSA2048 mchid=\"1679165617\",nonce_str=\"RcqWkCwvRKQXlq2kIU7sABKij4IIaLsn\",timestamp=\"1720262364\",serial_no=\"5219C90BF1DF65E3EC13AC72EBD663E20ADDDF54\",signature=\"qR9vsh6+z1HYQkjeYsKoL8YF0g4meYEMhorRpOktmxJBA5jOyvgOeBae+bJzeD06euXW3inKeknfM+eyyE5pI3EoL3VycAaw6lbk00D6v6QyINYhWTkolWM06R86+DZEjkja9BmlEMrHif6kDG7N6p3H5IsyfejibJX9Kd8rEC4xrq7rSi82u/0FoQ2Uux82d+vUxx3H/S4xxPXcV/TWm6ifV+VjN88VDND/VtA0LA+XUVV1KKInaEuEimK1uyUcB6LRkZAyz8LaISHbtk8+o4TMw7gTEsomuanPoo+12Fnu+TxlSJYMcWsmCpQJcLiYqkmn4rZkmchDixEKbt385w==\""]},"body":"{\"out_trade_no\":\"202407061834204038\",\"description\":\"陪护订单-2024070611821338501-扫收款码\",\"amount\":{\"total\":1,\"currency\":\"CNY\"},\"payer\":{\"auth_code\":\"132719712697781102\"},\"scene_info\":{\"store_info\":{\"id\":\"32914093\"}},\"appid\":\"wx50bb73bbccb39f48\",\"mchid\":\"1679165617\"}"},"params":{"out_trade_no":"202407061834204038","description":"陪护订>单-2024070611821338501-扫收款码","amount":{"total":1.0,"currency":"CNY"},"payer":{"auth_code":"132719712697781102"},"scene_info":{"store_info":{"id":"32914093"}}},"payload":{"out_trade_no":"202407061834204038","description":"陪护订单-2024070611821338501-扫收款码","amount":{"total":1.0,"currency":"CNY"},"payer":{"auth_code":"132719712697781102"},"scene_info":{"store_info":{"id":"32914093"}},"_method":"POST","_url":"v3/pay/transactions/codepay","appid":"wx50bb73bbccb39f48","mchid":"1679165617","_body":"{\"out_trade_no\":\"202407061834204038\",\"description\":\"陪护订单-2024070611821338501-扫收款码\",\"amount\":{\"total\":1,\"currency\":\"CNY\"},\"payer\":{\"auth_code\":\"132719712697781102\"},\"scene_info\":{\"store_info\":{\"id\":\"32914093\"}},\"appid\":\"wx50bb73bbccb39f48\",\"mchid\":\"1679165617\"}","_authorization":"WECHATPAY2-SHA256-RSA2048 mchid=\"1679165617\",nonce_str=\"RcqWkCwvRKQXlq2kIU7sABKij4IIaLsn\",timestamp=\"1720262364\",serial_no=\"5219C90BF1DF65E3EC13AC72EBD663E20ADDDF54\",signature=\"qR9vsh6+z1HYQkjeYsKoL8YF0g4meYEMhorRpOktmxJBA5jOyvgOeBae+bJzeD06euXW3inKeknfM+eyyE5pI3EoL3VycAaw6lbk00D6v6QyINYhWTkolWM06R86+DZEjkja9BmlEMrHif6kDG7N6p3H5IsyfejibJX9Kd8rEC4xrq7rSi82u/0FoQ2Uux82d+vUxx3H/S4xxPXcV/TWm6ifV+VjN88VDND/VtA0LA+XUVV1KKInaEuEimK1uyUcB6LRkZAyz8LaISHbtk8+o4TMw7gTEsomuanPoo+12Fnu+TxlSJYMcWsmCpQJcLiYqkmn4rZkmchDixEKbt385w==\""},"packer":"Yansongda\\Artful\\Contract\\PackerInterface","direction":"Yansongda\\Artful\\Contract\\DirectionInterface","destination":{"GuzzleHttp\\Psr7\\Response":[]},"destination_origin":{"status":400,"headers":{"Server":["nginx"],"Date":["Sat, 06 Jul 2024 10:39:24 GMT"],"Content-Type":["application/json; charset=utf-8"],"Content-Length":["69"],"Connection":["keep-alive"],"Keep-Alive":["timeout=8"],"Cache-Control":["no-cache, must-revalidate"],"X-Content-Type-Options":["nosniff"],"Request-ID":["08DCBDA4B40610890618CDBF8C58200E28EAB205-268443704"],"Content-Language":["zh-CN"],"Wechatpay-Nonce":["f91f7c128dba56f01c7dbac1c2400e8f"],"Wechatpay-Signature":["P7xA/cca8FbKrP2yqWzvLyrI/dGLzQmxYiFIVaP+/t40IYJadGbVjfJJ/h/pzxuFWplHcsgBddwVP3aDfJyAwib9nPIJrxLCivT3A7K9pzcKTneJK4wVMXhYryYIxspyh9tbLEAHSOykgcx9PedgmtdlYLwRLFIv/Fn1tJ/1vECiOtIxHzVICWrzLdOapKVUO232Sr8r9WY1+x0oVe9mawhB4XtHILWowOn9Z5eTB9qiutg4aSKWuvo09N5EnGjV+uW7DHLKoMi8+NLQalqSu/P664saWEoRYBNv7slvVUth2YHWJvK6PEwJ3jA4suFyLZ0LZ4NKo9H1nVEV7XnEKw=="],"Wechatpay-Timestamp":["1720262364"],"Wechatpay-Serial":["4FDB8BB0BA0AE2985CB7390F74ECD314FFF75F33"],"Wechatpay-Signature-Type":["WECHATPAY2-SHA256-RSA2048"],"MMLAS-VERIFYRESULT":["CAASRwoty5p537XkfXD0cKAk4+QWMlfmYTyI5SxWscCFwthXTwRC2V9XCh5tBF4HDphQEggViTFc5Js/2xgDINy9pLQGKgS4KKIpGkEEq59qndUspXV8JVmZECEHGEpvZHErCTDnNoIsxO2xN2CsagdRKXMap5TEFrjn7agKwNjALMM+1I1XmL9+YcXjhjCFggg="]},"body":"{\"code\":\"PARAM_ERROR\",\"message\":\"受理机构必须传入sub_mch_id\"}"}}}