codenteq / stripe-payment-gateway

The Laravel eCommerce Stripe Payment Gateway
https://codenteq.com
MIT License
13 stars 6 forks source link

Not working with latest update of bagisto #11

Closed ChocTitans closed 4 weeks ago

ChocTitans commented 1 month ago

name: "🐛 Bug Report" about: 'Report a general issue.'

Bug Report

Not working with the latest update of bagisto 2.2.2

Issue Description

cannot acces to configuration in bagisto admin section

Preconditions

Steps To Reproduce

Just install this into bagisto v2.2.2

Actual Result

Expected Result

cannot acces to configuration in bagisto admin section

ahmetarsiv commented 1 month ago

@ChocTitans Hi,

I'm sorry to hear you're having trouble. Please ensure that you are using the latest version of the codenteq/stripe-payment-gateway package, which is v1.5.0. This version is compatible with Bagisto v2.2.2 and should resolve the issue.

To update the package, you can run the following command in your terminal:

composer require codenteq/stripe-payment-gateway:^1.5.0

This command will install the latest compatible version. After updating, please clear the cache and try accessing the configuration again.

If the issue persists, please share more details so we can further investigate.

Thanks!

ChocTitans commented 4 weeks ago

Hello,

Thanks for the fast reply, I have tried the command you provided but it seems it cannot find the 1.5.0

Screenshot_2

ahmetarsiv commented 4 weeks ago

@ChocTitans Hi,

Thank you for trying the command. It seems there might be an issue with the package version resolution. To resolve this, I recommend removing the package and then reinstalling it.

You can do this by running the following commands:

  1. Remove the package:

    composer remove codenteq/stripe-payment-gateway
  2. Reinstall the package with the correct version:

    composer require codenteq/stripe-payment-gateway

After reinstalling, please clear your cache and try accessing the configuration again. If you continue to experience issues, feel free to reach out, and we'll look into it further.

Thanks!

ChocTitans commented 4 weeks ago

@ahmetarsiv Hi,

I have installed with the command you provided, however it installs the 1.4.0, and once I try to access to admin/configuration in bagisto, I get this error Screenshot_2

and Once I remove the stripe-payment-gateway, the admin/configuration works without a single problem

ahmetarsiv commented 4 weeks ago

@ChocTitans Hi,

Thank you for your patience. It seems the package manager is still pulling the older version (v1.4.0) instead of the latest v1.5.0.

To ensure you're using the correct version, please try the following steps:

  1. Remove the current package:

    composer remove codenteq/stripe-payment-gateway
  2. Clear Composer's cache:

    composer clear-cache
  3. Require the package directly from GitHub with the correct version:

    composer require codenteq/stripe-payment-gateway:1.5.0 --prefer-source
  4. Regenerate Composer's autoload files:

    composer dump-autoload
    php artisan optimize

    Installation without composer:

composer require stripe/stripe-php
Webkul\Stripe\Providers\StripeServiceProvider::class,
"Webkul\\Stripe\\": "packages/Webkul/Stripe/src"
composer dump-autoload
php artisan optimize

After completing these steps, please try accessing the admin/configuration again. If the issue persists, feel free to share any error messages, and we'll assist further.

Thanks for your understanding!

ChocTitans commented 4 weeks ago

@ahmetarsiv Hi,

Thank you for being so helpful, composer require codenteq/stripe-payment-gateway:1.5.0 --prefer-source doesn't work so I tested without composer and it works !

I'm able to create stripe payment and also configuration works !

Thank you again for the support