mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
refactor(router): store network_transaction_id for off_session payments irrespective of the is_connector_agnostic_mit_enabled config (#7083)
Co-authored-by: Gnanasundari24 <118818938+Gnanasundari24@users.noreply.github.com> Co-authored-by: Pa1NarK <69745008+pixincreate@users.noreply.github.com>
This commit is contained in:
@ -111,12 +111,11 @@ where
|
||||
};
|
||||
|
||||
let network_transaction_id =
|
||||
if let Some(network_transaction_id) = network_transaction_id {
|
||||
if business_profile.is_connector_agnostic_mit_enabled == Some(true)
|
||||
&& save_payment_method_data.request.get_setup_future_usage()
|
||||
== Some(storage_enums::FutureUsage::OffSession)
|
||||
{
|
||||
Some(network_transaction_id)
|
||||
if save_payment_method_data.request.get_setup_future_usage()
|
||||
== Some(storage_enums::FutureUsage::OffSession)
|
||||
{
|
||||
if network_transaction_id.is_some() {
|
||||
network_transaction_id
|
||||
} else {
|
||||
logger::info!("Skip storing network transaction id");
|
||||
None
|
||||
|
||||
Reference in New Issue
Block a user