开发者文档

一卡通支付

访问路径:api/1/wxpay/gateways

接口说明:新开普支付平台,获取商户可使用的资金来源接口(获取支付方式)

URL结构

https://api.17wanxiao.com/api/1/wxpay/gateways

接口协议:HTTPS

HTTP请求方式:POST

请求参数

参数 必选 类型 说明
access_token true string 访问令牌,请妥善保管,泄漏会导致用户信息泄漏
merchant_olid true string 商户账号 (需要第三方申请,参考:申请方式)
norce_str true string 随机数,保证签名不可预测

请求示例

换行和缩进只是为了更好的展示:

http://api.17wanxiao.com/api/1/wxpay/gateways?access_token =ACCESS_TOKEN&merchat_olid=24&norce_str=1459919885287

返回参数

参数 必选 类型 说明
code true string 操作结果:success为成功
msg true string 失败信息
norce_str true string 随机数,保证签名唯一
gateways true string 节点,JSON数组
gateway_id true string 资金来源编号
gateway_type true string 资金来源类型
gateway_name true string 资金来源名称
gateway_icon true string 资金来源logo
gateway_info false string 资金来源描述

返回示例

                    
                    {
                      "gateways": [
                        {
                          "gateway_info": "",
                          "gateway_id": 208,
                          "gateway_type": "wxpay",
                          "gateway_icon":http://121.43.104.69/PayGateway/icon/weixin.png",
                          "gateway_name": "微信支付"
                        },
                        {
                          "gateway_info": "",
                          "gateway_id": 320,
                          "gateway_type": "bestpay",
                          "gateway_icon":http://121.43.104.69/PayGateway/icon/bestpay.png",
                          "gateway_name": "翼支付"
                        }
                      ],
                      "code": "success",
                      "norce_str": 1459919885287,
                      "msg": "获取成功"
                    }