Skip to content

Commit 841f47f

Browse files
committed
Delay
1 parent d5d82c2 commit 841f47f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/Jobs/HandleInvoicePaidJob.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ private function handleLegacyLicenseRenewal($subscription, string $licenseKey, s
108108

109109
private function createLicense(): void
110110
{
111+
// Add some delay to allow all the Stripe events to come in
112+
sleep(10);
113+
111114
// Assert the invoice line item is for a price_id that relates to a license plan.
112115
$plan = Subscription::fromStripePriceId($this->invoice->lines->first()->price->id);
113116

0 commit comments

Comments
 (0)