Mili Shah/ November 15, 2018/ Laravel/ 0 comments

let’s install stripe in our laravel app, here I will install it using composer.

“cartalyst/stripe-laravel”: “7.0.*”

Make sure that after the required changes your composer.json file is valid by running command in cmd

composer validate

Run Composer to install or update the new requirement.

composer install

or

composer update

When done installation process then after open your .env file and set following value for your Stripe account

STRIPE_KEY=XXXXXXXXXX
STRIPE_SECRET=XXXXXXXXXX

Set following two line in your config/app.php

‘providers’ => [
 ….
 Cartalyst\Stripe\Laravel\StripeServiceProvider::class,
],
‘aliases’ => [
 ….
 ‘Stripe’ => Cartalyst\Stripe\Laravel\Facades\Stripe::class,
],
Share this Post

Leave a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
*
*