diff --git a/README.md b/README.md new file mode 100644 index 0000000..9139330 --- /dev/null +++ b/README.md @@ -0,0 +1,51 @@ +# Bagisto Stripe Payment Gateway +Stripe is a popular payment gateway. This package provides a additional strong help for the user to use the stripe payment gateway in their Bagisto laravel ecommerce application. + +## Automatic Installation +1. Use command prompt to run this package `composer require wontonee/stripe` +2. Now open `config/app.php` and register payu provider. +```sh +'providers' => [ + // Stripe provider + Wontonee\Stripe\Providers\StripeServiceProvider::class, +] +``` +3. Now go to `package/Webkul/Admin/src/Resources/lang/en` copy these line at the bottom end of code. +```sh + 'stripe-apikey' => 'Api Key', +``` +4. Now go to your bagisto admin section `admin/configuration/sales/paymentmethods` you will see the new payment gateway payu. +5. Now run `php artisan config:cache` + +## Manual Installation +1. Download the zip folder from the github repository. +2. Unzip the folder and go to your bagisto application path `package` and create a folder name `Wontonee/Stripe/` upload `src` folder inside this path. +3. Now open `config/app.php` and register payu provider. +```sh +'providers' => [ + // Stripe provider + Wontonee\Stripe\Providers\StripeServiceProvider::class, +] +``` +4. Now open composer.json and go to `autoload psr-4`. +```sh +"autoload": { + "psr-4": { + "Wontonee\\Stripe\\": "packages/Wontonee/Stripe/src" + } + } +``` +5. Now go to `package/Webkul/Admin/src/Resources/lang/en` copy these line at the bottom end of code. +```sh + 'stripe-apikey' => 'Api Key', +``` +6. Now open the command prompt and run `composer dump-autoload`. +7. Now run `php artisan config:cache` +9. Now go to your bagisto admin section `admin/configuration/sales/paymentmethods` you will see the new payment gateway payu. + + +## Troubleshooting + +1. if anybody facing after placing a order you are not redirecting to payment gateway and getting a route error then simply go to `bootstrap/cache` and delete all the cache files. + +For any help or customisation or email us