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(router): [Cybersource] add flag to indicate final capture (#7085)
AkshayaFoiger55bb284ba063
diff --git a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rsindex 9f3d024171..5fc9cad4ff 100644--- a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs@@ -417,6 +417,7 @@ pub enum CybersourcePaymentInitiatorTypes {pub struct CaptureOptions {capture_sequence_number: u32,total_capture_count: u32,+ is_final: Option<bool>,}#[derive(Debug, Serialize)]@@ -2142,11 +2143,18 @@ impl TryFrom<&CybersourceRouterData<&PaymentsCaptureRouterData>>.clone().map(convert_metadata_to_merchant_defined_info);+ let is_final = matches!(+ item.router_data.request.capture_method,+ Some(enums::CaptureMethod::Manual)+ )+ .then_some(true);+Ok(Self {processing_information: ProcessingInformation {capture_options: Some(CaptureOptions {capture_sequence_number: 1,total_capture_count: 1,+ is_final,}),action_list: None,action_token_types: None,