mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
feat(payments): propagate additional payment method data for google pay during MIT (#6644)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
use api_models::{
|
||||
mandates,
|
||||
mandates, payment_methods,
|
||||
payments::{additional_info as payment_additional_types, ExtendedCardInfo},
|
||||
};
|
||||
use common_enums::enums as api_enums;
|
||||
@ -1708,3 +1708,13 @@ impl From<Card> for ExtendedCardInfo {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<GooglePayWalletData> for payment_methods::PaymentMethodDataWalletInfo {
|
||||
fn from(item: GooglePayWalletData) -> Self {
|
||||
Self {
|
||||
last4: item.info.card_details,
|
||||
card_network: item.info.card_network,
|
||||
card_type: item.pm_type,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user