mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 09:07:09 +08:00
refactor: use simple uuid instead of hyphens (#605)
This commit is contained in:
@ -420,7 +420,7 @@ impl PaymentCreate {
|
|||||||
storage::PaymentAttemptNew {
|
storage::PaymentAttemptNew {
|
||||||
payment_id: payment_id.to_string(),
|
payment_id: payment_id.to_string(),
|
||||||
merchant_id: merchant_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,
|
status,
|
||||||
amount: amount.into(),
|
amount: amount.into(),
|
||||||
currency,
|
currency,
|
||||||
|
|||||||
@ -274,7 +274,7 @@ impl PaymentMethodValidate {
|
|||||||
storage::PaymentAttemptNew {
|
storage::PaymentAttemptNew {
|
||||||
payment_id: payment_id.to_string(),
|
payment_id: payment_id.to_string(),
|
||||||
merchant_id: merchant_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,
|
status,
|
||||||
// Amount & Currency will be zero in this case
|
// Amount & Currency will be zero in this case
|
||||||
amount: 0,
|
amount: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user