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(wasm): remove router_env dependency from api_models (#14163)
Akshaya Shankar6c8da379cbd1
diff --git a/Cargo.lock b/Cargo.lockindex 0cea7caa26..d442c8d253 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -474,7 +474,6 @@ dependencies = ["nutype","reqwest 0.11.27","router_derive",- "router_env","rust_decimal","serde","serde_json",@@ -484,6 +483,7 @@ dependencies = ["superposition_types","tempfile","time 0.3.41",+ "tracing","url 2.5.4","utoipa",]diff --git a/crates/api_models/Cargo.toml b/crates/api_models/Cargo.tomlindex 49c41a358d..7b00831872 100644--- a/crates/api_models/Cargo.toml+++ b/crates/api_models/Cargo.toml@@ -61,9 +61,9 @@ hyperswitch_masking = { version = "0.0.1", default-features = false, features ="time",] }router_derive = { version = "0.1.0", path = "../router_derive" }-router_env = { version = "0.1.0", path = "../router_env" }smithy = { version = "0.1.0", path = "../smithy" }smithy-core = { version = "0.1.0", path = "../smithy-core" }+tracing = { workspace = true }[lints]workspace = truediff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rsindex 4356acc410..982d22a447 100644--- a/crates/api_models/src/payment_methods.rs+++ b/crates/api_models/src/payment_methods.rs@@ -20,7 +20,6 @@ use common_utils::{};use error_stack::ResultExt;use hyperswitch_masking::PeekInterface;-use router_env::logger;use rust_decimal::{prelude::{FromPrimitive, ToPrimitive},Decimal,@@ -1962,7 +1961,7 @@ impl TryFrom<PaymentMethodDataWalletInfo> for Box<payments::ApplepayPaymentMetho.to_uppercase().parse::<api_enums::CardType>().inspect_err(|error| {- logger::error!(+ tracing::warn!(?error,unparsed_card_type = %card_type,"Received an unrecognized card_type value from Apple Pay; defaulting to None"