mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +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:
@ -146,6 +146,8 @@ pub async fn generate_sample_data(
|
||||
common_utils::date_time::now() - time::Duration::days(7)
|
||||
}),
|
||||
);
|
||||
let session_expiry =
|
||||
created_at.saturating_add(time::Duration::seconds(consts::DEFAULT_SESSION_EXPIRY));
|
||||
|
||||
// After some set of payments sample data will have a failed attempt
|
||||
let is_failed_payment =
|
||||
@ -197,6 +199,7 @@ pub async fn generate_sample_data(
|
||||
request_incremental_authorization: Default::default(),
|
||||
incremental_authorization_allowed: Default::default(),
|
||||
authorization_count: Default::default(),
|
||||
session_expiry: Some(session_expiry),
|
||||
};
|
||||
let payment_attempt = PaymentAttemptBatchNew {
|
||||
attempt_id: attempt_id.clone(),
|
||||
|
||||
Reference in New Issue
Block a user