You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Uncaught Error: Interface "Stripe\Exception\ExceptionInterface" not found in /home/argoscms/public_html/ext/pok4/shop/stripe/lib/Exception/ApiErrorException.php:8
Autoloader found somethings but i think that not found this one in the title...
In very bottom of autoloader i found this: 'C:\\xampp2\\htdocs\\ext\\pok4\\shop\\stripe\\lib\\Exception\\ExceptionInterface.php' => 1696003164,
Can you give me suggestions how to fix this ?
In my code i have the following lines:
// Retrieve the details of a PaymentIntent
try {
$paymentIntent = $stripe->paymentIntents->retrieve($checkout_session->payment_intent);
} catch (\Stripe\Exception\ApiErrorException $e) {
$api_error = $e->getMessage();
}
To Reproduce
.
Expected behavior
.
Code snippets
No response
OS
Windows/XAMP
PHP version
PHP 8.1
Library version
12.5.0
API version
2023-09-28
Additional context
No response
The text was updated successfully, but these errors were encountered:
The problem is autoloader library that i use - nette/robot-loader#29
I open issue there and they tell me that this file is not a standart class... (because if check there)
Can you give me a workaround to fix it ?
Hi @Pok4, I'm sorry you are having this issue. Unfortunately we can't remove the if as the library still supports PHP 5.6 where there is no Throwable type.
Considering it's a bug in a third-party loader you might need to work with the https://github.com/nette/robot-loader or switch to standard module loading techniques just for stripe (`require_once '/path/to/stripe-php/init.php';)
Describe the bug
Uncaught Error: Interface "Stripe\Exception\ExceptionInterface" not found in /home/argoscms/public_html/ext/pok4/shop/stripe/lib/Exception/ApiErrorException.php:8
This is the error. I'm using this autoloader - https://github.com/nette/robot-loader
In cache i found this:
Autoloader found somethings but i think that not found this one in the title...
In very bottom of autoloader i found this:
'C:\\xampp2\\htdocs\\ext\\pok4\\shop\\stripe\\lib\\Exception\\ExceptionInterface.php' => 1696003164,
Can you give me suggestions how to fix this ?
In my code i have the following lines:
To Reproduce
.
Expected behavior
.
Code snippets
No response
OS
Windows/XAMP
PHP version
PHP 8.1
Library version
12.5.0
API version
2023-09-28
Additional context
No response
The text was updated successfully, but these errors were encountered: