mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-04 23:48:51 +00:00
60 - The Moment of Truth
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
namespace App\Providers;
|
||||
|
||||
use App\Billing\PaymentGateway;
|
||||
use App\Billing\StripePaymentGateway;
|
||||
use Illuminate\Support\ServiceProvider;
|
||||
|
||||
class AppServiceProvider extends ServiceProvider
|
||||
@@ -23,6 +25,10 @@ class AppServiceProvider extends ServiceProvider
|
||||
*/
|
||||
public function register()
|
||||
{
|
||||
//
|
||||
$this->app->bind(StripePaymentGateway::class, function () {
|
||||
return new StripePaymentGateway(config('services.stripe.secret'));
|
||||
});
|
||||
|
||||
$this->app->bind(PaymentGateway::class, StripePaymentGateway::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user