Blame view

library/WebPlugin/Pay/Banks.php 3.37 KB
whb authored
1 2 3 4 5 6 7 8 9
<?php

namespace WebPlugin\Pay;

class Banks
{
	private static $list = array(
		'BOCB2C' => array(
			'name' => '中国银行',
梁志锋 authored
10
			'ico' => 'http://static.yohobuy.com/images/pay/icon/zhongguo.png'
whb authored
11 12 13
		),
		'ABC' => array(
			'name' => '中国农业银行',
梁志锋 authored
14
			'ico' => 'http://static.yohobuy.com/images/pay/icon/nongye.png'
whb authored
15 16 17
		),
		'SPABANK' => array(
			'name' => '平安银行',
梁志锋 authored
18
			'ico' => 'http://static.yohobuy.com/images/pay/icon/pingan.png'
whb authored
19 20 21
		),
		'CMBC' => array(
			'name' => '中国民生银行',
梁志锋 authored
22
			'ico' => 'http://static.yohobuy.com/images/pay/icon/minsheng.png'
whb authored
23 24 25
		),
		"ICBCB2C" => array(
			'name' => '中国工商银行',
梁志锋 authored
26
			'ico' => 'http://static.yohobuy.com/images/pay/icon/gongshang.png'
whb authored
27 28 29
		),
		'SPDB' => array(
			'name' => '浦发银行',
梁志锋 authored
30
			'ico' => 'http://static.yohobuy.com/images/pay/icon/pufa.png'
whb authored
31 32 33
		),
		'BJRCB' => array(
			'name' => '北京农商银行',
梁志锋 authored
34
			'ico' => 'http://static.yohobuy.com/images/pay/icon/beijingnongshang.png'
whb authored
35 36 37
		),
		'HZCBB2C' => array(
			'name' => '杭州银行',
梁志锋 authored
38
			'ico' => 'http://static.yohobuy.com/images/pay/icon/hangzhou.png'
whb authored
39 40 41
		),
		'CMB' => array(
			'name' => '招商银行',
梁志锋 authored
42
			'ico' => 'http://static.yohobuy.com/images/pay/icon/zhaoshang.png'
whb authored
43 44 45
		),
		'CIB' => array(
			'name' => '兴业银行',
梁志锋 authored
46
			'ico' => 'http://static.yohobuy.com/images/pay/icon/xingye.png'
whb authored
47 48 49
		),
		'FDB' => array(
			'name' => '富滇银行',
梁志锋 authored
50
			'ico' => 'http://static.yohobuy.com/images/pay/icon/fudian.png'
whb authored
51 52 53
		),
		'CEB-DEBIT' => array(
			'name' => '中国光大银行',
梁志锋 authored
54
			'ico' => 'http://static.yohobuy.com/images/pay/icon/guangda.png'
whb authored
55 56 57
		),
		'CCB' => array(
			'name' => '中国建设银行',
梁志锋 authored
58
			'ico' => 'http://static.yohobuy.com/images/pay/icon/zhongguojianshe.png'
whb authored
59 60 61
		),
		'GDB' => array(
			'name' => '广发银行',
梁志锋 authored
62
			'ico' => 'http://static.yohobuy.com/images/pay/icon/guangfa.png'
whb authored
63 64 65
		),
		'POSTGC' => array(
			'name' => '中国邮政储蓄',
梁志锋 authored
66
			'ico' => 'http://static.yohobuy.com/images/pay/icon/zhongguoyouzhengchuxu.png'
whb authored
67 68 69
		),
		'SHBANK' => array(
			'name' => '上海银行',
梁志锋 authored
70
			'ico' => 'http://static.yohobuy.com/images/pay/icon/shanghai.png'
whb authored
71 72 73
		),
		'NBBANK' => array(
			'name' => '宁波银行',
梁志锋 authored
74
			'ico' => 'http://static.yohobuy.com/images/pay/icon/ningbo.png'
whb authored
75 76 77
		)
// 		'SDB' => array(
// 			'name' => '深圳发展银行',
梁志锋 authored
78
// 			'ico' => 'http://static.yohobuy.com/images/bankico/SDB.gif'
whb authored
79 80 81
// 		),
		/*		'COMM' => array(
                    'name' => '交通银行',
梁志锋 authored
82
                    'ico' => 'http://static.yohobuy.com/images/bankico/COMM.gif'
whb authored
83 84 85
                ),  */
// 		'CITIC' => array(
// 			'name' => '中信银行',
梁志锋 authored
86
// 			'ico' => 'http://static.yohobuy.com/images/bankico/CITIC.gif'
whb authored
87 88 89 90 91
// 		),


// 			'CEB' => array(
// 					'name' => '光大银行',
梁志锋 authored
92
// 					'ico' => 'http://static.yohobuy.com/images/bankico/CEB.gif'
whb authored
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
// 			),
	);

    /**
     * 获取银行列表
     *
     * @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;
	}
}