In the PaymentMethodTokenization Flow which is at the Connector level, added support for Cards in that flow. Also for Stripe Split Payments, Stripe Connect Account should get passed in the headers of Create Customer Flow which is Stripe specific. 
Also in the CreateCustomer flow of Stripe, if the charge type is Direct then we would be creating the customer at the Connected Account - hence passing Stripe Connect Account ID in that case.
To implement this **search_filter** feature, you'll need to modify these architectural layers:


**1. Domain Models (Business Logic Types)**
   - `crates/hyperswitch_domain_models/src/router_request_types.rs`

**2. Core Business Logic**
   - `crates/router/src/core/payment_methods.rs`
   - `crates/router/src/core/payments.rs`

**3. External Connector Integration**
   - `crates/hyperswitch_connectors/src/connectors/stripe.rs`
   - `crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs`
   - `crates/router/tests/connectors/square.rs`
   - ... and 2 more files

**Code Patterns Applied:**
- Define new data structures (1 changes)
- Extend existing types with new fields (72 changes)
- Add conditional logic for feature flags or filtering (6 changes)

**Detailed Identifier Changes:**


Commit 81292602:
Files to modify:


**crates/hyperswitch_connectors/src/connectors/stripe.rs**
  Modify existing code

**crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs**
  Modify existing code

**crates/hyperswitch_domain_models/src/router_request_types.rs**
  Modify existing code

**crates/router/src/core/payment_methods.rs**
  Modify existing code

**crates/router/src/core/payments.rs**
  Modify existing code

**crates/router/tests/connectors/square.rs**
  Modify existing code

**crates/router/tests/connectors/stax.rs**
  Modify existing code

**crates/router/tests/connectors/utils.rs**
  Modify existing code
{"pr_number": 8248, "pr_title": "feat(connector): [STRIPE] Added Connector Tokenization Flow for Cards", "merged_at": "2025-06-07T14:48:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_request_types.rs"], "core_business": ["crates/router/src/core/payment_methods.rs", "crates/router/src/core/payments.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/stripe.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs", "crates/router/tests/connectors/square.rs", "crates/router/tests/connectors/stax.rs", "crates/router/tests/connectors/utils.rs"]}, "change_types": {"structs_added": 1, "fields_added": 72, "imports_added": 1, "conditionals_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}