mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +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 {
|
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
|
/// Validates if dummy connector can be created
|
||||||
|
|||||||
@ -49,6 +49,7 @@ pub struct AdyenTransferRequest {
|
|||||||
pub enum AdyenPayoutMethod {
|
pub enum AdyenPayoutMethod {
|
||||||
Bank,
|
Bank,
|
||||||
Card,
|
Card,
|
||||||
|
PlatformPayment,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize)]
|
#[derive(Debug, Serialize)]
|
||||||
@ -726,7 +727,7 @@ pub fn get_adyen_webhook_event(
|
|||||||
AdyenplatformWebhookStatus::Booked => match category {
|
AdyenplatformWebhookStatus::Booked => match category {
|
||||||
Some(AdyenPayoutMethod::Card) => webhooks::IncomingWebhookEvent::PayoutSuccess,
|
Some(AdyenPayoutMethod::Card) => webhooks::IncomingWebhookEvent::PayoutSuccess,
|
||||||
Some(AdyenPayoutMethod::Bank) => webhooks::IncomingWebhookEvent::PayoutProcessing,
|
Some(AdyenPayoutMethod::Bank) => webhooks::IncomingWebhookEvent::PayoutProcessing,
|
||||||
None => webhooks::IncomingWebhookEvent::PayoutProcessing,
|
_ => webhooks::IncomingWebhookEvent::PayoutProcessing,
|
||||||
},
|
},
|
||||||
AdyenplatformWebhookStatus::Pending => webhooks::IncomingWebhookEvent::PayoutProcessing,
|
AdyenplatformWebhookStatus::Pending => webhooks::IncomingWebhookEvent::PayoutProcessing,
|
||||||
AdyenplatformWebhookStatus::Failed => webhooks::IncomingWebhookEvent::PayoutFailure,
|
AdyenplatformWebhookStatus::Failed => webhooks::IncomingWebhookEvent::PayoutFailure,
|
||||||
|
|||||||
Reference in New Issue
Block a user