/** * Get the iDeal banks from Buckaroo, for performance you should cache the output of this function! * * @return array|bool|\SeBuDesign\Buckaroo\Soap\Types\Responses\TransactionRequestSpecification\ListItemDescription */ public function getIdealBanks() { $oTransactionRequestSpecification = new TransactionRequestSpecification($this->sWebsiteKey, $this->sPemPath); if ($this->isInTestMode()) { $oTransactionRequestSpecification->putInTestMode(); } $oResponse = $oTransactionRequestSpecification->setService(ServiceHelper::SERVICE_IDEAL)->perform(); return $oResponse->getService(ServiceHelper::SERVICE_IDEAL)->getAction('Pay')->getRequestParameter('issuer')->getListItems(); }
<?php include __DIR__ . "/../vendor/autoload.php"; use SeBuDesign\Buckaroo\TransactionRequestSpecification; use SeBuDesign\Buckaroo\Helpers\ServiceHelper; $oTransactionRequestSpecification = new TransactionRequestSpecification('CHANGEME', __DIR__ . '/../tests/test.pem'); $oResponse = $oTransactionRequestSpecification->putInTestMode()->setService(ServiceHelper::SERVICE_IDEAL)->perform(); var_dump($oResponse);