2017 © Pedro Peláez
 

library cm-telecom

PHP Package for CM Telecom IBAN and IDIN verification

image

nimbles-nl/cm-telecom

PHP Package for CM Telecom IBAN and IDIN verification

  • Thursday, November 2, 2017
  • by nimbles-nl
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,416 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 4 Versions
  • 17 % Grown

The README.md

IDIN logo, (*1)

Build Status Latest Stable Version License Total Downloads codecov Scrutinizer Code Quality, (*2)

Introduction

iDIN is used for personal identification by bank and is supported by Dutch banks. With iDIN you can be sure who is registering on your application. This PHP package contains a client for CM Telecom., (*3)

See for more information: https://www.idin.nl, (*4)

Installation

Download the package using composer

Install package by running the command:, (*5)

``` bash $ composer require nimbles-nl/cm-telecom, (*6)


## Usage This package is easy to use and can be used in any php project with php 7.0 or later. ### Initializing iDIN Client ``` php use GuzzleHttp\Client as GuzzleClient; use Http\Adapter\Guzzle6\Client as GuzzleAdapter; $adapter = new GuzzleAdapter(new GuzzleClient()); $apiToken = 'secret-token'; $apiUrl = 'https://idin.cmtelecom.com/idin/v1.0/test'; $applicationName = 'MyApp'; $client = new IDINClient($adapter, $apiToken, $apiUrl, $applicationName);

Get a list of issuers

``` php $issuers = $client->getIssuers();, (*7)


### Start an iDIN Transaction ``` php $issuers = $client->getIssuers(); $issuer = $issuers[0]; $transaction = $client->getIDINTransaction($issuer); // Remember this data / store it in your database $transactionId = $transaction->getTransactionId(); $entranceCode = $transaction->getEntranceCode(); $merchantReference = $transaction->getMerchantReference(); // Redirect the user to the bank page return new RedirectResponse($transaction->getAuthenticationUrl());

Receive an array of user details with the iDIN Transaction object

``` php $transaction = new IDINTransaction($transactionId, $merchantReference, $entranceCode);, (*8)

$userData = $client->getUserInfo($transaction);, (*9)


You can also receive bank account details with the IBANClient. It works almost the same as with IDIN. The client is already included in this package, but remember you use a different url for the api requests. ### Initializing IBAN Client ``` php use GuzzleHttp\Client as GuzzleClient; use Http\Adapter\Guzzle6\Client as GuzzleAdapter; $adapter = new GuzzleAdapter(new GuzzleClient()); $apiToken = 'secret-token'; $apiUrl = 'https://ibancheck.cmdisp.com/ibancheck/v1.0/test'; $applicationName = 'MyApp'; $client = new IBANClient($adapter, $apiToken, $apiUrl, $applicationName);

Get a list of issuers

``` php $issuers = $client->getIssuers();, (*10)


### Start an IBAN Transaction ``` php $issuers = $client->getIssuers(); $issuer = $issuers[0]; $transaction = $client->getIBANTransaction($issuer); // Remember this data / store it in your database $transactionId = $transaction->getTransactionId(); $entranceCode = $transaction->getEntranceCode(); $merchantReference = $transaction->getMerchantReference(); // Redirect the user to the bank page return new RedirectResponse($transaction->getAuthenticationUrl());

Receive an array of bank details with the IBAN Transaction object

``` php $transaction = new IBANTransaction($transactionId, $merchantReference, $entranceCode);, (*11)

$userData = $client->getTransactionInfo($transaction); ```, (*12)

The Versions

02/11 2017

dev-master

9999999-dev https://github.com/nimbles-nl/cm-telecom

PHP Package for CM Telecom IBAN and IDIN verification

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

php payment iban ideal idin

02/11 2017

v1.0.2

1.0.2.0 https://github.com/nimbles-nl/cm-telecom

PHP Package for CM Telecom IBAN and IDIN verification

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

php payment iban ideal idin

02/11 2017

v1.0.1

1.0.1.0 https://github.com/nimbles-nl/cm-telecom

PHP Package for CM Telecom IBAN and IDIN verification

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

php payment iban ideal idin

27/10 2017

v1.0

1.0.0.0 https://github.com/nimbles-nl/cm-telecom

PHP Package for CM Telecom IBAN and IDIN verification

  Sources   Download

MIT

The Requires

 

The Development Requires

by Wessel Strengholt

php payment iban ideal idin