laravel / cashier-paddle

Cashier Paddle provides an expressive, fluent interface to Paddle's subscription billing services.
https://laravel.com/docs/cashier-paddle
MIT License
238 stars 57 forks source link

Paddle API error 'empty patch update' occurred #271

Closed KareemHussen closed 1 month ago

KareemHussen commented 1 month ago

Cashier Paddle Version

2.5

Laravel Version

10.0

PHP Version

8.1

Database Driver & Version

MYSQL

Description

When i try to swap the current subscription it gives me this error : Paddle API error 'empty patch update' occurred note that it's the only invalid endpoint the rest are ok

Steps To Reproduce

here's my code

public function update(UpdateSubscriptionRequest $request)
    {
        $data  = $request->validated();
        $user  = $request->user;

        $user->subscription()->swap($data['price_id']);

        return $this->respondOk(SubscribtionResource::make($user->subscription()->asPaddleSubscription()) , "Subscribtion swapped successfully");
    }
driesvints commented 1 month ago

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!