Skip to content

微信分付-支付方式前置服务

从业机构查询微信分付曝光建议

请求参数类型描述
jsonobject声明请求的JSON数据结构
acquiring_bank_idstring从业机构号
acquiring_bank_appidstring从业机构应用AppID
merchant_idstring特约商户号
merchant_appidstring特约商户应用AppID
channel_idstring渠道商户号
payerobject支付者
acquiring_bank_openidstring用户标识
phone_number_hashstring用户手机号的哈希值
out_trade_nostring商户订单号
php
$instance->v3->pay->acquiringBank->transactions->exposure->postAsync([
  'json' => [
    'acquiring_bank_id'    => '1356485',
    'acquiring_bank_appid' => 'wx8888888888888888',
    'merchant_id'          => '1900000109',
    'merchant_appid'       => 'wxd678efh567hg6999',
    'channel_id'           => '20001111',
    'payer'                => [
      'acquiring_bank_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
      'phone_number_hash'     => 'ABDEF3445546456B',
    ],
    'out_trade_no'         => '1217752501201407033233368018',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/pay/acquiring-bank/transactions/exposure')->postAsync([
  'json' => [
    'acquiring_bank_id'    => '1356485',
    'acquiring_bank_appid' => 'wx8888888888888888',
    'merchant_id'          => '1900000109',
    'merchant_appid'       => 'wxd678efh567hg6999',
    'channel_id'           => '20001111',
    'payer'                => [
      'acquiring_bank_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
      'phone_number_hash'     => 'ABDEF3445546456B',
    ],
    'out_trade_no'         => '1217752501201407033233368018',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/pay/acquiring-bank/transactions/exposure']->postAsync([
  'json' => [
    'acquiring_bank_id'    => '1356485',
    'acquiring_bank_appid' => 'wx8888888888888888',
    'merchant_id'          => '1900000109',
    'merchant_appid'       => 'wxd678efh567hg6999',
    'channel_id'           => '20001111',
    'payer'                => [
      'acquiring_bank_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
      'phone_number_hash'     => 'ABDEF3445546456B',
    ],
    'out_trade_no'         => '1217752501201407033233368018',
  ],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->pay->acquiringBank->transactions->exposure->post([
  'json' => [
    'acquiring_bank_id'    => '1356485',
    'acquiring_bank_appid' => 'wx8888888888888888',
    'merchant_id'          => '1900000109',
    'merchant_appid'       => 'wxd678efh567hg6999',
    'channel_id'           => '20001111',
    'payer'                => [
      'acquiring_bank_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
      'phone_number_hash'     => 'ABDEF3445546456B',
    ],
    'out_trade_no'         => '1217752501201407033233368018',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/pay/acquiring-bank/transactions/exposure')->post([
  'json' => [
    'acquiring_bank_id'    => '1356485',
    'acquiring_bank_appid' => 'wx8888888888888888',
    'merchant_id'          => '1900000109',
    'merchant_appid'       => 'wxd678efh567hg6999',
    'channel_id'           => '20001111',
    'payer'                => [
      'acquiring_bank_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
      'phone_number_hash'     => 'ABDEF3445546456B',
    ],
    'out_trade_no'         => '1217752501201407033233368018',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/pay/acquiring-bank/transactions/exposure']->post([
  'json' => [
    'acquiring_bank_id'    => '1356485',
    'acquiring_bank_appid' => 'wx8888888888888888',
    'merchant_id'          => '1900000109',
    'merchant_appid'       => 'wxd678efh567hg6999',
    'channel_id'           => '20001111',
    'payer'                => [
      'acquiring_bank_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
      'phone_number_hash'     => 'ABDEF3445546456B',
    ],
    'out_trade_no'         => '1217752501201407033233368018',
  ],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典类型描述
fqf_exposureboolean是否建议曝光微信分付
market_exposure_tokenstring曝光凭证

参阅 官方文档

Published on the GitHub by TheNorthMemory