Closed jeanlinux closed 8 months ago
Hi there,
Thanks for reporting but it looks like this is a question which can be asked on a support channel. Please only use this issue tracker for reporting bugs with the library itself. If you have a question on how to use functionality provided by this repo you can try one of the following channels:
However, this issue will not be locked and everyone is still free to discuss solutions to your problem!
Thanks.
Any suggestions, I am still struggling to get cashier-paddle and passport authentication to work, I need to get this behind me, I dont know why authorization header is being affected when I post authentication token to a route that will be calling cashier-paddle API.
The error "Authentication header included, but incorrectly formatted" may occur if you try php sdk with application SDK API key: https://vendors.paddle.com/sdk
Instead, you need to use authorization key: https://vendors.paddle.com/authentication
Cashier Paddle Version
2.4
Laravel Version
11.0.1
PHP Version
8.1
Database Driver & Version
No response
Description
I am trying to setup cashier-paddle on laravel for my API service with passport for authentication, I have an endpoint /subscriptions that is supposed to return all subscriptions for the currently logged in user or guest if not logged in. but to I was getting curl ssl certificate error when I connect from localhost so I updated src/Cashier.php line 124
to
When I make the request without bearer token (as guest) I get all the subscription plans for guests. But now I am getting another error when I make a get request with Bearer Authentication header.
Here is my subscriptions controller.
Here is my Plan model:
Steps To Reproduce