教育通扣款受理
扣款受理接口,支付结果以回调为准,或者超时以后主动查单
| 请求参数 | 类型 | 描述 |
|---|---|---|
| json | object | 声明请求的JSON数据结构 |
| appid | string | 服务商APPID |
| sub_mchid | string | 子商户号 |
| sub_appid | string | 子商户APPID |
| body | string | 商品或支付单简要描述 |
| attach | string | 商户数据 |
| out_trade_no | string | 商户订单号 |
| goods_tag | string | 商品标记 |
| notify_url | string | 支付回调通知地址 |
| contract_id | string | 签约协议号 |
| trade_scene | string | 场景信息枚举 |
| amount | object | 订单金额 |
| total | integer | 总金额 |
| currency | string | 货币类型 |
| device_information | object | 设备信息 |
| device_id | string | 设备号 |
| device_ip | string | 商户端设备ip |
php
$instance->v3->eduPapay->transactions->postAsync([
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
'body' => '新东方-语文课程',
'attach' => '自定义数据',
'out_trade_no' => '121775250124070332',
'goods_tag' => 'test',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay',
'contract_id' => 'wx998877665544wx',
'trade_scene' => 'EDUCATION_PERIOD',
'amount' => [
'total' => 888,
'currency' => 'CNY',
],
'device_information' => [
'device_id' => '12343232',
'device_ip' => '123.12.12.123',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();php
$instance->chain('v3/edu-papay/transactions')->postAsync([
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
'body' => '新东方-语文课程',
'attach' => '自定义数据',
'out_trade_no' => '121775250124070332',
'goods_tag' => 'test',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay',
'contract_id' => 'wx998877665544wx',
'trade_scene' => 'EDUCATION_PERIOD',
'amount' => [
'total' => 888,
'currency' => 'CNY',
],
'device_information' => [
'device_id' => '12343232',
'device_ip' => '123.12.12.123',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();php
$instance['v3/edu-papay/transactions']->postAsync([
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
'body' => '新东方-语文课程',
'attach' => '自定义数据',
'out_trade_no' => '121775250124070332',
'goods_tag' => 'test',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay',
'contract_id' => 'wx998877665544wx',
'trade_scene' => 'EDUCATION_PERIOD',
'amount' => [
'total' => 888,
'currency' => 'CNY',
],
'device_information' => [
'device_id' => '12343232',
'device_ip' => '123.12.12.123',
],
],
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
print_r($response->getStatusCode() === 204);
})
->wait();php
$response = $instance->v3->eduPapay->transactions->post([
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
'body' => '新东方-语文课程',
'attach' => '自定义数据',
'out_trade_no' => '121775250124070332',
'goods_tag' => 'test',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay',
'contract_id' => 'wx998877665544wx',
'trade_scene' => 'EDUCATION_PERIOD',
'amount' => [
'total' => 888,
'currency' => 'CNY',
],
'device_information' => [
'device_id' => '12343232',
'device_ip' => '123.12.12.123',
],
],
]);
print_r($response->getStatusCode() === 204);php
$response = $instance->chain('v3/edu-papay/transactions')->post([
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
'body' => '新东方-语文课程',
'attach' => '自定义数据',
'out_trade_no' => '121775250124070332',
'goods_tag' => 'test',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay',
'contract_id' => 'wx998877665544wx',
'trade_scene' => 'EDUCATION_PERIOD',
'amount' => [
'total' => 888,
'currency' => 'CNY',
],
'device_information' => [
'device_id' => '12343232',
'device_ip' => '123.12.12.123',
],
],
]);
print_r($response->getStatusCode() === 204);php
$response = $instance['v3/edu-papay/transactions']->post([
'json' => [
'appid' => 'wx8888888888888888',
'sub_mchid' => '1900000109',
'sub_appid' => 'wx8888888888888888',
'body' => '新东方-语文课程',
'attach' => '自定义数据',
'out_trade_no' => '121775250124070332',
'goods_tag' => 'test',
'notify_url' => 'https://www.weixin.qq.com/wxpay/pay',
'contract_id' => 'wx998877665544wx',
'trade_scene' => 'EDUCATION_PERIOD',
'amount' => [
'total' => 888,
'currency' => 'CNY',
],
'device_information' => [
'device_id' => '12343232',
'device_ip' => '123.12.12.123',
],
],
]);
print_r($response->getStatusCode() === 204);| 返回字典 | 类型 | 描述 |
|---|---|---|
| 空字符串(无返回内容) | ||