mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 05:50:50 +00:00
229 lines
7.8 KiB
JSON
229 lines
7.8 KiB
JSON
{
|
||
"key": "v3_wechat_pay",
|
||
"name": "微信支付V3",
|
||
"description": "微信支付V3驱动",
|
||
"version": "1.0.0",
|
||
"author": "CRMEB",
|
||
"type": "driver",
|
||
"path": "driver/pay/V3WechatPay",
|
||
"default_install": true,
|
||
"require": {
|
||
"crmeb": "^8.0",
|
||
"php": "^8.0"
|
||
},
|
||
"driver": {
|
||
"name": "微信支付V3",
|
||
"channel_key": "weixin_v3",
|
||
"driver_key": "v3_wechat_pay",
|
||
"platform": "wechat",
|
||
"icon": "icon-weixinzhifu",
|
||
"capabilities": [
|
||
"pay",
|
||
"refund",
|
||
"notify",
|
||
"merchant_pay",
|
||
"merchant_pay_new",
|
||
"query_transfer",
|
||
"transfer_notify"
|
||
],
|
||
"required_credentials": {
|
||
"wechat_mini": [
|
||
"openid"
|
||
],
|
||
"wechat_mp": [
|
||
"openid"
|
||
]
|
||
},
|
||
"pay_type_map": {
|
||
"wechat_mini": "JSAPI",
|
||
"wechat_mp": "JSAPI",
|
||
"h5": "h5",
|
||
"app": "APP",
|
||
"pc": "NATIVE"
|
||
},
|
||
"pay_status_type": {
|
||
"default": "wechat_pay",
|
||
"h5": "wechat_h5_pay",
|
||
"pc": "wechat_pc_pay"
|
||
},
|
||
"default_options": [
|
||
"pay_new_weixin_open"
|
||
],
|
||
"supported_platforms": {
|
||
"wechat_mini": "微信小程序",
|
||
"wechat_mp": "微信公众号",
|
||
"h5": "H5浏览器",
|
||
"app": "APP",
|
||
"pc": "PC端"
|
||
},
|
||
"config_fields": [
|
||
{
|
||
"field": "mer_type",
|
||
"label": "商户类型",
|
||
"type": "radio",
|
||
"group": "商户类型",
|
||
"default": "0",
|
||
"options": [
|
||
{
|
||
"value": "0",
|
||
"label": "微信支付商户模式"
|
||
},
|
||
{
|
||
"value": "1",
|
||
"label": "微信支付服务商模式"
|
||
}
|
||
],
|
||
"tip": "商户类型,目前支持普通微信商户模式和普通微信服务商模式"
|
||
},
|
||
{
|
||
"field": "sp_appid",
|
||
"label": "主商户APPID",
|
||
"type": "text",
|
||
"group": "商户类型",
|
||
"tip": "开启服务商支付,需要配置主商户申请时开通的公众号服务号的APPID",
|
||
"show_if": {
|
||
"field": "mer_type",
|
||
"value": "1"
|
||
}
|
||
},
|
||
{
|
||
"field": "pay_sub_merchant_id",
|
||
"label": "子商户商户号",
|
||
"type": "text",
|
||
"group": "商户类型",
|
||
"tip": "微信支付服务商子商户商户号",
|
||
"show_if": {
|
||
"field": "mer_type",
|
||
"value": "1"
|
||
}
|
||
},
|
||
{
|
||
"field": "pay_weixin_mchid",
|
||
"label": "商户号",
|
||
"type": "text",
|
||
"group": "商户",
|
||
"tip": "微信商户商户号"
|
||
},
|
||
{
|
||
"field": "pay_weixin_serial_no",
|
||
"label": "证书序列号",
|
||
"type": "text",
|
||
"group": "商户",
|
||
"tip": "商户API证书的证书序列号,可在证书管理中查看"
|
||
},
|
||
{
|
||
"field": "pay_weixin_key_v3",
|
||
"label": "V3支付Key",
|
||
"type": "text",
|
||
"group": "商户",
|
||
"tip": "V3支付密钥"
|
||
},
|
||
{
|
||
"field": "v3_pay_public_key",
|
||
"label": "V3支付公钥",
|
||
"type": "text",
|
||
"group": "商户",
|
||
"tip": "V3新版本使用公钥时填写"
|
||
},
|
||
{
|
||
"field": "v3_pay_public_pem",
|
||
"label": "V3支付公钥证书",
|
||
"type": "upload",
|
||
"group": "商户",
|
||
"tip": "V3支付公钥证书内容"
|
||
},
|
||
{
|
||
"field": "pay_weixin_client_cert",
|
||
"label": "微信支付证书",
|
||
"type": "upload",
|
||
"group": "证书",
|
||
"tip": "微信支付证书,在微信商家平台中可以下载!文件名一般为apiclient_cert.pem"
|
||
},
|
||
{
|
||
"field": "pay_weixin_client_key",
|
||
"label": "微信支付证书密钥",
|
||
"type": "upload",
|
||
"group": "证书",
|
||
"tip": "微信支付证书密钥,在微信商家平台中可以下载!文件名一般为apiclient_key.pem"
|
||
},
|
||
{
|
||
"field": "pay_new_weixin_open",
|
||
"label": "小程序商户号选择",
|
||
"type": "radio",
|
||
"group": "小程序",
|
||
"default": "0",
|
||
"options": [
|
||
{
|
||
"value": "0",
|
||
"label": "商户号绑定"
|
||
},
|
||
{
|
||
"value": "1",
|
||
"label": "非商户号绑定"
|
||
}
|
||
],
|
||
"tip": "小程序开发后后台有支付管理的请选择非商户号绑定"
|
||
},
|
||
{
|
||
"field": "pay_new_weixin_mchid",
|
||
"label": "小程序支付商户号",
|
||
"type": "text",
|
||
"group": "小程序",
|
||
"tip": "小程序开通支付管理生成的商户号",
|
||
"show_if": {
|
||
"field": "pay_new_weixin_open",
|
||
"value": "1"
|
||
}
|
||
},
|
||
{
|
||
"field": "routine_appId",
|
||
"label": "小程序AppID",
|
||
"type": "text",
|
||
"group": "小程序渠道",
|
||
"tip": "微信小程序 AppID(V3 支付渠道)"
|
||
},
|
||
{
|
||
"field": "routine_appsecret",
|
||
"label": "小程序AppSecret",
|
||
"type": "password",
|
||
"group": "小程序渠道",
|
||
"tip": "新小程序支付模式需要的微信小程序 AppSecret"
|
||
},
|
||
{
|
||
"field": "wechat_appid",
|
||
"label": "公众号AppID",
|
||
"type": "text",
|
||
"group": "公众号渠道",
|
||
"tip": "微信公众号 AppID(V3 支付渠道)"
|
||
},
|
||
{
|
||
"field": "wechat_app_appid",
|
||
"label": "APP应用AppID",
|
||
"type": "text",
|
||
"group": "APP渠道",
|
||
"tip": "微信开放平台移动应用 AppID(V3 支付渠道)"
|
||
},
|
||
{
|
||
"field": "v3_transfer_scene_id",
|
||
"label": "微信自动提现场景值",
|
||
"type": "text",
|
||
"group": "转账",
|
||
"default": "1000",
|
||
"tip": "默认值:1000"
|
||
}
|
||
],
|
||
"help_doc": {
|
||
"title": "微信支付(V3)使用说明",
|
||
"steps": [
|
||
"注册微信商户平台账号(https://pay.weixin.qq.com)",
|
||
"提交商户资料,完成审核后获取商户号",
|
||
"在商户平台获取证书序列号和 APIv3 密钥",
|
||
"下载 API 证书(apiclient_cert.pem)和证书密钥(apiclient_key.pem)",
|
||
"按实际支付端填写本渠道的 AppID(小程序可同时填写 AppSecret)",
|
||
"将商户号、证书序列号、V3密钥、证书文件填入本渠道配置中"
|
||
],
|
||
"link": "https://pay.weixin.qq.com/index.php/core/home/login"
|
||
}
|
||
}
|
||
}
|