PHP code example of parsidev / novinways

1. Go to this page and download the library: Download parsidev/novinways library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

parsidev / novinways example snippets


composer 

Novinways::getFunctions();

Novinways::CheckCredit();

Novinways::TopUpOperatorStatus($operator);

Novinways::CheckBill($billId, $paymentId);

Novinways::PayBill($billId, $paymentId, $reqId);

$reqId must be unique ID;

Novinways::ProductsInfo();

Novinways::BuyProduct($productId, $reqId, $count);

$reqId must be unique ID;
$productId equal plan_name from previous function

Novinways::PinRequest($price, $type, $reqId);

$price: for MCI and MTN operators equal: 1000, 2000, 5000, 10000, 20000, and for RTL and TAL operators equal: 2000, 5000, 10000, 20000
$type: MTN or MCI or RTL or TAL is valid
$reqId must be unique ID;

Novinways::ReCharge($price, $type, $phone, $reqId);

$price: for MTN operator from 500 to 50000 and for MCI operator equal: 1000, 2000, 5000, 10000, 20000
$type: 
MTN: Noraml TopUp. 
MTN!: Amazing charge. 
MTN#: Charge permanent line. 
WiMax
MCI
$reqId must be unique ID;

Novinways::CheckCharge($transId);

you will get $transId from previous function

php artisan vendor:publish
config/novinways.php