/home/techb158/ileadtechnology.com/vendor/cartalyst/stripe-laravel/src
NameSizeModeActions
Facades/-0755rm
StripeServiceProvider.php18410644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/cartalyst/stripe-laravel/src/StripeServiceProvider.php (1841B)
registerStripe(); $this->registerConfig(); } /** * {@inheritdoc} */ public function provides() { return [ 'stripe', 'stripe.config', ]; } /** * Register the Stripe API class. * * @return void */ protected function registerStripe() { $this->app->singleton('stripe', function ($app) { $config = $app['config']->get('services.stripe'); $secret = $config['secret'] ?? null; $version = $config['version'] ?? null; return new Stripe($secret, $version); }); $this->app->alias('stripe', Stripe::class); } /** * Register the config class. * * @return void */ protected function registerConfig() { $this->app->singleton('stripe.config', function ($app) { return $app['stripe']->getConfig(); }); $this->app->alias('stripe.config', Config::class); $this->app->alias('stripe.config', ConfigInterface::class); } }