From c467a47aed30cd847c5fe89a760c86c1e391bbee Mon Sep 17 00:00:00 2001 From: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com> Date: Sun, 19 Feb 2023 19:36:18 +0530 Subject: [PATCH] refactor: use simple uuid instead of hyphens (#605) --- crates/router/src/core/payments/operations/payment_create.rs | 2 +- .../src/core/payments/operations/payment_method_validate.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,