Skip to main content

BillaBear Checkout Events

Here is the information relating to events relating to Checkout

Checkout Created

This is triggered when a checkout is created.

NameConstant For Name
billabear.checkout.createdBillaBear\Event\Checkout\CheckoutCreated::NAME

Event Class

namespace BillaBear\Event\Checkout;

use BillaBear\Entity\Checkout;
use Symfony\Contracts\EventDispatcher\Event;

class CheckoutCreated extends Event
{
public const string NAME = 'billabear.checkout.created';

public function __construct(public readonly Checkout $checkout)
{
}
}

Checkout Session Created

This is triggered when a checkout seassion is created.

NameConstant For Name
billabear.checkout_session.createdBillaBear\Event\Checkout\CheckoutSessionCreated::NAME

Event Class

namespace BillaBear\Event\Checkout;

use BillaBear\Entity\CheckoutSession;
use Symfony\Contracts\EventDispatcher\Event;

class CheckoutSessionCreated extends Event
{
public const string NAME = 'billabear.checkout_session.created';

public function __construct(public readonly CheckoutSession $checkoutSession)
{
}
}