black-m13 / novinways
Laravel package for Novinways SOAP services
Requires
- php: ^8.0
- ext-soap: *
- illuminate/support: ^9.0|^10.0|^11.0|^12.0|^13.0
README
A Laravel package for integrating with NovinWays SOAP WebService.
This package is developed for Iranian users and works with novinways.com services.
📦 Installation
Install via Composer:
composer require black-m13/novinways
⚙️ Publish Config
php artisan vendor:publish --provider="BlackM13\Novinways\NovinwaysServiceProvider"
🔐 Environment Variables
Add to .env file:
NOVINWAYS_URL=https://your-novinways-url?wsdl NOVINWAYS_ID=your-webservice-id NOVINWAYS_PASSWORD=your-webservice-password
🚀 Usage
use Novinways;
Methods
-
getFunctions() Novinways::getFunctions();
-
CheckCredit() Novinways::CheckCredit();
-
TopUpOperatorStatus() Novinways::TopUpOperatorStatus('MTN');
-
CheckBill() Novinways::CheckBill($billId, $paymentId);
-
PayBill() Novinways::PayBill($billId, $paymentId, $reqId);
-
ProductsInfo() Novinways::ProductsInfo();
-
BuyProduct() Novinways::BuyProduct($productId, $reqId, $count);
-
PinRequest() Novinways::PinRequest($price, $type, $reqId);
-
ReCharge() Novinways::ReCharge($price, $type, $phone, $reqId);
-
CheckCharge() Novinways::CheckCharge($transId);
Notes
- reqId must be unique
- SOAP extension required
- PHP 8+
MIT License