-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
klgd
committed
Mar 16, 2017
1 parent
76d08b6
commit 6e0b934
Showing
8 changed files
with
2,196 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,229 @@ | ||
<?php | ||
|
||
|
||
namespace Sco\Bankcard; | ||
|
||
class BankName | ||
{ | ||
protected static $bankLists = [ | ||
// alipay | ||
'HDBANK' => '邯郸银行', | ||
'BSB' => '包商银行', | ||
'JSB' => '晋商银行', | ||
'BOCD' => '承德银行', | ||
'GSRCU' => '甘肃省农村信用', | ||
'COMM' => '交通银行', | ||
'SRCB' => '深圳农村商业银行', | ||
'ZBCB' => '齐商银行', | ||
'QLBANK' => '齐鲁银行', | ||
'GDRCC' => '广东省农村信用社联合社', | ||
'TCRCB' => '江苏太仓农村商业银行', | ||
'HRXJB' => '华融湘江银行', | ||
'CZRCB' => '常州农村信用联社', | ||
'NCB' => '南昌银行', | ||
'SHRCB' => '上海农村商业银行', | ||
'ABC' => '中国农业银行', | ||
'HSBANK' => '徽商银行', | ||
'SPDB' => '上海浦东发展银行', | ||
'DYCB' => '德阳商业银行', | ||
'WRCB' => '无锡农村商业银行', | ||
'JJBANK' => '九江银行', | ||
'BJBANK' => '北京银行', | ||
'CGNB' => '南充市商业银行', | ||
'CITIC' => '中信银行', | ||
'HBC' => '湖北银行', | ||
'FDB' => '富滇银行', | ||
'URMQCCB' => '乌鲁木齐市商业银行', | ||
'CMB' => '招商银行', | ||
'CCQTGB' => '重庆三峡银行', | ||
'XYBANK' => '信阳银行', | ||
'WZCB' => '温州银行', | ||
'H3CB' => '内蒙古银行', | ||
'CEB' => '中国光大银行', | ||
'LYCB' => '辽阳市商业银行', | ||
'CZCB' => '浙江稠州商业银行', | ||
'NBBANK' => '宁波银行', | ||
'NHQS' => '农信银清算中心', | ||
'XABANK' => '西安银行', | ||
'HZCB' => '杭州银行', | ||
'BOQH' => '青海银行', | ||
'DAQINGB' => '龙江银行', | ||
'ZZBANK' => '郑州银行', | ||
'KSRB' => '昆山农村商业银行', | ||
'BANKWF' => '潍坊银行', | ||
'HURCB' => '湖北省农村信用社', | ||
'CCB' => '中国建设银行', | ||
'YDRCB' => '尧都农商行', | ||
'HSBK' => '衡水银行', | ||
'BOD' => '东莞银行', | ||
'BHB' => '河北银行', | ||
'SXCB' => '绍兴银行', | ||
'NHB' => '南海农村信用联社', | ||
'JZBANK' => '晋中市商业银行', | ||
'DYCCB' => '东营市商业银行', | ||
'ORBANK' => '鄂尔多斯银行', | ||
'BOHAIB' => '渤海银行', | ||
'ZGCCB' => '自贡市商业银行', | ||
'XCYH' => '许昌银行', | ||
'ZJTLCB' => '浙江泰隆商业银行', | ||
'YXCCB' => '玉溪市商业银行', | ||
'WHRCB' => '武汉农村商业银行', | ||
'JHBANK' => '金华银行', | ||
'NYNB' => '广东南粤银行', | ||
'SRBANK' => '上饶银行', | ||
'NBYZ' => '鄞州银行', | ||
'JRCB' => '江苏江阴农村商业银行', | ||
'LYBANK' => '洛阳银行', | ||
'XTB' => '邢台银行', | ||
'CIB' => '兴业银行', | ||
'XXBANK' => '新乡银行', | ||
'TACCB' => '泰安市商业银行', | ||
'CDB' => '国家开发银行', | ||
'TZCB' => '台州银行', | ||
'DRCBCL' => '东莞农村商业银行', | ||
'JSBANK' => '江苏银行', | ||
'BOZK' => '周口银行', | ||
'CSRCB' => '常熟农村商业银行', | ||
'CMBC' => '中国民生银行', | ||
'YBCCB' => '宜宾市商业银行', | ||
'YNRCC' => '云南省农村信用社', | ||
'ICBC' => '中国工商银行', | ||
'BOCY' => '朝阳银行', | ||
'CDRCB' => '成都农商银行', | ||
'HANABANK' => '韩亚银行', | ||
'LSBC' => '临商银行', | ||
'JXRCU' => '江西省农村信用', | ||
'GRCB' => '广州农商银行', | ||
'GLBANK' => '桂林银行', | ||
'ZJNX' => '浙江省农村信用社联合社', | ||
'TRCB' => '天津农商银行', | ||
'HZCCB' => '湖州市商业银行', | ||
'BZMD' => '驻马店银行', | ||
'CQBANK' => '重庆银行', | ||
'DZBANK' => '德州银行', | ||
'BJRCB' => '北京农村商业银行', | ||
'GXRCU' => '广西省农村信用', | ||
'XLBANK' => '中山小榄村镇银行', | ||
'WJRCB' => '吴江农商银行', | ||
'ZJKCCB' => '张家口市商业银行', | ||
'SPABANK' => '平安银行', | ||
'WHCCB' => '威海市商业银行', | ||
'BOYK' => '营口银行', | ||
'SDEB' => '顺德农商银行', | ||
'CDCB' => '成都银行', | ||
'JNBANK' => '济宁银行', | ||
'HBYCBANK' => '湖北银行宜昌分行', | ||
'ZYCBANK' => '遵义市商业银行', | ||
'TCCB' => '天津银行', | ||
'MTBANK' => '浙江民泰商业银行', | ||
'FXCB' => '阜新银行', | ||
'FSCB' => '抚顺银行', | ||
'SDRCU' => '山东农信', | ||
'HNRCC' => '湖南省农村信用社', | ||
'QDCCB' => '青岛银行', | ||
'HKBEA' => '东亚银行', | ||
'SHBANK' => '上海银行', | ||
'CZBANK' => '浙商银行', | ||
'LSCCB' => '乐山市商业银行', | ||
'NXBANK' => '宁夏银行', | ||
'GZRCU' => '贵州省农村信用社', | ||
'GYCB' => '贵阳市商业银行', | ||
'LZYH' => '兰州银行', | ||
'SCRCU' => '四川省农村信用', | ||
'CBKF' => '开封市商业银行', | ||
'JINCHB' => '晋城银行JCBANK', | ||
'LANGFB' => '廊坊银行', | ||
'BOSZ' => '苏州银行', | ||
'HKB' => '汉口银行', | ||
'BOP' => '平顶山银行', | ||
'AYCB' => '安阳银行', | ||
'HNRCU' => '河南省农村信用', | ||
'HXBANK' => '华夏银行', | ||
'BOJZ' => '锦州银行', | ||
'GCB' => '广州银行', | ||
'GZB' => '赣州银行', | ||
'ARCU' => '安徽省农村信用社', | ||
'EGBANK' => '恒丰银行', | ||
'CSCB' => '长沙银行', | ||
'NJCB' => '南京银行', | ||
'SJBANK' => '盛京银行', | ||
'SXRCCU' => '陕西信合', | ||
'JLRCU' => '吉林农信', | ||
'HBRCU' => '河北省农村信用社', | ||
'KLB' => '昆仑银行', | ||
'SZSBK' => '石嘴山银行', | ||
'DLB' => '大连银行', | ||
'SCCB' => '三门峡银行', | ||
'JSRCU' => '江苏省农村信用联合社', | ||
'ZRCBANK' => '张家港农村商业银行', | ||
'LSBANK' => '莱商银行', | ||
'FJHXBC' => '福建海峡银行', | ||
'NXRCU' => '宁夏黄河农村商业银行', | ||
'CBBQS' => '城市商业银行资金清算中心', | ||
'KORLABANK' => '库尔勒市商业银行', | ||
'GDB' => '广东发展银行', | ||
'BOC' => '中国银行', | ||
'ASCB' => '鞍山银行', | ||
'BGB' => '广西北部湾银行', | ||
'PSBC' => '中国邮政储蓄银行', | ||
'BODD' => '丹东银行', | ||
'CRCBANK' => '重庆农村商业银行', | ||
'JXBANK' => '嘉兴银行', | ||
'JLBANK' => '吉林银行', | ||
'HBHSBANK' => '湖北银行黄石分行', | ||
'YQCCB' => '阳泉银行', | ||
|
||
// 补充 | ||
'HSBC' => '汇丰银行', | ||
'SCB' => '渣打银行', | ||
'CITI' => '花旗银行', | ||
'GHB' => '广东华兴银行', | ||
'DSB' => '大新银行', | ||
'WHB' => '永亨银行', | ||
'DBS' => '星展银行香港有限公司', | ||
'XMBANK' => '厦门银行', | ||
'HRBANK' => '哈尔滨银行', | ||
'QHDCCB' => '秦皇岛市商业银行', | ||
'BOQZ' => '泉州银行', | ||
'ZJQL' => '浙江泰隆商业银行', | ||
'FJNX' => '福建省农村信用社联合社', | ||
'SLH' => '湖南农村信用社联合社', | ||
'JXNCX' => '江西省农村信用社联合社', | ||
'SCBBANK' => '商丘市商业银行', | ||
'CQNCSYCZ' => '重庆南川石银村镇银行', | ||
'LPRDNCXYS' => '临汾市尧都区农村信用合作联社', | ||
'LZCCB' => '柳州银行', | ||
'WHSYBANK' => '威海市商业银行', | ||
'HZBANK' => '湖州银行', | ||
'RZGWYBANK' => '日照银行', | ||
'QSBANK' => '齐商银行', | ||
'RBOZ' => '珠海华润银行', | ||
'HLDCCB' => '葫芦岛市商业银行', | ||
'LYB' => '洛阳银行', | ||
'JZCBANK' => '焦作市商业银行', | ||
'ZJCCB' => '镇江市商业银行', | ||
'FGXYBANK' => '法国兴业银行', | ||
'DYBANK' => '大华银行', | ||
'DIYEBANK' => '企业银行', | ||
'HQBANK' => '华侨银行', | ||
'HSB' => '恒生银行', | ||
'LSB' => '临沂商业银行', | ||
'YTCB' => '烟台商业银行', | ||
'QLB' => '齐鲁银行', | ||
'BCCC' => 'BC卡公司', | ||
'CYB' => '集友银行', | ||
'TFB' => '大丰银行', | ||
'AEON' => 'AEON信贷财务亚洲有限公司', | ||
'MABDA' => '澳门BDA', | ||
|
||
]; | ||
|
||
public static function get($bankCode = null, $default = null) | ||
{ | ||
if (is_null($bankCode)) { | ||
return self::$bankLists; | ||
} | ||
|
||
return isset(self::$bankLists[$bankCode]) ? self::$bankLists[$bankCode] : $default; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
|
||
namespace Sco\Bankcard; | ||
|
||
class CardType | ||
{ | ||
protected static $cardTypes = [ | ||
'DC' => '储蓄卡', | ||
'CC' => '信用卡', | ||
'SCC' => '准贷记卡', | ||
'PC' => '预付费卡', | ||
]; | ||
|
||
public static function get($type = null, $default = null) | ||
{ | ||
if (is_null($type)) { | ||
return self::$cardTypes; | ||
} | ||
|
||
return isset(self::$cardTypes[$type]) ? self::$cardTypes[$type] : $default; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.