mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
feat(router): Handle incoming webhooks adyen (#9372)
This commit is contained in:
@ -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
|
||||
|
||||
@ -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,
|
||||
|
||||
Reference in New Issue
Block a user