收藏
回答

商家转账 暂不支持展示当前传入的用户收款感知?

const certificates = await pay.get_certificates(APIKEY_V3)
    const certificate = certificates.pop();
    const data = {
      "appid": AppID,
      "out_bill_no": "plfk" + time,
      "transfer_scene_id": "1005",
      "openid": user.openid,
      // "user_name" : pay.publicEncrypt('xxx', Buffer.from(certificate.publicKey)),
      "transfer_amount": 1,
      "transfer_remark": "佣金报酬",
      "notify_url": NotifyUrl,
      "user_recv_perception": "佣金报酬",
      "transfer_scene_report_infos": [
        {
          "info_type": "佣金报酬",
          "info_content": "佣金报酬"
        }
      ]
    }
    const auth = getAuth('/v3/fund-app/mch-transfer/transfer-bills', data)
    const config = {
      method: 'post',
      url: 'https://api.mch.weixin.qq.com/v3/fund-app/mch-transfer/transfer-bills',
      headers: {
        'Authorization': auth,
        'Accept': 'application/json',
        'Wechatpay-Serial': certificate.serial_no,
        'Content-Type': 'application/json'
      },
      data: data
    };


    await axios(config)
回答关注问题邀请回答
收藏

2 个回答

  • Memory (私信不回复)
    Memory (私信不回复)
    01-22

    transfer_scene_report_infos需要按照文档表内要求填入,有多个字段时需填写完整,不可修改原始内容,文档要求什么就传什么

    01-22
    有用
    回复
  • sun
    sun
    01-22

    报备信息仅支持以下字段,需根据场景传入对应的字段

    01-22
    有用
    回复
登录 后发表内容