feat(payment, payment-stripe): Add Stripe module provider (#6311)
This commit is contained in:
25
packages/utils/src/payment/webhook.ts
Normal file
25
packages/utils/src/payment/webhook.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
export enum PaymentWebhookEvents {
|
||||
WebhookReceived = "payment.webhook_received",
|
||||
}
|
||||
|
||||
/**
|
||||
* Normalized events from payment provider to internal payment module events.
|
||||
*/
|
||||
export enum PaymentActions {
|
||||
/**
|
||||
* Payment session has been authorized and there are available funds for capture.
|
||||
*/
|
||||
AUTHORIZED = "authorized",
|
||||
/**
|
||||
* Payment was successful and the mount is captured.
|
||||
*/
|
||||
SUCCESSFUL = "captured",
|
||||
/**
|
||||
* Payment failed.
|
||||
*/
|
||||
FAILED = "failed",
|
||||
/**
|
||||
* Received an event that is not processable.
|
||||
*/
|
||||
NOT_SUPPORTED = "not_supported",
|
||||
}
|
||||
Reference in New Issue
Block a user