简要描述:

  • 获取收银台支付设置

请求方法:

GET

请求URL:

https://你的域名/addons/yun_shop/api.php?i=xxx&route=plugin.store-cashier.frontend.cashier.center.getPaySet

参数:

参数名 是否必须 类型 说明
store_id int 门店id

返回示例:

正确时返回:

{
    "result": 1,
    "msg": "",
    "data": {
        "get_store_info": {
            "store": {
                "name": "测试名称11",
                "thumb": "https://ysm-1251768088.cos.ap-guangzhou.myqcloud.com/images/25/2023/11/63a5bb189160b0afabaca51bc29e55d3.jpg",
                "mobile": "13256524444",
                "store_id": 45
            },
            "store_set": {
                "is_write_information": 0,
                "is_open_cashier": 1,
                "is_cash_pay": 0,
                "every_min_money": "0.00",
                "payment_types": []
            }
        },
        "get_pay_protocol": ""
    }
}

错误时返回:


get_store_info.store返回参数说明:

参数名 类型 说明
name string 门店名称
thumb string 门店图片
mobile string 门店电话
store_id int 门店id

get_store_info.store_set返回参数说明:

参数名 类型 说明
is_write_information int 用户付款是否需要填写信息
is_open_cashier int 是否开启收银台
is_cash_pay int 是否使用现金支付
every_min_money float 商家设置单次最低消费

备注:

  • 更多返回错误代码请看首页的错误代码描述