feat(purchase): update customer data for pending payment purchases

This commit is contained in:
2026-07-28 15:06:00 -03:00
parent 5c457db1c9
commit 4eacff86bc
2 changed files with 30 additions and 1 deletions

View File

@@ -98,7 +98,10 @@ class CheckoutService
->findOrFail($purchase->getKey());
if (
$purchase->status !== Purchase::STATUS_CREATED
! in_array($purchase->status, [
Purchase::STATUS_CREATED,
Purchase::STATUS_PENDING_PAYMENT,
], true)
|| ($purchase->expires_at !== null && $purchase->expires_at->isPast())
) {
throw ValidationException::withMessages([