nikarayan and payment service

This commit is contained in:
2024-04-08 12:59:01 +03:30
parent 942a9737b6
commit 92c50280fc
8 changed files with 345 additions and 19 deletions

View File

@@ -0,0 +1,30 @@
<?php
namespace App\Providers;
use App\Services\NikarayanService;
use Illuminate\Support\ServiceProvider;
use SoapClient;
class NikarayanServiceProvider extends ServiceProvider
{
/**
* Register services.
*/
public function register(): void
{
//
}
/**
* Bootstrap services.
*/
public function boot(): void
{
$this->app->bind(NikarayanServiceProvider::class, function () {
$url = "https://riws.rmto.ir/WebServices/NRPTrafficStatus.asmx?wsdl";
$soapClient = new SoapClient($url);
return new NikarayanService($soapClient);
});
}
}