小程序A调小程序B的微信支付是否可行?

微信支付 文章 2021-12-27 11:40 332 0 全屏看文

AI助手支持GPT4.0

小程序A调小程序B的微信支付是否可行?Is it feasible for Mini Program A to adjust Mini Program B's WeChat payment?

小程序A调小程序B的微信支付是否可行?

小程序A中用户拉起支付,调用小程序B的支付接口,两个小程序是不同的主体,是否可以实现支付?

如可行,需要怎么开发,是否有相关文档说明?

补充:A只是小程序,没有用到商户号,只是调用小程序B的支付功能,钱还是收到小程序B的商户号下。

In applet a, the user pulls up the payment and calls the payment interface of applet B. the two applets are different subjects. Can payment be realized? If possible, how to develop it and whether there are relevant documents? Add: A is only a small program without using the merchant number. It just calls the payment function of applet B. the money is still received under the merchant number of applet B.

回答:

Memory:

不能直接调用B的小程序支付,需要A小程序绑定B的商户号,没有绑定关系无法发起支付

跨商通:

技术上代码这样写是不行的;会报openid与appid不正确错误,因为用的是小程序A的openid和小程序B的appid。

解决办法:

1、小程序A直接跳转到小程序B之后,再拉起支付;

2、小程序A绑同一个商户号后,然后再调用同一套后台支付代码;

青寒:

微信是支持异主体商户关联的。

你可以在小程序B对应的商户平台,添加新的APPID关联,把A加进去。

云飞扬:A只是小程序,没有用到商户号,只是调用小程序B的支付功能,钱还是收到小程序B的商户号下。
青寒:说的很清楚,你去小程序B对应的商户平台账号,在里面添加A的绑定。

-EOF-

AI助手支持GPT4.0