mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
fix(router): Payment link api contract change (#2975)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Co-authored-by: Kashif <mohammed.kashif@juspay.in> Co-authored-by: Kashif <kashif.dev@protonmail.com> Co-authored-by: hrithikeshvm <hrithikeshmylatty@gmail.com> Co-authored-by: hrithikeshvm <vmhrithikesh@gmail.com>
This commit is contained in:
@ -24,6 +24,9 @@ pub const REQUEST_TIMEOUT_ERROR_MESSAGE_FROM_PSYNC: &str =
|
||||
///Payment intent fulfillment default timeout (in seconds)
|
||||
pub const DEFAULT_FULFILLMENT_TIME: i64 = 15 * 60;
|
||||
|
||||
/// Payment intent default client secret expiry (in seconds)
|
||||
pub const DEFAULT_SESSION_EXPIRY: i64 = 15 * 60;
|
||||
|
||||
// String literals
|
||||
pub(crate) const NO_ERROR_MESSAGE: &str = "No error message";
|
||||
pub(crate) const NO_ERROR_CODE: &str = "No error code";
|
||||
@ -71,4 +74,10 @@ pub const VERIFY_CONNECTOR_ID_PREFIX: &str = "conn_verify";
|
||||
#[cfg(feature = "olap")]
|
||||
pub const VERIFY_CONNECTOR_MERCHANT_ID: &str = "test_merchant";
|
||||
|
||||
/// Max payment session expiry
|
||||
pub const MAX_SESSION_EXPIRY: u32 = 7890000;
|
||||
|
||||
/// Min payment session expiry
|
||||
pub const MIN_SESSION_EXPIRY: u32 = 60;
|
||||
|
||||
pub const LOCKER_HEALTH_CALL_PATH: &str = "/health";
|
||||
|
||||
Reference in New Issue
Block a user