feat(sale): implement confirm and cancel functionality for sales in AdminApp; update routes and tests

This commit is contained in:
2026-08-11 11:00:09 -03:00
parent 68dd373d61
commit a458c564ca
11 changed files with 254 additions and 12 deletions

View File

@@ -127,8 +127,7 @@ class TelepagosWebhookService
DB::transaction(function () use ($compra, $paymentData) {
TelepagosPayment::create($paymentData);
$this->checkoutService->confirmPurchase($compra);
$compra->markAsPaid();
$this->checkoutService->confirmPaidPurchase($compra);
});
Log::info("Telepagos webhook: Successfully processed cashin {$cashinId} for purchase {$compra->id}");