codenteq / stripe-payment-gateway

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

Error Payment with Stripe #8

Closed plyaskin closed 4 months ago

plyaskin commented 4 months ago

Terms

Bagisto Version(s) affected

2.1.2

Issue Description

Used Codenteq – Stripe Payment Gateway with testing card. After paid an error Class "Webkul\Sales\Transformers\OrderResource" not found

Preconditions

Install, use, etc

Steps to reproduce

Install, use, etc

Expected Result

Class "Webkul\Sales\Transformers\OrderResource" not found

Actual Result

Callback to Shop

Screenshots

image

Additional context

No response

ahmetarsiv commented 4 months ago

Hello @plyaskin,

I have reviewed your issue and observed that there are no non-functioning features according to the steps you mentioned. However, the error "Class 'Webkul\Sales\Transformers\OrderResource' not found" is likely due to a missing or incorrect dependency. In addition to the steps you provided, I recommend performing some additional checks:

  1. Check Dependencies:

    • Run composer install to ensure all dependencies are correctly installed.
    • Run composer dump-autoload to update the autoload class map.
  2. File and Class Path:

    • Verify that the file path mentioned in the error is correct and that the OrderResource class is properly defined.
    • Ensure that the OrderResource class is indeed located in the Webkul\Sales\Transformers directory and is defined with the correct namespace.
  3. Clear Cache:

    • Clear the application cache by running the following commands:
      php artisan cache:clear
      php artisan config:clear
      php artisan route:clear
      php artisan view:clear
  4. Debugging:

    • Set the APP_DEBUG setting to true in the config/app.php file to get more detailed error messages.
  5. Updates and Fixes:

    • Ensure you are using the latest versions of Bagisto and the Codenteq – Stripe Payment Gateway packages. Updates are important for fixing bugs and ensuring compatibility.

Based on the information provided, no non-functioning feature is evident, but following the above steps might help resolve your issue. If the problem persists, please provide more details, and I would be happy to assist further.

Thank you.

plyaskin commented 4 months ago

@ahmetarsiv thank you for reply! But I don't have the folder /Transformers and file OrderResource image How is it possible?

ahmetarsiv commented 4 months ago

Hello @plyaskin,

Thank you for your message.

The folders and files you're looking for should indeed be located in the specified directory: Webkul/Sales/src.

If you don't see the /Transformers folder and OrderResource file, it might be due to one of the following reasons:

  1. Version Difference: Ensure that you are using the same version of Bagisto as the one in the repository. There might be differences in the directory structure between versions.

  2. Incomplete Clone/Download: If you cloned or downloaded the repository, ensure that the process was completed successfully. Sometimes, network issues or interruptions can cause incomplete downloads.

  3. Custom Modifications: If you or your team have made custom modifications to the Bagisto installation, those folders and files might have been moved or deleted.

To resolve this, you can:

  1. Check the Version: Verify that your version matches the one in the repository.
  2. Re-clone the Repository: Try re-cloning the repository to ensure you have all the necessary files.
  3. Manually Add Files: If the files are missing, you can manually add them from the repository.

If you continue to experience issues, please provide more details about your installation and setup so I can assist you further.

Best regards, Ahmet

plyaskin commented 4 months ago

I did it yesterday and the installation was finished successfully. I didn't change files, except ENV file

ahmetarsiv commented 4 months ago

Hello @plyaskin,

Thank you for your response.

Since your installation finished successfully and you haven't changed any files except the .env file, I recommend reviewing the Bagisto repository again to ensure all files are present: Bagisto.

If everything appears correct in the repository and you still face issues, it might be worth re-cloning the repository and repeating the installation process to rule out any possible errors during the initial clone.

If there are no further issues or questions, I will proceed to close this issue. However, if you encounter any other problems, feel free to reopen the issue or create a new one.

Best regards, Ahmet

plyaskin commented 4 months ago

@ahmetarsiv I have loaded the folder with files and restarted the payment twice. image

ChocTitans commented 1 month ago

@ahmetarsiv I have loaded the folder with files and restarted the payment twice. image

Have you fixed this ?