微信分付-支付方式前置服务
服务商查询微信分付曝光建议
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
sp_appid | string | 服务商应用ID |
sp_mchid | string | 服务商户号 |
sub_appid | string | 子商户/二级商户应用ID |
sub_mchid | string | 子商户号/二级商户号 |
payer | object | 支付者 |
sp_openid | string | 用户服务商标识 |
phone_number_hash | string | 用户手机号的哈希值 |
out_trade_no | string | 商户订单号 |
php
$instance->v3->pay->partner->transactions->exposure->postAsync([
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '1230000109',
'sub_appid' => 'wxd678efh567hg6999',
'sub_mchid' => '1900000109',
'payer' => [
'sp_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/partner/transactions/exposure')->postAsync([
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '1230000109',
'sub_appid' => 'wxd678efh567hg6999',
'sub_mchid' => '1900000109',
'payer' => [
'sp_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/partner/transactions/exposure']->postAsync([
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '1230000109',
'sub_appid' => 'wxd678efh567hg6999',
'sub_mchid' => '1900000109',
'payer' => [
'sp_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->partner->transactions->exposure->post([
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '1230000109',
'sub_appid' => 'wxd678efh567hg6999',
'sub_mchid' => '1900000109',
'payer' => [
'sp_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/partner/transactions/exposure')->post([
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '1230000109',
'sub_appid' => 'wxd678efh567hg6999',
'sub_mchid' => '1900000109',
'payer' => [
'sp_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'phone_number_hash' => 'ABDEF3445546456B',
],
'out_trade_no' => '1217752501201407033233368018',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/pay/partner/transactions/exposure']->post([
'json' => [
'sp_appid' => 'wx8888888888888888',
'sp_mchid' => '1230000109',
'sub_appid' => 'wxd678efh567hg6999',
'sub_mchid' => '1900000109',
'payer' => [
'sp_openid' => 'oUpF8uMuAJO_M2pxb1Q9zNjWeS6o',
'phone_number_hash' => 'ABDEF3445546456B',
],
'out_trade_no' => '1217752501201407033233368018',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
fqf_exposure | boolean | 是否建议曝光微信分付 |
market_exposure_token | string | 曝光凭证 |
参阅 官方文档