1 export enum PaymentWebhookEvents {
2 WebhookReceived = "payment.webhook_received",
3 }
4
5 /**
6 * Normalized events from payment provider to internal payment module events. In principle, these should match the payment status.
7 */
8 export enum PaymentActions {
9 /**
10 * Payment session has been authorized and there are available funds for capture.
11 */
12 AUTHORIZED = "authorized",
13 /**
14 * Payment was successful and the mount is captured.
15 */
16 SUCCESSFUL = "captured",
17 /**
18 * Payment failed.
19 */
20 FAILED = "failed",
21 /**
22 * Payment is pending.
23 */
24 PENDING = "pending",
25 /**
26 * Payment requires more information.
27 */
28 REQUIRES_MORE = "requires_more",
29 /**
30 * Payment was canceled.
31 */
32 CANCELED = "canceled",
33 /**
34 * Received an event that is not processable.
35 */
36 NOT_SUPPORTED = "not_supported",
37 /**
38 * Payment authorization is pending and expected to complete asynchronously
39 * (e.g., bank transfers, payment links, vouchers).
40 */
41 PENDING_AUTHORIZATION = "pending_authorization",
42 }