@@ -576,7 +576,7 @@ impl<F: Clone> PostUpdateTracker<F, PaymentData<F>, types::PaymentsSyncData> for
576
576
merchant_account : & domain:: MerchantAccount ,
577
577
key_store : & domain:: MerchantKeyStore ,
578
578
payment_data : & mut PaymentData < F > ,
579
- business_profile : & domain:: Profile ,
579
+ _business_profile : & domain:: Profile ,
580
580
) -> CustomResult < ( ) , errors:: ApiErrorResponse >
581
581
where
582
582
F : ' b + Clone + Send + Sync ,
@@ -617,7 +617,6 @@ impl<F: Clone> PostUpdateTracker<F, PaymentData<F>, types::PaymentsSyncData> for
617
617
resp. status ,
618
618
resp. response . clone ( ) ,
619
619
merchant_account. storage_scheme ,
620
- business_profile. is_connector_agnostic_mit_enabled ,
621
620
)
622
621
. await ?;
623
622
Ok ( ( ) )
@@ -1201,7 +1200,7 @@ impl<F: Clone> PostUpdateTracker<F, PaymentData<F>, types::CompleteAuthorizeData
1201
1200
merchant_account : & domain:: MerchantAccount ,
1202
1201
key_store : & domain:: MerchantKeyStore ,
1203
1202
payment_data : & mut PaymentData < F > ,
1204
- business_profile : & domain:: Profile ,
1203
+ _business_profile : & domain:: Profile ,
1205
1204
) -> CustomResult < ( ) , errors:: ApiErrorResponse >
1206
1205
where
1207
1206
F : ' b + Clone + Send + Sync ,
@@ -1241,7 +1240,6 @@ impl<F: Clone> PostUpdateTracker<F, PaymentData<F>, types::CompleteAuthorizeData
1241
1240
resp. status ,
1242
1241
resp. response . clone ( ) ,
1243
1242
merchant_account. storage_scheme ,
1244
- business_profile. is_connector_agnostic_mit_enabled ,
1245
1243
)
1246
1244
. await ?;
1247
1245
Ok ( ( ) )
@@ -2068,7 +2066,6 @@ async fn update_payment_method_status_and_ntid<F: Clone>(
2068
2066
attempt_status : common_enums:: AttemptStatus ,
2069
2067
payment_response : Result < types:: PaymentsResponseData , ErrorResponse > ,
2070
2068
storage_scheme : enums:: MerchantStorageScheme ,
2071
- is_connector_agnostic_mit_enabled : Option < bool > ,
2072
2069
) -> RouterResult < ( ) > {
2073
2070
todo ! ( )
2074
2071
}
@@ -2084,7 +2081,6 @@ async fn update_payment_method_status_and_ntid<F: Clone>(
2084
2081
attempt_status : common_enums:: AttemptStatus ,
2085
2082
payment_response : Result < types:: PaymentsResponseData , ErrorResponse > ,
2086
2083
storage_scheme : enums:: MerchantStorageScheme ,
2087
- is_connector_agnostic_mit_enabled : Option < bool > ,
2088
2084
) -> RouterResult < ( ) > {
2089
2085
// If the payment_method is deleted then ignore the error related to retrieving payment method
2090
2086
// This should be handled when the payment method is soft deleted
@@ -2119,20 +2115,18 @@ async fn update_payment_method_status_and_ntid<F: Clone>(
2119
2115
} )
2120
2116
. ok ( )
2121
2117
. flatten ( ) ;
2122
- let network_transaction_id =
2123
- if let Some ( network_transaction_id) = pm_resp_network_transaction_id {
2124
- if is_connector_agnostic_mit_enabled == Some ( true )
2125
- && payment_data. payment_intent . setup_future_usage
2126
- == Some ( diesel_models:: enums:: FutureUsage :: OffSession )
2127
- {
2128
- Some ( network_transaction_id)
2129
- } else {
2130
- logger:: info!( "Skip storing network transaction id" ) ;
2131
- None
2132
- }
2118
+ let network_transaction_id = if payment_data. payment_intent . setup_future_usage
2119
+ == Some ( diesel_models:: enums:: FutureUsage :: OffSession )
2120
+ {
2121
+ if pm_resp_network_transaction_id. is_some ( ) {
2122
+ pm_resp_network_transaction_id
2133
2123
} else {
2124
+ logger:: info!( "Skip storing network transaction id" ) ;
2134
2125
None
2135
- } ;
2126
+ }
2127
+ } else {
2128
+ None
2129
+ } ;
2136
2130
2137
2131
let pm_update = if payment_method. status != common_enums:: PaymentMethodStatus :: Active
2138
2132
&& payment_method. status != attempt_status. into ( )
0 commit comments