feat(router): Add Cancel Event in Webhooks and Mapping it in Stripe (#2573)

This commit is contained in:
DEEPANSHU BANSAL
2023-10-13 16:35:00 +05:30
committed by GitHub
parent d4019751ff
commit 92f7918e6f
9 changed files with 16 additions and 4 deletions

View File

@ -168,6 +168,7 @@ fn get_stripe_event_type(event_type: api_models::enums::EventType) -> &'static s
api_models::enums::EventType::PaymentSucceeded => "payment_intent.succeeded",
api_models::enums::EventType::PaymentFailed => "payment_intent.payment_failed",
api_models::enums::EventType::PaymentProcessing => "payment_intent.processing",
api_models::enums::EventType::PaymentCancelled => "payment_intent.canceled",
// the below are not really stripe compatible because stripe doesn't provide this
api_models::enums::EventType::ActionRequired => "action.required",