mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat(router): Add Cancel Event in Webhooks and Mapping it in Stripe (#2573)
This commit is contained in:
@ -12,6 +12,7 @@ pub enum IncomingWebhookEvent {
|
||||
PaymentIntentSuccess,
|
||||
PaymentIntentProcessing,
|
||||
PaymentIntentPartiallyFunded,
|
||||
PaymentIntentCancelled,
|
||||
PaymentActionRequired,
|
||||
EventNotSupported,
|
||||
SourceChargeable,
|
||||
@ -84,7 +85,8 @@ impl From<IncomingWebhookEvent> for WebhookFlow {
|
||||
| IncomingWebhookEvent::PaymentIntentSuccess
|
||||
| IncomingWebhookEvent::PaymentIntentProcessing
|
||||
| IncomingWebhookEvent::PaymentActionRequired
|
||||
| IncomingWebhookEvent::PaymentIntentPartiallyFunded => Self::Payment,
|
||||
| IncomingWebhookEvent::PaymentIntentPartiallyFunded
|
||||
| IncomingWebhookEvent::PaymentIntentCancelled => Self::Payment,
|
||||
IncomingWebhookEvent::EventNotSupported => Self::ReturnResponse,
|
||||
IncomingWebhookEvent::RefundSuccess | IncomingWebhookEvent::RefundFailure => {
|
||||
Self::Refund
|
||||
|
||||
Reference in New Issue
Block a user