public function getFinancialInstitutions() { /** @var Wirecard_CheckoutSeamless_Helper_Data $helper */ $helper = Mage::helper('wirecard_checkoutseamless'); $cl = new WirecardCEE_QMore_BackendClient($helper->getBackendConfigArray()); $response = $cl->getFinancialInstitutions($this->getMethod()->getPaymentMethodType()); if (!$response->hasFailed()) { $ret = $response->getFinancialInstitutions(); $c = null; if (class_exists('Collator')) { $c = new Collator('root'); } uasort($ret, function ($a, $b) use($c) { if ($c === null) { return strcmp($a['id'], $b['id']); } else { return $c->compare($a['name'], $b['name']); } }); return $ret; } else { $helper->log(__METHOD__ . ':' . print_r($response->getErrors(), true), LOG_WARNING); return array(); } }