package for NovinWays WebService - Laravel5.6 (published for www.novinways.com) this package only work for Iranian Users
For install this package, run this command
composer require parsidev/novinways
Publish config files:
php artisan vendor:publish
for change webServiceID and webServicePassword change config/novinways.php
for use this package, please register on novinways.com
This function return a String result with list of NovinWays WebService Function
Novinways::getFunctions();
This function return a JSON String result with Status and Credit of your panel
Novinways::CheckCredit();
This function return a ArrayOfString result with Status and OperatorStatus
Novinways::TopUpOperatorStatus($operator);
This function return a ArrayOfString result with Status, BillType and BillAmount
Novinways::CheckBill($billId, $paymentId);
This function return a ArrayOfString result with Status, TranId, BillType and BillAmount
Novinways::PayBill($billId, $paymentId, $reqId);
$reqId must be unique ID;
This function return a JSON String result
Novinways::ProductsInfo();
This function return a JSON String result
Novinways::BuyProduct($productId, $reqId, $count);
$reqId must be unique ID;
$productId equal plan_name from previous function
This function return a JSON String result
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;
This function return a JSON String result
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;
This function return a JSON String result
Novinways::CheckCharge($transId);
you will get $transId from previous function