机票支付接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
pay_request | PayRequest | 必须 | 支付请求 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
order_id | Number | 434523452345 | 订单id |
is_success | Boolean | true | 请求是否成功 |
error_code_info | String | isv.SYSTEM_ERRO | 错误码 |
alipay_trade_no | String | 220123412342134124 | 支付宝交易流水号(后续将废弃,请使用trade_no字段) |
error_msg | String | 系统异常 | 错误描述 |
trade_no | String | 220123412342134124 | 交易流水号 |
1 2 3 4 5 6 7 8 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlitripFlightServicePayRequest req = new AlitripFlightServicePayRequest(); AlitripFlightServicePayRequest.PayRequest obj1 = new AlitripFlightServicePayRequest.PayRequest(); obj1.setOrderId(434523452345L); obj1.setChannelName( "feiye" ); req.setPayRequest(obj1); AlitripFlightServicePayResponse rsp = client.execute(req, sessionKey); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 | < alitrip_flight_service_pay_response > < order_id >434523452345</ order_id > < is_success >true</ is_success > < error_code_info >isv.SYSTEM_ERRO</ error_code_info > < alipay_trade_no >220123412342134124</ alipay_trade_no > < error_msg >系统异常</ error_msg > < trade_no >220123412342134124</ trade_no > </ alitrip_flight_service_pay_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|