交易请求报文
<?xml version="1.0" encoding="GBK"?><business_trans><request_type>barcode_auth_create_request</request_type><isspid>39493002</isspid><pos_id>1511300001</pos_id><store_id>1511300001</store_id><pos_seq>1511300000003</pos_seq><user_id>user01</user_id><system_id>8888</system_id><barcode_auth_create_request><pay_type>502</pay_type><tx_amt>10</tx_amt></barcode_auth_create_request></business_trans>
交易请求报文说明
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| request_type | 请求类型 | String(32) | 标识请求报文的类型,固定为barcode_auth_create_request | 必填 |
| isspid | 商户号 | String(8) | 接入SP的ID号,由翼码平台分配给ipos接入受理商户的机构号(原值返回) | 必填 |
| pos_id | 终端号 | String(20) | 终端号 | 必填 |
| store_id | 门店号 | String(20) | 门店号 | 必填 |
| pos_seq | 终端流水号 | String(32) | 同一个商户必须唯一,且大于12位 | 必填 |
| user_id | 操作员标识 | String(20) | 操作员号 | 可空 |
| system_id | 系统平台号 | String(4) | 由翼码提供 | 必填 |
| barcode_auth_create_request->pay_type | 支付类型 | String(3) | 502:支付宝支付 | 必填 |
| barcode_auth_create_request->tx_amt | 交易金额 | Number(16) | 条码支付金额,单位为分,不支持小数点 | 必填 |
交易返回报文
<?xml version="1.0" encoding="GBK"?>
<business_trans>
<response_type>barcode_auth_create_response</response_type>
<isspid>39493002</isspid>
<pos_id>1511300001</pos_id>
<pos_seq>1511300000002</pos_seq>
<sys_seq>0311095321465179</sys_seq>
<trans_time>20160311095321</trans_time>
<pay_type>502</pay_type>
<code_url>https://qr.alipay.com/aax03477r9eupehiepudo56</code_url>
<result>
<id>9998</id>
<comment>下单成功,等待用户授权</comment>
</result>
</business_trans>
交易返回报文说明
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!
| 节点名称 | 中文名称 | 类型 | 说明 | 是否必填 |
|---|---|---|---|---|
| response_type | 返回类型 | String(32) | 标识返回报文的类型,固定为barcode_auth_create_response | 必填 |
| isspid | 商户号 | String(8) | 接入SP的ID号,为翼码平台的提供的业务商机构号 | 必填 |
| pos_id | 终端号 | String(20) | 终端号 | 必填 |
| pos_seq | 终端流水号 | String(32) | 终端交易流水号,和请求报文中的交易流水号相同 | 必填 |
| sys_seq | 平台流水号 | String(16) | 由翼码平台产生,供跟踪之用 | 必填 |
| trans_time | 交易时间 | String(14) | 交易时间,格式:yyyyMMddHHmmss | 必填 |
| pay_type | 支付类型 | String(3) | 502:支付宝支付 | 必填 |
| code_url | 二维码信息 | String(100) | 支付平台返回的预授权二维码信息 | 可选 |
| result->id | 响应码 | String(4) | 返回“9998”时,下单成功等待用户扫码授权,需调用预授权查询接口确认交易结果其它失败,错误信息说明见“响应码解释”字段 | 必填 |
| result->comment | 响应码解释 | String(64) | 响应码对应中文注解,用于显示提示 | 必填 |
标准接口会因业务升级需要而新增节点,请在解析返回报文时避免新增未知节点产生的程序出错!


