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

Can't implement with Laravel 5.8 #61

Open
yasithao3 opened this issue Dec 18, 2019 · 2 comments
Open

Can't implement with Laravel 5.8 #61

yasithao3 opened this issue Dec 18, 2019 · 2 comments

Comments

@yasithao3
Copy link

I'm trying to implement this sdk with Laravel 5.8 using composer
composer require cdiscount/sdkphpapi

When I try to use it in a Laravel Controller it keeps showing me an error saying

Class 'Sdk\ApiClient\CDSApiClient' not found

instead autoloading I tried to require . that also fails with the same error.
require_once base_path('vendor/cdiscount/sdkphpapi/sdk/src/public/ApiClient/CDSApiClient.php');

@ThomasRolfe
Copy link

Ive found the index.php file included doesnt load the class properly but going to an example (such as /samples/Order/GetOrderList.php) endpoint, the vendor and sdk autoloaders work correctly. Never ended up digging any further to get it to work on the index level though

@RUDIWER
Copy link

RUDIWER commented Jan 27, 2020

Hello,

I have the same problem as yasithao3 ?
What do i need to do to fix it ?

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

No branches or pull requests

3 participants