mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 21:37:41 +08:00
feat(router): add support for googlepay step up flow (#2744)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Prasunna Soppa <prasunna.soppa@juspay.in> Co-authored-by: Prasunna Soppa <70575890+prasunna09@users.noreply.github.com> Co-authored-by: sai-harsha-vardhan <harsha111hero@gmail.com> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -206,6 +206,17 @@ pub struct GooglePayPaymentMethodInfo {
|
||||
pub card_network: String,
|
||||
/// The details of the card
|
||||
pub card_details: String,
|
||||
//assurance_details of the card
|
||||
pub assurance_details: Option<GooglePayAssuranceDetails>,
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub struct GooglePayAssuranceDetails {
|
||||
///indicates that Cardholder possession validation has been performed
|
||||
pub card_holder_authenticated: bool,
|
||||
/// indicates that identification and verifications (ID&V) was performed
|
||||
pub account_verified: bool,
|
||||
}
|
||||
|
||||
#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize)]
|
||||
@ -623,6 +634,12 @@ impl From<api_models::payments::GooglePayWalletData> for GooglePayWalletData {
|
||||
info: GooglePayPaymentMethodInfo {
|
||||
card_network: value.info.card_network,
|
||||
card_details: value.info.card_details,
|
||||
assurance_details: value.info.assurance_details.map(|info| {
|
||||
GooglePayAssuranceDetails {
|
||||
card_holder_authenticated: info.card_holder_authenticated,
|
||||
account_verified: info.account_verified,
|
||||
}
|
||||
}),
|
||||
},
|
||||
tokenization_data: GpayTokenizationData {
|
||||
token_type: value.tokenization_data.token_type,
|
||||
|
||||
Reference in New Issue
Block a user