Files
famous-ly4-ev/app-modules/payment/src/Events/PaymentFailed.php
T

19 lines
442 B
PHP
Raw Normal View History

<?php
namespace Modules\Payment\Events;
use Illuminate\Foundation\Events\Dispatchable;
use Modules\Payment\Models\Payment;
/**
* Dispatched once a Payment is confirmed failed. No listener flips booking
* status on this — a failed attempt just leaves the Booking pending_payment
* so the customer can retry (domain.md §5).
*/
class PaymentFailed
{
use Dispatchable;
public function __construct(public Payment $payment) {}
}