Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(router): Handle incoming webhooks adyen (#9372)
Mrudul Vajpayee0e30fb6b5562
diff --git a/crates/common_enums/src/connector_enums.rs b/crates/common_enums/src/connector_enums.rsindex 3a7d2f535c..26afb2f2b9 100644--- a/crates/common_enums/src/connector_enums.rs+++ b/crates/common_enums/src/connector_enums.rs@@ -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 createddiff --git a/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs b/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rsindex 35636889d7..ec654971e4 100644--- a/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs+++ b/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs@@ -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,