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

Authentication/Permission Error #6

Closed furkankadioglu closed 4 years ago

furkankadioglu commented 4 years ago

Hello!

I'm not sure is it a bug or my mistake.

Let me explain my current situation:

And my code side:

$payload = [
        'product_id' => $paddlePlanId,
        'customer_email' => $user->email,
        'passthrough' => ['team_id' => $user->id],
];
    $paddleResponse = Paddle::product()
        ->generatePayLink($payload)
        ->send();`

What I'm getting:

ProtoneMedia \ LaravelPaddle \ Api \ PaddleApiException [107] You don't have permission to access this resource

What is the problem? I guess it is an authentication issue. Because I can not list my products too. Am I missing something?

furkankadioglu commented 4 years ago

I found the issue! Sorry for creating ticket.

I realized there are two key: