Cartalyst\Stripe\Laravel\StripeServiceProvider::registerStripe PHP Method

registerStripe() protected method

Register the Stripe API class.
protected registerStripe ( ) : void
return void
    protected function registerStripe()
    {
        $this->app->singleton('stripe', function ($app) {
            $config = $app['config']->get('services.stripe');
            $secret = isset($config['secret']) ? $config['secret'] : null;
            $version = isset($config['version']) ? $config['version'] : null;
            return new Stripe($secret, $version);
        });
        $this->app->alias('stripe', 'Cartalyst\\Stripe\\Stripe');
    }