File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed
crates/hyperswitch_connectors/src/connectors/worldpayvantiv Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -530,7 +530,7 @@ impl TryFrom<&WorldpayvantivRouterData<&PaymentsAuthorizeRouterData>> for CnpOnl
530
530
} ) ?
531
531
} ;
532
532
533
- let ( card, cardholder_authentication) = get_vantiv_card_data ( & item) ?;
533
+ let ( card, cardholder_authentication) = get_vantiv_card_data ( item) ?;
534
534
let report_group = item
535
535
. router_data
536
536
. request
@@ -627,14 +627,11 @@ impl TryFrom<&WorldpayvantivRouterData<&PaymentsAuthorizeRouterData>> for CnpOnl
627
627
628
628
impl From < & WorldpayvantivRouterData < & PaymentsAuthorizeRouterData > > for OrderSource {
629
629
fn from ( item : & WorldpayvantivRouterData < & PaymentsAuthorizeRouterData > ) -> Self {
630
- if let PaymentMethodData :: Wallet ( wallet_data) =
631
- & item. router_data . request . payment_method_data
630
+ if let PaymentMethodData :: Wallet (
631
+ hyperswitch_domain_models:: payment_method_data:: WalletData :: ApplePay ( _) ,
632
+ ) = & item. router_data . request . payment_method_data
632
633
{
633
- if let hyperswitch_domain_models:: payment_method_data:: WalletData :: ApplePay ( _) =
634
- wallet_data
635
- {
636
- return OrderSource :: ApplePay ;
637
- }
634
+ return Self :: ApplePay ;
638
635
}
639
636
640
637
match item. router_data . request . payment_channel {
You can’t perform that action at this time.
0 commit comments