chore(release): port release bug fixes to main branch (#612)

Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in>
Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
Co-authored-by: ItsMeShashank <shashank.attarde@juspay.in>
Co-authored-by: Sanchith Hegde <22217505+SanchithHegde@users.noreply.github.com>
This commit is contained in:
Sampras Lopes
2023-02-17 18:15:45 +05:30
committed by GitHub
parent effa7a00e9
commit a8d6ce836a
2 changed files with 61 additions and 8 deletions

View File

@ -109,13 +109,18 @@ where
)
.await?;
let connector_details = route_connector(
state,
&merchant_account,
&mut payment_data,
connector_details,
)
.await?;
let connector = match should_call_connector(&operation, &payment_data) {
true => Some(
route_connector(
state,
&merchant_account,
&mut payment_data,
connector_details,
)
.await?,
),
false => None,
};
let (operation, mut payment_data) = operation
.to_update_tracker()?
@ -133,7 +138,7 @@ where
.add_task_to_process_tracker(state, &payment_data.payment_attempt)
.await?;
if should_call_connector(&operation, &payment_data) {
if let Some(connector_details) = connector {
payment_data = match connector_details {
api::ConnectorCallType::Single(connector) => {
call_connector_service(