沙箱调试说明
沙箱调试说明
业务用例
JSAPI支付
创建交易订单
{
"out_trade_no":"20150423001001",
"trade_no":"2015042321001004720200028594"
}
唤起收银台支付
my.tradePay({
tradeNO: '2023052922001462650500138489',
success: (res) => {
my.alert({
content: JSON.stringify(res),
});
},
fail: (res) => {
my.alert({
content: JSON.stringify(res),
});
}
});


接收支付消息通知
http://api.test.alipay.net/atinterface/receive_notify.htm?gmt_create=2023-05-29 16:36:19&charset=UTF8&seller_email=hpj***@sandbox.com&gmt_payment=2023-05-29 16:38:23¬ify_time=2023-05-29 16:38:25&subject=沙箱 JSAPI 测试&sign=a2z35HkcYlMehYiKZrk9wQ83N06p6uUl/h6CU36aPyrh1fvbwktqht+hevwh/mgBTDqhzq7UOd07vWCCylfHvVnmbhN4aJfOYmUGveqC4dyI1l4iuUucvqdLQ/stckY43z/lVMSb5Ytp9dI02NJGPPvQ6zr9rlCqs0AlX6Lf+VdvTB+ZqMqZ4WKxCqvpnrDN7p24LNbKkZamfEYV71OK4NOG8TKpOFLsgdNZyfM8Y7vwaYRMA7oLY+XLwsW8ZNArLJPqYjj6nq6Bcqmp8S3FbmJRs5l4CKk2nAhwR3HuuZ3vM20FuxtNpUA306OyEhO39OsDf/hwlV9ZBGAd6RZuhw==&buyer_id=208862****162656&invoice_amount=238.00&version=1.0¬ify_id=2023052901222163825162650500076808&fund_bill_list=[{"amount":"238.00","fundChannel":"ALIPAYACCOUNT"}]¬ify_type=trade_status_sync&out_trade_no=7e8ec38c792d4ca48e050a5e59e14034&total_amount=238.00&trade_status=TRADE_SUCCESS&trade_no=2023052922001462650500138489&buyer_logon_id=dgr***@sandbox.com&receipt_amount=238.00&point_amount=0.00&buyer_pay_amount=238.00&app_id=20210****637036&sign_type=RSA2&seller_id=208862****856735
交易查询
{
"trade_no":"2013112011001004330000121536",
"out_trade_no":"6823789339978248",
"buyer_logon_id":"159****5620",
"trade_status":"TRADE_CLOSED",
"total_amount":88.88,
"trans_currency":"TWD",
"settle_currency":"USD",
"settle_amount":2.96,
"pay_currency":"CNY",
"pay_amount":"8.88",
"settle_trans_rate":"30.025",
"trans_pay_rate":"0.264",
"buyer_pay_amount":8.88,
"point_amount":10,
"invoice_amount":12.11,
"send_pay_date":"2014-11-27 15:45:57",
"receipt_amount":"15.25",
"store_id":"NJ_S_001",
"terminal_id":"NJ_T_001",
"fund_bill_list":[
{
"fund_channel":"ALIPAYACCOUNT",
"amount":10,
"real_amount":11.21
}
],
"store_name":"证大五道口店",
"buyer_user_id":"2088101117955611",
"industry_sepc_detail_gov":"{\"registration_order_pay\":{\"brlx\":\"1\",\"cblx\":\"1\"}}",
"industry_sepc_detail_acc":"{\"registration_order_pay\":{\"brlx\":\"1\",\"cblx\":\"1\"}}",
"charge_amount":"8.88",
"charge_flags":"bluesea_1",
"settlement_id":"2018101610032004620239146945",
"trade_settle_info":{
"trade_settle_detail_list":[
{
"operation_type":"replenish",
"operation_serial_no":"2321232323232",
"operation_dt":"2019-05-16 09:59:17",
"trans_out":"2088111111111111",
"trans_in":"2088111111111111",
"amount":10.00,
"ori_trans_out":"2088111111111111",
"ori_trans_in":"2088111111111111"
}
],
"trade_unsettled_amount":1.1
},
"auth_trade_pay_mode":"CREDIT_PREAUTH_PAY",
"buyer_user_type":"PRIVATE",
"mdiscount_amount":"88.88",
"discount_amount":"88.88",
"subject":"Iphone6 16G",
"body":"Iphone6 16G",
"alipay_sub_merchant_id":"2088301372182171",
"ext_infos":"{\"action\":\"cancel\"}",
"passback_params":"merchantBizType%3d3C%26merchantBizNo%3d2016010101111",
"hb_fq_pay_info":{
"user_install_num":"3"
},
"credit_pay_mode":"creditAdvanceV2",
"credit_biz_order_id":"ZMCB99202103310000450000041833",
"hyb_amount":"10.24",
"bkagent_resp_info":{
"bindtrx_id":"123412341234",
"bindclrissr_id":"01",
"bindpyeracctbk_id":"123123123123",
"bkpyeruser_code":"123451234512345",
"estter_location":"+37.28/-121.268"
},
"charge_info_list":[
{
"charge_fee":0.01,
"original_charge_fee":0.01,
"switch_fee_rate":"0.03",
"is_rating_on_trade_receiver":"Y",
"is_rating_on_switch":"Y",
"charge_type":"trade",
"sub_fee_detail_list":[
{
"charge_fee":0.10,
"original_charge_fee":0.20,
"switch_fee_rate":"0.03"
}
]
}
],
"biz_settle_mode":"PERIOD"
}
修改于 2023-11-21 02:26:12