siarheipashkevich / loyverse-sdk Goto Github PK
View Code? Open in Web Editor NEWA simple to use PHP class to work with the Loyverse API.
License: MIT License
A simple to use PHP class to work with the Loyverse API.
License: MIT License
Found a API bug on Resources/Customer when do customer query with customer ID.
PHP Fatal error: Uncaught TypeError: Typed property Pashkevich\Loyverse\Resources\Customer::$name must be string, null used in /var/www/html/vendor/pashkevich/loyverse-sdk/src/Resources/Resource.php:52
Line 24: public string $name;
Changed to
Line 24: public ?string $name;
to fix.
How to Include class in controller?
I m getting error.
Class "App\Http\Controllers\Pashkevich\Loyverse\Loyverse" not found
Hi! thanks for your work.
There's something Error, it shows:
Call to undefined method Pashkevich\Loyverse\Loyverse::createReceipt()
Seems createReceipt() function is missing.
Lovely sdk you have here.
I can't find how to access current loyverse tickets and checking the loyverse API documentation I can't find it there either.
I imagine you've run across the same inexplicable omission but did you find any way of accessing this data?
Hi! thanks for your work.
We are thinking about building a product and we want to know if you think your library is production ready?
Are you using it for a product of your own?
We are building a website in which customers can order directly to shops.
Thanks!
Hello
I hope this message finds you well. I am currently facing an issue with the usage of your Loyverse SDK in my Laravel project. I have followed the installation steps mentioned in the documentation, but I am encountering the error "Class "App\Http\Controllers\Pashkevich\Loyverse\Loyverse" not found."
Here are the details of my environment:
PHP Version: 8.2.13
Laravel Version: 9.52.16
Composer Packages:
pashkevich/loyverse-sdk: ^1.0
Steps I have taken to resolve the issue:
Ensured that the composer autoload section in composer.json includes the correct PSR-4 autoloading for the Loyverse SDK.
composer.json
"autoload": {
"psr-4": {
"Pashkevich\\Loyverse\\": "vendor/pashkevich/loyverse-sdk/src"
}
}
Executed the composer dump-autoload command to regenerate the autoload files.
Verified that the Loyverse SDK files exist in the vendor/pashkevich/loyverse-sdk/src directory.
Checked the namespace and class name in the Loyverse SDK file (Loyverse.php) and ensured it matches the one I am using in my controller.
Attempted to reinstall the Loyverse SDK by running composer remove pashkevich/loyverse-sdk followed by composer require pashkevich/loyverse-sdk.
Restarted the Apache server.
Cleared Laravel cache using php artisan cache:clear.
Despite these efforts, the issue persists, and I am unable to instantiate the Loyverse class in my controller.
Here is a snippet of my controller code:
use Pashkevich\Loyverse\Loyverse;
class LoyverseController extends Controller
{
public function importShifts()
{
$Loy = new Pashkevich\Loyverse\Loyverse('xxxxx token xxxxxxx');
$shifts = $Loy->shifts(['limit' => 10]);
dd($shifts);
}
}
I would sincerely appreciate any guidance or assistance you can provide in resolving this issue. I have reached a point of frustration and any help would be immensely valuable.
Thank you for your time and consideration.
Best regards,
Lukas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.