1. Go to this page and download the library: Download nimbles-nl/cm-telecom library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nimbles-nl / cm-telecom example snippets
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);
php
$issuers = $client->getIssuers();
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());
php
$transaction = new IDINTransaction($transactionId, $merchantReference, $entranceCode);
$userData = $client->getUserInfo($transaction);
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);
php
$issuers = $client->getIssuers();
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());
php
$transaction = new IBANTransaction($transactionId, $merchantReference, $entranceCode);
$userData = $client->getTransactionInfo($transaction);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.