2017 © Pedro Peláez
 

library novinways

package for NovinWays WebService (published for www.novinways.com)

image

parsidev/novinways

package for NovinWays WebService (published for www.novinways.com)

  • Tuesday, March 13, 2018
  • by parsidev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 44 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

NovinWays

package for NovinWays WebService - Laravel5.6 (published for www.novinways.com) this package only work for Iranian Users, (*1)

installation

For install this package, run this command, (*2)

composer require parsidev/novinways

Publish config files:, (*3)

php artisan vendor:publish

for change webServiceID and webServicePassword change config/novinways.php, (*4)

Usage

for use this package, please register on novinways.com, (*5)

Get functions list

This function return a String result with list of NovinWays WebService Function, (*6)

Novinways::getFunctions();

Get credit

This function return a JSON String result with Status and Credit of your panel, (*7)

Novinways::CheckCredit();

Get operator status for topup

This function return a ArrayOfString result with Status and OperatorStatus, (*8)

Novinways::TopUpOperatorStatus($operator);

check billId and paymentId is valid

This function return a ArrayOfString result with Status, BillType and BillAmount, (*9)

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

Pay a Bill

This function return a ArrayOfString result with Status, TranId, BillType and BillAmount, (*10)

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

$reqId must be unique ID;

Get list of products

This function return a JSON String result, (*11)

Novinways::ProductsInfo();

Buy a product

This function return a JSON String result, (*12)

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

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

Request for Pin code

This function return a JSON String result, (*13)

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;

Request TopUp

This function return a JSON String result, (*14)

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;

Check TopUp is OK

This function return a JSON String result, (*15)

Novinways::CheckCharge($transId);

you will get $transId from previous function

The Versions

13/03 2018

5.6.x-dev

5.6.9999999.9999999-dev

package for NovinWays WebService (published for www.novinways.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza

13/03 2018

5.5.x-dev

5.5.9999999.9999999-dev

package for NovinWays WebService (published for www.novinways.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza

10/02 2017

5.4.x-dev

5.4.9999999.9999999-dev

package for NovinWays WebService (published for www.novinways.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza

30/08 2016

5.3.x-dev

5.3.9999999.9999999-dev

package for NovinWays WebService (published for www.novinways.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza

12/03 2016

5.2.x-dev

5.2.9999999.9999999-dev

package for NovinWays WebService (published for www.novinways.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza

19/07 2015

5.1.x-dev

5.1.9999999.9999999-dev

package for NovinWays WebService (published for www.novinways.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza

26/05 2015

dev-master

9999999-dev

package for NovinWays WebService (published for www.novinways.com)

  Sources   Download

MIT

The Requires

 

by Mohammad Reza