rodgermd/ibanapide-bundle

iban-api.de integration

v0.3.1 2014-04-17 10:08 UTC

This package is not auto-updated.

Last update: 2024-12-21 16:51:38 UTC


README

Integration of http://www.iban-api.de/soap-service/

Add Controller for ajax actions

Add to routing.yml:

rodgermd_iban_controller:
    resource: "@RodgermdIbanApiDeBundle/Controller/"
    type: annotation
    prefix: /iban

Usage

Get service:

$api = $container->get('rodgermd.iban.api');

Get IBAN code

Throws IbanApiErrorException on error

$iban = $api->generateIBAN($countryCode, $bankIdentification, $accountNr); 

Validate IBAN code

$valid = $api->validateIban($iban);

Get BIC code from IBAN

Throws IbanApiErrorException on error

$bic = $api->getBicFromIban($iban);