paddle-logging verbessert
This commit is contained in:
@@ -110,7 +110,7 @@ class CheckoutAssignmentService
|
||||
if ($package->type !== 'reseller') {
|
||||
$tenant->forceFill([
|
||||
'subscription_status' => 'active',
|
||||
'subscription_expires_at' => null,
|
||||
'subscription_expires_at' => $tenantPackage->expires_at,
|
||||
])->save();
|
||||
}
|
||||
|
||||
|
||||
@@ -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 !== '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user