PHP Client for iHela API
curl -sS https://getcomposer.org/installer | php
composer require ihela/api-client
For the not-released version, use:
composer require ihela/api-client:dev-master
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Ihela\Merchant\IhelaMerchant;
// get the iHela client
$ihela = new IhelaMerchant("4sS7OWlf8pqm04j1ZDtvUrEVSZjlLwtfGUMs2XWZ", "HN7osYwSJuEOO4MEth6iNlBS8oHm7LBhC8fejkZkqDJUrvVQodKtO55bMr845kmplSlfK3nxFcEk2ryiXzs1UW1YfVP5Ed6Yw0RR6QmnwsQ7iNJfzTgeehZ2XM9mmhC3")
// Initialize a bill
$ihela->initBill(2000, "REF1", "description here", '[email protected]');
$ihela->verifyBill("REF1", "BILL20200811439");