feat(tenpayv3): 新增校园轻松付相关接口

This commit is contained in:
Fu Diwei
2023-04-10 15:33:55 +08:00
parent 4dd39db436
commit 3822f2b43f
38 changed files with 1345 additions and 70 deletions

View File

@@ -0,0 +1,24 @@
{
"appid": "wx8888888888888888",
"sub_mchid": "1900000109",
"sub_appid": "wx8888888888888888",
"description": "中山大学-第二食堂-海鲜炒饭",
"attach": "自定义数据",
"out_trade_no": "121775250124070332",
"goods_tag": "test",
"contract_id": "2045011120563805041758214605",
"user_id": "20200330tony",
"amount": {
"total": 888,
"currency": "CNY"
},
"scene_info": {
"start_time": "2017-08-26T09:43:39+08:00",
"school_id": "18260256813396",
"scene_type": "CANTEEN"
},
"device_info": {
"device_id": "12343232",
"device_ip": "123.12.12.123"
}
}

View File

@@ -0,0 +1,41 @@
{
"mchid": "1230000109",
"appid": "wx8888888888888888",
"sub_mchid": "1900000109",
"sub_appid": "wx8888888888888888",
"out_trade_no": "201407033233368018",
"transaction_id": "25012014070332333018",
"trade_type": "AUTH",
"trade_state": "SUCCESS",
"trade_state_desc": "支付成功",
"bank_type": "ICBC_DEBIT",
"attach": "自定义数据",
"success_time": "2020-03-26T10:43:39+08:00",
"payer": {
"openid": "oUpF8uMuAJOM2pxb1Q",
"sub_openid": "oUpF8uMuAJOM2pxb1Q"
},
"amount": {
"total": 888,
"payer_total": 888,
"discount_total": 100,
"currency": "CNY"
},
"device_info": {
"device_id": "12343232",
"device_ip": "123.12.12.123"
},
"promotion_detail": [
{
"coupon_id": "109519",
"name": "单品惠-6",
"scope": "GLOBALSINGLE",
"type": "DISCOUNTCOUPON",
"amount": 5,
"stock_id": "931386",
"wechatpay_contribute": 0,
"merchant_contribute": 0,
"other_contribute": 0
}
]
}

View File

@@ -0,0 +1,10 @@
{
"contract_id": "2045011120563805041758214605",
"mchid": "1230000109",
"appid": "wx8888888888888888",
"openid": "oUpF8uMuAJOM2pxb1Q",
"plan_id": "101164396123311331",
"contract_status": "ADD",
"create_time": "2017-08-26T09:43:39+08:00",
"out_contract_code": "20190806125346"
}

View File

@@ -0,0 +1,41 @@
{
"mchid": "1230000109",
"appid": "wx8888888888888888",
"sub_mchid": "1900000109",
"sub_appid": "wx8888888888888888",
"out_trade_no": "201407033233368018",
"transaction_id": "25012014070332333018",
"trade_type": "AUTH",
"trade_state": "SUCCESS",
"trade_state_desc": "支付成功",
"bank_type": "ICBC_DEBIT",
"attach": "自定义数据",
"success_time": "2020-03-26T10:43:39+08:00",
"payer": {
"openid": "oUpF8uMuAJOM2pxb1Q",
"sub_openid": "oUpF8uMuAJOM2pxb1Q"
},
"amount": {
"total": 888,
"payer_total": 888,
"discount_total": 100,
"currency": "CNY"
},
"device_info": {
"device_id": "12343232",
"device_ip": "123.12.12.123"
},
"promotion_detail": [
{
"coupon_id": "109519",
"name": "单品惠-6",
"scope": "GLOBALSINGLE",
"type": "DISCOUNTCOUPON",
"amount": 5,
"stock_id": "931386",
"wechatpay_contribute": 0,
"merchant_contribute": 0,
"other_contribute": 0
}
]
}

View File

@@ -0,0 +1,41 @@
{
"mchid": "1230000109",
"appid": "wx8888888888888888",
"sub_mchid": "1900000109",
"sub_appid": "wx8888888888888888",
"out_trade_no": "201407033233368018",
"transaction_id": "25012014070332333018",
"trade_type": "AUTH",
"trade_state": "SUCCESS",
"trade_state_desc": "支付成功",
"bank_type": "ICBC_DEBIT",
"attach": "自定义数据",
"success_time": "2020-03-26T10:43:39+08:00",
"payer": {
"openid": "oUpF8uMuAJOM2pxb1Q",
"sub_openid": "oUpF8uMuAJOM2pxb1Q"
},
"amount": {
"total": 888,
"payer_total": 888,
"discount_total": 100,
"currency": "CNY"
},
"device_info": {
"device_id": "12343232",
"device_ip": "123.12.12.123"
},
"promotion_detail": [
{
"coupon_id": "109519",
"name": "单品惠-6",
"scope": "GLOBALSINGLE",
"type": "DISCOUNTCOUPON",
"amount": 5,
"stock_id": "931386",
"wechatpay_contribute": 0,
"merchant_contribute": 0,
"other_contribute": 0
}
]
}

View File

@@ -0,0 +1,7 @@
{
"appid": "wx8888888888888888",
"openid": "oUpF8uMuAJOM2pxb1Q",
"state": "FORBIDDEN",
"debt_count": 2,
"update_time": "2017-08-26T09:43:39+08:00"
}

View File

@@ -0,0 +1,21 @@
{
"appid": "wx8888888888888888",
"openid": "oUpF8uMuAJOM2pxb1Q",
"plan_id": "101164396123311331",
"user_id": "20200330tony",
"school_id": "18260256813396",
"out_contract_code": "20190806125346",
"contract_mode": "LIMIT_BANK_CARD",
"downgrade_default_contract": false,
"identity": {
"real_name": "6TqLAZvNZ4AXLNHLMbjA1yKq2k5krHM09m3tCuR",
"credential_type": "IDENTITY_CARD",
"id_card_number": "6TqLAZvNZ4AXLNHLMbjA1yKq2k5krHM09m3tCuR"
},
"bank_card": {
"bank_card_no": "6TqLAZvNZ4AXLNHLMbjA1yKq2k5krHM09m3tCuR",
"valid_thru": "08/21",
"phone": "j6PlFRRJ4nvGSbtDZzXbXScACvDSnIny67zk3BgT5uIbK4VfGmcjPBEk2mt5ASZ6UUHB4Gy0IZpbuanF9",
"bank_type": "CMC"
}
}

View File

@@ -0,0 +1,17 @@
{
"data": [
{
"contract_id": "2045011120563805041758214605",
"mchid": "1230000109",
"appid": "wx8888888888888888",
"openid": "oUpF8uMuAJOM2pxb1Q",
"plan_id": "101164396123311331",
"contract_status": "ADD",
"create_time": "2017-08-26T09:43:39+08:00",
"out_contract_code": "20190806125346"
}
],
"offset": 10,
"limit": 20,
"total_count": 1234
}