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): capture billing country in payments request (#4347)
AkshayaFoiger986ed2a92344
diff --git a/crates/router/src/connector/zsl/transformers.rs b/crates/router/src/connector/zsl/transformers.rsindex 5078a959a6..3ffd5b2cce 100644--- a/crates/router/src/connector/zsl/transformers.rs+++ b/crates/router/src/connector/zsl/transformers.rs@@ -221,11 +221,7 @@ impl TryFrom<&ZslRouterData<&types::PaymentsAuthorizeRouterData>> for ZslPaymentlet family_name = item.router_data.get_optional_billing_last_name();let router_url = item.router_data.request.get_router_return_url()?;let webhook_url = item.router_data.request.get_webhook_url()?;- let billing_country = item.router_data.get_optional_billing_country().ok_or(- errors::ConnectorError::MissingRequiredField {- field_name: "billing.address.country",- },- )?;+ let billing_country = item.router_data.get_billing_country()?;let lang = item.router_datadiff --git a/crates/router/src/types/transformers.rs b/crates/router/src/types/transformers.rsindex ace6b725f7..039f1cc303 100644--- a/crates/router/src/types/transformers.rs+++ b/crates/router/src/types/transformers.rs@@ -588,6 +588,7 @@ impl<'a> From<&'a domain::Address> for api_types::Address {&& address.line2.is_none()&& address.line3.is_none()&& address.state.is_none()+ && address.country.is_none()&& address.zip.is_none()&& address.first_name.is_none()&& address.last_name.is_none()