Giter Site home page Giter Site logo

Comments (16)

faustbrian avatar faustbrian commented on May 30, 2024

Odd, I have it running in production with 2 applications on Laravel 7.

The paddle-sdk package supports Laravel 7 since 1.1.0 faustbrian-archives/paddle-sdk@1.0.0...1.1.0

from laravel-paddle.

petericebear avatar petericebear commented on May 30, 2024

ah it has todo with KiteTail. When I install that it give the same error
image

from laravel-paddle.

faustbrian avatar faustbrian commented on May 30, 2024

If you are on Laravel 7 you don't need Zttp but can use https://laravel.com/docs/7.x/http-client instead which is based on Zttp.

from laravel-paddle.

petericebear avatar petericebear commented on May 30, 2024

I reverted to a couple of commits back (used laravel shift for the upgrade of the old app).

And before I ran composer update, I installed this package. Which kept tightenco/collect to a lower version. I have it installed now. But kitetail which needed from the sdk dependencies triggered the error somewhere along the way.

from laravel-paddle.

faustbrian avatar faustbrian commented on May 30, 2024

Oh sorry I misunderstood the Zttp issue. I'll upgrade the SDK to use the illuminate/http package instead.

from laravel-paddle.

faustbrian avatar faustbrian commented on May 30, 2024

@petericebear could you test https://github.com/kodekeep/laravel-paddle/releases/tag/1.3.0 and let me know if you encounter any issues? It now uses kodekeep/paddle-sdk:1.2.0 which uses illuminate/http instead of kitetail/zttp.

from laravel-paddle.

petericebear avatar petericebear commented on May 30, 2024

This worked
image

from laravel-paddle.

faustbrian avatar faustbrian commented on May 30, 2024

Great, let me know if you run into issues with the new illuminate/http usage. Things like failing requests or wrong results.

from laravel-paddle.

petericebear avatar petericebear commented on May 30, 2024
dd(Paddle::subscription()->plans()->all());

KodeKeep/Paddle/Exceptions/RequestException with message 'Received unexpected response with status code 200.'
I am trying through tinker and get this error. There are plans in Paddle available.

from laravel-paddle.

petericebear avatar petericebear commented on May 30, 2024

And through tinkerwell I get this response:

image

from laravel-paddle.

faustbrian avatar faustbrian commented on May 30, 2024
dd(Paddle::subscription()->plans()->all());

KodeKeep/Paddle/Exceptions/RequestException with message 'Received unexpected response with status code 200.'
I am trying through tinker and get this error. There are plans in Paddle available.

https://github.com/kodekeep/paddle-sdk/releases/tag/1.2.1

from laravel-paddle.

faustbrian avatar faustbrian commented on May 30, 2024

And through tinkerwell I get this response:

image

That looks like a syntax error if you are not on PHP 7.4

from laravel-paddle.

petericebear avatar petericebear commented on May 30, 2024

I am on PHP 7.4.1
image

from laravel-paddle.

petericebear avatar petericebear commented on May 30, 2024

OpCache is disabled

from laravel-paddle.

faustbrian avatar faustbrian commented on May 30, 2024

Are your php-fpm and php-cli both on PHP 7.4? Your php-fpm doesn't seem to have issues with executing the code but your CLI does.

Edit
Just tested your exact command local and on a server with PHP 7.4. No issues executing it.

from laravel-paddle.

petericebear avatar petericebear commented on May 30, 2024

Ah in tinkwell there was a link to 7.3.1. After that and updating the version for the SDK I now get the responses :D

from laravel-paddle.

Related Issues (4)

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.