first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
{"ICBC":"1002","ABC":"1005","CCB":"1003","BOC":"1026","COMM":"1020","CMB":"1001","PSBC":"1066","CMBC":"1006","SPABANK":"1010","CITIC":"1021","SPDB":"1004","CIB":"1009","CEB":"1022","GDB":"1027","HXBANK":"1025","NBBANK":"1056","BJBANK":"4836","SHBANK":"1024","NJCB":"1054","RHCZBANK":"4755","CSCB":"4216","ZJTLCB":"4051","ZYB":"4753","IBK":"4761","SDEB":"4036","HSBK":"4752","CZCCB":"4756","DTCBANK":"4767","HNRCU":"4115","NXRCU":"4150","SXRCU":"4156","ARCU":"4166","GSRCU":"4157","TRCB":"4153","GXRCU":"4113","SXRCCU":"4108","SRCB":"4076","NBYZ":"4052","ZJNX":"4764","JSRCU":"4217","JZRCBANK":"4072","ZGCBANK":"4769","DBS":"4778","ZZYH":"4766","UBCHN":"4758","NYSYBANK":"4763"}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
$wechatpay_config = [
|
||||
//绑定支付的APPID
|
||||
'appid' => $channel['appid'],
|
||||
|
||||
//商户号
|
||||
'mchid' => $channel['appmchid'],
|
||||
|
||||
//商户APIv2密钥
|
||||
'apikey' => $channel['appkey'],
|
||||
|
||||
//公众帐号secert(仅JSAPI支付需要配置)
|
||||
'appsecret' => '',
|
||||
|
||||
//商户证书路径(仅退款、撤销订单时需要)
|
||||
'sslcert_path' => PLUGIN_ROOT.$channel['plugin'].'/cert/apiclient_cert.pem',
|
||||
|
||||
//商户证书私钥路径
|
||||
'sslkey_path' => PLUGIN_ROOT.$channel['plugin'].'/cert/apiclient_key.pem',
|
||||
|
||||
//付款到银行卡的RSA公钥
|
||||
'publickey_path' => PLUGIN_ROOT.$channel['plugin'].'/cert/public_key.pem',
|
||||
];
|
||||
|
||||
if(file_exists(PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appmchid'].'/apiclient_cert.pem') && file_exists(PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appmchid'].'/apiclient_key.pem')){
|
||||
$wechatpay_config['sslcert_path'] = PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appmchid'].'/apiclient_cert.pem';
|
||||
$wechatpay_config['sslkey_path'] = PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appmchid'].'/apiclient_key.pem';
|
||||
$wechatpay_config['publickey_path'] = PLUGIN_ROOT.$channel['plugin'].'/cert/'.$channel['appmchid'].'/public_key.pem';
|
||||
}
|
||||
|
||||
return $wechatpay_config;
|
||||
Reference in New Issue
Block a user