feat: expire client secret after a merchant configurable intent fufliment time (#956)

This commit is contained in:
Prajjwal Kumar
2023-05-03 16:08:13 +05:30
committed by GitHub
parent ed99655ebc
commit 03a96432a9
21 changed files with 201 additions and 49 deletions

View File

@ -12,6 +12,9 @@ pub(crate) const ALPHABETS: [char; 62] = [
/// API client request timeout (in seconds)
pub const REQUEST_TIME_OUT: u64 = 30;
///Payment intent fulfillment default timeout (in seconds)
pub const DEFAULT_FULFILLMENT_TIME: 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";