🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
#### 1、打开微信支付官方网站[https://pay.weixin.qq.com/](https://pay.weixin.qq.com/),登录微信支付商户后台 [![图片](https://coding-net-production-file-ci.codehub.cn/a33876cf-58c7-45df-8905-28d4fb4612f1.png?sign=JNzanaNcXhV4ybJWvNY6HnE3m5ZhPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTM2MTg3MDgzJmY9L2EzMzg3NmNmLTU4YzctNDVkZi04OTA1LTI4ZDRmYjQ2MTJmMS5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==)](https://coding-net-production-file-ci.codehub.cn/a33876cf-58c7-45df-8905-28d4fb4612f1.png?sign=pj5HgW+hU3t7qqt/elqsPU8EKFVhPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTk5MTI4ODUyJmY9L2EzMzg3NmNmLTU4YzctNDVkZi04OTA1LTI4ZDRmYjQ2MTJmMS5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==) #### 2、依次点击账户中心 - API安全,在申请API证书栏目,点击管理证书,申请新证书。 [![图片](https://coding-net-production-file-ci.codehub.cn/a2406902-b584-4448-abff-6a7078d98b6e.png?sign=EN+kt1N1qe7/wTp/rN3PJIHlXlFhPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTMxMjM3MzkxJmY9L2EyNDA2OTAyLWI1ODQtNDQ0OC1hYmZmLTZhNzA3OGQ5OGI2ZS5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==)](https://coding-net-production-file-ci.codehub.cn/a2406902-b584-4448-abff-6a7078d98b6e.png?sign=kzKPOUofkpUS4+q/2+aTM4lpat1hPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTM4ODAxMDI1JmY9L2EyNDA2OTAyLWI1ODQtNDQ0OC1hYmZmLTZhNzA3OGQ5OGI2ZS5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==) [![图片](https://coding-net-production-file-ci.codehub.cn/db1924a8-a804-46df-a10e-942de61a1112.png?sign=efMc3/mRCAqrlPk+7u/pV/bVAnthPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTEzMTg5OTA4JmY9L2RiMTkyNGE4LWE4MDQtNDZkZi1hMTBlLTk0MmRlNjFhMTExMi5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==)](https://coding-net-production-file-ci.codehub.cn/db1924a8-a804-46df-a10e-942de61a1112.png?sign=Qp+Pe3GtEavQdmUUzsPO3xxOhAJhPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTg0NzE4MzIxJmY9L2RiMTkyNGE4LWE4MDQtNDZkZi1hMTBlLTk0MmRlNjFhMTExMi5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==) #### 3、证书申请好以后,我们设置一下微信支付密钥,可以在后台一键生成新的秘钥。 [![图片](https://coding-net-production-file-ci.codehub.cn/93fa37e8-c59d-4f28-90ee-f18f196406b4.png?sign=NvnloCU9IwX1lCJY0dY7MgIJ169hPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTc2NzQ4Mjk2JmY9LzkzZmEzN2U4LWM1OWQtNGYyOC05MGVlLWYxOGYxOTY0MDZiNC5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==)](https://coding-net-production-file-ci.codehub.cn/93fa37e8-c59d-4f28-90ee-f18f196406b4.png?sign=vVbogGcbTnQRExldotP2IDUIXeFhPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTE3MjcxNzM4JmY9LzkzZmEzN2U4LWM1OWQtNGYyOC05MGVlLWYxOGYxOTY0MDZiNC5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==) [![图片](https://coding-net-production-file-ci.codehub.cn/02bc842a-cd65-4201-95b3-f9530638d6fe.png?sign=ehvL9hHigMlpXUgv5omNcxafDxNhPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTgzMDEzNTk3JmY9LzAyYmM4NDJhLWNkNjUtNDIwMS05NWIzLWY5NTMwNjM4ZDZmZS5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==)](https://coding-net-production-file-ci.codehub.cn/02bc842a-cd65-4201-95b3-f9530638d6fe.png?sign=2+bm9R4rnhGADwxI87i0VB8rmt1hPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTg5NjA1NDY4JmY9LzAyYmM4NDJhLWNkNjUtNDIwMS05NWIzLWY5NTMwNjM4ZDZmZS5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==) [![图片](https://coding-net-production-file-ci.codehub.cn/c3811d4d-fdba-417c-b0b0-018cfbfaf2de.png?sign=qL6zSDizDY+ZfqAKTqw3p7szMrphPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTIxODYzNzUyJmY9L2MzODExZDRkLWZkYmEtNDE3Yy1iMGIwLTAxOGNmYmZhZjJkZS5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==)](https://coding-net-production-file-ci.codehub.cn/c3811d4d-fdba-417c-b0b0-018cfbfaf2de.png?sign=EJcxLy4aRFrQxyFJaOF5kP5J15hhPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTI2MTY4MDE0JmY9L2MzODExZDRkLWZkYmEtNDE3Yy1iMGIwLTAxOGNmYmZhZjJkZS5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==) #### 4、然后把证书和其他信息添加到后台。 [![图片](https://coding-net-production-file-ci.codehub.cn/d099ffba-958e-4b3e-8cf6-825abdb512f7.png?sign=e6dEnZ5G+qobsYjLGCNC+Rq/h35hPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTI1MDQ3MzA3JmY9L2QwOTlmZmJhLTk1OGUtNGIzZS04Y2Y2LTgyNWFiZGI1MTJmNy5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==)](https://coding-net-production-file-ci.codehub.cn/d099ffba-958e-4b3e-8cf6-825abdb512f7.png?sign=+6/6x6kFluob/LD8vao2s0M0pb1hPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTE5OTU4Mjc1JmY9L2QwOTlmZmJhLTk1OGUtNGIzZS04Y2Y2LTgyNWFiZGI1MTJmNy5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==) #### 5、最后在支付设置里面,选中我们添加的支付方式。 [![图片](https://coding-net-production-file-ci.codehub.cn/c8e23f6c-d77e-462e-b6ed-3c56c9256798.png?sign=8CcEw2k7iMjTUbV6vBk6D5k99K5hPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTMwNjYwNjkyJmY9L2M4ZTIzZjZjLWQ3N2UtNDYyZS1iNmVkLTNjNTZjOTI1Njc5OC5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==)](https://coding-net-production-file-ci.codehub.cn/c8e23f6c-d77e-462e-b6ed-3c56c9256798.png?sign=qmsU5HJWgIJZ5nVkCPpYGJwAhwBhPTEyNTcyNDI1OTkmaz1BS0lERkk1Y3NzYjRIRHNHWWFLbzB2WnczdVVucWQ5TksxU2ImZT0xNjYzMzA0OTYxJnQ9MTY2MzMwMzE2MSZyPTg1NTcwNjExJmY9L2M4ZTIzZjZjLWQ3N2UtNDYyZS1iNmVkLTNjNTZjOTI1Njc5OC5wbmcmYj1jb2RpbmctbmV0LXByb2R1Y3Rpb24tZmlsZQ==)