From d2a0478dded361f4c7c0765df702cec87984a633 Mon Sep 17 00:00:00 2001 From: Saju G Date: Wed, 24 Apr 2024 17:09:55 +0530 Subject: [PATCH] new readme file new readme file --- README.md | 52 +++++++++++++++++++--------------------------------- 1 file changed, 19 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 76eba32..aabf92a 100644 --- a/README.md +++ b/README.md @@ -1,51 +1,37 @@ # 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. +Stripe is a popular payment gateway. This package provides strong support for users to integrate the Stripe payment gateway into their Bagisto Laravel e-commerce applications. -## Automatic Installation -1. Use command prompt to run this package `composer require wontonee/stripe` -2. Now open `config/app.php` and register stripe provider. +## Installation +1. Use the command prompt to install this package: ```sh -'providers' => [ - // Stripe provider - Wontonee\Stripe\Providers\StripeServiceProvider::class, -] +composer require wontonee/stripe ``` -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 stripe. -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 stripe provider. +2. Open `config/app.php` and register the 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. + +3. Navigate to the `admin panel -> Configure/Payment Methods`, where Stripe will be visible at the end of the payment method list. + +4. Now open `app\Http\Middleware\VerifyCsrfToken.php` and add this route to the exception list. ```sh - 'stripe-apikey' => 'Api Key', +protected $except = [ + '/stripe-success', + '/stripe-cancel' +]; ``` -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 stripe. + +5. Now run `php artisan config:cache` + ## 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. +1. If you encounter an issue where you are not redirected to the payment gateway after placing an order and receive a route error, navigate to `bootstrap/cache` and delete all cache files. + -For any help or customisation or email us +For any help or customization, visit or email us