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: 3 years ago
Size: 365 bytes


Class file image Download

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