@@ -1270,26 +1270,30 @@ impl<F: Clone + Send + Sync> Domain<F, api::PaymentsRequest, PaymentData<F>> for
1270
1270
) ?;
1271
1271
ClickToPay :: pre_authentication (
1272
1272
state,
1273
- key_store ,
1274
- business_profile ,
1275
- payment_data,
1273
+ & payment_data . payment_attempt . merchant_id ,
1274
+ Some ( & payment_data . payment_intent . payment_id ) ,
1275
+ payment_data. payment_method_data . as_ref ( ) ,
1276
1276
& helpers:: MerchantConnectorAccountType :: DbVal ( Box :: new ( connector_mca. clone ( ) ) ) ,
1277
1277
& connector_mca. connector_name ,
1278
1278
& authentication_id,
1279
1279
payment_method,
1280
+ payment_data. payment_intent . amount ,
1281
+ payment_data. payment_intent . currency ,
1282
+ payment_data. service_details . clone ( ) ,
1280
1283
)
1281
1284
. await ?;
1282
1285
1283
1286
payment_data. payment_attempt . authentication_id = Some ( authentication_id. clone ( ) ) ;
1284
1287
let response = ClickToPay :: post_authentication (
1285
1288
state,
1286
- key_store,
1287
1289
business_profile,
1288
- payment_data,
1290
+ Some ( & payment_data. payment_intent . payment_id ) ,
1289
1291
& helpers:: MerchantConnectorAccountType :: DbVal ( Box :: new ( connector_mca. clone ( ) ) ) ,
1290
1292
& connector_mca. connector_name ,
1293
+ & authentication_id,
1291
1294
payment_method,
1292
- None ,
1295
+ & payment_data. payment_intent . merchant_id ,
1296
+ None
1293
1297
)
1294
1298
. await ?;
1295
1299
let ( network_token, authentication_status) = match response. response . clone ( ) {
@@ -1399,10 +1403,16 @@ impl<F: Clone + Send + Sync> Domain<F, api::PaymentsRequest, PaymentData<F>> for
1399
1403
state,
1400
1404
key_store,
1401
1405
business_profile,
1402
- payment_data,
1406
+ payment_data. payment_attempt . authentication_id . as_ref ( ) ,
1407
+ payment_data. payment_intent . currency ,
1408
+ payment_data. payment_attempt . status ,
1409
+ payment_data. service_details . clone ( ) ,
1403
1410
& helpers:: MerchantConnectorAccountType :: DbVal ( Box :: new ( connector_mca. clone ( ) ) ) ,
1404
1411
& connector_mca. connector_name ,
1405
1412
payment_method,
1413
+ payment_data. payment_attempt . net_amount . get_order_amount ( ) ,
1414
+ Some ( & payment_data. payment_intent . payment_id ) ,
1415
+ merchant_id,
1406
1416
)
1407
1417
. await ?
1408
1418
} ,
@@ -1433,15 +1443,18 @@ impl<F: Clone + Send + Sync> Domain<F, api::PaymentsRequest, PaymentData<F>> for
1433
1443
1434
1444
let pre_auth_response = uas_utils:: types:: ExternalAuthentication :: pre_authentication (
1435
1445
state,
1436
- key_store ,
1437
- business_profile ,
1438
- payment_data,
1446
+ & payment_data . payment_attempt . merchant_id ,
1447
+ Some ( & payment_data . payment_intent . payment_id ) ,
1448
+ payment_data. payment_method_data . as_ref ( ) ,
1439
1449
& three_ds_connector_account,
1440
1450
& authentication_connector_name,
1441
1451
& authentication. authentication_id ,
1442
1452
payment_data. payment_attempt . payment_method . ok_or (
1443
1453
errors:: ApiErrorResponse :: InternalServerError
1444
1454
) . attach_printable ( "payment_method not found in payment_attempt" ) ?,
1455
+ payment_data. payment_intent . amount ,
1456
+ payment_data. payment_intent . currency ,
1457
+ payment_data. service_details . clone ( )
1445
1458
) . await ?;
1446
1459
let updated_authentication = uas_utils:: utils:: external_authentication_update_trackers (
1447
1460
state,
@@ -1511,15 +1524,16 @@ impl<F: Clone + Send + Sync> Domain<F, api::PaymentsRequest, PaymentData<F>> for
1511
1524
let updated_authentication = if !authentication. authentication_status . is_terminal_status ( ) && is_pull_mechanism_enabled {
1512
1525
let post_auth_response = uas_utils:: types:: ExternalAuthentication :: post_authentication (
1513
1526
state,
1514
- key_store,
1515
1527
business_profile,
1516
- payment_data,
1528
+ Some ( & payment_data. payment_intent . payment_id ) ,
1517
1529
& three_ds_connector_account,
1518
1530
& authentication_connector. to_string ( ) ,
1531
+ & authentication. authentication_id ,
1519
1532
payment_data. payment_attempt . payment_method . ok_or (
1520
1533
errors:: ApiErrorResponse :: InternalServerError
1521
1534
) . attach_printable ( "payment_method not found in payment_attempt" ) ?,
1522
- Some ( authentication. clone ( ) ) ,
1535
+ & payment_data. payment_intent . merchant_id ,
1536
+ Some ( & authentication) ,
1523
1537
) . await ?;
1524
1538
uas_utils:: utils:: external_authentication_update_trackers (
1525
1539
state,
0 commit comments