diff --git a/crates/router/src/core/payments/operations/payment_create.rs b/crates/router/src/core/payments/operations/payment_create.rs index f8b8f756a3..a297cdaeda 100644 --- a/crates/router/src/core/payments/operations/payment_create.rs +++ b/crates/router/src/core/payments/operations/payment_create.rs @@ -420,7 +420,7 @@ impl PaymentCreate { storage::PaymentAttemptNew { payment_id: payment_id.to_string(), merchant_id: merchant_id.to_string(), - attempt_id: Uuid::new_v4().to_string(), + attempt_id: Uuid::new_v4().simple().to_string(), status, amount: amount.into(), currency, diff --git a/crates/router/src/core/payments/operations/payment_method_validate.rs b/crates/router/src/core/payments/operations/payment_method_validate.rs index acf8a8c07c..f6b18cc931 100644 --- a/crates/router/src/core/payments/operations/payment_method_validate.rs +++ b/crates/router/src/core/payments/operations/payment_method_validate.rs @@ -274,7 +274,7 @@ impl PaymentMethodValidate { storage::PaymentAttemptNew { payment_id: payment_id.to_string(), merchant_id: merchant_id.to_string(), - attempt_id: Uuid::new_v4().to_string(), + attempt_id: Uuid::new_v4().simple().to_string(), status, // Amount & Currency will be zero in this case amount: 0,