Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 789 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 789 Bytes

ihela-php-client

PHP Client for iHela API

Install composer

curl -sS https://getcomposer.org/installer | php

Install dependencies

composer require ihela/api-client

For the not-released version, use:

composer require ihela/api-client:dev-master

Import the class

<?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");