feat(connector): implement authorize and capture flows for Fiserv (#266)

This commit is contained in:
Sahebjot singh
2023-01-15 16:03:06 +05:30
committed by GitHub
parent f0b89dda7b
commit 6e15f5a990
18 changed files with 958 additions and 16 deletions

View File

@ -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