微信支付,是微信向有出售物品/提供服务需求的商家提供推广销售、支付收款、经营分析的整套解决方案,包括多种支付方式,如付款码支付、JSAPI支付、小程序支付、APP支付、电脑网站支付、企业微信支付、H5支付,以及多种支付工具,如微信红包、代金券等。
微信支付配置步骤:
步骤1:注册支付商户号
步骤2、秘钥(32位)
步骤3、上传证书
步骤4、商户号新增小程序授权(注意授权状态是否是成功)
步骤5、公众号支付、JSAPI开通
登录小程序后台找到配置管理→支付配置
登录开通微信支付商户平台(https://pay.weixin.qq.com),在微信支付商户平台里面进行查找商户号和设置API密钥、下载证书
以下步骤查找上述基础的内容在哪个地方查找。
步骤1、支付商户号查找:
(注:登录商户号尽量使用360浏览器或者谷歌浏览器)

进入后在 账户中心—商户信息、可以看到微信支付商户号、把商户号记一下,填到后台。

注:首次进入微信支付后台需要下载控件和操作证书(按照提示一步步操作即可)

步骤二:API密钥:随后点击下面的API安全、设置一下API秘钥,API密钥必须是32位字母或数字

注:该处设置秘钥时看下设置下方的API秘钥,不要设置APIV3的秘钥。

注:该处设置下后把新设置的密钥填到制作后台。
步骤三:证书路径、密钥路径:API秘钥设置好了之后、点击下载API证书
(注:该处证书上传用于退款。退款需要往商户号里充值钱。)

下载后是一个压缩包,然后解压、然后根据名称分别上传到证书路径、密钥路径。

步骤四:小程序在公众号里申请,公众号里开通的微信支付;该方式需要先登录商户号->产品中心->APPID授权管理->新增该小程序的授权。具体如下图:
如提示已绑定(此步骤跳过)

授权后到微信小程序后台同意授权。如图:


确保上图申请单状态是授权成功。
步骤五:查看微信支付商户号公众号支付、JSAPI是否开通。如下图:(如未开通,点击开通下,如果没有公众号支付可不用管)
(1)公众号支付开通(如果没有公众号支付,此步骤跳过)

(2)JSAPI开通

网友评论