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): populate card network in the network transaction id based MIT flow (#6690)
Shankar Singh C6a2070172b8d
diff --git a/config/config.example.toml b/config/config.example.tomlindex ba14ed881c..76a3819290 100644--- a/config/config.example.toml+++ b/config/config.example.toml@@ -787,6 +787,9 @@ check_token_status_url= "" # base url to check token status from token servic[network_tokenization_supported_connectors]connector_list = "cybersource" # Supported connectors for network tokenization+[network_transaction_id_supported_connectors]+connector_list = "stripe,adyen,cybersource" # Supported connectors for network transaction id+[grpc_client.dynamic_routing_client] # Dynamic Routing Client Configurationhost = "localhost" # Client Hostport = 7000 # Client Portdiff --git a/config/deployments/production.toml b/config/deployments/production.tomlindex a859d08ac4..c266b94bba 100644--- a/config/deployments/production.toml+++ b/config/deployments/production.toml@@ -176,6 +176,8 @@ bank_redirect.giropay.connector_list = "adyen,globalpay,multisafepay" # Mcard.credit = { connector_list = "cybersource" } # Update Mandate supported payment method type and connector for cardcard.debit = { connector_list = "cybersource" } # Update Mandate supported payment method type and connector for card+[network_transaction_id_supported_connectors]+connector_list = "stripe,adyen,cybersource"[payouts]payout_eligibility = true # Defaults the eligibility of a payout method to true in case connector does not provide checks for payout eligibilitydiff --git a/crates/router/src/connector/cybersource/transformers.rs b/crates/router/src/connector/cybersource/transformers.rsindex 22fa8965b7..2ea36e3e35 100644--- a/crates/router/src/connector/cybersource/transformers.rs+++ b/crates/router/src/connector/cybersource/transformers.rs@@ -620,7 +620,7 @@ impl.as_ref().map(|card_network| match card_network.to_lowercase().as_str() {"amex" => "internet",- "discover" => "dipb",+ "discover" => "internet","mastercard" => "spa","visa" => "internet",_ => "internet",diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rsindex 8435f09e8f..219a4d9051 100644--- a/crates/router/src/core/payments/helpers.rs+++ b/crates/router/src/core/payments/helpers.rs@@ -4674,7 +4674,7 @@ pub async fn get_additional_payment_data(api_models::payments::AdditionalPaymentData::Card(Box::new(api_models::payments::AdditionalCardInfo {card_issuer: card_info.card_issuer,- card_network,+ card_network: card_info.card_network,bank_code: card_info.bank_code,card_type: card_info.card_type,card_issuing_country: card_info.card_issuing_country,