Retrieve iDEAL bank information
Overview
Use the getIdealIssuerBanks method to retrieve the information on the Avangate list of banks that support iDEAL payments for shoppers in the Netherlands. You will need banking information to place orders, enabling your shoppers to pay using iDEAL. Use the code parameter from the array returned by getIdealIssuerBanks, as a value of the BankCode parameter in the Order object, when you call placeOrder.
Parameters
Parameters | Type/Description |
---|---|
sessionID |
Required (string) |
|
Session identifier, the output of the Login method. Include sessionID into all your requests. Avangate throws an exception if the values are incorrect. The sessionID expires in 10 minutes. |
Response
Method returns an array of objects, containing the bank code and bank name as parameters. The value of the Code parameter is used in the placeOrder call, in the BankCode parameter.
Parameters | Type/Description |
---|---|
Code |
String |
String contains the SWIFT code of the bank, the plus sign "+", and the first 3 characters from the bank name. E.q.: in the case of Rabobank, code parameter is "RABONL2U+RAB". | |
Name | String |
String contains the full bank name. E.q.: "Rabobank". |
Request
<?php
// authentication script: https://knowledgecenter.avangate.com/Integration/JSON-RPC_API/API_4.0/00Authentication
require ('PATH_TO_AUTH');
$jsonRpcRequest = array (
'jsonrpc' => '2.0',
'method' => 'getIdealIssuerBanks',
'params' => array($sessionID),
'id' => $i++
);
$bankCodes=("getIdealIssuerBanks", callRPC((Object)$jsonRpcRequest, $host));
?>