跳到主要内容

二维码被扫支付

请求接口

openplt/jx/canteen/scanPay

公共参数

接口协议 - 公共参数

请求参数

参数必填类型说明
deviceSnString设备sn号,项目内唯一
qrCodeString二维码
payFeeNumber支付金额,单位元。 例:1.00
orderTimeString订单时间,格式:yyyy-MM-dd HH:mm:ss
orderIdString(32)订单号
offlineFlagInteger离线标识
curCodeString币种
proInfoString商品信息

响应参数

参数必填类型说明
traceIdString流水号
payResultStringY:支付成功 N:支付失败 U:待轮询
resultMsgString(128)结果说明
customerIdString就餐用户编号
customerNameString用户名
payFeeNumber支付金额,单位元。 例:1.00
payTimeString支付时间,格式:yyyy-MM-dd HH:mm:ss
userPayFeeNumber实际支付金额 设备播报以此为准,单位元。 例:1.00
accountNoString账户ID
accountNameString账户别名
accountTypeString账户类型
businessNameString商家名
accountBalanceNumber账户余额
totalBalanceNumber账户总余额
orderIdString(32)订单号
discountMsgString(255)优惠信息
discountFeeNumber优惠金额

请求示例

{
"qrCode": "qrCode_2e7e0f3fb33b",
"payFee": 0.00,
"orderTime": "",
"orderId": "orderId_12e2aa2033d4",
"offlineFlag": 0,
"curCode": "",
"proInfo": "proInfo_11d973488d66",
"deviceSn": "deviceSn_72424d4bfed9"
}

返回值示例

{
"traceId": "traceId_3da404d4f03c",
"customerId": "customerId_7576d2286e4e",
"payResult": "Y",
"resultMsg": "resultMsg_84578a4efe03",
"customerName": "customerName_4902413bc55d",
"payFee": 0.00,
"payTime": "",
"userPayFee": 0.00,
"accountNo": "accountNo_6df796df2c76",
"accountName": "accountName_1ad70fb7edf7",
"accountType": "",
"businessName": "businessName_21d555441ad2",
"accountBalance": 0.00,
"totalBalance": 0.00,
"orderId": "orderId_4f39124ba263",
"discountMsg": "discountMsg_4e0e00179b61",
"discountFee": 0.00
}