-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPaymentCoreEvents.php
More file actions
62 lines (55 loc) · 1.58 KB
/
PaymentCoreEvents.php
File metadata and controls
62 lines (55 loc) · 1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
/*
* This file is part of the PaymentSuite package.
*
* Copyright (c) 2013-2016 Marc Morera
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* Feel free to edit as you please, and have fun.
*
* @author Marc Morera <yuhu@mmoreram.com>
*/
namespace PaymentSuite\PaymentCoreBundle;
/**
* This class define all events thrown by all payment method.
*/
final class PaymentCoreEvents
{
/**
* This event is thrown when an order must be created.
*
* event.name : payment.order.load
* event.class : PaymentOrderLoadEvent
*/
const PAYMENT_ORDER_LOAD = 'payment.order.load';
/**
* This event is thrown when an order must be created.
*
* event.name : payment.order.created
* event.class : PaymentOrderCreatedEvent
*/
const PAYMENT_ORDER_CREATED = 'payment.order.created';
/**
* This event is thrown when an order is paid, no matter the result.
*
* event.name : payment.order.done
* event.class : PaymentDoneEvent
*/
const PAYMENT_ORDER_DONE = 'payment.order.done';
/**
* This event is thrown when an order is paid succesfuly.
*
* event.name : payment.order.success
* event.class : PaymentOrderSuccessEvent
*/
const PAYMENT_ORDER_SUCCESS = 'payment.order.success';
/**
* This event is thrown when an order can't be paid for any reason.
*
* event.name : payment.order.fail
* event.class : PaymentOrderFailEvent
*/
const PAYMENT_ORDER_FAIL = 'payment.order.fail';
}