Giter Site home page Giter Site logo

loyverse-sdk's People

Contributors

siarheipashkevich avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

loyverse-sdk's Issues

Error returns when request customer from /customers/{customer_id}

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.

createReceipt() is missing

Hi! thanks for your work.

There's something Error, it shows:
Call to undefined method Pashkevich\Loyverse\Loyverse::createReceipt()

Seems createReceipt() function is missing.

Ability to access tickets.

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?

Production ready

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!

Issue with Class "App\Http\Controllers\Pashkevich\Loyverse\Loyverse" Not Found

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.