[Snippet rust]
```rust
fn get_card_discovery_for_card_payment_method(&self) -> Option<common_enums::CardDiscovery> {
        match self.payment_attempt.payment_method {
            Some(storage_enums::PaymentMethod::Card) => {
                if self
                    .token_data
```
Path: hyperswitch/crates/router/src/core/payments.rs :: get_card_discovery_for_card_payment_method (function, crate=router)

Negatives:
- hyperswitch/crates/test_utils/tests/connectors/stripe_ui.rs :: should_make_stripe_bancontact_card_redirect_payment_test
- hyperswitch/crates/router/src/routes/user.rs :: get_sso_auth_url
- hyperswitch/crates/router/src/core/revenue_recovery/transformers.rs :: foreign_from
- hyperswitch/crates/hyperswitch_connectors/src/connectors/plaid/transformers.rs :: try_from
- hyperswitch/crates/router/tests/connectors/wise.rs :: get_auth_token