Skip to main content

BillaBear Payments Events

Here is the information relating to events relating to Payments

Payment Failed

This is triggered when a checkout is created.

NameConstant For Name
billabear.payment.failedBillaBear\Event\Payment\PaymentFailed::NAME

Event Class

namespace BillaBear\Event\Payment;

use BillaBear\Entity\PaymentAttempt;
use BillaBear\Entity\PaymentFailureProcess;
use Symfony\Contracts\EventDispatcher\Event;

class PaymentFailed extends Event
{
public const string NAME = 'billabear.payment.failed';

public function __construct(
public readonly PaymentAttempt $paymentAttempt,
public readonly PaymentFailureProcess $paymentFailureProcess,
) {
}
}