mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(connector): implement authorize and capture flows for Fiserv (#266)
This commit is contained in:
@ -27,6 +27,11 @@ pub mod date_time {
|
||||
pub fn convert_to_pdt(offset_time: OffsetDateTime) -> PrimitiveDateTime {
|
||||
PrimitiveDateTime::new(offset_time.date(), offset_time.time())
|
||||
}
|
||||
|
||||
/// Return the UNIX timestamp of the current date and time in UTC
|
||||
pub fn now_unix_timestamp() -> i64 {
|
||||
OffsetDateTime::now_utc().unix_timestamp()
|
||||
}
|
||||
}
|
||||
|
||||
/// Generate a nanoid with the given prefix and length
|
||||
|
||||
Reference in New Issue
Block a user