refactor(core): authenticate client secret with fulfilment time (#2026)

This commit is contained in:
Prajjwal Kumar
2023-08-27 19:47:47 +05:30
committed by GitHub
parent 6247996dde
commit 1e44c8df1e
6 changed files with 53 additions and 21 deletions

View File

@@ -24,7 +24,6 @@ pub use self::operations::{
};
use self::{
flows::{ConstructFlowSpecificData, Feature},
helpers::authenticate_client_secret,
operations::{payment_complete_authorize, BoxedOperation, Operation},
};
use super::errors::StorageErrorExt;
@@ -91,12 +90,6 @@ where
)
.await?;
authenticate_client_secret(
req.get_client_secret(),
&payment_data.payment_intent,
merchant_account.intent_fulfillment_time,
)?;
let (operation, customer) = operation
.to_domain()?
.get_or_create_customer_details(