feat(router): Handle incoming webhooks adyen (#9372)

This commit is contained in:
Mrudul Vajpayee
2025-09-18 00:12:01 +05:30
committed by GitHub
parent 1b8cd9dbb7
commit 0e30fb6b55
2 changed files with 3 additions and 2 deletions

View File

@ -570,7 +570,7 @@ impl Connector {
}
pub fn should_acknowledge_webhook_for_resource_not_found_errors(self) -> bool {
matches!(self, Self::Adyenplatform)
matches!(self, Self::Adyenplatform | Self::Adyen)
}
/// Validates if dummy connector can be created

View File

@ -49,6 +49,7 @@ pub struct AdyenTransferRequest {
pub enum AdyenPayoutMethod {
Bank,
Card,
PlatformPayment,
}
#[derive(Debug, Serialize)]
@ -726,7 +727,7 @@ pub fn get_adyen_webhook_event(
AdyenplatformWebhookStatus::Booked => match category {
Some(AdyenPayoutMethod::Card) => webhooks::IncomingWebhookEvent::PayoutSuccess,
Some(AdyenPayoutMethod::Bank) => webhooks::IncomingWebhookEvent::PayoutProcessing,
None => webhooks::IncomingWebhookEvent::PayoutProcessing,
_ => webhooks::IncomingWebhookEvent::PayoutProcessing,
},
AdyenplatformWebhookStatus::Pending => webhooks::IncomingWebhookEvent::PayoutProcessing,
AdyenplatformWebhookStatus::Failed => webhooks::IncomingWebhookEvent::PayoutFailure,