1. 收单
连连开放平台文档
  • 返回首页
  • 纯支付
  • 收单
    • 网关支付-统一创单
      POST
    • 条码支付-统一支付
      POST
    • 快捷支付申请
      POST
    • 网银支付
      POST
    • 企业网银订单支付
      POST
    • 聚合收银台支付
      POST
  • 分账
    • 分账配置申请
      POST
    • 分账配置查询
      POST
    • 订单分账申请
      POST
  1. 收单

条码支付-统一支付

正式环境
https://openapi.lianlianpay.com/mch
正式环境
https://openapi.lianlianpay.com/mch
POST
https://openapi.lianlianpay.com/mch
/v1/ipay/directpay
统一支付

请求参数

Header 参数

Body 参数application/json

示例
{
    "mch_id": "201304121000001004",
    "sub_mchid": "302210180000021525",
    "user_id": "pWDslsPANCa4rimg0byYcXR4F8avAF08",
    "auth_code": "string",
    "pay_type": "WECHAT_JSAPI",
    "busi_type": "100001",
    "txn_seqno": "SOgKCGouScflQDsTw6I8Nm11DzTZEn5n",
    "txn_time": "202312071347",
    "order_amount": "49.65",
    "order_info": "string",
    "pay_expire": 0,
    "notify_url": "https://test.lianlianpay-inc.com/llpaytest/mpspNotifyReceive_test.htm",
    "share_flag": "IMMEDIATE",
    "divide_notify_url": "string",
    "risk_item": "string",
    "extend_info": "string",
    "goods_info": [
        {
            "goods_id": "100001",
            "goods_name": "test-100001",
            "goods_category": "string",
            "goods_quantity": "string",
            "goods_price": "string",
            "goods_body": "string"
        }
    ],
    "risk_info": {
        "ip_addr": "string",
        "longitude": "string",
        "latitude": "string",
        "cell_id": "33.11,123.33",
        "user_register_time": "20230703212500",
        "user_login_method": "PASSWORD"
    },
    "device_info": {
        "device_id": "123456",
        "device_type": "SMQ",
        "device_ip": "10.2.1.3",
        "device_gps": "45.03",
        "device_imei": "示例IMEI",
        "device_imsi": "示例IMSI",
        "device_iccid": "示例ICCID",
        "device_wifimac": "示例WIFIMAC",
        "device_mac": "示例MAC"
    },
    "store_info": {
        "store_id": "门店号",
        "store_name": "门店名称",
        "area_code": "110000",
        "store_addr": "门店地址",
        "cashier_no": "收银员编号"
    },
    "divide_infos": [
        {
            "divide_uid": "string",
            "divide_amount": 0,
            "divide_memo": "string"
        }
    ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://openapi.lianlianpay.com/mch/v1/ipay/directpay' \
--header 'Signature-Data;' \
--header 'Signature-Type: RSA' \
--header 'mch_id: 2020042200284052' \
--header 'sp_no;' \
--header 'timestamp: 20221109111509' \
--header 'Content-Type: application/json;charset=utf-8' \
--data '{
    "mch_id": "201304121000001004",
    "sub_mchid": "302210180000021525",
    "user_id": "pWDslsPANCa4rimg0byYcXR4F8avAF08",
    "auth_code": "string",
    "pay_type": "WECHAT_JSAPI",
    "busi_type": "100001",
    "txn_seqno": "SOgKCGouScflQDsTw6I8Nm11DzTZEn5n",
    "txn_time": "202312071347",
    "order_amount": "49.65",
    "order_info": "string",
    "pay_expire": 0,
    "notify_url": "https://test.lianlianpay-inc.com/llpaytest/mpspNotifyReceive_test.htm",
    "share_flag": "IMMEDIATE",
    "divide_notify_url": "string",
    "risk_item": "string",
    "extend_info": "string",
    "goods_info": [
        {
            "goods_id": "100001",
            "goods_name": "test-100001",
            "goods_category": "string",
            "goods_quantity": "string",
            "goods_price": "string",
            "goods_body": "string"
        }
    ],
    "risk_info": {
        "ip_addr": "string",
        "longitude": "string",
        "latitude": "string",
        "cell_id": "33.11,123.33",
        "user_register_time": "20230703212500",
        "user_login_method": "PASSWORD"
    },
    "device_info": {
        "device_id": "123456",
        "device_type": "SMQ",
        "device_ip": "10.2.1.3",
        "device_gps": "45.03",
        "device_imei": "示例IMEI",
        "device_imsi": "示例IMSI",
        "device_iccid": "示例ICCID",
        "device_wifimac": "示例WIFIMAC",
        "device_mac": "示例MAC"
    },
    "store_info": {
        "store_id": "门店号",
        "store_name": "门店名称",
        "area_code": "110000",
        "store_addr": "门店地址",
        "cashier_no": "收银员编号"
    },
    "divide_infos": [
        {
            "divide_uid": "string",
            "divide_amount": 0,
            "divide_memo": "string"
        }
    ]
}'

返回响应

🟢200成功
application/json
Bodyapplication/json

示例
{
  "ret_code": "",
  "ret_msg": "",
  "mch_id": "",
  "sub_mchid": "",
  "txn_seqno": "",
  "platform_txno": "",
  "order_amount": "",
  "txn_status": "",
  "account_date": "",
  "chnl_txno": "",
  "pay_info": "",
  "extend_info": ""
}
上一页
网关支付-统一创单
下一页
快捷支付申请
Built with