商户发起催收扣款
当微信支付分订单支付状态处于“待支付”时,商户可使用该接口向用户发起收款。**前置条件:**服务订单支付状态处于“待支付”状态
请求参数 | 类型 | 描述 |
---|---|---|
out_order_no | string | 商户服务订单号 |
json | object | 声明请求的JSON 数据结构 |
appid | string | 公众账号ID |
service_id | string | 服务ID |
php
$instance->v3->payscore->serviceorder->_out_order_no_->pay->postAsync([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/payscore/serviceorder/{out_order_no}/pay')->postAsync([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/payscore/serviceorder/{out_order_no}/pay']->postAsync([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->payscore->serviceorder->_out_order_no_->pay->post([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/payscore/serviceorder/{out_order_no}/pay')->post([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/payscore/serviceorder/{out_order_no}/pay']->post([
'out_order_no' => '',
'json' => [
'appid' => 'wxd678efh567hg6787',
'service_id' => '500001',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
appid | string | 公众账号ID |
mchid | string | 商户号 |
out_order_no | string | 商户服务订单号 |
service_id | string | 服务ID |
order_id | string | 微信支付服务订单号 |