We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I might be mistaking but I'm trying to do:
require 'vendor/autoload.php'; use OpenNode\Merchant\Charge; use OpenNode\OpenNode; use OpenNode\Exception; OpenNode::config(array( 'environment' => 'dev', // dev OR live 'auth_token' => 'mykey', 'curlopt_ssl_verifypeer' => false // default is false )); try { $order = Charge::find('c1cddabe-c27b-44a6-91e8-a8f3553dc5c7'); var_dump($order); } catch (Exception $e) { var_dump($e->getMessage()); }
And I get this error. Maybe autoloading should be fixed or exceptions should be split in more classes
| <b>Fatal error</b>: Uncaught Error: Class "OpenNode\NotFound" not found in C:\xampp\htdocs\temp\vendor\opennode\opennode-php\lib\Exception.php:32 | Stack trace: | #0 C:\xampp\htdocs\temp\vendor\opennode\opennode-php\lib\OpenNode.php(91): OpenNode\Exception::throwException(404, Array) | #1 C:\xampp\htdocs\temp\vendor\opennode\opennode-php\lib\Merchant\Charge.php(40): OpenNode\OpenNode::request('https://dev-api...', 'GET', Array, Array) | #2 C:\xampp\htdocs\temp\vendor\opennode\opennode-php\lib\Merchant\Charge.php(32): OpenNode\Merchant\Charge::findOrFail('c1cddabe-c27b-4...', Array, Array) | #3 C:\xampp\htdocs\temp\index.php(16): OpenNode\Merchant\Charge::find('c1cddabe-c27b-4...') | #4 {main} | thrown in <b>C:\xampp\htdocs\temp\vendor\opennode\opennode-php\lib\Exception.php</b> on line <b>32</b><br />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I might be mistaking but I'm trying to do:
And I get this error. Maybe autoloading should be fixed or exceptions should be split in more classes
The text was updated successfully, but these errors were encountered: