background

Recently, the company has a demand, in order to achieve financial reconciliation convenience, want to achieve multiple wechat accounts in the native APP. Theoretically, native APP wechat Payment does not support this way. IOS end implementation is not introduced, a pile of online, the following focus on the Android end of the implementation method.

Implementation Technical points

  1. Each company applies for a wechat developer account, and then each developer account registers and opens wechat Pay.
  2. Key points: the package name and signature of each payment account should be the same, but the name can be different. This is to solve the wechat signature problem
  3. The appId is dynamically set on the APP. How to set it dynamically? It can be interface return or local configuration

summary

The above 3 steps to solve, then wechat pay account will get through. This method can normally pull up payment before wechat V7.0.4, but cannot pull up payment in the latest version V7.0.4. What’s the reason? How to solve it? Listen to the breakdown next time, or add me QQwx: 930324291