Skip to content

An unofficial library that consumes Iban-check API by SurePay via ABNA and enables you to verify customer or supplier data.

License

Notifications You must be signed in to change notification settings

NikosRig/abna-iban-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABNA Iban Checker


An unofficial library that consumes Iban-check API by SurePay via ABNA and enables you to verify customer or supplier data.

What checks can you perform using this library?

  • Check if an iban is active/expired
  • Get information about the account
  • Confirmation of the name of the payee

 

Prerequisites


  • Java 11+
  • Maven
  • ABNA Credentials
  • PKCS12 with ABNA Certificates

 

Usage example


Note: The library already contains a pkcs12 file with public ABNA's sandbox certificates. It's password is an empty string.  

ExampleMain.java

package nl.abna.ibanchecker;

import nl.abna.ibanchecker.domain.gateway.IbanCheckerClientInterface;

public class ExampleMain {
    public static void main( String[] args ) throws Exception {
        IbanCheckerClientInterface client = new IbanCheckerClientBuilder()
                .enableSandboxMode()
                .withApiKey("api-key")
                .withClientId("test_client")
                .withPkcs12("./var/keyStore.p12", "")
                .build();

        IbanCheckResponse ibanCheckResponse = client.checkIban("NL62ABNA9999841479", "test");
        JSONObject responsePayload = new JSONObject();
        responsePayload.put("iban_valid", ibanCheckResponse.isIbanValid);
        responsePayload.put("name_matched", ibanCheckResponse.isNameMatched);
        responsePayload.put("foreign_account", ibanCheckResponse.isForeignAccount);
        responsePayload.put("account_active", ibanCheckResponse.isAccountActive);
        responsePayload.put("account_country_code", ibanCheckResponse.accountCountryCode);
        responsePayload.put("total_account_holders", ibanCheckResponse.totalAccountHolders);

        System.out.println(responsePayload);
    }
}

About

An unofficial library that consumes Iban-check API by SurePay via ABNA and enables you to verify customer or supplier data.

Topics

Resources

License

Stars

Watchers

Forks

Languages