| Server IP : 85.158.181.41 / Your IP : 216.73.217.12 Web Server : Apache System : Linux cloud9-vm129 6.1.178+1-ph #ph SMP PREEMPT_DYNAMIC Wed Jul 29 09:00:54 UTC 2026 x86_64 User : moncbefd ( 1024) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/moncbefd/www.moneta.at/callback/sofort/library/ |
Upload File : |
<?php
require_once dirname(__FILE__).'/sofortLib_abstract.inc.php';
/**
* This class encapsulates retrieval of listed banks of the Netherlands
*
* Copyright (c) 2012 SOFORT AG
*
* Released under the GNU General Public License (Version 2)
* [http://www.gnu.org/licenses/gpl-2.0.html]
*
* $Date: 2012-11-22 11:51:26 +0100 (Thu, 22 Nov 2012) $
* @version SofortLib 1.5.0 $Id: sofortLib_ideal_banks.inc.php 5735 2012-11-22 10:51:26Z rotsch $
* @author SOFORT AG http://www.sofort.com (integration@sofort.com)
*
*/
class SofortLib_iDeal_Banks extends SofortLib_Abstract {
protected $_xmlRootTag = 'ideal';
protected $_parameters = array();
protected $_response = array();
private $banks = array();
/**
*
* Constructor
* @param string $configKey
* @param strign $apiUrl
*/
public function __construct($configKey, $apiUrl = '') {
list ($userId, $projectId, $apiKey) = explode(':', $configKey);
parent::__construct($userId, $apiKey, $apiUrl.'/banks');
}
/**
*
* Getter for bank list
*/
public function getBanks() {
return $this->_banks;
}
/**
* (non-PHPdoc)
* @see SofortLib_Abstract::_parseXml()
*/
protected function _parseXml() {
if (isset($this->_response['ideal']['banks']['bank'][0]['code']['@data'])) {
foreach($this->_response['ideal']['banks']['bank'] as $key => $bank) {
$this->_banks[$key]['code'] = $bank['code']['@data'];
$this->_banks[$key]['name'] = $bank['name']['@data'];
}
}
}
}
?>