{
  "pay_type_official": [
    "ali",
    "wx"
  ],
  "ali": {
    "label": "支付宝收款",
    "group": "pay",
    "slug": "ali",
    "fields": [
      {
        "label": "支付宝收款",
        "slug": "open",
        "type": "switch",
        "attrs": {
          "inactive-value": "0",
          "active-value": "1",
          "remark": {
            "1": "已开启",
            "0": "未启用"
          }
        }
      },
      {
        "label": "终端",
        "slug": "ali_end",
        "type": "checkbox-group",
        "group": {
          "fields": [
            {
              "label": "电脑网站支付",
              "slug": "native",
              "type": "checkbox",
              "attrs": {
                "true-value": "1",
                "false-value": "0",
                "disabled": true
              },
              "tips": "用户访问PC网站购买时使用支付宝APP扫描完成支付。"
            },
            {
              "label": "手机网站支付",
              "slug": "h5",
              "type": "checkbox",
              "attrs": {
                "true-value": "1",
                "false-value": "0"
              },
              "tips": "用户手机端访问购买时呼出支付宝APP支付。需通过支付宝产品中心开通。"
            }
          ]
        }
      },
      {
        "label": "appid",
        "slug": "appid",
        "type": "input",
        "attrs": {}
      },
      {
        "label": "支付宝公钥",
        "slug": "alipay_key",
        "type": "textarea",
        "attrs": {
          "placeholder": ""
        }
      },
      {
        "label": "应用公钥",
        "slug": "public_key",
        "type": "textarea"
      },
      {
        "label": "应用私钥",
        "slug": "private_key",
        "type": "textarea"
      },
      {
        "slug": "ali_divider",
        "label": "",
        "type": "divider",
        "value": {
          "content-position": "left"
        }
      }
    ],
    "default": {
      "open": "0",
      "native": "1",
      "h5": "0",
      "appid": "",
      "alipay_key": "",
      "public_key": "",
      "private_key": ""
    }
  },
  "wx": {
    "label": "微信收款",
    "group": "pay",
    "slug": "wx",
    "fields": [
      {
        "label": "微信收款",
        "slug": "open",
        "type": "switch",
        "attrs": {
          "inactive-value": "0",
          "active-value": "1",
          "remark": {
            "1": "已开启",
            "0": "未启用"
          }
        }
      },
      {
        "label": "终端",
        "slug": "wx_end",
        "type": "checkbox-group",
        "group": {
          "fields": [
            {
              "label": "Native支付",
              "slug": "native",
              "type": "checkbox",
              "tips": "Native支付即用户访问PC网站扫描支付。需通过微信支付申请开通。",
              "attrs": {
                "true-value": "1",
                "false-value": "0",
                "disabled": true
              }
            },
            {
              "label": "H5支付",
              "slug": "h5",
              "type": "checkbox",
              "tips": "H5支付即用户手机端访问网站购买时呼出微信APP支付。需通过微信支付申请开通。",
              "attrs": {
                "true-value": "1",
                "false-value": "0"
              }
            }
          ]
        }
      },
      {
        "label": "公众号appid",
        "slug": "appid",
        "type": "input",
        "attrs": {
          "placeholder": ""
        }
      },
      {
        "label": "公众号appsecret",
        "slug": "appsecret",
        "type": "input"
      },
      {
        "label": "商户ID",
        "slug": "merchantid",
        "type": "input"
      },
      {
        "label": "商户支付密钥",
        "slug": "key",
        "type": "input"
      },
      {
        "slug": "ali_divider",
        "label": "",
        "type": "divider",
        "value": {
          "content-position": "left"
        }
      }
    ],
    "default": {
      "open": "0",
      "native": "1",
      "h5": "0",
      "appid": "",
      "appsecret": "",
      "merchantid": "",
      "key": ""
    }
  },
  "paypal": {
    "label": "PayPal",
    "group": "pay",
    "slug": "paypal",
    "fields": [
      {
        "label": "PayPal",
        "slug": "open",
        "type": "switch",
        "attrs": {
          "inactive-value": "0",
          "active-value": "1",
          "remark": {
            "0": "已开启",
            "1": "未启用"
          }
        }
      },
      {
        "label": "Client ID",
        "slug": "paypal_client_id",
        "type": "input",
        "attrs": {
          "placeholder": "请输入您的PayPal Client ID"
        }
      },
      {
        "label": "Client Secret",
        "slug": "paypal_client_secret",
        "type": "input",
        "attrs": {
          "placeholder": "请输入您的PayPal密钥"
        }
      },
      {
        "label": "货币类型",
        "slug": "currency",
        "type": "select",
        "attrs": {
          "placeholder": "请选择货币类型",
          "items": [
            {
              "value": "USD",
              "label": "美元"
            },
            {
              "value": "TWD",
              "label": "新台币"
            },
            {
              "value": "HKD",
              "label": "港币"
            },
            {
              "value": "JPY",
              "label": "日元"
            }
          ]
        }
      },
      {
        "label": "汇率",
        "slug": "ex_rate",
        "type": "input",
        "attrs": {
          "placeholder": "支付货币与系统金额汇率"
        }
      },
      {
        "label": "API用户名",
        "slug": "acct1_username",
        "type": "input",
        "attrs": {
          "placeholder": "API签名凭证 用户名"
        }
      },
      {
        "label": "API密码",
        "slug": "acct1_password",
        "type": "input",
        "attrs": {
          "placeholder": "API签名凭证 密码"
        }
      },
      {
        "label": "API签名",
        "slug": "acct1_signature",
        "type": "input",
        "attrs": {
          "placeholder": "API签名凭证 签名"
        }
      },
      {
        "label": "沙箱模式",
        "slug": "sandbox",
        "type": "switch",
        "attrs": {
          "inactive-value": "0",
          "active-value": "1",
          "remark": {
            "0": "已关闭测试模式，支付将直接到达您的PayPal账户",
            "1": "已激活测试模式"
          }
        },
        "group": {
          "fields": [
            {
              "label": "Client ID",
              "slug": "paypal_id_sb",
              "type": "input",
              "show": "1",
              "attrs": {
                "placeholder": "沙箱 Client ID"
              }
            },
            {
              "label": "Client Secret",
              "slug": "paypal_secret_sb",
              "type": "input",
              "show": "1",
              "attrs": {
                "placeholder": "沙箱 PayPal密钥"
              }
            },
            {
              "label": "API用户名",
              "slug": "sb_acct1_username",
              "type": "input",
              "show": "1",
              "attrs": {
                "placeholder": "API签名凭证 用户名"
              }
            },
            {
              "label": "API密码",
              "slug": "sb_acct1_password",
              "type": "input",
              "show": "1",
              "attrs": {
                "placeholder": "API签名凭证 密码"
              }
            },
            {
              "label": "API签名",
              "slug": "sb_acct1_signature",
              "type": "input",
              "show": "1",
              "attrs": {
                "placeholder": "API签名凭证 签名"
              }
            }
          ]
        }
      }
    ],
    "default": {
      "open": "0",
      "currency": "TWD",
      "sandbox": "0",
      "paypal_secret_sb": "",
      "paypal_id_sb": "",
      "paypal_client_secret": "",
      "paypal_client_id": ""
    }
  },
  "prompt": {
    "label": "配置说明",
    "group": "pay",
    "slug": "prompt",
    "items": [
      "官方接口 - 极力推荐企业备案网站申请官方支付接口，合法合规。",
      "<a href=\"https://www.wbolt.com/alipay-api.html\" target=\"_blank\">查看支付宝官方API接口申请及配置教程？</a>",
      "<a href=\"https://www.wbolt.com/wechat-pay-api.html\" target=\"_blank\">查看微信支付官方API接口申请及配置教程？</a>"
    ]
  }
}