paddle-logging verbessert

This commit is contained in:
Codex Agent
2025-12-23 08:53:00 +01:00
parent aa6f9b35d9
commit 8267b2bca3
6 changed files with 263 additions and 44 deletions

View File

@@ -15,7 +15,7 @@ class PaddleTransactionService
{
$payload = array_filter(array_merge([
'customer_id' => $customerId,
'order_by' => '-created_at',
'order_by' => 'created_at[desc]',
], $query), static fn ($value) => $value !== null && $value !== '');
$response = $this->client->get('/transactions', $payload);
@@ -51,7 +51,7 @@ class PaddleTransactionService
{
$response = $this->client->get('/transactions', [
'checkout_id' => $checkoutId,
'order_by' => '-created_at',
'order_by' => 'created_at[desc]',
]);
$transactions = Arr::get($response, 'data', []);
@@ -72,7 +72,7 @@ class PaddleTransactionService
public function findByCustomData(array $criteria, int $limit = 20): ?array
{
$payload = array_filter([
'order_by' => '-created_at',
'order_by' => 'created_at[desc]',
'per_page' => max(1, min($limit, 50)),
], static fn ($value) => $value !== null && $value !== '');