removed all references to credits. now credits are completely replaced by addons.
This commit is contained in:
@@ -66,14 +66,6 @@ class ProcessRevenueCatWebhook implements ShouldQueue
|
||||
?? $this->value('event.entitlement_id');
|
||||
$credits = $this->mapCreditsFromProduct($productId);
|
||||
|
||||
if ($credits <= 0) {
|
||||
Log::info('RevenueCat webhook ignored due to unmapped product', [
|
||||
'event_id' => $this->eventId,
|
||||
'product_id' => $productId,
|
||||
]);
|
||||
return;
|
||||
}
|
||||
|
||||
$transactionId = $this->value('event.transaction_id')
|
||||
?? $this->value('event.id')
|
||||
?? $this->eventId
|
||||
@@ -101,9 +93,6 @@ class ProcessRevenueCatWebhook implements ShouldQueue
|
||||
'status' => 'completed',
|
||||
'purchased_at' => now(),
|
||||
]);
|
||||
|
||||
$note = sprintf('RevenueCat product: %s', $productId ?? 'unknown');
|
||||
$tenant->incrementCredits($credits, 'purchase', $note, $purchase->id);
|
||||
});
|
||||
|
||||
$tenant->refresh();
|
||||
|
||||
Reference in New Issue
Block a user