Skip to content
New issue

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

Use without composer #30

Open
MrMooky opened this issue Aug 7, 2020 · 0 comments
Open

Use without composer #30

MrMooky opened this issue Aug 7, 2020 · 0 comments

Comments

@MrMooky
Copy link

MrMooky commented Aug 7, 2020

Currently, I require these files for the webhooks:

require_once 'typo3conf/ext/products/Classes/Coinbase/src/ApiClient.php';
require_once 'typo3conf/ext/products/Classes/Coinbase/src/Util.php';
require_once 'typo3conf/ext/products/Classes/Coinbase/src/Webhook.php';

use CoinbaseCommerce\ApiClient;
use CoinbaseCommerce\Resources\Event;
use CoinbaseCommerce\Webhook;

But right now I end up with the following error:

Class 'CoinbaseCommerce\Resources\Event' not found | Error thrown in file /html/typo3/typo3conf/ext/products/Classes/Coinbase/src/Webhook.php in line 26

Line 26 is this: return new Event($data['event']);

Before this error occurred, I had the error Class 'CoinbaseCommerce\Util' not found, which I "fixed" by including the Util.php file. But I cannot include the file Resources/Event.php, throws an error 500. So I am not sure how to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant