PHP Classes

File: src/Helpers/helpers.php

Recommend this page to a friend!
  Classes of Zacchaeus Bolaji  >  Laravel VTU  >  src/Helpers/helpers.php  >  Download  
File: src/Helpers/helpers.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel VTU
Buy pre-paid products from VTU providers
Author: By
Last change:
Date: 2 months ago
Size: 365 bytes
 

Contents

Class file image Download
<?php

if (! function_exists('buy_airtime')) {
    function
buy_airtime($amount, $mobileNumber, $mobileNetwork, $callBackUrl, $token = null, string $class = null)
    {
       
$class = $class ? $class : config('laravel-vtu.default');
       
$vtu = new $class($token);
        return
$vtu->buyAirtime($amount, $mobileNumber, $mobileNetwork, $callBackUrl);
    }
}


For more information send a message to info at phpclasses dot org.