qiuphp

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

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

需要准备的材料

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

 

 

 

 

分类:

技术点:

相关文章:

  • 2021-11-02
  • 2021-10-12
  • 2021-08-13
  • 2021-10-17
  • 2021-08-29
  • 2021-12-03
  • 2021-06-05
猜你喜欢
  • 2021-08-30
  • 2021-12-18
  • 2021-06-24
  • 2022-02-08
  • 2021-11-26
  • 2021-11-03
相关资源
相似解决方案