Bug: Fix: Validation failing in payment method session - confirm when payment_method_subtype is card



Endpoint is returning error code 422 with message "Invalid payment_method_type provided"
diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rs
index acdc8870285..37c3ade1018 100644
--- a/crates/router/src/core/payments/helpers.rs
+++ b/crates/router/src/core/payments/helpers.rs
@@ -2947,10 +2947,18 @@ pub fn validate_payment_method_type_against_payment_method(
     payment_method_type: api_enums::PaymentMethodType,
 ) -> bool {
     match payment_method {
+        #[cfg(feature = "v1")]
         api_enums::PaymentMethod::Card => matches!(
             payment_method_type,
             api_enums::PaymentMethodType::Credit | api_enums::PaymentMethodType::Debit
         ),
+        #[cfg(feature = "v2")]
+        api_enums::PaymentMethod::Card => matches!(
+            payment_method_type,
+            api_enums::PaymentMethodType::Credit
+                | api_enums::PaymentMethodType::Debit
+                | api_enums::PaymentMethodType::Card
+        ),
         api_enums::PaymentMethod::PayLater => matches!(
             payment_method_type,
             api_enums::PaymentMethodType::Affirm

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
In the helper function `validate_payment_method_type_against_payment_method` added `Card` as a valid `PaymentMethodType` when `PaymentMethod` is `Card`

### Additional Changes

- [ ] This PR modifies the API contract
- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<!--
Provide links to the files with corresponding changes.

Following are the paths where you can find config files:
1. `config`
2. `crates/router/src/configs`
3. `loadtest/config`
-->


## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.

If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless it is an obvious bug or documentation fix
that will have little conversation).
-->
We need to support `card` as a `payment_method_subtype`



## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->

Request:

```
curl --location 'http://localhost:8080/v2/payment-methods-session/12345_pms_01967bcef78f75a08017231cb1264185/confirm' \
--header 'x-profile-id: pro_tvEpY9HoDhpoef5zuFhB' \
--header 'Authorization: publishable-key=pk_dev_cebd8389548b40edba3e0046680b54e8,client-secret=cs_01967bcef78f75a08017232bf96065e5' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_3Je4VFrKJME1ETnyOu3TSzTSfwEz6lTef5BzJkeIWQFeZHhxzfa8KE1gZ0zDApCR' \
--data '{
    "payment_method_data": {
        "card": {
            "card_number": "4000056655665556",
            "card_exp_month": "06",
            "card_exp_year": "25",
            "card_holder_name": "Hyperswitch",
            "card_cvc": "123"
        }
    },
    "payment_method_type": "card",
    "payment_method_subtype": "card"
}'
```

Response:

```json
{
    "id": "12345_pms_01967bcef78f75a08017231cb1264185",
    "customer_id": "12345_cus_01967bcee4b87d0197fd5aa532ed7703",
    "billing": {
        "address": {
            "city": null,
            "country": null,
            "line1": null,
            "line2": null,
            "line3": null,
            "zip": null,
            "state": null,
            "first_name": "John",
            "last_name": "Dough"
        },
        "phone": null,
        "email": "example@example.com"
    },
    "psp_tokenization": {
        "tokenization_type": "multi_use",
        "connector_id": "mca_ugK10PaJlQ4K6hxDx8SB"
    },
    "network_tokenization": null,
    "expires_at": "2025-04-28T10:06:23.536Z",
    "client_secret": "CLIENT_SECRET_REDACTED",
    "return_url": null,
    "next_action": null,
    "authentication_details": {
        "status": "succeeded",
        "error": null
    },
    "associated_payment_methods": null
}
```

## Checklist
<!-- Put an `x` in the boxes that apply -->

- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
