NikolaGavric94 / laravel-square

Square integration with Laravel/Lumen >=5.5
MIT License
33 stars 23 forks source link

Call to undefined method SquareConnect\ApiException::getCategory() #11

Closed zhsolutions closed 7 years ago

zhsolutions commented 7 years ago

Related to https://github.com/NikolaGavric94/nikolag-square/issues/10 I change line 131 to: ApiException $exception

And I get Call to undefined method SquareConnect\ApiException::getCategory()

NikolaGavric94 commented 7 years ago

You are not using the latest version which fixed #10 and #11

EDIT: Just update the library to 1.1.0

NikolaGavric94 commented 7 years ago

After updating dont forget to rerun migrations and to check if your published config file looks similar to this config

EDIT: Also check the changelog and correct the input parameters of charge method on Square facade

NikolaGavric94 commented 7 years ago

@zhsolutions awaiting your feedback

zhsolutions commented 7 years ago

My Composer Config is: "nikolag/square": "^1.1",

NikolaGavric94 commented 7 years ago

Seems like your composer didn't fetch the newest version, remove your composer.lock file and remove vendor folder and run composer update, tell me which version does composer install?

zhsolutions commented 7 years ago

This is the installation output of the CL running :

composer require nikolag/square --dev

After that the Issue #10 still present.

And yes, the data I am passing is all there that is required in array form

NikolaGavric94 commented 7 years ago

@zhsolutions can you check does the file SquareConfig.php from v1.1.0 match the same file in your vendor folder?

zhsolutions commented 7 years ago

It Does not Match

NikolaGavric94 commented 7 years ago

Hmm that is strange, if you are truly installing v1.1.0 then both your local copy in vendor and external one here should match..

zhsolutions commented 7 years ago

I do not disagree...BUT i can tell you the composer file, the locked file both confirm its 1.1.0 I also uninstalled & deleted any record of the old installation before running the new ccommand..

Seems likes its downloading some sort of old cache of the files rather then the actual files.

IDK, i manually overwrote the files with the downloaded ones from the .zip.

Seems as though that worked

NikolaGavric94 commented 7 years ago

@zhsolutions try running composer clearcache and then remove vendor, composer.lock and do composer install

NikolaGavric94 commented 7 years ago

@zhsolutions if the above solution worked, please close the issues

NikolaGavric94 commented 7 years ago

@zhsolutions closing the issues since u are not responding I take it that you've resolved the issue, feel free to reopen it if it appears again