ECJiaWiki:Api:payment pay list api

来自ECJiaWiki
跳到导航 跳到搜索

应用场景

获取支付方式下拉列表

接口名称

pay_list

请求参数

字段名 变量名 必填 类型 示例值 描述
目录名 payment string 目录名
接口名 pay_list string 接口名

举例如下

RC_Api::api('payment', 'pay_list');

成功举例如下

CONTENT: Array
(
    [0] => Array
        (
            [id] => 9
            [code] => pay_balance
            [name] => 余额支付
            [pay_fee] => 0
            [is_cod] => 0
            [desc] => 使用帐户余额支付。只有会员才能使用,通过设置信用额度,可以透支。 By ECJIA TEAM.
            [pay_order] => 0
            [enabled] => 1
        )

    [1] => Array
        (
            [id] => 10
            [code] => pay_alipay
            [name] => 支付宝
            [pay_fee] => 0
            [is_cod] => 0
            [desc] => 支付宝网站(www.alipay.com) 是国内先进的网上支付平台。
支付宝收款接口:在线即可开通,零预付,免年费,单笔阶梯费率,无流量限制。
立即在线申请By ECJIA TEAM.
            [pay_order] => 0
            [enabled] => 1
        )

    [2] => Array
        (
            [id] => 11
            [code] => pay_cod
            [name] => 货到付款
            [pay_fee] => 0
            [is_cod] => 1
            [desc] => 开通城市:×××货到付款区域:××× By ECJIA TEAM.
            [pay_order] => 0
            [enabled] => 1
        )

    [3] => Array
        (
            [id] => 12
            [code] => pay_cash
            [name] => 现金支付
            [pay_fee] => 0
            [is_cod] => 1
            [desc] => 现金支付 By ECJIA TEAM.
            [pay_order] => 0
            [enabled] => 1
        )

)

失败举例如下

bool(false)

注:错误编码