Skip to content

Commit

Permalink
fix(connectors): [worldpay] send decoded token for ApplePay (#7069)
Browse files Browse the repository at this point in the history
  • Loading branch information
kashif-m authored Jan 22, 2025
1 parent c02c4e8 commit d53ade2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ use super::{requests::*, response::*};
use crate::{
types::ResponseRouterData,
utils::{
self, AddressData, CardData, ForeignTryFrom, PaymentsAuthorizeRequestData,
self, AddressData, ApplePay, CardData, ForeignTryFrom, PaymentsAuthorizeRequestData,
PaymentsSetupMandateRequestData, RouterData as RouterDataTrait,
},
};
Expand Down Expand Up @@ -150,7 +150,7 @@ fn fetch_payment_instrument(
})),
WalletData::ApplePay(data) => Ok(PaymentInstrument::Applepay(WalletPayment {
payment_type: PaymentType::Encrypted,
wallet_token: Secret::new(data.payment_data),
wallet_token: data.get_applepay_decoded_payment_data()?,
..WalletPayment::default()
})),
WalletData::AliPayQr(_)
Expand Down

0 comments on commit d53ade2

Please sign in to comment.