Skip to content

Commit

Permalink
refactor: off session
Browse files Browse the repository at this point in the history
  • Loading branch information
swangi-kumari committed Dec 20, 2024
1 parent 7599a17 commit 08e2fe7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions crates/router/src/connector/stripe/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1708,7 +1708,6 @@ impl TryFrom<(&types::PaymentsAuthorizeRouterData, MinorUnit)> for PaymentIntent
payment_method,
billing_address,
payment_method_types,
off_session,
setup_future_usage,
) = {
match item
Expand All @@ -1724,7 +1723,6 @@ impl TryFrom<(&types::PaymentsAuthorizeRouterData, MinorUnit)> for PaymentIntent
connector_mandate_ids.get_connector_mandate_id(),
StripeBillingAddress::default(),
get_payment_method_type_for_saved_payment_method_payment(item)?,
Some(true),
None,
),
Some(api_models::payments::MandateReferenceId::NetworkMandateId(
Expand Down Expand Up @@ -1791,7 +1789,6 @@ impl TryFrom<(&types::PaymentsAuthorizeRouterData, MinorUnit)> for PaymentIntent
None,
StripeBillingAddress::default(),
None,
Some(true),
None,
)
}
Expand All @@ -1817,7 +1814,6 @@ impl TryFrom<(&types::PaymentsAuthorizeRouterData, MinorUnit)> for PaymentIntent
None,
billing_address,
payment_method_type,
item.request.off_session,
item.request.setup_future_usage,
)
}
Expand Down Expand Up @@ -1981,7 +1977,7 @@ impl TryFrom<(&types::PaymentsAuthorizeRouterData, MinorUnit)> for PaymentIntent
payment_method,
customer,
setup_mandate_details,
off_session,
off_session: item.request.off_session,
setup_future_usage,
payment_method_types,
expand: Some(ExpandableObjects::LatestCharge),
Expand Down

0 comments on commit 08e2fe7

Please sign in to comment.