Banks.php
3.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?php
namespace WebPlugin\Pay;
class Banks
{
private static $list = array(
'BOCB2C' => array(
'name' => '中国银行',
'ico' => '//static.yohobuy.com/images/pay/icon/zhongguo.png'
),
'ABC' => array(
'name' => '中国农业银行',
'ico' => '//static.yohobuy.com/images/pay/icon/nongye.png'
),
'SPABANK' => array(
'name' => '平安银行',
'ico' => '//static.yohobuy.com/images/pay/icon/pingan.png'
),
'CMBC' => array(
'name' => '中国民生银行',
'ico' => '//static.yohobuy.com/images/pay/icon/minsheng.png'
),
"ICBCB2C" => array(
'name' => '中国工商银行',
'ico' => '//static.yohobuy.com/images/pay/icon/gongshang.png'
),
'SPDB' => array(
'name' => '浦发银行',
'ico' => '//static.yohobuy.com/images/pay/icon/pufa.png'
),
'BJRCB' => array(
'name' => '北京农商银行',
'ico' => '//static.yohobuy.com/images/pay/icon/beijingnongshang.png'
),
'HZCBB2C' => array(
'name' => '杭州银行',
'ico' => '//static.yohobuy.com/images/pay/icon/hangzhou.png'
),
'CMB' => array(
'name' => '招商银行',
'ico' => '//static.yohobuy.com/images/pay/icon/zhaoshang.png'
),
'CIB' => array(
'name' => '兴业银行',
'ico' => '//static.yohobuy.com/images/pay/icon/xingye.png'
),
'FDB' => array(
'name' => '富滇银行',
'ico' => '//static.yohobuy.com/images/pay/icon/fudian.png'
),
'CEB-DEBIT' => array(
'name' => '中国光大银行',
'ico' => '//static.yohobuy.com/images/pay/icon/guangda.png'
),
'CCB' => array(
'name' => '中国建设银行',
'ico' => '//static.yohobuy.com/images/pay/icon/zhongguojianshe.png'
),
'GDB' => array(
'name' => '广发银行',
'ico' => '//static.yohobuy.com/images/pay/icon/guangfa.png'
),
'POSTGC' => array(
'name' => '中国邮政储蓄',
'ico' => '//static.yohobuy.com/images/pay/icon/zhongguoyouzhengchuxu.png'
),
'SHBANK' => array(
'name' => '上海银行',
'ico' => '//static.yohobuy.com/images/pay/icon/shanghai.png'
),
'NBBANK' => array(
'name' => '宁波银行',
'ico' => '//static.yohobuy.com/images/pay/icon/ningbo.png'
)
// 'SDB' => array(
// 'name' => '深圳发展银行',
// 'ico' => '//static.yohobuy.com/images/bankico/SDB.gif'
// ),
/* 'COMM' => array(
'name' => '交通银行',
'ico' => '//static.yohobuy.com/images/bankico/COMM.gif'
), */
// 'CITIC' => array(
// 'name' => '中信银行',
// 'ico' => '//static.yohobuy.com/images/bankico/CITIC.gif'
// ),
// 'CEB' => array(
// 'name' => '光大银行',
// 'ico' => '//static.yohobuy.com/images/bankico/CEB.gif'
// ),
);
/**
* 获取银行列表
*
* @return array
*/
public static function getList(){
$ret = self::$list;
unset($ret['ICBC']);
unset($ret['BOC']);
// unset($ret['CEB']);
return $ret;
}
/**
* @return array
*/
public static function getExpressgatewayList() {
$support = array('ICBC', 'ABC', 'CMB', 'CCB', 'BOC', 'CEB-DEBIT', 'SPABANK');
$ret = array();
foreach ($support as $k) {
if(isset(self::$list[$k])){
$ret[$k] = self::$list[$k];
}
}
return $ret;
}
}