文档中心 > API类目 > pos交易api

taobao.payment.cashier.allinPay.pay (通联pos支付)

通联pos支付

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
payer_id Number 必须 2204239493205 买家阿里id
param1 StandardPayRequest 可选 支付请求对象
  • └ pay_time
  • Date
  • 可选
  • 2017-12-12 12:12:12
  • 本次支付请求时间
  • └ cashier_order_no
  • String
  • 可选
  • V2_53839f222cad42de8b34e166cc4e16be
  • 收银单号
  • └ source
  • String
  • 可选
  • allin
  • 请求来源
  • payer
  • UserVO
  • 可选
  • payer
  • 买家信息
  • └ ali_id
  • Number
  • 可选
  • 2204239493205
  • 买家userId
  • device_info
  • DeviceVO
  • 可选
  • deviceInfo
  • deviceInfo
  • └ pay_entrance
  • String
  • 可选
  • ALLIN_POS
  • 支付入口
  • pay_tool_pay_infos
  • PayToolPayVO []
  • 可选
  • payToolPayInfos
  • 支付工具支付信息
  • └ pay_tool_code
  • String
  • 可选
  • ALLIN_POS_PAY
  • 支付工具code
  • └ pay_option_id
  • String
  • 可选
  • ALLIN_POS_PAY
  • 支付选项ID(唯一编码)
  • └ pay_actual_amount_currency
  • String
  • 可选
  • CNY
  • 实际支付币种
  • └ pay_actual_amount
  • Number
  • 可选
  • 1000
  • 实际支付金额
  • └ pay_option_code
  • String
  • 可选
  • ALLIN_POS_PAY
  • 支付工具code
  • └ pay_amount
  • Number
  • 可选
  • 1000
  • 优惠前的付款金额,包含手续费等费用
  • └ pay_amount_currency
  • String
  • 可选
  • CNY
  • pay_amount_currency
  • └ actual_pay_amount
  • Number
  • 可选
  • 1000
  • 支付金额
  • └ biz_cashier_mode
  • String
  • 可选
  • POST_STANDARD_V2
  • 收银模式
  • └ request_id
  • String
  • 可选
  • 7555cc6f-e107-4839-9140-da04b8d6eb24
  • 请求号
  • └ pay_currency
  • String
  • 可选
  • CNY
  • 支付币种
  • term_pay_request_infos
  • TermPayVO []
  • 可选
  • termPayRequestInfos
  • 支付收单条款信息
  • └ checkout_order_no
  • String
  • 可选
  • 11140600021091761034786493205
  • pp的收单号
  • └ pay_term_no
  • String
  • 可选
  • 11140600121091753185818493205
  • pp的阶段号
  • └ pay_order_amount_currency
  • String
  • 可选
  • CNY
  • 订单币种
  • └ pay_order_amount
  • Number
  • 可选
  • 1000
  • 订单支付金额
  • └ pay_mode
  • String
  • 必须
  • POST_STANDARD_V2
  • 支付模式

响应参数

名称 类型 示例值 描述
pay_instruction_no String pay_instruction_no 指令号
channel_error_message String channel_error_message 渠道错误信息
instrument_detail_map Json instrument_detail_map 渠道明细,payTermNo维度的
channel_error_code String channel_error_code 渠道错误码
response_code String B_PP_EXECUTE_SUCCESS 中台响应code
result_status String result_status 中台结果码
third_system_code String third_system_code third_system_code
institution_code String ALLIN 机构编码
pay_option String ALLIN_POS_PAY 支付选项
response_message String response_message 中台响应信息
succeeded Boolean succeeded 是否成功
callback_url String 支付回调url 支付回调url

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
PaymentCashierAllinPayPayRequest req = new PaymentCashierAllinPayPayRequest();
req.setPayerId(2204239493205L);
PaymentCashierAllinPayPayRequest.StandardPayRequest obj1 = new PaymentCashierAllinPayPayRequest.StandardPayRequest();
obj1.setPayTime(StringUtils.parseDateTime("2017-12-12 12:12:12"));
obj1.setCashierOrderNo("V2_53839f222cad42de8b34e166cc4e16be");
obj1.setSource("allin");
PaymentCashierAllinPayPayRequest.UserVO obj2 = new PaymentCashierAllinPayPayRequest.UserVO();
obj2.setAliId(2204239493205L);
obj1.setPayer(obj2);
PaymentCashierAllinPayPayRequest.DeviceVO obj3 = new PaymentCashierAllinPayPayRequest.DeviceVO();
obj3.setPayEntrance("ALLIN_POS");
obj1.setDeviceInfo(obj3);
List<PaymentCashierAllinPayPayRequest.PayToolPayVO> list5 = new ArrayList<PaymentCashierAllinPayPayRequest.PayToolPayVO>();
PaymentCashierAllinPayPayRequest.PayToolPayVO obj6 = new PaymentCashierAllinPayPayRequest.PayToolPayVO();
list5.add(obj6);
obj6.setPayToolCode("ALLIN_POS_PAY");
obj6.setPayOptionId("ALLIN_POS_PAY");
obj6.setPayActualAmountCurrency("CNY");
obj6.setPayActualAmount(1000L);
obj6.setPayOptionCode("ALLIN_POS_PAY");
obj6.setPayAmount(1000L);
obj6.setPayAmountCurrency("CNY");
obj1.setPayToolPayInfos(list5);
obj1.setActualPayAmount(1000L);
obj1.setBizCashierMode("POST_STANDARD_V2");
obj1.setRequestId("7555cc6f-e107-4839-9140-da04b8d6eb24");
obj1.setPayCurrency("CNY");
List<PaymentCashierAllinPayPayRequest.TermPayVO> list8 = new ArrayList<PaymentCashierAllinPayPayRequest.TermPayVO>();
PaymentCashierAllinPayPayRequest.TermPayVO obj9 = new PaymentCashierAllinPayPayRequest.TermPayVO();
list8.add(obj9);
obj9.setCheckoutOrderNo("11140600021091761034786493205");
obj9.setPayTermNo("11140600121091753185818493205");
obj9.setPayOrderAmountCurrency("CNY");
obj9.setPayOrderAmount(1000L);
obj1.setTermPayRequestInfos(list8);
obj1.setPayMode("POST_STANDARD_V2");
req.setParam1(obj1);
PaymentCashierAllinPayPayResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<payment_cashier_allinPay_pay_response>
    <pay_instruction_no>pay_instruction_no</pay_instruction_no>
    <channel_error_message>channel_error_message</channel_error_message>
    <instrument_detail_map>instrument_detail_map</instrument_detail_map>
    <channel_error_code>channel_error_code</channel_error_code>
    <response_code>B_PP_EXECUTE_SUCCESS</response_code>
    <result_status>result_status</result_status>
    <third_system_code>third_system_code</third_system_code>
    <institution_code>ALLIN</institution_code>
    <pay_option>ALLIN_POS_PAY</pay_option>
    <response_message>response_message</response_message>
    <succeeded>succeeded</succeeded>
    <callback_url>支付回调url</callback_url>
</payment_cashier_allinPay_pay_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部