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
fix(connector): [WORLDPAYWPG] Fix PSync deserialization error response (#10764)
Vani Gupta1440776a0a97
diff --git a/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs b/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rsindex a6c601498d..53143aee80 100644--- a/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs@@ -1178,7 +1178,9 @@ fn get_attempt_status(}LastEvent::Refused => Ok(common_enums::AttemptStatus::Failure),LastEvent::Cancelled => Ok(common_enums::AttemptStatus::Voided),- LastEvent::Captured | LastEvent::Settled => Ok(common_enums::AttemptStatus::Charged),+ LastEvent::Captured | LastEvent::Settled | LastEvent::SettledByMerchant => {+ Ok(common_enums::AttemptStatus::Charged)+ }LastEvent::SentForAuthorisation => Ok(common_enums::AttemptStatus::Authorizing),_ => Err(errors::ConnectorError::UnexpectedResponseError(bytes::Bytes::from("Invalid LastEvent".to_string()),@@ -2678,7 +2680,7 @@ pub fn get_payment_webhook_event(status: LastEvent) -> api_models::webhooks::IncLastEvent::Authorised | LastEvent::SentForAuthorisation => {api_models::webhooks::IncomingWebhookEvent::PaymentIntentProcessing}- LastEvent::Captured | LastEvent::Settled => {+ LastEvent::Captured | LastEvent::Settled | LastEvent::SettledByMerchant => {api_models::webhooks::IncomingWebhookEvent::PaymentIntentSuccess}LastEvent::Refunded | LastEvent::RefundedByMerchant => {