Banks.php 3.26 KB
<?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;
	}
}