feat(tenpayv3): 新增境外支付融合钱包订单相关接口

This commit is contained in:
Fu Diwei
2022-02-25 16:20:07 +08:00
parent efb7e948ed
commit 9118dd0fef
91 changed files with 4153 additions and 21 deletions

View File

@@ -0,0 +1,42 @@
{
"sp_appid": "wx2421b1c4370ec43b",
"sp_mchid": "10000100",
"sub_mchid": "20000100",
"sub_appid": "wx352671b037b437ec",
"out_trade_no": "20150806125346",
"merchant_category_code": "1011",
"payer": {
"sp_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
},
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "APP",
"amount": {
"total": 10000,
"currency": "HKD"
},
"attach": "Payment test",
"description": "In-APP Pay test",
"goods_tag": "",
"detail": {
"cost_price": 10000,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 528800
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001"
}
}
}

View File

@@ -0,0 +1,3 @@
{
"prepay_id": "wx201411101639507cbf6ffd8b0779950874"
}

View File

@@ -0,0 +1,41 @@
{
"sp_appid": "wx2421b1c4370ec43b",
"sp_mchid": "10000100",
"sub_mchid": "20000100",
"sub_appid": "wx352671b037b437ec",
"out_trade_no": "20150806125346",
"merchant_category_code": "1011",
"payer": {
"sub_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
},
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "JSAPI",
"amount": {
"total": 10000,
"currency": "HKD"
},
"attach": "Payment test",
"description": "Miniprogramm Pay test",
"detail": {
"cost_price": 10000,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 528800
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001"
}
}
}

View File

@@ -0,0 +1,3 @@
{
"prepay_id": "wx201411101639507cbf6ffd8b0779950874"
}

View File

@@ -0,0 +1,41 @@
{
"sp_appid": "wx2421b1c4370ec43b",
"sp_mchid": "10000100",
"sub_mchid": "20000100",
"out_trade_no": "20150806125346",
"merchant_category_code": "1011",
"payer": {
"sp_openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
},
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "APP",
"amount": {
"total": 10000,
"currency": "HKD"
},
"attach": "支付测试",
"description": "APP支付测试",
"goods_tag": "",
"detail": {
"cost_price": 10000,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 528800
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001"
}
}
}

View File

@@ -0,0 +1,3 @@
{
"mweb_url": " https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx2016121516420242444321ca0631331346&package=1405458241"
}

View File

@@ -0,0 +1,43 @@
{
"sp_appid": "wxdace645e0bc2c424",
"sp_mchid": "10000100",
"sub_mchid": "20000100",
"out_trade_no": "20150806125346",
"merchant_category_code": "4111",
"payer": {
"auth_code": "134650720866361395"
},
"trade_type": "MICROPAY",
"amount": {
"total": 1,
"currency": "HKD"
},
"attach": "Payment Test",
"description": "Image Store - Tencent Building in Shenzhen - QQ Doll",
"goods_tag": "1234",
"limit_pay": "no_credit",
"detail": {
"cost_price": 1,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "3405",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 1
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001",
"name": "Tencent Building Branch",
"address": "Nanshan District, Shenzhen, Guangdong"
}
}
}

View File

@@ -0,0 +1,48 @@
{
"id": "1008450740201411110005820873",
"sp_appid": "wx2421b1c4370ec43b",
"sub_appid": "",
"sp_mchid": "10000100",
"sub_mchid": "20000100",
"out_trade_no": "20171014125314",
"payer": {
"sp_openid": "oUpF8uN95-Ptaags6E_roPHg7AG0",
"sub_openid": ""
},
"amount": {
"total": 528800,
"currency": "HKD",
"payer_total": 518799,
"payer_currency": "CNY",
"exchange_rate": {
"type": "SETTLEMENT_RATE",
"rate": 80000000
}
},
"trade_type": "MICROPAY",
"trade_state": "SUCCESS",
"trade_state_desc": "Payment successful",
"bank_type": "CCB_DEBIT",
"attach": "Payment test",
"success_time": "2018-06-08T10:34:56+08:00",
"detail": {
"promotion_id": "109519",
"name": "Single-item discount-6",
"scope": "SINGLE",
"type": "DISCOUNT",
"amount": 1,
"currency": "CNY",
"activity_id": "931386",
"wechatpay_contribute_amount": 1,
"merchant_contribute_amount": 0,
"other_contribute_amount": 0,
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"goods_remark": "Product remarks",
"quantity": 1,
"price": 528800
}
]
}
}

View File

@@ -0,0 +1,38 @@
{
"sp_appid": "wxdace645e0bc2c424",
"sp_mchid": "10000100",
"sub_mchid": "20000100",
"out_trade_no": "YX201710140020Z",
"merchant_category_code": "4111",
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "NATIVE",
"amount": {
"total": 10,
"currency": "HKD"
},
"attach": "QR code test",
"description": "QR code test",
"goods_tag": "001",
"detail": {
"cost_price": 10000,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 10
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001"
}
}
}

View File

@@ -0,0 +1,3 @@
{
"code_url": "weixin://wxpay/s/An4baqw"
}

View File

@@ -0,0 +1,48 @@
{
"id": "4200000000002104083200000488",
"sp_appid": "wx2421b1c4370ec43b",
"sp_mchid": "10000100",
"sub_mchid": "20000100",
"out_trade_no": "20150806125346",
"payer": {
"sp_openid": "oUpF8uN95-Ptaags6E_roPHg7AG0"
},
"amount": {
"total": 528800,
"currency": "HKD",
"payer_total": 518799,
"payer_currency": "CNY",
"exchange_rate": {
"type": "SETTLEMENT_RATE",
"rate": 8000000
}
},
"trade_type": "APP",
"trade_state": "SUCCESS",
"trade_state_desc": "支付成功",
"bank_type": "CCB_DEBIT",
"attach": "支付测试",
"success_time": "2018-06-08T10:34:56+08:00",
"promotion_detail": [
{
"promotion_id": "109519",
"name": "单品惠-6",
"scope": "SINGLE",
"type": "DISCOUNT",
"amount": 1,
"currency": "HKD",
"activity_id": "931386",
"wechatpay_contribute_amount": 1,
"merchant_contribute_amount": 0,
"other_contribute_amount": 0,
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"goods_remark": "商品备注",
"quantity": 1,
"price": 528800
}
]
}
]
}

View File

@@ -0,0 +1,48 @@
{
"id": "4200000000002104083200000488",
"sp_appid": "wx2421b1c4370ec43b",
"sp_mchid": "10000100",
"sub_mchid": "20000100",
"out_trade_no": "20150806125346",
"payer": {
"sp_openid": "oUpF8uN95-Ptaags6E_roPHg7AG0"
},
"amount": {
"total": 528800,
"currency": "HKD",
"payer_total": 518799,
"payer_currency": "CNY",
"exchange_rate": {
"type": "SETTLEMENT_RATE",
"rate": 8000000
}
},
"trade_type": "APP",
"trade_state": "SUCCESS",
"trade_state_desc": "支付成功",
"bank_type": "CCB_DEBIT",
"attach": "支付测试",
"success_time": "2018-06-08T10:34:56+08:00",
"promotion_detail": [
{
"promotion_id": "109519",
"name": "单品惠-6",
"scope": "SINGLE",
"type": "DISCOUNT",
"amount": 1,
"currency": "HKD",
"activity_id": "931386",
"wechatpay_contribute_amount": 1,
"merchant_contribute_amount": 0,
"other_contribute_amount": 0,
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"goods_remark": "商品备注",
"quantity": 1,
"price": 528800
}
]
}
]
}

View File

@@ -0,0 +1,39 @@
{
"data": [
{
"amount": {
"settled": 123,
"fee": 123,
"pay": 123,
"currency": "HKD",
"net": 123,
"unsettle": 123,
"refund": 123
},
"settlement_date": "20091225",
"batch_id": "20091225003",
"wallet_region": "CHINA_HONGKONG",
"trade_start_date": "20091225",
"trade_end_date": "20091225"
},
{
"amount": {
"settled": 123,
"fee": 123,
"pay": 123,
"currency": "HKD",
"net": 123,
"unsettle": 123,
"refund": 123
},
"settlement_date": "20091225",
"batch_id": "20091225003",
"wallet_region": "CHINA_HONGKONG",
"trade_start_date": "20091225",
"trade_end_date": "20091225"
}
],
"offset": 1,
"total_count": 1234,
"limit": 20
}

View File

@@ -0,0 +1,40 @@
{
"appid": "wx2421b1c4370ec43b",
"mchid": "10000100",
"out_trade_no": "20150806125346",
"merchant_category_code": "1011",
"payer": {
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
},
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "APP",
"amount": {
"total": 10000,
"currency": "HKD"
},
"attach": "Payment test",
"description": "In-APP Pay test",
"goods_tag": "",
"detail": {
"cost_price": 10000,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 528800
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001"
}
}
}

View File

@@ -0,0 +1,3 @@
{
"prepay_id": "wx201411101639507cbf6ffd8b0779950874"
}

View File

@@ -0,0 +1,39 @@
{
"appid": "wx2421b1c4370ec43b",
"mchid": "10000100",
"out_trade_no": "20150806125346",
"merchant_category_code": "1011",
"payer": {
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
},
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "JSAPI",
"amount": {
"total": 10000,
"currency": "HKD"
},
"attach": "Payment test",
"description": "Miniprogramm Pay test",
"detail": {
"cost_price": 10000,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 528800
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001"
}
}
}

View File

@@ -0,0 +1,3 @@
{
"prepay_id": "wx201411101639507cbf6ffd8b0779950874"
}

View File

@@ -0,0 +1,40 @@
{
"appid": "wx2421b1c4370ec43b",
"mchid": "10000100",
"out_trade_no": "20150806125346",
"merchant_category_code": "1011",
"payer": {
"openid": "oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"
},
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "APP",
"amount": {
"total": 10000,
"currency": "HKD"
},
"attach": "支付测试",
"description": "APP支付测试",
"goods_tag": "",
"detail": {
"cost_price": 10000,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 528800
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001"
}
}
}

View File

@@ -0,0 +1,3 @@
{
"mweb_url": " https://wx.tenpay.com/cgi-bin/mmpayweb-bin/checkmweb?prepay_id=wx2016121516420242444321ca0631331346&package=1405458241"
}

View File

@@ -0,0 +1,42 @@
{
"appid": "wxdace645e0bc2c424",
"mchid": "10000100",
"out_trade_no": "20150806125346",
"merchant_category_code": "4111",
"payer": {
"auth_code": "134650720866361395"
},
"trade_type": "MICROPAY",
"amount": {
"total": 1,
"currency": "HKD"
},
"attach": "Payment Test",
"description": "Image Store - Tencent Building in Shenzhen - QQ Doll",
"goods_tag": "1234",
"limit_pay": "no_credit",
"detail": {
"cost_price": 1,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "3405",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 1
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001",
"name": "Tencent Building Branch",
"address": "Nanshan District, Shenzhen, Guangdong"
}
}
}

View File

@@ -0,0 +1,45 @@
{
"id": "1008450740201411110005820873",
"appid": "wx2421b1c4370ec43b",
"mchid": "10000100",
"out_trade_no": "20171014125314",
"payer": {
"openid": "oUpF8uN95-Ptaags6E_roPHg7AG0"
},
"amount": {
"total": 528800,
"currency": "HKD",
"payer_total": 518799,
"payer_currency": "CNY",
"exchange_rate": {
"type": "SETTLEMENT_RATE",
"rate": 80000000
}
},
"trade_type": "MICROPAY",
"trade_state": "SUCCESS",
"trade_state_desc": "Payment successful",
"bank_type": "CCB_DEBIT",
"attach": "Payment test",
"success_time": "2018-06-08T10:34:56+08:00",
"detail": {
"promotion_id": "109519",
"name": "Single-item discount-6",
"scope": "SINGLE",
"type": "DISCOUNT",
"amount": 1,
"currency": "CNY",
"activity_id": "931386",
"wechatpay_contribute_amount": 1,
"merchant_contribute_amount": 0,
"other_contribute_amount": 0,
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"goods_remark": "Product remarks",
"quantity": 1,
"price": 528800
}
]
}
}

View File

@@ -0,0 +1,37 @@
{
"appid": "wx2421b1c4370ec43b",
"mchid": "10000100",
"out_trade_no": "YX202111100020Z",
"merchant_category_code": "4111",
"notify_url": "https://wxpay.wxutil.com/pub_v2/pay/notify.v2.php",
"trade_type": "NATIVE",
"amount": {
"total": 10,
"currency": "HKD"
},
"attach": "QR code test",
"description": "QR code test",
"goods_tag": "001",
"detail": {
"cost_price": 10000,
"receipt_id": "1234",
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"wxpay_goods_id": "1001",
"goods_name": "iPhone6s 16G",
"quantity": 1,
"price": 10
}
]
},
"scene_info": {
"payer_client_ip": "14.23.150.211",
"device_ip": "59.37.125.32",
"device_id": "013467007045764",
"operator_id": "P001",
"store_info": {
"id": "SZTX001"
}
}
}

View File

@@ -0,0 +1,3 @@
{
"code_url": "weixin://wxpay/s/An4baqw"
}

View File

@@ -0,0 +1,47 @@
{
"id": "4200000000002104083200000488",
"appid": "wx2421b1c4370ec43b",
"mchid": "10000100",
"out_trade_no": "20150806125346",
"payer": {
"openid": "oUpF8uN95-Ptaags6E_roPHg7AG0"
},
"amount": {
"total": 528800,
"currency": "HKD",
"payer_total": 518799,
"payer_currency": "CNY",
"exchange_rate": {
"type": "SETTLEMENT_RATE",
"rate": 8000000
}
},
"trade_type": "APP",
"trade_state": "SUCCESS",
"trade_state_desc": "支付成功",
"bank_type": "CCB_DEBIT",
"attach": "支付测试",
"success_time": "2018-06-08T10:34:56+08:00",
"promotion_detail": [
{
"promotion_id": "109519",
"name": "单品惠-6",
"scope": "SINGLE",
"type": "DISCOUNT",
"amount": 1,
"currency": "HKD",
"activity_id": "931386",
"wechatpay_contribute_amount": 1,
"merchant_contribute_amount": 0,
"other_contribute_amount": 0,
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"goods_remark": "商品备注",
"quantity": 1,
"price": 528800
}
]
}
]
}

View File

@@ -0,0 +1,47 @@
{
"id": "4200000000002104083200000488",
"appid": "wx2421b1c4370ec43b",
"mchid": "10000100",
"out_trade_no": "20150806125346",
"payer": {
"openid": "oUpF8uN95-Ptaags6E_roPHg7AG0"
},
"amount": {
"total": 528800,
"currency": "HKD",
"payer_total": 518799,
"payer_currency": "CNY",
"exchange_rate": {
"type": "SETTLEMENT_RATE",
"rate": 8000000
}
},
"trade_type": "APP",
"trade_state": "SUCCESS",
"trade_state_desc": "支付成功",
"bank_type": "CCB_DEBIT",
"attach": "支付测试",
"success_time": "2018-06-08T10:34:56+08:00",
"promotion_detail": [
{
"promotion_id": "109519",
"name": "单品惠-6",
"scope": "SINGLE",
"type": "DISCOUNT",
"amount": 1,
"currency": "HKD",
"activity_id": "931386",
"wechatpay_contribute_amount": 1,
"merchant_contribute_amount": 0,
"other_contribute_amount": 0,
"goods_detail": [
{
"goods_id": "iphone6s_16G",
"goods_remark": "商品备注",
"quantity": 1,
"price": 528800
}
]
}
]
}