Skip to content

Commit

Permalink
fix: include client_version and client_source in retried payments (#4826
Browse files Browse the repository at this point in the history
)
  • Loading branch information
vsrivatsa-edinburgh authored Jun 3, 2024
1 parent d242850 commit fa5f5a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/core/payments/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down
3 changes: 2 additions & 1 deletion crates/router/src/core/payments/retry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fa5f5a4

Please sign in to comment.