Skip to content

Commit

Permalink
Get the latest subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbyiliev committed Mar 29, 2024
1 parent 8e0dd38 commit b0c6a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wave/src/Http/Controllers/SubscriptionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public function transactions(User $user){

$invoices = [];
$response = Http::withToken($this->api_key)->get($this->paddle_url . '/transactions', [
'subscription_id' => $user->subscription->subscription_id
'subscription_id' => $user->latestSubscription->subscription_id
]);


Expand Down

0 comments on commit b0c6a25

Please sign in to comment.