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): use default value for the routing algorithm column during business profile creation (#2791)
Shanksb1fe76a82b40
diff --git a/crates/router/src/types/api/admin.rs b/crates/router/src/types/api/admin.rsindex 6bbe9149f4..fe99d08422 100644--- a/crates/router/src/types/api/admin.rs+++ b/crates/router/src/types/api/admin.rs@@ -124,9 +124,10 @@ impl ForeignTryFrom<(domain::MerchantAccount, BusinessProfileCreate)>.unwrap_or(merchant_account.redirect_to_merchant_with_http_post),webhook_details: webhook_details.or(merchant_account.webhook_details),metadata: request.metadata,- routing_algorithm: request- .routing_algorithm- .or(merchant_account.routing_algorithm),+ routing_algorithm: Some(serde_json::json!({+ "algorithm_id": null,+ "timestamp": 0+ })),intent_fulfillment_time: request.intent_fulfillment_time.map(i64::from)