Aug 3, 2024
0
Level 1
Paddle API error 'empty patch update' occurred
Cashier Paddle Version 2.5
Laravel Version 10.0
PHP Version 8.1
Database Driver & Version MYSQL
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
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");
}
Please or to participate in this conversation.