@@ -152,15 +152,6 @@ where
152
152
)
153
153
. await ?;
154
154
155
- let updated_customer = call_create_connector_customer_if_required (
156
- state,
157
- & customer,
158
- & merchant_account,
159
- & key_store,
160
- & mut payment_data,
161
- )
162
- . await ?;
163
-
164
155
let mut connector_http_status_code = None ;
165
156
166
157
if let Some ( connector_details) = connector {
@@ -175,7 +166,6 @@ where
175
166
& mut payment_data,
176
167
& customer,
177
168
call_connector_action,
178
- updated_customer,
179
169
& validate_result,
180
170
schedule_time,
181
171
header_payload,
@@ -234,7 +224,7 @@ where
234
224
payment_data. clone ( ) ,
235
225
customer. clone ( ) ,
236
226
validate_result. storage_scheme ,
237
- updated_customer ,
227
+ None ,
238
228
& key_store,
239
229
None ,
240
230
header_payload,
@@ -567,7 +557,6 @@ pub async fn call_connector_service<F, RouterDReq, ApiRequest>(
567
557
payment_data : & mut PaymentData < F > ,
568
558
customer : & Option < domain:: Customer > ,
569
559
call_connector_action : CallConnectorAction ,
570
- updated_customer : Option < storage:: CustomerUpdate > ,
571
560
validate_result : & operations:: ValidateResult < ' _ > ,
572
561
schedule_time : Option < time:: PrimitiveDateTime > ,
573
562
header_payload : HeaderPayload ,
@@ -604,6 +593,15 @@ where
604
593
)
605
594
. await ?;
606
595
596
+ let updated_customer = call_create_connector_customer_if_required (
597
+ state,
598
+ customer,
599
+ merchant_account,
600
+ key_store,
601
+ payment_data,
602
+ )
603
+ . await ?;
604
+
607
605
let ( pd, tokenization_action) = get_connector_tokenization_action_when_confirm_true (
608
606
state,
609
607
operation,
@@ -883,9 +881,6 @@ where
883
881
// To construct connector flow specific api
884
882
dyn api:: Connector :
885
883
services:: api:: ConnectorIntegration < F , Req , router_types:: PaymentsResponseData > ,
886
-
887
- // To perform router related operation for PaymentResponse
888
- PaymentResponse : Operation < F , Req > ,
889
884
{
890
885
let connector_name = payment_data. payment_attempt . connector . clone ( ) ;
891
886
0 commit comments