protonemedia / laravel-paddle

Paddle.com API integration for Laravel with support for webhooks/events
https://protone.media/en/blog/a-new-laravel-package-to-handle-payments-and-subscriptions-with-paddle
MIT License
203 stars 17 forks source link

wrong API endpoint for getOrderDetails method #4

Closed dimzeta closed 4 years ago

dimzeta commented 4 years ago

When we call getOrderDetails method, it looks like the endpoint called is https://vendors.paddle.com/api/1.0/order, but it should be https://checkout.paddle.com/api/1.0/order instead.

With the first one, the method always returns a 404 error.

pascalbaljet commented 4 years ago

Fixed in v1.1.0, thanks for sharing!

alzaabi98 commented 4 years ago

@dimitribocquet

how to access this method "getOrderDetails " ? I am looking for a way to find out subscription details like next payments, status directly from paddle

dimzeta commented 4 years ago

@alzaabi98

Paddle::checkout()->getOrderDetails();

You can see some examples in the readme.