60 - The Moment of Truth

This commit is contained in:
Adam Wathan
2016-12-30 17:48:52 -05:00
parent 8d96de356c
commit 244f103473
2 changed files with 8 additions and 2 deletions

View File

@@ -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);
}
}