PHP code example of agelgil / cbe-transaction-verifier
1. Go to this page and download the library: Download agelgil/cbe-transaction-verifier 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/ */
agelgil / cbe-transaction-verifier example snippets
use Agelgil\CBETransactionVerifier/Verify;
use Agelgil\CBETransactionVerifier/Transaction;
$verify = resolve(Verify::class);
$path = '/home/user/.../cbe-transaction****.png';
$accountLast8 = '12345678';
/** @var Transaction $transaction */
$transaction = $verifier->fromImage($path, $accountLast8);
// or
$transaction = $verifier->fromTransactionId($path, $accountLast8);
// $transaction->id
// $transaction->payer
// $transaction->receiver
// $transaction->amount
// $transaction->reason
// $transaction->paidAt