mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 01:27:31 +08:00
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:
@ -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(
|
||||
|
||||
Reference in New Issue
Block a user