Skip to content

Commit

Permalink
register Paytabs in service provider
Browse files Browse the repository at this point in the history
  • Loading branch information
2hmad committed Mar 23, 2023
1 parent ff82548 commit f74fb91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Providers/PaywayServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Digitwires\Payway\Providers;

use Digitwires\Payway\Classes\PaypalGateway;
use Digitwires\Payway\Classes\PaytabsGateway;

class PaywayServiceProvider extends \Illuminate\Support\ServiceProvider
{
Expand Down Expand Up @@ -41,6 +42,9 @@ public function register()
$this->app->bind(PaypalGateway::class, function ($app) {
return new PaypalGateway();
});
$this->app->bind(PaytabsGateway::class, function ($app) {
return new PaytabsGateway();
});
}

protected function configure()
Expand Down

0 comments on commit f74fb91

Please sign in to comment.