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): [Bambora Apac] failure on missing capture method and billing address requirement in mandates (#5539)
Sakil Mostak3183a86ecde7
diff --git a/crates/router/src/connector/bamboraapac/transformers.rs b/crates/router/src/connector/bamboraapac/transformers.rsindex 5125fafcee..3c19769930 100644--- a/crates/router/src/connector/bamboraapac/transformers.rs+++ b/crates/router/src/connector/bamboraapac/transformers.rs@@ -91,9 +91,10 @@ fn get_transaction_body(}fn get_card_data(req: &types::PaymentsAuthorizeRouterData) -> Result<String, Error> {- let card_holder_name = req.get_billing_full_name()?;let card_data = match &req.request.payment_method_data {domain::PaymentMethodData::Card(card) => {+ let card_holder_name = req.get_billing_full_name()?;+if req.request.setup_future_usage == Some(enums::FutureUsage::OffSession) {format!(r#"@@ -153,7 +154,7 @@ fn get_card_data(req: &types::PaymentsAuthorizeRouterData) -> Result<String, Errfn get_transaction_type(capture_method: Option<enums::CaptureMethod>) -> Result<u8, Error> {match capture_method {- Some(enums::CaptureMethod::Automatic) => Ok(1),+ Some(enums::CaptureMethod::Automatic) | None => Ok(1),Some(enums::CaptureMethod::Manual) => Ok(2),_ => Err(errors::ConnectorError::CaptureMethodNotSupported)?,}@@ -224,7 +225,7 @@ fn get_attempt_status() -> enums::AttemptStatus {match response_code {0 => match capture_method {- Some(enums::CaptureMethod::Automatic) => enums::AttemptStatus::Charged,+ Some(enums::CaptureMethod::Automatic) | None => enums::AttemptStatus::Charged,Some(enums::CaptureMethod::Manual) => enums::AttemptStatus::Authorized,_ => enums::AttemptStatus::Pending,},