19 lines
442 B
PHP
19 lines
442 B
PHP
|
|
<?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) {}
|
||
|
|
}
|