Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for IBAN / BIC #1

Closed
pieterclaerhout opened this issue Oct 1, 2019 · 0 comments
Closed

Add support for IBAN / BIC #1

pieterclaerhout opened this issue Oct 1, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@pieterclaerhout
Copy link
Owner

pieterclaerhout commented Oct 1, 2019

Sample code

// Create the soap client
$client = new SoapClient(
    "http://www.ibanbic.be/IBANBIC.asmx?WSDL"
);

// Create the function arguments
$args = array('Value' => $this->number);

// Call the function
$result = array();
$result['bank'] = (array) $client->BBANtoBANKNAME($args);
$result['iban'] = (array) $client->BBANtoIBAN($args);
$result['bic']  = (array) $client->BBANtoBIC($args);

// Clean up the result
$result['bank'] = $result['bank']['BBANtoBANKNAMEResult'];
$result['iban'] = $result['iban']['BBANtoIBANResult'];
$result['bic']  = $result['bic']['BBANtoBICResult'];

Resources

@pieterclaerhout pieterclaerhout added the enhancement New feature or request label Oct 1, 2019
@pieterclaerhout pieterclaerhout self-assigned this Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant