zoukankan      html  css  js  c++  java
  • 微信服务商下的支付/收款

    在小程序中使用服务商模式下的付款码支付

    首先说明,服务商是没有支付能力,其下的特约商户可以作为支付账户

    需要准备的材料

    1.服务商商户号

    2.在服务商下申请特约商户,生成子商户号

    3.在特约商户管理中 -> 配置 -> 添加/配置特约商户的APPID  (项目中添加的是小程序的appid)

    调用接口时,需要注意的几个参数

    a. appid -> 此处为开通服务商的appid,项目中为qx公众号的appid

    b. mch_id -> 此处为服务商商户号

    c. sub_mch_id -> 此处为子商户号

    d. apikey -> 此处为服务商商户号的支付秘钥

    在小程序中使用服务商模式下的小程序支付

    a. appid -> 此处为开通服务商的appid,项目中为qx公众号的appid

    b. mch_id -> 此处为服务商商户号

    c. sub_mch_id -> 此处为子商户号

    d. apikey -> 此处为服务商商户号的支付秘钥

    e.sub_openid->此处为当前小程序的openid

    f.生成小程序的paySign时,使用的是当前小程序的appid

  • 相关阅读:
    十个MySQL常用函数
    写给三十岁的自己
    EJS 模板引擎
    发送HTTP请求(GET,POST)
    路由模块化
    原生NodeJS封装Express路由
    Hook简介
    State Hook (useState)
    Effect hooks
    useContext
  • 原文地址:https://www.cnblogs.com/qiuphp/p/11937355.html
Copyright © 2011-2022 走看看