Skip to content

Commit 85df47b

Browse files
committed
fix: accept Optional Profile id in authorize_verify_select
1 parent 91062b8 commit 85df47b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

crates/router/src/routes/payments.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ pub async fn payments_create(
130130
state,
131131
req_state,
132132
auth.merchant_account,
133+
None,
133134
auth.key_store,
134135
HeaderPayload::default(),
135136
req,
@@ -422,6 +423,7 @@ pub async fn payments_update(
422423
state,
423424
req_state,
424425
auth.merchant_account,
426+
None,
425427
auth.key_store,
426428
HeaderPayload::default(),
427429
req,
@@ -500,6 +502,7 @@ pub async fn payments_confirm(
500502
state,
501503
req_state,
502504
auth.merchant_account,
505+
None,
503506
auth.key_store,
504507
header_payload.clone(),
505508
req,
@@ -1176,6 +1179,7 @@ async fn authorize_verify_select<Op>(
11761179
state: app::SessionState,
11771180
req_state: ReqState,
11781181
merchant_account: domain::MerchantAccount,
1182+
profile_id: Option<String>,
11791183
key_store: domain::MerchantKeyStore,
11801184
header_payload: HeaderPayload,
11811185
req: api_models::payments::PaymentsRequest,
@@ -1211,7 +1215,7 @@ where
12111215
state,
12121216
req_state,
12131217
merchant_account,
1214-
None,
1218+
profile_id,
12151219
key_store,
12161220
operation,
12171221
req,
@@ -1232,7 +1236,7 @@ where
12321236
state,
12331237
req_state,
12341238
merchant_account,
1235-
None,
1239+
profile_id,
12361240
key_store,
12371241
operation,
12381242
req,

0 commit comments

Comments
 (0)