Skip to content

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

fix: include client_version and client_source in retried payments (#4826)

Vrishab Srivatsafa5f5a4eddec
diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rs
index a58a6ae32b..d11d0ef3c8 100644
--- a/crates/router/src/core/payments/helpers.rs
+++ b/crates/router/src/core/payments/helpers.rs
@@ -3576,8 +3576,8 @@ impl AttemptType {
payment_method_billing_address_id: None,
fingerprint_id: None,
charge_id: None,
- client_source: None,
- client_version: None,
+ client_source: old_payment_attempt.client_source,
+ client_version: old_payment_attempt.client_version,
}
}
diff --git a/crates/router/src/core/payments/retry.rs b/crates/router/src/core/payments/retry.rs
index af41e3e489..82a08064a3 100644
--- a/crates/router/src/core/payments/retry.rs
+++ b/crates/router/src/core/payments/retry.rs
@@ -510,7 +510,8 @@ pub fn make_new_payment_attempt(
mandate_id: old_payment_attempt.mandate_id,
browser_info: old_payment_attempt.browser_info,
payment_token: old_payment_attempt.payment_token,
-
+ client_source: old_payment_attempt.client_source,
+ client_version: old_payment_attempt.client_version,
created_at,
modified_at,
last_synced,