商户发起催收扣款
当微信支付分订单支付状态处于“待支付”时,商户可使用该接口向用户发起收款。
请求参数 | 类型 | 描述 |
---|---|---|
out_order_no | string | 商户服务订单号 |
json | object | 声明请求的JSON 数据结构 |
service_id | string | 服务ID |
sub_mchid | string | 子商户号 |
php
$instance->v3->payscore->partner->serviceorder->_out_order_no_->pay->postAsync([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/payscore/partner/serviceorder/{out_order_no}/pay')->postAsync([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/payscore/partner/serviceorder/{out_order_no}/pay']->postAsync([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->payscore->partner->serviceorder->_out_order_no_->pay->post([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/payscore/partner/serviceorder/{out_order_no}/pay')->post([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
],
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/payscore/partner/serviceorder/{out_order_no}/pay']->post([
'out_order_no' => '1234323JKHDFE1243252',
'json' => [
'service_id' => '2002000000000558128851361561536',
'sub_mchid' => '1900000109',
],
]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |