创建商户违规通知回调地址
调用该接口设置商户违规通知回调地址,开启违规通知,当子商户被处罚或拦截时,微信支付会通过回调地址通知从业机构/服务商/渠道商。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
notify_url | string | 通知地址 |
php
$instance->v3->merchantRiskManage->violationNotifications->postAsync([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant-risk-manage/violation-notifications')->postAsync([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant-risk-manage/violation-notifications']->postAsync([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantRiskManage->violationNotifications->post([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-risk-manage/violation-notifications')->post([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-risk-manage/violation-notifications']->post([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
notify_url | string | 通知地址 |
参阅 官方文档
查询商户违规通知回调地址
调用该接口查询商户违规通知回调地址,如果已设置回调地址,说明已开启违规通知,当子商户被处罚或拦截时,微信支付会通过回调地址通知从业机构/服务商/渠道商。
请求参数 | 类型 | 描述 |
---|
php
$instance->v3->merchantRiskManage->violationNotifications->getAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant-risk-manage/violation-notifications')->getAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant-risk-manage/violation-notifications']->getAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantRiskManage->violationNotifications->get([]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-risk-manage/violation-notifications')->get([]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-risk-manage/violation-notifications']->get([]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
notify_url | string | 通知地址 |
参阅 官方文档
修改商户违规通知回调地址
调用该接口修改商户违规通知回调地址,开启违规通知,当子商户被处罚或拦截时,微信支付会通过回调地址通知从业机构/服务商/渠道商。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
notify_url | string | 通知链接 |
php
$instance->v3->merchantRiskManage->violationNotifications->putAsync([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/merchant-risk-manage/violation-notifications')->putAsync([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/merchant-risk-manage/violation-notifications']->putAsync([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->merchantRiskManage->violationNotifications->put([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/merchant-risk-manage/violation-notifications')->put([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/merchant-risk-manage/violation-notifications']->put([
'json' => [
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay.php',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
notify_url | string | 通知地址 |
参阅 官方文档
删除商户违规通知回调地址
调用该接口删除商户违规通知回调地址,关闭违规通知,当子商户被处罚或拦截时,微信支付不会再通知从业机构/服务商/渠道商。
请求参数 | 类型 | 描述 |
---|
php
$instance->v3->merchantRiskManage->violationNotifications->deleteAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/merchant-risk-manage/violation-notifications')->deleteAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/merchant-risk-manage/violation-notifications']->deleteAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->merchantRiskManage->violationNotifications->delete([]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/merchant-risk-manage/violation-notifications')->delete([]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/merchant-risk-manage/violation-notifications']->delete([]);
print_r($response->getStatusCode() === 204);
返回字典 | 类型 | 描述 |
---|---|---|
空字符串(无返回内容) |
参阅 官方文档