设置回调地址
通过此接口商户可设置回调地址,用于接收会员业务的相关信息营销事件推送:点击开通产品权限。由会员卡创建方登录Pay平台,操作开通。
请求参数 | 类型 | 描述 |
---|---|---|
json | object | 声明请求的JSON 数据结构 |
notify_url | string | 通知url地址 |
php
$instance->v3->marketing->membercardOpen->callback->patchAsync([
'json' => [
'notify_url' => 'https://pay.weixin.qq.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/membercard-open/callback')->patchAsync([
'json' => [
'notify_url' => 'https://pay.weixin.qq.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/membercard-open/callback']->patchAsync([
'json' => [
'notify_url' => 'https://pay.weixin.qq.com',
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->membercardOpen->callback->patch([
'json' => [
'notify_url' => 'https://pay.weixin.qq.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/membercard-open/callback')->patch([
'json' => [
'notify_url' => 'https://pay.weixin.qq.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/membercard-open/callback']->patch([
'json' => [
'notify_url' => 'https://pay.weixin.qq.com',
],
]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
notify_url | string | 通知url地址 |
mchid | string | 商户号 |
参阅 官方文档
查询回调地址
通过此接口可查询以前设置的回调地址
请求参数 | 类型 | 描述 |
---|
php
$instance->v3->marketing->membercardOpen->callback->getAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance->chain('v3/marketing/membercard-open/callback')->getAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$instance['v3/marketing/membercard-open/callback']->getAsync([])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r(json_decode((string) $response->getBody(), true));
})
->wait();
php
$response = $instance->v3->marketing->membercardOpen->callback->get([]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance->chain('v3/marketing/membercard-open/callback')->get([]);
print_r(json_decode((string) $response->getBody(), true));
php
$response = $instance['v3/marketing/membercard-open/callback']->get([]);
print_r(json_decode((string) $response->getBody(), true));
返回字典 | 类型 | 描述 |
---|---|---|
notify_url | string | 通知url地址 |
mchid | string | 商户号 |
参阅 官方文档