-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
850ff2f
commit 809fdb3
Showing
1 changed file
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
--- | ||
title: BillaBear Checkout Events | ||
sidebar_label: Checkout | ||
sidebar_position: 3 | ||
--- | ||
Here is the information relating to events relating to Checkout | ||
|
||
## Checkout Created | ||
|
||
This is triggered when a checkout is created. | ||
|
||
| Name | Constant For Name | | ||
| --- | --- | | ||
| billabear.checkout.created | `BillaBear\Event\Checkout\CheckoutCreated::NAME` | | ||
|
||
### Event Class | ||
|
||
```php | ||
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. | ||
|
||
| Name | Constant For Name | | ||
| --- | --- | | ||
| billabear.checkout_session.created | `BillaBear\Event\Checkout\CheckoutSessionCreated::NAME` | | ||
|
||
### Event Class | ||
|
||
```php | ||
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) | ||
{ | ||
} | ||
} | ||
``` |