Skip to content

Commit

Permalink
new readme file
Browse files Browse the repository at this point in the history
new readme file
  • Loading branch information
wontone18 committed Apr 24, 2024
1 parent 82dbcf7 commit d2a0478
Showing 1 changed file with 19 additions and 33 deletions.
52 changes: 19 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
@@ -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 <https://www.wontonee.com> or email us <hello@wontonee.com>
For any help or customization, visit <https://www.wontonee.com> or email us <dev@wontonee.com>

0 comments on commit d2a0478

Please sign in to comment.