Skip to content

srugano/ihela-php-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

PHP Client for iHela API

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%