use of com.ing.ideal.connector.Issuers in project ofbiz-framework by apache.
the class IdealEvents method getIssuerList.
public static List<Issuer> getIssuerList() {
List<Issuer> issuerList = new LinkedList<Issuer>();
try {
IdealConnector connector = new IdealConnector("payment");
Issuers issuers = connector.getIssuerList();
List<Issuer> shortList = issuers.getShortList();
List<Issuer> longList = issuers.getLongList();
for (Iterator<Issuer> iter = shortList.iterator(); iter.hasNext(); ) {
Issuer issuer = (Issuer) iter.next();
issuerList.add(issuer);
}
for (Iterator<Issuer> iter = longList.iterator(); iter.hasNext(); ) {
Issuer issuer = (Issuer) iter.next();
issuerList.add(issuer);
}
} catch (IdealException ex) {
Debug.logError(ex.getMessage(), module);
}
return issuerList;
}
Aggregations