prompt
stringlengths 6
90.9k
| response
stringlengths 121
18.6k
| metadata
stringlengths 314
42.3k
|
|---|---|---|
<!-- Describe your changes in detail -->
Nomupay is not added in `connector_customer` for `payout_connector_list` for different environments, that's why payouts cypress test is failing for nomupay in integ.
Nomupay added in `payout_connector_list` for all environment
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**2. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 1 more files
|
{"pr_number": 7521, "pr_title": "fix(connector): add Nomupay in payout_connector_list for all environment", "merged_at": "2025-03-25T07:19:52Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "user", "connector"]}, "hierarchy": {"tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/docker_compose.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Earlier we used to store the connector mandate id irrespective of the payments status being charged or not for 3DS flows, now we would handle the connector_mandate_id updation in payment_method once and only if the payment has a status as charged.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/payment_attempt.rs`
- `crates/diesel_models/src/schema.rs`
- `crates/diesel_models/src/schema_v2.rs`
- ... and 1 more files
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments/helpers.rs`
- `crates/router/src/core/payments/operations/payment_confirm.rs`
- `crates/router/src/core/payments/operations/payment_create.rs`
- ... and 5 more files
**4. External Connector Integration**
- `migrations/2024-10-13-182546_add_connector_mandate_id_in_payment_attempt/down.sql`
- `migrations/2024-10-13-182546_add_connector_mandate_id_in_payment_attempt/up.sql`
**5. Type Definitions**
- `crates/router/src/types/storage/payment_attempt.rs`
- `crates/router/src/types/storage/payment_method.rs`
**6. Utils**
- `crates/router/src/utils/user/sample_data.rs`
**7. Other**
- `crates/common_enums/src/enums.rs`
- `crates/storage_impl/src/mock_db/payment_attempt.rs`
- `crates/storage_impl/src/payments/payment_attempt.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (5 changes)
- Extend existing types with new fields (88 changes)
- Add conditional logic for feature flags or filtering (6 changes)
**Detailed Identifier Changes:**
Commit e14a0fe8:
Files to modify:
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/diesel_models/src/payment_attempt.rs**
Modify existing code
**crates/diesel_models/src/schema.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/diesel_models/src/user/sample_data.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_response.rs**
Modify existing code
**crates/router/src/core/payments/retry.rs**
Modify existing code
**crates/router/src/core/payments/tokenization.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/webhooks/incoming.rs**
Modify existing code
**crates/router/src/types/storage/payment_attempt.rs**
Modify existing code
**crates/router/src/types/storage/payment_method.rs**
Modify existing code
**crates/router/src/utils/user/sample_data.rs**
Modify existing code
**crates/storage_impl/src/mock_db/payment_attempt.rs**
Modify existing code
**crates/storage_impl/src/payments/payment_attempt.rs**
Modify existing code
|
{"pr_number": 6327, "pr_title": "fix(mandates): handle the connector_mandate creation once and only if the payment is charged", "merged_at": "2024-10-17T13:59:13Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"database": ["crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs", "crates/diesel_models/src/user/sample_data.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_attempt.rs"], "core_business": ["crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/retry.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/webhooks/incoming.rs"], "connectors": ["migrations/2024-10-13-182546_add_connector_mandate_id_in_payment_attempt/down.sql", "migrations/2024-10-13-182546_add_connector_mandate_id_in_payment_attempt/up.sql"], "types": ["crates/router/src/types/storage/payment_attempt.rs", "crates/router/src/types/storage/payment_method.rs"], "utils": ["crates/router/src/utils/user/sample_data.rs"], "other": ["crates/common_enums/src/enums.rs", "crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/payments/payment_attempt.rs"]}, "change_types": {"structs_added": 1, "functions_added": 5, "enums_added": 1, "fields_added": 88, "imports_added": 4, "conditionals_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
The metadata fields should have currency_id and platform_id as numbers, not strings for coingate
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/connector_configs/src/common_config.rs`
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- ... and 1 more files
|
{"pr_number": 7716, "pr_title": "fix(connector): [Coingate] Fix Wasm Changes ", "merged_at": "2025-04-04T10:34:59Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"connectors": ["crates/connector_configs/src/common_config.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR adds a check to verify if the `payment_status` is not any of `succeeded`, `partially_captured` or `requires_capture` and if so, then the `connector_mandate_id` should be `null`.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/spec/Payment/00024-ConnectorAgnosticNTID.cy.js`
- `cypress-tests/cypress/support/commands.js`
**Code Patterns Applied:**
- Add conditional logic for feature flags or filtering (4 changes)
|
{"pr_number": 7749, "pr_title": "ci(cypress): verify mandate id to be `null` if payment id not `succeeded`", "merged_at": "2025-04-16T10:47:24Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/spec/Payment/00024-ConnectorAgnosticNTID.cy.js", "cypress-tests/cypress/support/commands.js"]}, "change_types": {"conditionals_added": 4}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Added details feature api details for Jpmorgan, Payu, Digital Virgo.
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/bitpay.rs`
- `crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs`
- `crates/hyperswitch_connectors/src/connectors/helcim.rs`
- ... and 3 more files
**2. Tests**
- `config/deployments/integration_test.toml`
**3. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Implement new functions (18 changes)
- Extend existing types with new fields (90 changes)
- Modify database queries (4 changes)
**Detailed Identifier Changes:**
Commit c92b9661:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/bitpay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/helcim.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/jpmorgan.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/paybox.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/payu.rs**
Modify existing code
|
{"pr_number": 7148, "pr_title": "feat(connector): [JPMORGAN, PAYU, DIGITALVIRGO, PAYBOX, BITPAY, HELCIM] added in feature matrix api", "merged_at": "2025-02-25T19:48:48Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "merchant", "refund"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/bitpay.rs", "crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs", "crates/hyperswitch_connectors/src/connectors/helcim.rs", "crates/hyperswitch_connectors/src/connectors/jpmorgan.rs", "crates/hyperswitch_connectors/src/connectors/paybox.rs", "crates/hyperswitch_connectors/src/connectors/payu.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"functions_added": 18, "fields_added": 90, "imports_added": 7, "database_queries": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR contains -
- Ephemeral auth support for v2 (including resource type product identifier)
- Minor Fixes for Payment methods v2 CRUD APIs
- Removed Client secret auth from PaymentMethod CRUD APIs
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/ephemeral_key.rs`
- `crates/api_models/src/payment_methods.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/ephemeral_key.rs`
- `crates/diesel_models/src/payment_method.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payments.rs`
**4. Core Business Logic**
- `crates/router/src/core/payment_methods.rs`
- `crates/router/src/core/payment_methods/transformers.rs`
- `crates/router/src/core/payment_methods/vault.rs`
- ... and 1 more files
**5. Type Definitions**
- `crates/router/src/types/payment_methods.rs`
- `crates/router/src/types/storage/ephemeral_key.rs`
**6. Utils**
- `crates/common_utils/src/events.rs`
- `crates/common_utils/src/id_type.rs`
- `crates/common_utils/src/id_type/ephemeral_key.rs`
**7. Other**
- `api-reference-v2/openapi_spec.json`
- `crates/router/src/consts.rs`
- `crates/router/src/db/ephemeral_key.rs`
- ... and 6 more files
**Code Patterns Applied:**
- Define new data structures (6 changes)
- Implement new functions (27 changes)
- Extend existing types with new fields (89 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 24401bc1:
Files to modify:
**crates/api_models/src/ephemeral_key.rs**
Modify existing code
**crates/api_models/src/payment_methods.rs**
Modify existing code
**crates/common_utils/src/events.rs**
Modify existing code
**crates/common_utils/src/id_type.rs**
Modify existing code
**crates/common_utils/src/id_type/ephemeral_key.rs**
Modify existing code
**crates/diesel_models/src/ephemeral_key.rs**
Modify existing code
**crates/diesel_models/src/payment_method.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments.rs**
Modify existing code
**crates/router/src/consts.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Modify existing code
**crates/router/src/core/payment_methods/transformers.rs**
Modify existing code
**crates/router/src/core/payment_methods/vault.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/db/ephemeral_key.rs**
Modify existing code
**crates/router/src/db/kafka_store.rs**
Modify existing code
**crates/router/src/lib.rs**
Modify existing code
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/ephemeral_key.rs**
Modify existing code
**crates/router/src/routes/payment_methods.rs**
Modify existing code
**crates/router/src/services/authentication.rs**
Modify existing code
**crates/router/src/types/payment_methods.rs**
Modify existing code
**crates/router/src/types/storage/ephemeral_key.rs**
Modify existing code
|
{"pr_number": 6813, "pr_title": "feat(payment_methods_v2): Added Ephemeral auth for v2", "merged_at": "2024-12-22T18:04:10Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/ephemeral_key.rs", "crates/api_models/src/payment_methods.rs"], "database": ["crates/diesel_models/src/ephemeral_key.rs", "crates/diesel_models/src/payment_method.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments.rs"], "core_business": ["crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/transformers.rs", "crates/router/src/core/payment_methods/vault.rs", "crates/router/src/core/payments/helpers.rs"], "types": ["crates/router/src/types/payment_methods.rs", "crates/router/src/types/storage/ephemeral_key.rs"], "utils": ["crates/common_utils/src/events.rs", "crates/common_utils/src/id_type.rs", "crates/common_utils/src/id_type/ephemeral_key.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/router/src/consts.rs", "crates/router/src/db/ephemeral_key.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/lib.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/ephemeral_key.rs", "crates/router/src/routes/payment_methods.rs", "crates/router/src/services/authentication.rs"]}, "change_types": {"structs_added": 6, "functions_added": 27, "enums_added": 1, "fields_added": 89, "imports_added": 20, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Added `payment_experience` in Payment Method List for Payments Response
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Core Business Logic**
- `crates/router/src/core/payments/payment_methods.rs`
**3. Other**
- `api-reference-v2/openapi_spec.json`
**Code Patterns Applied:**
- Extend existing types with new fields (6 changes)
|
{"pr_number": 8255, "pr_title": "feat(router): Return payment_experience in PML for payment (v2)", "merged_at": "2025-06-05T16:40:31Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "card"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "core_business": ["crates/router/src/core/payments/payment_methods.rs"], "other": ["api-reference-v2/openapi_spec.json"]}, "change_types": {"fields_added": 6}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
#6300 has inconsistent response due to no validations for each field in migration api request body.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_methods/cards.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit b5d3d49c:
Files to modify:
**crates/router/src/core/payment_methods/cards.rs**
Modify existing code
|
{"pr_number": 6525, "pr_title": "fix(router): validate each field for migration request body", "merged_at": "2024-12-06T11:44:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_methods/cards.rs"]}, "change_types": {"fields_added": 2, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Fixed broken API reference for the following endpoints:
- `API Key - Create`
- `API Key - Revoke`
- `Routing - Retrieve`
- `Routing - Activate Config`
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Configuration Files**
- `api-reference/api-reference/routing/routing--activate-config.mdx`
**2. Other**
- `api-reference/api-reference/api-key/api-key--create.mdx`
- `api-reference/api-reference/api-key/api-key--revoke.mdx`
- `api-reference/api-reference/routing/routing--retrieve.mdx`
|
{"pr_number": 6507, "pr_title": "fix(docs): Fix broken pages in API reference", "merged_at": "2024-11-08T13:05:27Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"config": ["api-reference/api-reference/routing/routing--activate-config.mdx"], "other": ["api-reference/api-reference/api-key/api-key--create.mdx", "api-reference/api-reference/api-key/api-key--revoke.mdx", "api-reference/api-reference/routing/routing--retrieve.mdx"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
For adyen incase of reponse update with webhooks, we are hardcoding error code and message to none and while propagating checking whether error code & message is some, This pr fixes this bug .
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/router/src/connector/adyen/transformers.rs`
|
{"pr_number": 6602, "pr_title": "fix(connector): [Adyen]fix error code and message for webhooks response", "merged_at": "2024-11-19T19:36:03Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/router/src/connector/adyen/transformers.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This will remove payment_id from being pushed to dynamic_routing metrics
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/routing/helpers.rs`
|
{"pr_number": 6535, "pr_title": "refactor(routing): remove payment_id from dynamic_routing metrics", "merged_at": "2024-11-12T15:03:43Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/routing/helpers.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
template for unified_authentication_service
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/connector_enums.rs`
**2. Core Business Logic**
- `crates/router/src/core/payments/connector_integration_v2_impls.rs`
- `crates/router/src/core/payments/flows.rs`
**3. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/hyperswitch_connectors/src/connectors.rs`
- `crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs`
- ... and 9 more files
**4. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**5. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**6. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 3 more files
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (78 changes)
- Extend existing types with new fields (154 changes)
**Detailed Identifier Changes:**
Commit 8777f415:
Files to modify:
**crates/api_models/src/connector_enums.rs**
Modify existing code
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/configs.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/src/core/payments/connector_integration_v2_impls.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Modify existing code
**crates/router/tests/connectors/unified_authentication_service.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 6732, "pr_title": "feat(connector): [Unifiedauthenticationservice] add Connector Template Code", "merged_at": "2024-12-10T11:03:06Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"api_models": ["crates/api_models/src/connector_enums.rs"], "core_business": ["crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs", "crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/router/src/connector.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/sample_auth.toml", "crates/router/tests/connectors/unified_authentication_service.rs", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml", "crates/hyperswitch_interfaces/src/configs.rs"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 154, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Added Skrill and iDeal payment methods in `Airwallex`
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
- `crates/api_models/src/payments/additional_info.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payment_method_data.rs`
**3. External Connector Integration**
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- `crates/connector_configs/toml/sandbox.toml`
- ... and 15 more files
**4. Type Definitions**
- `crates/router/src/types/transformers.rs`
**5. Utils**
- `crates/kgraph_utils/src/mca.rs`
- `crates/kgraph_utils/src/transformers.rs`
- `crates/payment_methods/src/helpers.rs`
**6. Tests**
- `config/deployments/integration_test.toml`
- `cypress-tests/cypress/e2e/configs/Payment/Airwallex.js`
- `cypress-tests/cypress/support/redirectionHandler.js`
**7. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**8. Other**
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
- `crates/common_enums/src/enums.rs`
- ... and 4 more files
**Code Patterns Applied:**
- Define new data structures (6 changes)
- Implement new functions (2 changes)
- Extend existing types with new fields (110 changes)
**Detailed Identifier Changes:**
Commit 15d589d2:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/api_models/src/payments/additional_info.rs**
Modify existing code
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/common_enums/src/transformers.rs**
Modify existing code
**crates/euclid/src/frontend/dir/enums.rs**
Modify existing code
**crates/euclid/src/frontend/dir/lowering.rs**
Modify existing code
**crates/euclid/src/frontend/dir/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/adyen.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/airwallex.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/klarna.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/zen/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payment_method_data.rs**
Modify existing code
**crates/kgraph_utils/src/mca.rs**
Modify existing code
**crates/kgraph_utils/src/transformers.rs**
Modify existing code
**crates/payment_methods/src/configs/payment_connector_required_fields.rs**
Modify existing code
**crates/payment_methods/src/helpers.rs**
Modify existing code
**crates/router/src/connector/utils.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 8535, "pr_title": "feat(connector): [AIRWALLEX] Added Ideal & Skrill payment methods ", "merged_at": "2025-07-24T08:11:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs", "crates/api_models/src/payments/additional_info.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_method_data.rs"], "connectors": ["crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/adyen.rs", "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/airwallex.rs", "crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs", "crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs", "crates/hyperswitch_connectors/src/connectors/klarna.rs", "crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs", "crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs", "crates/hyperswitch_connectors/src/connectors/zen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs", "crates/router/src/connector/utils.rs"], "types": ["crates/router/src/types/transformers.rs"], "utils": ["crates/kgraph_utils/src/mca.rs", "crates/kgraph_utils/src/transformers.rs", "crates/payment_methods/src/helpers.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/configs/Payment/Airwallex.js", "cypress-tests/cypress/support/redirectionHandler.js"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/common_enums/src/enums.rs", "crates/common_enums/src/transformers.rs", "crates/euclid/src/frontend/dir/enums.rs", "crates/euclid/src/frontend/dir/lowering.rs", "crates/euclid/src/frontend/dir/transformers.rs"]}, "change_types": {"structs_added": 6, "functions_added": 2, "enums_added": 1, "fields_added": 110}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Added EFT as a payment method in Bank Redirect.
Active Issue linked to this PR: https://github.com/juspay/hyperswitch/issues/7313
but still PR convention checks are failing
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payment_method_data.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments/helpers.rs`
**4. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/aci/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs`
- ... and 15 more files
**5. Type Definitions**
- `crates/router/src/types/transformers.rs`
**6. Utils**
- `crates/kgraph_utils/src/mca.rs`
- `crates/kgraph_utils/src/transformers.rs`
**7. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/common_enums/src/enums.rs`
- ... and 4 more files
**Code Patterns Applied:**
- Extend existing types with new fields (13 changes)
**Detailed Identifier Changes:**
Commit 6df15789:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/common_enums/src/transformers.rs**
Modify existing code
**crates/euclid/src/frontend/dir/enums.rs**
Modify existing code
**crates/euclid/src/frontend/dir/lowering.rs**
Modify existing code
**crates/euclid/src/frontend/dir/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/aci/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/klarna.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/volt/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/zen/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payment_method_data.rs**
Modify existing code
**crates/kgraph_utils/src/mca.rs**
Modify existing code
**crates/kgraph_utils/src/transformers.rs**
Modify existing code
**crates/router/src/connector/adyen.rs**
Modify existing code
**crates/router/src/connector/adyen/transformers.rs**
Modify existing code
**crates/router/src/connector/paypal/transformers.rs**
Modify existing code
**crates/router/src/connector/stripe/transformers.rs**
Modify existing code
**crates/router/src/connector/utils.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 7304, "pr_title": "feat(connector): [EFT] Add EFT as a payment method", "merged_at": "2025-03-05T14:51:22Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_method_data.rs"], "core_business": ["crates/router/src/core/payments/helpers.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/aci/transformers.rs", "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "crates/hyperswitch_connectors/src/connectors/iatapay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/klarna.rs", "crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs", "crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs", "crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/volt/transformers.rs", "crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs", "crates/hyperswitch_connectors/src/connectors/zen/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/adyen.rs", "crates/router/src/connector/adyen/transformers.rs", "crates/router/src/connector/paypal/transformers.rs", "crates/router/src/connector/stripe/transformers.rs", "crates/router/src/connector/utils.rs"], "types": ["crates/router/src/types/transformers.rs"], "utils": ["crates/kgraph_utils/src/mca.rs", "crates/kgraph_utils/src/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/common_enums/src/transformers.rs", "crates/euclid/src/frontend/dir/enums.rs", "crates/euclid/src/frontend/dir/lowering.rs", "crates/euclid/src/frontend/dir/transformers.rs"]}, "change_types": {"fields_added": 13}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->


Add required wasm changes for samsung pay integration.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/connector_configs/src/common_config.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Extend existing types with new fields (29 changes)
**Detailed Identifier Changes:**
Commit ecaf7009:
Files to modify:
**crates/connector_configs/src/common_config.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
|
{"pr_number": 6424, "pr_title": "chore: Add samsung pay payment method support for cybersource", "merged_at": "2024-10-24T15:05:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"connectors": ["crates/connector_configs/src/common_config.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml"]}, "change_types": {"structs_added": 2, "fields_added": 29, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
- Add l2l3 data for checkout
- Note : checkout recommends some checks like line_items should sum up proper total and discount amount. But it doesn't throw any errors for this. Hence in this pr we are not adding any such validations .
## Request
```json
{
"amount": 30000,
"capture_method": "automatic",
"currency": "USD",
"confirm": true,
"payment_method": "card",
"payment_method_type": "credit",
"billing": {
"address": {
"zip": "560095",
"country": "AT",
"first_name": "Sakil",
"last_name": "Mostak",
"line1": "Fasdf",
"line2": "Fasdf",
"city": "Fasdf"
}
},
"payment_method_data": {
"card": {
"card_number": "4000000000009995",
"card_exp_month": "01",
"card_exp_year": "2026",
"card_holder_name": "John Smith",
"card_cvc": "100"
}
},
//l2l3 data
"merchant_order_reference_id":"fasdfasfasf",
"customer_id": "nithxxinn",
"order_tax_amount": 10000,
"shipping_cost": 21,
"discount_amount": 1,
"duty_amount": 2,
"shipping_amount_tax":22,
"order_details": [ //l2 l3data
{
"commodity_code": "8471",
"unit_discount_amount": 1200,
"product_name": "Laptop",
"quantity": 1,
"product_id":"fafasdfasdfdasdfsadfsadfrewfdscrwefdscerwfdasewfdsacxzfdsasdf",
"total_tax_amount": 5000,
"amount": 8000,
"unit_of_measure": "EA",
"unit_price": 8000
},
{
"commodity_code": "471",
"unit_discount_amount": 34,
"product_name": "Laptop",
"quantity": 1,
"product_id":"fas22df",
"total_tax_amount": 3000,
"amount": 4000,
"unit_of_measure": "EA",
"unit_price": 8500
}
]
}
```
## Response
```json
{
"payment_id": "pay_v01RncbYqwx0ZtB6x7yV",
"merchant_id": "merchant_1758258316",
"status": "succeeded",
"amount": 30000,
"net_amount": 40021,
"shipping_cost": 21,
"amount_capturable": 0,
"amount_received": 40021,
"connector": "checkout",
"client_secret": "pay_v01RncbYqwx0ZtB6x7yV_secret_iolJ5SxVFNsQljPaO42C",
"created": "2025-09-19T06:18:02.547Z",
"currency": "USD",
"customer_id": "nithxxinn",
"customer": {
"id": "nithxxinn",
"name": null,
"email": null,
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "9995",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "400000",
"card_extended_bin": null,
"card_exp_month": "01",
"card_exp_year": "2026",
"card_holder_name": "John Smith",
"payment_checks": {
"avs_result": "G",
"card_validation_result": "Y"
},
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "Fasdf",
"country": "AT",
"line1": "Fasdf",
"line2": "Fasdf",
"line3": null,
"zip": "560095",
"state": null,
"first_name": "Sakil",
"last_name": "Mostak",
"origin_zip": null
},
"phone": null,
"email": null
},
"order_details": [
{
"sku": null,
"upc": null,
"brand": null,
"amount": 8000,
"category": null,
"quantity": 1,
"tax_rate": null,
"product_id": "fafasdfasdfdasdfsadfsadfrewfdscrwefdscerwfdasewfdsacxzfdsasdf",
"description": null,
"product_name": "Laptop",
"product_type": null,
"sub_category": null,
"total_amount": null,
"commodity_code": "8471",
"unit_of_measure": "EA",
"product_img_link": null,
"product_tax_code": null,
"total_tax_amount": 5000,
"requires_shipping": null,
"unit_discount_amount": 1200
},
{
"sku": null,
"upc": null,
"brand": null,
"amount": 4000,
"category": null,
"quantity": 1,
"tax_rate": null,
"product_id": "fas22df",
"description": null,
"product_name": "Laptop",
"product_type": null,
"sub_category": null,
"total_amount": null,
"commodity_code": "471",
"unit_of_measure": "EA",
"product_img_link": null,
"product_tax_code": null,
"total_tax_amount": 3000,
"requires_shipping": null,
"unit_discount_amount": 34
}
],
"email": null,
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "nithxxinn",
"created_at": 1758262682,
"expires": 1758266282,
"secret": "epk_e62d911ac98c4ccea72189e40ad83af4"
},
"manual_retry_allowed": null,
"connector_transaction_id": "pay_2667htrzd3qu7bx4fk36nkiva4",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "pay_v01RncbYqwx0ZtB6x7yV_1",
"payment_link": null,
"profile_id": "pro_tqppxjNXH3TckLuEmhDJ",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_z4uydERX9Y3VqfGMXeuh",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-19T06:33:02.547Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": null,
"network_transaction_id": "716806996896398",
"payment_method_status": null,
"updated": "2025-09-19T06:18:04.255Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": "fasdfasfasf",
"order_tax_amount": 10000,
"connector_mandate_id": null,
"card_discovery": "manual",
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null,
"enable_overcapture": null,
"is_overcapture_enabled": null,
"network_details": null
}
```
## connector mapping
```json
{
"source": {
"type": "card",
"number": "4000000000009995",
"expiry_month": "01",
"expiry_year": "2026",
"cvv": "100"
},
"amount": 40021,
"currency": "USD",
"processing_channel_id": "pc_jx5lvimg4obe7nhoqnhptm6xoq",
"3ds": {
"enabled": false,
"force_3ds": false,
"eci": null,
"cryptogram": null,
"xid": null,
"version": null,
"challenge_indicator": "no_preference"
},
"success_url": "http://localhost:8080/payments/pay_v01RncbYqwx0ZtB6x7yV/merchant_1758258316/redirect/response/checkout?status=success",
"failure_url": "http://localhost:8080/payments/pay_v01RncbYqwx0ZtB6x7yV/merchant_1758258316/redirect/response/checkout?status=failure",
"capture": true,
"reference": "pay_v01RncbYqwx0ZtB6x7yV_1",
"payment_type": "Regular",
"merchant_initiated": false,
"customer": {
"name": "nithxxinn"
},
"processing": {
"order_id": "fasdfasfasf",
"tax_amount": 10000,
"discount_amount": 1,
"duty_amount": 2,
"shipping_amount": 21,
"shipping_tax_amount": 22
},
"shipping": {
"address": {}
},
"items": [
{
"commodity_code": "8471",
"discount_amount": 1200,
"name": "Laptop",
"quantity": 1,
"reference": "fafasdfasdfdasdfsadfsadfrewfdscrwefdscerwfdasewfdsacxzfdsasdf",
"tax_amount": 5000,
"unit_of_measure": "EA",
"unit_price": 8000
},
{
"commodity_code": "471",
"discount_amount": 34,
"name": "Laptop",
"quantity": 1,
"reference": "fas22df",
"tax_amount": 3000,
"unit_of_measure": "EA",
"unit_price": 4000
}
]
}
```
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs`
**Code Patterns Applied:**
- Define new data structures (5 changes)
- Extend existing types with new fields (48 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 744c8281:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs**
Modify existing code
|
{"pr_number": 9446, "pr_title": "feat(Connector): [checkout] l2l3 data ", "merged_at": "2025-09-19T12:29:00Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs"]}, "change_types": {"structs_added": 5, "fields_added": 48, "imports_added": 2, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Enhanced Forte Connector in cypress for Comprehensive Testing.
## How did you test it?
**Forte**
<img width="552" alt="Forte" src="https://github.com/user-attachments/assets/21082635-e104-41d4-9d09-997939825c2d" />
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **connector_integration** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Forte.js`
- `cypress-tests/cypress/e2e/configs/Payment/Utils.js`
- `cypress-tests/cypress/support/commands.js`
**Code Patterns Applied:**
- Extend existing types with new fields (637 changes)
|
{"pr_number": 8402, "pr_title": "ci(cypress): Add Forte connector test in cypress", "merged_at": "2025-06-24T12:58:24Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Forte.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/support/commands.js"]}, "change_types": {"fields_added": 637}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This will make the `mandate_payments` acceptable even when `setup_future_usage` is null in payments.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_methods/cards.rs`
- `crates/router/src/core/payment_methods/utils.rs`
|
{"pr_number": 6845, "pr_title": "refactor(constraint_graph): revert handle for cases where setup_future_usage is null in payments", "merged_at": "2024-12-16T13:24:35Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/utils.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR removes the redundant (and outdated) webhooks documentation page in our API reference (both v1 and v2) in favor of the one on `docs.hyperswitch.io`.
## 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).
-->
This PR removes a redundant and outdated documentation page on webhooks.
## 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)?
-->
Set up Mintlify locally, generated the docs and ensured that the page is not included in the side navigation.
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [ ] I formatted the code `cargo +nightly fmt --all`
- [ ] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **connector_integration** feature, you'll need to modify these architectural layers:
**1. Other**
- `api-reference-v2/essentials/webhooks.mdx`
- `api-reference-v2/mint.json`
- `api-reference/essentials/webhooks.mdx`
- ... and 1 more files
|
{"pr_number": 6538, "pr_title": "docs(api-reference): remove redundant webhooks page", "merged_at": "2024-11-12T15:02:42Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": ["webhook"]}, "hierarchy": {"other": ["api-reference-v2/essentials/webhooks.mdx", "api-reference-v2/mint.json", "api-reference/essentials/webhooks.mdx", "api-reference/mint.json"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
ORIGINAL PR: https://github.com/juspay/hyperswitch/pull/8042
|
To implement this **unknown** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/paypal.rs`
- `crates/hyperswitch_connectors/src/connectors/trustpay.rs`
**2. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**3. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (3 changes)
**Detailed Identifier Changes:**
Commit 6394bbdc:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/paypal.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/trustpay.rs**
Modify existing code
|
{"pr_number": 8046, "pr_title": "feat(connector): revert [paypal, trustpay] add in feature matrix", "merged_at": "2025-05-15T14:22:25Z", "intent": {"feature_type": "unknown", "action": "unknown", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/paypal.rs", "crates/hyperswitch_connectors/src/connectors/trustpay.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"functions_added": 1, "fields_added": 3, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR introduces profile-level configuration for enabling/disabling L2/L3 transaction data, providing merchants with granular control over enhanced payment data collection at the business profile level.
# 🧩 Additional Changes
## 🗄️ Database & Schema
- Added new column `is_l2_l3_enabled` to the `business_profile` table.
- **Type:** `BOOLEAN`
- **Nullable:** Yes (`NULLABLE BOOLEAN`)
- Updated L2/L3 data construction logic to check **both**:
1. **Global config flag:** `state.conf.l2_l3_data_config.enabled`
2. **Profile-level flag:** `payment_data.is_l2_l3_enabled == Some(true)`
- **New behavior:**
L2/L3 data is now included **only when both** flags are enabled.
---
## ⚙️ Behavior Changes
**Previously:**
L2/L3 data inclusion was controlled **only** by the global configuration flag:
```text
l2_l3_data_config.enabled = true
**Now **
L2/L3 data inclusion requires both conditions to be true:
Global config enabled → l2_l3_data_config.enabled = true
Profile-level enabled → is_l2_l3_enabled = true
```
- [x] This PR modifies the API contract
- [x] 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).
-->
## 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)?
-->
Flag False
```
curl --location 'http://localhost:8080/account/postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204/business_profile/pro_VRw87wcMS3AfvczM2ROe' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \
--data '{
"is_l2_l3_enabled":false
}'
```
Response
```
{
"merchant_id": "postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204",
"profile_id": "pro_VRw87wcMS3AfvczM2ROe",
"profile_name": "Update",
"return_url": "https://google.com/success",
"enable_payment_response_hash": true,
"payment_response_hash_key": "cVla9zUpUCNm8lPgzW9zNWi9Le5utHWR3nFruLNhtjbwRdXGtL4PU2g7fGyb9WY6",
"redirect_to_merchant_with_http_post": false,
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"webhook_url": "https://webhook.site",
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true,
"payment_statuses_enabled": null,
"refund_statuses_enabled": null,
"payout_statuses_enabled": null
},
"metadata": null,
"routing_algorithm": null,
"intent_fulfillment_time": 900,
"frm_routing_algorithm": null,
"payout_routing_algorithm": null,
"applepay_verified_domains": null,
"session_expiry": 900,
"payment_link_config": null,
"authentication_connector_details": null,
"use_billing_as_payment_method_billing": true,
"extended_card_info_config": null,
"collect_shipping_details_from_wallet_connector": false,
"collect_billing_details_from_wallet_connector": false,
"always_collect_shipping_details_from_wallet_connector": false,
"always_collect_billing_details_from_wallet_connector": false,
"is_connector_agnostic_mit_enabled": false,
"payout_link_config": null,
"outgoing_webhook_custom_http_headers": null,
"tax_connector_id": null,
"is_tax_connector_enabled": false,
"is_network_tokenization_enabled": false,
"is_auto_retries_enabled": false,
"max_auto_retries_enabled": null,
"always_request_extended_authorization": null,
"is_click_to_pay_enabled": false,
"authentication_product_ids": null,
"card_testing_guard_config": {
"card_ip_blocking_status": "disabled",
"card_ip_blocking_threshold": 3,
"guest_user_card_blocking_status": "disabled",
"guest_user_card_blocking_threshold": 10,
"customer_id_blocking_status": "disabled",
"customer_id_blocking_threshold": 5,
"card_testing_guard_expiry": 3600
},
"is_clear_pan_retries_enabled": false,
"force_3ds_challenge": false,
"is_debit_routing_enabled": false,
"merchant_business_country": null,
"is_pre_network_tokenization_enabled": false,
"acquirer_configs": null,
"is_iframe_redirection_enabled": null,
"merchant_category_code": null,
"merchant_country_code": null,
"dispute_polling_interval": null,
"is_manual_retry_enabled": null,
"always_enable_overcapture": null,
"is_external_vault_enabled": "skip",
"external_vault_connector_details": null,
"billing_processor_id": null,
"is_l2_l3_enabled": false
}
```
Payments Create +Confirm
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \
--data-raw '{
"amount": 10000,
"currency": "USD",
"tax_status": "exempt",
"duty_amount": 400,
"shipping_cost": 431,
"discount_amount": 500,
"shipping_amount_tax": 50,
"order_date": "2024-01-15T10:30:00Z",
"confirm": true,
"customer": {
"id":"2343",
"name": "John Doe",
"email": "john@example.com",
"tax_registration_id": "TAX123456789"
},
"payment_method": "card",
"payment_method_data": {
"card": {
"card_number": "4457030000000007",
"card_exp_month": "09",
"card_exp_year": "30",
"card_holder_name": "John Doe",
"card_cvc": "123"
}
},
"shipping": {
"address": {
"line1": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US",
"origin_zip": "90210"
}
},
"billing": {
"address": {
"line1": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US",
"origin_zip": "90210"
}
},
"order_details": [
{
"product_name": "Laptop",
"quantity": 1,
"amount": 8000,
"description": "Business laptop 23214324",
"sku": "LAP-001",
"upc": "123456789012",
"commodity_code": "8471",
"unit_of_measure": "EA",
"unit_price": 8000,
"unit_discount_amount": 200,
"tax_rate": 0.08,
"total_tax_amount": 640
},
{
"product_name": "Mouse",
"quantity": 2,
"amount": 2000,
"description": "Wireless office mouse",
"sku": "MOU-001",
"upc": "123456789013",
"commodity_code": "8471",
"unit_of_measure": "EA",
"unit_price": 1000,
"unit_discount_amount": 50,
"tax_rate": 0.08,
"total_tax_amount": 160
}
]
}'
```
Response
```
{
"payment_id": "pay_k5Bpv5PtEJybJqMpAxgh",
"merchant_id": "postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204",
"status": "processing",
"amount": 10000,
"net_amount": 10431,
"shipping_cost": 431,
"amount_capturable": 10431,
"amount_received": null,
"connector": "worldpayvantiv",
"client_secret": "pay_k5Bpv5PtEJybJqMpAxgh_secret_gIdSB9ymBpqxF67m2YuI",
"created": "2025-10-06T10:20:03.012Z",
"currency": "USD",
"customer_id": "2343",
"customer": {
"id": "2343",
"name": "John Doe",
"email": "john@example.com",
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": null,
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "0007",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "445703",
"card_extended_bin": null,
"card_exp_month": "09",
"card_exp_year": "30",
"card_holder_name": "John Doe",
"payment_checks": {
"avs_result": "00",
"advanced_a_v_s_result": null,
"authentication_result": null,
"card_validation_result": "M"
},
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "New York",
"country": "US",
"line1": "123 Main St",
"line2": null,
"line3": null,
"zip": "10001",
"state": "NY",
"first_name": null,
"last_name": null,
"origin_zip": "90210"
},
"phone": null,
"email": null
},
"billing": {
"address": {
"city": "New York",
"country": "US",
"line1": "123 Main St",
"line2": null,
"line3": null,
"zip": "10001",
"state": "NY",
"first_name": null,
"last_name": null,
"origin_zip": "90210"
},
"phone": null,
"email": null
},
"order_details": [
{
"sku": "LAP-001",
"upc": "123456789012",
"brand": null,
"amount": 8000,
"category": null,
"quantity": 1,
"tax_rate": 0.08,
"product_id": null,
"description": "Business laptop 23214324",
"product_name": "Laptop",
"product_type": null,
"sub_category": null,
"total_amount": null,
"commodity_code": "8471",
"unit_of_measure": "EA",
"product_img_link": null,
"product_tax_code": null,
"total_tax_amount": 640,
"requires_shipping": null,
"unit_discount_amount": 200
},
{
"sku": "MOU-001",
"upc": "123456789013",
"brand": null,
"amount": 2000,
"category": null,
"quantity": 2,
"tax_rate": 0.08,
"product_id": null,
"description": "Wireless office mouse",
"product_name": "Mouse",
"product_type": null,
"sub_category": null,
"total_amount": null,
"commodity_code": "8471",
"unit_of_measure": "EA",
"product_img_link": null,
"product_tax_code": null,
"total_tax_amount": 160,
"requires_shipping": null,
"unit_discount_amount": 50
}
],
"email": "john@example.com",
"name": "John Doe",
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": null,
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "2343",
"created_at": 1759746002,
"expires": 1759749602,
"secret": "epk_b1c2dbc4c6974e5ba52bc4febad559c0"
},
"manual_retry_allowed": null,
"connector_transaction_id": "83997805908936712",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "yu3m15HUiA8RH7xlVbxYNbb_GXBH",
"payment_link": null,
"profile_id": "pro_VRw87wcMS3AfvczM2ROe",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_Xy151X2xCrZUxa679A2r",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-10-06T10:35:03.012Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": null,
"network_transaction_id": "500144570300000",
"payment_method_status": null,
"updated": "2025-10-06T10:20:06.451Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"request_extended_authorization": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": "manual",
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null,
"enable_overcapture": null,
"is_overcapture_enabled": null,
"network_details": null,
"is_stored_credential": null,
"mit_category": null
}
```
enhanced_data : None (In vantive we pass the l2_l3_data in enchanced_data field )
<img width="1041" height="293" alt="Screenshot 2025-10-06 at 3 51 10 PM" src="https://github.com/user-attachments/assets/0bf180ae-a6ad-4653-aeec-9c333d2e5ae8" />
-----------------------------------------------------------------------------------------------------------------------
Prifle flag as true
```
curl --location 'http://localhost:8080/account/postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204/business_profile/pro_VRw87wcMS3AfvczM2ROe' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \
--data '{
"is_l2_l3_enabled":true
}'
```
Response
```
{
"merchant_id": "postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204",
"profile_id": "pro_VRw87wcMS3AfvczM2ROe",
"profile_name": "Update",
"return_url": "https://google.com/success",
"enable_payment_response_hash": true,
"payment_response_hash_key": "cVla9zUpUCNm8lPgzW9zNWi9Le5utHWR3nFruLNhtjbwRdXGtL4PU2g7fGyb9WY6",
"redirect_to_merchant_with_http_post": false,
"webhook_details": {
"webhook_version": "1.0.1",
"webhook_username": "ekart_retail",
"webhook_password": "password_ekart@123",
"webhook_url": "https://webhook.site",
"payment_created_enabled": true,
"payment_succeeded_enabled": true,
"payment_failed_enabled": true,
"payment_statuses_enabled": null,
"refund_statuses_enabled": null,
"payout_statuses_enabled": null
},
"metadata": null,
"routing_algorithm": null,
"intent_fulfillment_time": 900,
"frm_routing_algorithm": null,
"payout_routing_algorithm": null,
"applepay_verified_domains": null,
"session_expiry": 900,
"payment_link_config": null,
"authentication_connector_details": null,
"use_billing_as_payment_method_billing": true,
"extended_card_info_config": null,
"collect_shipping_details_from_wallet_connector": false,
"collect_billing_details_from_wallet_connector": false,
"always_collect_shipping_details_from_wallet_connector": false,
"always_collect_billing_details_from_wallet_connector": false,
"is_connector_agnostic_mit_enabled": false,
"payout_link_config": null,
"outgoing_webhook_custom_http_headers": null,
"tax_connector_id": null,
"is_tax_connector_enabled": false,
"is_network_tokenization_enabled": false,
"is_auto_retries_enabled": false,
"max_auto_retries_enabled": null,
"always_request_extended_authorization": null,
"is_click_to_pay_enabled": false,
"authentication_product_ids": null,
"card_testing_guard_config": {
"card_ip_blocking_status": "disabled",
"card_ip_blocking_threshold": 3,
"guest_user_card_blocking_status": "disabled",
"guest_user_card_blocking_threshold": 10,
"customer_id_blocking_status": "disabled",
"customer_id_blocking_threshold": 5,
"card_testing_guard_expiry": 3600
},
"is_clear_pan_retries_enabled": false,
"force_3ds_challenge": false,
"is_debit_routing_enabled": false,
"merchant_business_country": null,
"is_pre_network_tokenization_enabled": false,
"acquirer_configs": null,
"is_iframe_redirection_enabled": null,
"merchant_category_code": null,
"merchant_country_code": null,
"dispute_polling_interval": null,
"is_manual_retry_enabled": null,
"always_enable_overcapture": null,
"is_external_vault_enabled": "skip",
"external_vault_connector_details": null,
"billing_processor_id": null,
"is_l2_l3_enabled": true
}
```
Pqyments Create+ Confirm
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_2Lukl788r5RWxkuO15MlUgGWKB17w8CQgU6Jiov5jEUhKIDyR8xJ9BqP1x6uT6Bh' \
--data-raw '{
"amount": 10000,
"currency": "USD",
"tax_status": "exempt",
"duty_amount": 400,
"shipping_cost": 431,
"discount_amount": 500,
"shipping_amount_tax": 50,
"order_date": "2024-01-15T10:30:00Z",
"confirm": true,
"customer": {
"id":"2343",
"name": "John Doe",
"email": "john@example.com",
"tax_registration_id": "TAX123456789"
},
"payment_method": "card",
"payment_method_data": {
"card": {
"card_number": "4457030000000007",
"card_exp_month": "09",
"card_exp_year": "30",
"card_holder_name": "John Doe",
"card_cvc": "123"
}
},
"shipping": {
"address": {
"line1": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US",
"origin_zip": "90210"
}
},
"billing": {
"address": {
"line1": "123 Main St",
"city": "New York",
"state": "NY",
"zip": "10001",
"country": "US",
"origin_zip": "90210"
}
},
"order_details": [
{
"product_name": "Laptop",
"quantity": 1,
"amount": 8000,
"description": "Business laptop 23214324",
"sku": "LAP-001",
"upc": "123456789012",
"commodity_code": "8471",
"unit_of_measure": "EA",
"unit_price": 8000,
"unit_discount_amount": 200,
"tax_rate": 0.08,
"total_tax_amount": 640
},
{
"product_name": "Mouse",
"quantity": 2,
"amount": 2000,
"description": "Wireless office mouse",
"sku": "MOU-001",
"upc": "123456789013",
"commodity_code": "8471",
"unit_of_measure": "EA",
"unit_price": 1000,
"unit_discount_amount": 50,
"tax_rate": 0.08,
"total_tax_amount": 160
}
]
}'
```
Response
```
{
"payment_id": "pay_G9uVSa1XhuipIytubifJ",
"merchant_id": "postman_merchant_GHAction_86dca2fb-b078-46c4-9ae4-fb347ac31204",
"status": "processing",
"amount": 10000,
"net_amount": 10431,
"shipping_cost": 431,
"amount_capturable": 10431,
"amount_received": null,
"connector": "worldpayvantiv",
"client_secret": "pay_G9uVSa1XhuipIytubifJ_secret_lCs00yR6IDj1mQiv6CR3",
"created": "2025-10-06T10:22:46.946Z",
"currency": "USD",
"customer_id": "2343",
"customer": {
"id": "2343",
"name": "John Doe",
"email": "john@example.com",
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": null,
"off_session": null,
"capture_on": null,
"capture_method": null,
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "0007",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "445703",
"card_extended_bin": null,
"card_exp_month": "09",
"card_exp_year": "30",
"card_holder_name": "John Doe",
"payment_checks": {
"avs_result": "00",
"advanced_a_v_s_result": null,
"authentication_result": null,
"card_validation_result": "M"
},
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": {
"address": {
"city": "New York",
"country": "US",
"line1": "123 Main St",
"line2": null,
"line3": null,
"zip": "10001",
"state": "NY",
"first_name": null,
"last_name": null,
"origin_zip": "90210"
},
"phone": null,
"email": null
},
"billing": {
"address": {
"city": "New York",
"country": "US",
"line1": "123 Main St",
"line2": null,
"line3": null,
"zip": "10001",
"state": "NY",
"first_name": null,
"last_name": null,
"origin_zip": "90210"
},
"phone": null,
"email": null
},
"order_details": [
{
"sku": "LAP-001",
"upc": "123456789012",
"brand": null,
"amount": 8000,
"category": null,
"quantity": 1,
"tax_rate": 0.08,
"product_id": null,
"description": "Business laptop 23214324",
"product_name": "Laptop",
"product_type": null,
"sub_category": null,
"total_amount": null,
"commodity_code": "8471",
"unit_of_measure": "EA",
"product_img_link": null,
"product_tax_code": null,
"total_tax_amount": 640,
"requires_shipping": null,
"unit_discount_amount": 200
},
{
"sku": "MOU-001",
"upc": "123456789013",
"brand": null,
"amount": 2000,
"category": null,
"quantity": 2,
"tax_rate": 0.08,
"product_id": null,
"description": "Wireless office mouse",
"product_name": "Mouse",
"product_type": null,
"sub_category": null,
"total_amount": null,
"commodity_code": "8471",
"unit_of_measure": "EA",
"product_img_link": null,
"product_tax_code": null,
"total_tax_amount": 160,
"requires_shipping": null,
"unit_discount_amount": 50
}
],
"email": "john@example.com",
"name": "John Doe",
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": null,
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "2343",
"created_at": 1759746166,
"expires": 1759749766,
"secret": "epk_2e4eaf2fa2084f55adfbda7dd29be585"
},
"manual_retry_allowed": null,
"connector_transaction_id": "84085766858464538",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "i4q0Jo5exObW4PQfss0jq4uQ619b",
"payment_link": null,
"profile_id": "pro_VRw87wcMS3AfvczM2ROe",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_Xy151X2xCrZUxa679A2r",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-10-06T10:37:46.946Z",
"fingerprint": null,
"browser_info": null,
"payment_channel": null,
"payment_method_id": null,
"network_transaction_id": "500144570300000",
"payment_method_status": null,
"updated": "2025-10-06T10:22:49.462Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"request_extended_authorization": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": "manual",
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null,
"enable_overcapture": null,
"is_overcapture_enabled": null,
"network_details": null,
"is_stored_credential": null,
"mit_category": null
}
```
<img width="1007" height="455" alt="Screenshot 2025-10-06 at 3 53 33 PM" src="https://github.com/user-attachments/assets/487931c3-4aec-4b0e-8ba7-fb6c64a50f01" />
-----------------------------------------------------------------------------------------------------------------------
Profile flag as None
```
```
## 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
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/admin.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/schema.rs`
- `crates/diesel_models/src/schema_v2.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/business_profile.rs`
**4. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/operations/payment_approve.rs`
- ... and 16 more files
**5. Type Definitions**
- `crates/router/src/types/api/admin.rs`
**6. Other**
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
- `crates/router/src/db/events.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Extend existing types with new fields (78 changes)
**Detailed Identifier Changes:**
Commit bd853345:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/diesel_models/src/business_profile.rs**
Modify existing code
**crates/diesel_models/src/schema.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/business_profile.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_approve.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_cancel.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_cancel_post_capture.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_capture.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_complete_authorize.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_post_session_tokens.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_reject.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_session.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_start.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_status.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_update.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_update_metadata.rs**
Modify existing code
**crates/router/src/core/payments/operations/payments_incremental_authorization.rs**
Modify existing code
**crates/router/src/core/payments/operations/tax_calculation.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/db/events.rs**
Modify existing code
**crates/router/src/types/api/admin.rs**
Modify existing code
|
{"pr_number": 9683, "pr_title": "feat(core): Add profile-level configuration for L2/L3 data enablement", "merged_at": "2025-10-16T08:22:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_approve.rs", "crates/router/src/core/payments/operations/payment_cancel.rs", "crates/router/src/core/payments/operations/payment_cancel_post_capture.rs", "crates/router/src/core/payments/operations/payment_capture.rs", "crates/router/src/core/payments/operations/payment_complete_authorize.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/operations/payment_post_session_tokens.rs", "crates/router/src/core/payments/operations/payment_reject.rs", "crates/router/src/core/payments/operations/payment_session.rs", "crates/router/src/core/payments/operations/payment_start.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payments/operations/payment_update.rs", "crates/router/src/core/payments/operations/payment_update_metadata.rs", "crates/router/src/core/payments/operations/payments_incremental_authorization.rs", "crates/router/src/core/payments/operations/tax_calculation.rs", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/router/src/types/api/admin.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/router/src/db/events.rs", "migrations/2025-10-06-093228_add_l2_l3_to_business_profile/down.sql", "migrations/2025-10-06-093228_add_l2_l3_to_business_profile/up.sql"]}, "change_types": {"fields_added": 78}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Destination bank account id should be merchant facing, not customer. This PR removes any references to destination bank account id and moves it to connector metadata instead.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
- `crates/api_models/src/payments/additional_info.rs`
**2. Core Business Logic**
- `crates/router/src/core/connector_validation.rs`
**3. External Connector Integration**
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- `crates/connector_configs/toml/sandbox.toml`
- ... and 2 more files
**4. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Facilitapay.js`
**5. Other**
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (4 changes)
- Extend existing types with new fields (8 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 38c19f30:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/api_models/src/payments/additional_info.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs**
Modify existing code
**crates/payment_methods/src/configs/payment_connector_required_fields.rs**
Modify existing code
**crates/router/src/core/connector_validation.rs**
Modify existing code
|
{"pr_number": 8704, "pr_title": "refactor(connector): [facilitapay] move destination bank account number to connector metadata", "merged_at": "2025-07-25T12:44:09Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs", "crates/api_models/src/payments/additional_info.rs"], "core_business": ["crates/router/src/core/connector_validation.rs"], "connectors": ["crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/Facilitapay.js"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json"]}, "change_types": {"structs_added": 2, "functions_added": 4, "fields_added": 8, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
the reason behind this pr is that there are a few connectors like adyen that expects the user to pass specific card expiry year and having it hard coded like we had until now results in unintended issues resulting the tests to fail.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/spec/Payment/00014-SaveCardFlow.cy.js`
|
{"pr_number": 7834, "pr_title": "refactor(cypress): do not update `card_expiry` while updating card info", "merged_at": "2025-04-22T09:31:33Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector", "card"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/spec/Payment/00014-SaveCardFlow.cy.js"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR updates the BIN lookup override logic in payment transformers.rs to ensure payment_method_type is overridden only for Card payment methods.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/operations/payment_confirm.rs`
- `crates/router/src/core/payments/operations/payment_create.rs`
- `crates/router/src/core/payments/transformers.rs`
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (1 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 50a8013d:
Files to modify:
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
|
{"pr_number": 9241, "pr_title": "fix(payments): override payment_method_type only for cards", "merged_at": "2025-09-03T13:10:45Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/transformers.rs"]}, "change_types": {"functions_added": 1, "fields_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
connector_transaction_id of wise only support UUID format.
reference_id wont be required as value since we store the wise's transaction id.
We only send UUID to make the transaction without any error.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/wise/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
|
{"pr_number": 8836, "pr_title": "fix(connector): [Wise] send uuid as connector_transaction_id", "merged_at": "2025-08-05T09:41:49Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "merchant", "order"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/wise/transformers.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR introduces payments capture endpoint for the v2 version.
This PR also changes the `GenerateResponse` trait to be implemented on the payment data. The new trait looks like this
```rust
pub trait GenerateResponse<Response>
where
Self: Sized,
{
#[cfg(feature = "v2")]
fn generate_response(
self,
state: &SessionState,
connector_http_status_code: Option<u16>,
external_latency: Option<u128>,
is_latency_header_enabled: Option<bool>,
merchant_account: &domain::MerchantAccount,
) -> RouterResponse<Response>;
}
```
Also the fields in `AttemptAmountDetails` are made as private, necessary getters and setters are provided to work with these fields.
Resolved some of the clippy warnings for v2.
## 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).
-->
## 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)?
-->
<details>
<summary>
Create a payment with automatic capture
</summary>
```bash
curl --location 'http://localhost:8080/v2/payments/create-intent' \
--header 'api-key: dev_WvQ9nNM8yudKrDcVqh3FrURJm3HMKU3tmxMFKnlZef9Hkhyxy1r9A89I4s03jO9h' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_MxajZP8J2IgEXmAs0MpY' \
--data '{
"amount_details": {
"order_amount": 100,
"currency": "USD"
},
"capture_method":"automatic",
"authentication_type": "no_three_ds"
}'
```
- Response
```json
{
"id": "12345_pay_0193882e51ac7692905c3279518700eb",
"status": "requires_payment_method",
"amount_details": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"skip_external_tax_calculation": "Skip",
"skip_surcharge_calculation": "Skip",
"surcharge_amount": null,
"tax_on_surcharge": null
},
"client_secret": "12345_pay_0193882e51ac7692905c3279518700eb_secret_0193882e51ac7692905c3284173ac888",
"merchant_reference_id": null,
"routing_algorithm_id": null,
"capture_method": "automatic",
"authentication_type": "no_three_ds",
"billing": null,
"shipping": null,
"customer_id": null,
"customer_present": "Present",
"description": null,
"return_url": null,
"setup_future_usage": "on_session",
"apply_mit_exemption": "Skip",
"statement_descriptor": null,
"order_details": null,
"allowed_payment_method_types": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"payment_link_enabled": "Skip",
"payment_link_config": null,
"request_incremental_authorization": "default",
"expires_on": "2024-12-02T16:37:37.228Z",
"frm_metadata": null,
"request_external_three_ds_authentication": "Skip"
}
```
</details>
<details>
<summary> Confirm the payment intent </summary>
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_0193882e51ac7692905c3279518700eb/confirm-intent' \
--header 'x-client-secret: 12345_pay_0193882e51ac7692905c3279518700eb_secret_0193882e51ac7692905c3284173ac888' \
--header 'x-profile-id: pro_MxajZP8J2IgEXmAs0MpY' \
--header 'Content-Type: application/json' \
--header 'api-key: pk_dev_538be9702de84258b89c6ac654f5ecb1' \
--data '{
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "01",
"card_exp_year": "25",
"card_holder_name": "John Doe",
"card_cvc": "100"
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit"
}'
```
- In the response, `amount_capturable` should be 0 indicating that no amount can be captured further. `amount_captured` should be equal to the net amount.
```json
{
"id": "12345_pay_0193882e51ac7692905c3279518700eb",
"status": "succeeded",
"amount": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"skip_external_tax_calculation": "Skip",
"skip_surcharge_calculation": "Skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 100,
"amount_to_capture": null,
"amount_capturable": 0,
"amount_captured": 100
},
"connector": "stripe",
"client_secret": "12345_pay_0193882e51ac7692905c3279518700eb_secret_0193882e51ac7692905c3284173ac888",
"created": "2024-12-02T16:22:37.228Z",
"payment_method_data": null,
"payment_method_type": "card",
"payment_method_subtype": "credit",
"next_action": null,
"connector_transaction_id": "pi_3QRcOZD5R7gDAGff1DNcLrku",
"connector_reference_id": null,
"merchant_connector_id": "mca_viTlEW768QtaKIyYYGjl",
"browser_info": null,
"error": null
}
```
</details>
<details>
<summary> Create a payment with manual capture </summary>
```bash
curl --location 'http://localhost:8080/v2/payments/create-intent' \
--header 'api-key: dev_WvQ9nNM8yudKrDcVqh3FrURJm3HMKU3tmxMFKnlZef9Hkhyxy1r9A89I4s03jO9h' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_MxajZP8J2IgEXmAs0MpY' \
--data '{
"amount_details": {
"order_amount": 100,
"currency": "USD"
},
"capture_method":"manual",
"authentication_type": "no_three_ds"
}'
```
</details>
<details>
<summary> Confirm the payment intent </summary>
```bash
curl --location 'http://localhost:8080/v2/payments/create-intent' \
--header 'api-key: dev_WvQ9nNM8yudKrDcVqh3FrURJm3HMKU3tmxMFKnlZef9Hkhyxy1r9A89I4s03jO9h' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_MxajZP8J2IgEXmAs0MpY' \
--data '{
"amount_details": {
"order_amount": 100,
"currency": "USD"
},
"capture_method":"manual",
"authentication_type": "no_three_ds"
}'
```
- The status should be `requires_capture`, with `amount_capturable` equal to the net amount
```json
{
"id": "12345_pay_0193967efce773d38d2db5dcd00df061",
"status": "requires_capture",
"amount": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 100,
"amount_to_capture": null,
"amount_capturable": 100,
"amount_captured": 0
},
"connector": "stripe",
"client_secret": "12345_pay_0193967efce773d38d2db5dcd00df061_secret_0193967efce87481a4075ab617dba612",
"created": "2024-12-05T11:05:24.969Z",
"payment_method_data": {
"billing": null
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"next_action": null,
"connector_transaction_id": "pi_3QScs9D5R7gDAGff1Vn6BBrV",
"connector_reference_id": null,
"merchant_connector_id": "mca_VyXpopmpz9vwaQaNhmER",
"browser_info": null,
"error": null
}
```
</details>
<details>
<summary>Capture the payment </summary>
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_019396c5a45870c1a45722b60b0159b5/capture' \
--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \
--data '{}'
```
- Response
```json
{
"id": "12345_pay_019396c5a45870c1a45722b60b0159b5",
"status": "succeeded",
"amount": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 100,
"amount_to_capture": null,
"amount_capturable": 0,
"amount_captured": 100
}
}
```
</details>
<details>
<summary> Create a 3DS payment </summary>
```bash
curl --location 'http://localhost:8080/v2/payments/create-intent' \
--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \
--data-raw '{
"amount_details": {
"order_amount": 100,
"currency": "USD"
},
"capture_method":"manual",
"authentication_type": "three_ds",
"billing": {
"address": {
"first_name": "John",
"last_name": "Dough"
},
"email": "example@example.com"
},
"shipping": {
"address": {
"first_name": "John",
"last_name": "Dough",
"city": "Karwar",
"zip": "581301",
"state": "Karnataka"
},
"email": "example@example.com"
}
}'
```
- Response
```json
{
"id": "12345_pay_019396c80c8074d0a664df3d3a194856",
"status": "requires_payment_method",
"amount_details": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null
},
"client_secret": "12345_pay_019396c80c8074d0a664df3d3a194856_secret_019396c80c8074d0a664df4671f65402",
"profile_id": "pro_ByYDje1ZZELFwRyx8IIS",
"merchant_reference_id": null,
"routing_algorithm_id": null,
"capture_method": "manual",
"authentication_type": "three_ds",
"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"
},
"shipping": {
"address": {
"city": "Karwar",
"country": null,
"line1": null,
"line2": null,
"line3": null,
"zip": "581301",
"state": "Karnataka",
"first_name": "John",
"last_name": "Dough"
},
"phone": null,
"email": "example@example.com"
},
"customer_id": null,
"customer_present": "Present",
"description": null,
"return_url": null,
"setup_future_usage": "on_session",
"apply_mit_exemption": "Skip",
"statement_descriptor": null,
"order_details": null,
"allowed_payment_method_types": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"payment_link_enabled": "Skip",
"payment_link_config": null,
"request_incremental_authorization": "default",
"expires_on": "2024-12-05T12:40:13.089Z",
"frm_metadata": null,
"request_external_three_ds_authentication": "Skip"
}
```
- Confirm the payment intent
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_019396cc683b7a2195085791a9018983/confirm-intent' \
--header 'x-client-secret: 12345_pay_019396cc683b7a2195085791a9018983_secret_019396cc683c72e3a33309c8f573d29e' \
--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \
--header 'Content-Type: application/json' \
--header 'api-key: pk_dev_1896564f01cc4ffc8039f4e538a43b88' \
--data '{
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "01",
"card_exp_year": "25",
"card_holder_name": "John Doe",
"card_cvc": "100"
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit"
}'
```
- Response
```json
{
"id": "12345_pay_019396cc683b7a2195085791a9018983",
"status": "requires_customer_action",
"amount": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 100,
"amount_to_capture": null,
"amount_capturable": 0,
"amount_captured": null
},
"connector": "stripe",
"client_secret": "12345_pay_019396cc683b7a2195085791a9018983_secret_019396cc683c72e3a33309c8f573d29e",
"created": "2024-12-05T12:29:58.716Z",
"payment_method_data": {
"billing": null
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"next_action": {
"type": "redirect_to_url",
"redirect_to_url": "http://localhost:8080/v2/payments/12345_pay_019396cc683b7a2195085791a9018983/start-redirection?publishable_key=pk_dev_1896564f01cc4ffc8039f4e538a43b88&profile_id=pro_ByYDje1ZZELFwRyx8IIS"
},
"connector_transaction_id": "pi_3QSeC3D5R7gDAGff0mIJA1Wg",
"connector_reference_id": null,
"merchant_connector_id": "mca_VyXpopmpz9vwaQaNhmER",
"browser_info": null,
"error": null
}
```
- Complete the redirection

- Retrieve the payment
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_019396cc683b7a2195085791a9018983' \
--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \
--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \
--data ''
```
- Response
```json
{
"id": "12345_pay_019396cc683b7a2195085791a9018983",
"status": "requires_capture",
"amount": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 100,
"amount_to_capture": null,
"amount_capturable": 100,
"amount_captured": 100
},
"connector": "stripe",
"client_secret": "12345_pay_019396cc683b7a2195085791a9018983_secret_019396cc683c72e3a33309c8f573d29e",
"created": "2024-12-05T12:29:58.716Z",
"payment_method_data": {
"billing": null
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"connector_transaction_id": "pi_3QSeC3D5R7gDAGff0mIJA1Wg",
"connector_reference_id": null,
"merchant_connector_id": "mca_VyXpopmpz9vwaQaNhmER",
"browser_info": null,
"error": null,
"shipping": {
"address": {
"city": "Karwar",
"country": null,
"line1": null,
"line2": null,
"line3": null,
"zip": "581301",
"state": "Karnataka",
"first_name": "John",
"last_name": "Dough"
},
"phone": null,
"email": "example@example.com"
},
"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"
}
}
```
- Capture the payment
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_019396cc683b7a2195085791a9018983/capture' \
--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \
--data '{}'
```
- Response
```json
{
"id": "12345_pay_019396cc683b7a2195085791a9018983",
"status": "succeeded",
"amount": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 100,
"amount_to_capture": null,
"amount_capturable": 0,
"amount_captured": 100
}
}
```
</details>
<details>
<summary> Create a partial capture</summary>
- Create a payment
```bash
curl --location 'http://localhost:8080/v2/payments/create-intent' \
--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \
--data-raw '{
"amount_details": {
"order_amount": 100,
"currency": "USD"
},
"capture_method":"manual",
"authentication_type": "no_three_ds",
"billing": {
"address": {
"first_name": "John",
"last_name": "Dough"
},
"email": "example@example.com"
},
"shipping": {
"address": {
"first_name": "John",
"last_name": "Dough",
"city": "Karwar",
"zip": "581301",
"state": "Karnataka"
},
"email": "example@example.com"
}
}'
```
- Response
```json
{
"id": "12345_pay_019396d160917c41baa6130f8716dbb7",
"status": "requires_payment_method",
"amount_details": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null
},
"client_secret": "12345_pay_019396d160917c41baa6130f8716dbb7_secret_019396d160917c41baa6131341a1bc9e",
"profile_id": "pro_ByYDje1ZZELFwRyx8IIS",
"merchant_reference_id": null,
"routing_algorithm_id": null,
"capture_method": "manual",
"authentication_type": "no_three_ds",
"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"
},
"shipping": {
"address": {
"city": "Karwar",
"country": null,
"line1": null,
"line2": null,
"line3": null,
"zip": "581301",
"state": "Karnataka",
"first_name": "John",
"last_name": "Dough"
},
"phone": null,
"email": "example@example.com"
},
"customer_id": null,
"customer_present": "Present",
"description": null,
"return_url": null,
"setup_future_usage": "on_session",
"apply_mit_exemption": "Skip",
"statement_descriptor": null,
"order_details": null,
"allowed_payment_method_types": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"payment_link_enabled": "Skip",
"payment_link_config": null,
"request_incremental_authorization": "default",
"expires_on": "2024-12-05T12:50:24.434Z",
"frm_metadata": null,
"request_external_three_ds_authentication": "Skip"
}
```
- confirm the payment
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_019396d160917c41baa6130f8716dbb7/confirm-intent' \
--header 'x-client-secret: 12345_pay_019396d160917c41baa6130f8716dbb7_secret_019396d160917c41baa6131341a1bc9e' \
--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \
--header 'Content-Type: application/json' \
--header 'api-key: pk_dev_1896564f01cc4ffc8039f4e538a43b88' \
--data '{
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "01",
"card_exp_year": "25",
"card_holder_name": "John Doe",
"card_cvc": "100"
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit"
}'
```
- Response
```json
{
"id": "12345_pay_019396d160917c41baa6130f8716dbb7",
"status": "requires_capture",
"amount": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 100,
"amount_to_capture": null,
"amount_capturable": 100,
"amount_captured": 0
},
"connector": "stripe",
"client_secret": "12345_pay_019396d160917c41baa6130f8716dbb7_secret_019396d160917c41baa6131341a1bc9e",
"created": "2024-12-05T12:35:24.434Z",
"payment_method_data": {
"billing": null
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"next_action": null,
"connector_transaction_id": "pi_3QSeIyD5R7gDAGff1woLG5lU",
"connector_reference_id": null,
"merchant_connector_id": "mca_VyXpopmpz9vwaQaNhmER",
"browser_info": null,
"error": null
}
```
- Capture the payment with `amount_to_capture`
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_019396d160917c41baa6130f8716dbb7/capture' \
--header 'x-profile-id: pro_ByYDje1ZZELFwRyx8IIS' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_cj5iA6st5Dn6o8Grs6vrA9SvblTcRcwUWQ6LzC27Qv80wQQPodhTZuFgBcV59JDA' \
--data '{
"amount_to_capture": 69
}'
```
- Response, status should be `partially_captured`
```json
{
"id": "12345_pay_019396d160917c41baa6130f8716dbb7",
"status": "partially_captured",
"amount": {
"order_amount": 100,
"currency": "USD",
"shipping_cost": null,
"order_tax_amount": null,
"external_tax_calculation": "skip",
"surcharge_calculation": "skip",
"surcharge_amount": null,
"tax_on_surcharge": null,
"net_amount": 100,
"amount_to_capture": 69,
"amount_capturable": 0,
"amount_captured": 69
}
}
```
</details>
## 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
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/events/payment.rs`
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/payment_attempt.rs`
- `crates/diesel_models/src/payment_intent.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payments.rs`
- `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`
- `crates/hyperswitch_domain_models/src/payments/payment_intent.rs`
- ... and 1 more files
**4. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/flows/capture_flow.rs`
- `crates/router/src/core/payments/operations.rs`
- ... and 5 more files
**5. Type Definitions**
- `crates/router/src/types.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/openapi/src/openapi_v2.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (6 changes)
- Implement new functions (96 changes)
- Extend existing types with new fields (351 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit 977cb704:
Files to modify:
**crates/api_models/src/events/payment.rs**
Modify existing code
**crates/api_models/src/payments.rs**
Modify existing code
**crates/diesel_models/src/payment_attempt.rs**
Modify existing code
**crates/diesel_models/src/payment_intent.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_intent.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_data.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/flows/capture_flow.rs**
Modify existing code
**crates/router/src/core/payments/operations.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_capture_v2.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_get.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_response.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/webhooks/incoming_v2.rs**
Modify existing code
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/payments.rs**
Modify existing code
**crates/router/src/types.rs**
Modify existing code
|
{"pr_number": 6722, "pr_title": "feat(payments_v2): implement payments capture v2", "merged_at": "2024-12-20T15:53:01Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/events/payment.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/payment_intent.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "crates/hyperswitch_domain_models/src/router_data.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows/capture_flow.rs", "crates/router/src/core/payments/operations.rs", "crates/router/src/core/payments/operations/payment_capture_v2.rs", "crates/router/src/core/payments/operations/payment_get.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/webhooks/incoming_v2.rs"], "types": ["crates/router/src/types.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/openapi/src/openapi_v2.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/payments.rs"]}, "change_types": {"structs_added": 6, "functions_added": 96, "enums_added": 1, "fields_added": 351, "imports_added": 15, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
- `diesel_cli` version `2.3.0` expects to call `rustfmt` to format its output. If `rustfmt` is not installed on the system it will give an error.
- Added a step to install `rustfmt` to fix the workflow
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `.github/workflows/migration-check.yaml`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
|
{"pr_number": 9386, "pr_title": "ci(migration-check): install rustfmt to address migration run failures", "merged_at": "2025-09-15T12:52:03Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": [".github/workflows/migration-check.yaml"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Added support for `client_secret` authentication in `Payments - Get Intent`
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `crates/router/src/routes/payments.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
|
{"pr_number": 8119, "pr_title": "feat(router): Enable client_secret auth for payments_get_intent [v2]", "merged_at": "2025-05-27T10:56:27Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"other": ["crates/router/src/routes/payments.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
This PR enables card payouts through AdyenPlatform connector.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs`
**2. Configuration Files**
- `crates/router/src/configs/defaults/payout_required_fields.rs`
**Code Patterns Applied:**
- Define new data structures (7 changes)
- Implement new functions (2 changes)
- Extend existing types with new fields (61 changes)
**Detailed Identifier Changes:**
Commit 0c649158:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs**
Modify existing code
**crates/router/src/configs/defaults/payout_required_fields.rs**
Modify existing code
|
{"pr_number": 8504, "pr_title": "feat(connector): [ADYENPLATFORM] add card payouts", "merged_at": "2025-07-01T11:43:42Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "merchant", "user"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs"], "config": ["crates/router/src/configs/defaults/payout_required_fields.rs"]}, "change_types": {"structs_added": 7, "functions_added": 2, "enums_added": 1, "fields_added": 61, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Add multisafepay connector to cypress test suite
Connector doesn't support no_three_ds payments hence mapped accordingly
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js`
- `cypress-tests/cypress/e2e/configs/Payment/Utils.js`
**Code Patterns Applied:**
- Extend existing types with new fields (561 changes)
|
{"pr_number": 8479, "pr_title": "ci(cypress): add multisafepay connector", "merged_at": "2025-07-01T08:13:19Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Multisafepay.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js"]}, "change_types": {"fields_added": 561}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Flexiti is not a traditional credit card. It's a co-branded credit card that offers installment financing.
**Flexiti Payment Method Type:**
Co-Branded Credit Card with Installment Financing
- Flexiti issues a FlexitiCard (Mastercard network)
- Functions as both a credit card AND installment loan provider
- Customers get approved for a credit limit
- Can be used at participating merchants in the Flexiti network
This pr adds template code for flexiti as connector.
|
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/connector_endpoints.rs`
**2. External Connector Integration**
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- ... and 11 more files
**3. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**4. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (83 changes)
- Extend existing types with new fields (163 changes)
**Detailed Identifier Changes:**
Commit 0f66692e:
Files to modify:
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/flexiti.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/connector_endpoints.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/tests/connectors/flexiti.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 8714, "pr_title": "feat(connector): [Flexiti]template code for flexiti connector", "merged_at": "2025-07-25T07:20:56Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/connector_endpoints.rs"], "connectors": ["crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/flexiti.rs", "crates/hyperswitch_connectors/src/connectors/flexiti/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/router/src/connector.rs", "crates/router/tests/connectors/flexiti.rs", "crates/router/tests/connectors/main.rs", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"structs_added": 10, "functions_added": 83, "enums_added": 2, "fields_added": 163, "imports_added": 22}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Added config for changing text of confirm button for payment links
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/admin.rs`
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/payment_intent.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/lib.rs`
**4. Core Business Logic**
- `crates/router/src/core/payment_link.rs`
- `crates/router/src/core/payment_link/payment_link_initiate/payment_link.js`
- `crates/router/src/core/payments/transformers.rs`
**5. Type Definitions**
- `crates/router/src/types/transformers.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Extend existing types with new fields (16 changes)
**Detailed Identifier Changes:**
Commit 46aad503:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/payments.rs**
Modify existing code
**crates/diesel_models/src/business_profile.rs**
Modify existing code
**crates/diesel_models/src/payment_intent.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/lib.rs**
Modify existing code
**crates/router/src/core/payment_link.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 6860, "pr_title": "feat(payments): [Payment links] Add config for changing button text for payment links", "merged_at": "2024-12-19T13:28:25Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/payment_intent.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs"], "core_business": ["crates/router/src/core/payment_link.rs", "crates/router/src/core/payment_link/payment_link_initiate/payment_link.js", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/router/src/types/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"fields_added": 16}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
- Fix dynamic fields for SepaBankTransfer
- Handle error case Status mapping
- Fix wasm Changes for SepaBankTransfer
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- `crates/connector_configs/toml/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Extend existing types with new fields (3 changes)
|
{"pr_number": 7649, "pr_title": "refactor(connector): [TrustPay] Fix status and wasm changes ", "merged_at": "2025-03-26T18:06:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs"]}, "change_types": {"fields_added": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
This PR introduces the following fix:
HS should pass `paymentInformation.tokenizedCard.transactionType` for only wallet MITs. Presently `paymentInformation.tokenizedCard.transactionType` is being passed for card MITs as well, which is incorrect according to cybersource docs.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
|
{"pr_number": 9444, "pr_title": "fix(connector): [CYBERSOURCE] Pass transaction type for only wallet MITs", "merged_at": "2025-09-19T13:08:08Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Moving Datatrans, Paybox, Placetopay, Bluesnap from router crate to hyperswitch_connector crate
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/connector_integration_v2_impls.rs`
- `crates/router/src/core/payments/flows.rs`
**2. External Connector Integration**
- `crates/hyperswitch_connectors/Cargo.toml`
- `crates/hyperswitch_connectors/src/connectors.rs`
- `crates/router/src/connector/bluesnap.rs`
- ... and 13 more files
**3. Utils**
- `crates/common_utils/src/consts.rs`
**4. Other**
- `Cargo.lock`
- `crates/router/src/consts.rs`
**Code Patterns Applied:**
- Define new data structures (4 changes)
- Implement new functions (19 changes)
- Extend existing types with new fields (382 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit da5c34a3:
Files to modify:
**crates/common_utils/src/consts.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Modify existing code
**crates/router/src/connector/bluesnap.rs**
Modify existing code
**crates/router/src/connector/bluesnap/transformers.rs**
Modify existing code
**crates/router/src/connector/datatrans.rs**
Modify existing code
**crates/router/src/connector/datatrans/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs**
Modify existing code
**crates/router/src/connector/paybox.rs**
Modify existing code
**crates/router/src/connector/paybox/transformers.rs**
Modify existing code
**crates/router/src/connector/placetopay.rs**
Modify existing code
**crates/router/src/connector/placetopay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_connectors/src/types.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/src/consts.rs**
Modify existing code
**crates/router/src/core/payments/connector_integration_v2_impls.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
|
{"pr_number": 6730, "pr_title": "refactor(connector): Move connectors Datatrans, Paybox, Placetopay, Bluesnap from router crate to hyperswitch_connector crate", "merged_at": "2024-12-12T07:45:33Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/hyperswitch_connectors/Cargo.toml", "crates/hyperswitch_connectors/src/connectors.rs", "crates/router/src/connector/bluesnap.rs", "crates/router/src/connector/bluesnap/transformers.rs", "crates/router/src/connector/datatrans.rs", "crates/router/src/connector/datatrans/transformers.rs", "crates/hyperswitch_connectors/src/connectors/gocardless/transformers.rs", "crates/router/src/connector/paybox.rs", "crates/router/src/connector/paybox/transformers.rs", "crates/router/src/connector/placetopay.rs", "crates/router/src/connector/placetopay/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/hyperswitch_connectors/src/types.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector.rs"], "utils": ["crates/common_utils/src/consts.rs"], "other": ["Cargo.lock", "crates/router/src/consts.rs"]}, "change_types": {"structs_added": 4, "functions_added": 19, "enums_added": 1, "fields_added": 382, "imports_added": 46, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This pull request introduces a new field, `routing_result_source`, across various structs and enums in the codebase to specify the source of routing decision results. This field allows for flexibility in choosing between Hyperswitch's inbuilt routing engine and an external decision engine. The changes span multiple modules, including API models, database models, and domain models.
Also, while creating the routing rule decision engine rule_id will be prefilled with the hyperswitch rule_id, so both systems will have the same id
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/open_router.rs`
- `crates/api_models/src/routing.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/business_profile.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments/routing.rs`
- `crates/router/src/core/payments/routing/utils.rs`
- `crates/router/src/core/routing.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (17 changes)
- Extend existing types with new fields (71 changes)
- Add conditional logic for feature flags or filtering (8 changes)
- Modify database queries (10 changes)
**Detailed Identifier Changes:**
Commit a721d90c:
Files to modify:
**crates/api_models/src/open_router.rs**
Modify existing code
**crates/api_models/src/routing.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/business_profile.rs**
Modify existing code
**crates/router/src/core/payments/routing.rs**
Modify existing code
**crates/router/src/core/payments/routing/utils.rs**
Modify existing code
**crates/router/src/core/routing.rs**
Modify existing code
**crates/router/src/core/routing/helpers.rs**
Modify existing code
|
{"pr_number": 8350, "pr_title": "feat(routing): add profile config to switch between HS routing and DE routing result", "merged_at": "2025-06-20T13:20:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/open_router.rs", "crates/api_models/src/routing.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs"], "core_business": ["crates/router/src/core/payments/routing.rs", "crates/router/src/core/payments/routing/utils.rs", "crates/router/src/core/routing.rs", "crates/router/src/core/routing/helpers.rs"]}, "change_types": {"structs_added": 2, "functions_added": 17, "enums_added": 3, "fields_added": 71, "imports_added": 6, "conditionals_added": 8, "database_queries": 10}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Some connector requires connector metadata in the refund flow.
Example adyen requires `endpoint_prefix`. Hence this change is to populate the connector metadata in the relay refunds flow.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/relay/utils.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
|
{"pr_number": 7045, "pr_title": "fix(relay): populate connector metadata in the refunds flow", "merged_at": "2025-01-19T14:14:43Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/relay/utils.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Previously we were not sending some customer's details (email, shipping details) in the payload while creating the customer and thus merchant was not able to see the details in connector dashboard, this PR passes the fields and thus visible in the dashboard as well.
Populated description as None, because passing email and description together was throwing error considering it an invalid field. Have raised a query with authorize.NET for same.
|
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/payments/transformers.rs`
**3. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Extend existing types with new fields (48 changes)
**Detailed Identifier Changes:**
Commit cb8dff00:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
|
{"pr_number": 8618, "pr_title": "feat(connector): [AUTHORIZEDOTNET] Populated merchant required fields in setupmandate flow", "merged_at": "2025-07-14T07:33:35Z", "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/payments/transformers.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs"]}, "change_types": {"structs_added": 1, "fields_added": 48}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Hotfix for https://github.com/juspay/hyperswitch/pull/7211
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/fiuu.rs`
- `crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (6 changes)
|
{"pr_number": 7242, "pr_title": "fix(connector): [fiuu] update PSync and webhooks response", "merged_at": "2025-02-11T11:32:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/fiuu.rs", "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs"]}, "change_types": {"fields_added": 6}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR modifies the `Dockerfile` to specify the user at runner stage.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `Dockerfile`
|
{"pr_number": 7641, "pr_title": "build(docker): specify user for runner stage", "merged_at": "2025-03-27T09:20:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"other": ["Dockerfile"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Cashtocode does not support PSync.
When a PSync call is processed via Hyperswitch, the RouterData remains unchanged (payment status is not modified).
However, when the same PSync call goes via UCS, UCS returns an error response.
This causes inconsistent behavior between Hyperswitch and UCS flows.
To replicate Hyperswitch behavior when authorize was done through UCS:
- Introduced configuration "ucs_psync_disabled_connectors" under grpc_client.unified_connector_service.
- During call_unified_connector_service, we check if the connector is listed in "ucs_psync_disabled_connectors". If the connector is present, UCS PSync call is skipped, and unmodified RouterData is returned (same as Hyperswitch behavior).
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/flows/psync_flow.rs`
**2. External Connector Integration**
- `crates/external_services/src/grpc_client/unified_connector_service.rs`
**3. Tests**
- `config/deployments/integration_test.toml`
**4. Configuration Files**
- `config/config.example.toml`
- `config/deployments/env_specific.toml`
- `config/deployments/production.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 9093, "pr_title": "fix: Disable UCS PSync call for Cashtocode", "merged_at": "2025-09-02T14:46:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/flows/psync_flow.rs"], "connectors": ["crates/external_services/src/grpc_client/unified_connector_service.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml"]}, "change_types": {"fields_added": 1, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
build the gRPC interface for communicating with the external service to perform elimination routing
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/routing.rs`
**2. Core Business Logic**
- `crates/router/src/core/payments/routing.rs`
- `crates/router/src/core/routing.rs`
- `crates/router/src/core/routing/helpers.rs`
**3. Other**
- `crates/external_services/build.rs`
- `crates/external_services/src/grpc_client/dynamic_routing.rs`
- `crates/external_services/src/grpc_client/dynamic_routing/elimination_rate_client.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (17 changes)
- Extend existing types with new fields (60 changes)
**Detailed Identifier Changes:**
Commit 2a66f4a3:
Files to modify:
**crates/api_models/src/routing.rs**
Modify existing code
**crates/external_services/build.rs**
Modify existing code
**crates/external_services/src/grpc_client/dynamic_routing.rs**
Modify existing code
**crates/external_services/src/grpc_client/dynamic_routing/elimination_rate_client.rs**
Modify existing code
**crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs**
Modify existing code
**crates/router/src/core/payments/routing.rs**
Modify existing code
**crates/router/src/core/routing.rs**
Modify existing code
**crates/router/src/core/routing/helpers.rs**
Modify existing code
|
{"pr_number": 6672, "pr_title": "feat(routing): build the gRPC interface for communicating with the external service to perform elimination routing", "merged_at": "2024-12-13T05:41:41Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"api_models": ["crates/api_models/src/routing.rs"], "core_business": ["crates/router/src/core/payments/routing.rs", "crates/router/src/core/routing.rs", "crates/router/src/core/routing/helpers.rs"], "other": ["crates/external_services/build.rs", "crates/external_services/src/grpc_client/dynamic_routing.rs", "crates/external_services/src/grpc_client/dynamic_routing/elimination_rate_client.rs", "crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs", "proto/elimination_rate.proto"]}, "change_types": {"structs_added": 1, "functions_added": 17, "enums_added": 2, "fields_added": 60, "imports_added": 12}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Payment links will have `Add Payment Method` as button text in case merchant send is_setup_mandate_flow as `true` in payment_link_config, `Authorize Payment` in case of manual capture payments and `Pay Now` in automatic captures.
is_setup_mandate_flow field is only used to alter the text in payment button our core flow of setup mandate remains the same i.e setup mandate flow is used only if amount is zero other authorize flow is used in payments core.
Priority given according to below:
1. Payment button text added while business profile creation.
2. is_setup_mandate_flow passed in payment_link_config
3. Zero amount setup mandate flow.
4. Manual captures payment.
5. Automatic captures.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/admin.rs`
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/payment_intent.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/lib.rs`
**4. Core Business Logic**
- `crates/router/src/core/payment_link.rs`
- `crates/router/src/core/payment_link/locale.js`
- `crates/router/src/core/payment_link/payment_link_initiate/payment_link.js`
- ... and 1 more files
**5. Type Definitions**
- `crates/router/src/types/transformers.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Extend existing types with new fields (59 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit fa465930:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/payments.rs**
Modify existing code
**crates/diesel_models/src/business_profile.rs**
Modify existing code
**crates/diesel_models/src/payment_intent.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/lib.rs**
Modify existing code
**crates/router/src/core/payment_link.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 7574, "pr_title": "feat(payment-link): alternate text for manual captures", "merged_at": "2025-04-25T12:16:40Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/payment_intent.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs"], "core_business": ["crates/router/src/core/payment_link.rs", "crates/router/src/core/payment_link/locale.js", "crates/router/src/core/payment_link/payment_link_initiate/payment_link.js", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/router/src/types/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"fields_added": 59, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Earlier Limitation:
1. Adding connector to customer create config will trigger customer create for all types of payments where mostly, connectors would require customer create for a specific payment method or customer initiated payment method.
2. This config will not change depending on the environment
This pR - adds the ability to call customer create according to the connector need, based on the parameters of payment attempt.
>Note: This PR only adds the capability to call connector according to the requirement and it is not handled for any connector. This pr is a pre-requisite for Paysafe recurring
## 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)?
-->
1. Authorize.net create a cit with new customer and check if customer call has happened. Customer call is expected to happen
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_5dLbCL5aZt8XTkvr6yuljA1O6yW89oy4AHECe8vp2rDsNcechPyi9uvZd6s6XnCL' \
--data-raw '{
"amount": 100,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"email": "hello@123.com",
"customer_id": "cus_001247",
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "4000000000001091",
"card_exp_month": "10",
"card_exp_year": "25",
"card_cvc": "111"
}
},
"customer_acceptance": {
"acceptance_type": "online",
"accepted_at": "2025-03-27T13:56:49.848Z",
"online": {
"ip_address": null,
"user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15"
}
},
"setup_future_usage": "off_session",
"browser_info": {
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"language": "nl-NL",
"color_depth": 24,
"screen_height": 723,
"screen_width": 1536,
"time_zone": 0,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "13.232.74.226"
},
"billing": {
"address": {
"zip": "560095",
"country": "CA",
"state": "ab",
"first_name": "Sakil",
"last_name": "Mostak",
"line1": "Fasdf",
"line2": "Fasdf",
"city": "Fasdf"
}
}
}'
```
Response
```
{
"payment_id": "pay_fLd6FYOYfYOA9bNeKjl1",
"merchant_id": "postman_merchant_GHAction_aa704bd6-a15a-4e36-8aa8-14c856f736f7",
"status": "succeeded",
"amount": 100,
"net_amount": 100,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 100,
"connector": "authorizedotnet",
"client_secret": "pay_fLd6FYOYfYOA9bNeKjl1_secret_h93kplljoJcUxguJyIpj",
"created": "2025-09-26T07:27:51.413Z",
"currency": "USD",
"customer_id": "cus_001247",
"customer": {
"id": "cus_001247",
"name": null,
"email": "hello@123.com",
"phone": null,
"phone_country_code": null
},
"description": null,
"refunds": null,
"disputes": null,
"mandate_id": null,
"mandate_data": null,
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "1091",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "400000",
"card_extended_bin": null,
"card_exp_month": "10",
"card_exp_year": "25",
"card_holder_name": null,
"payment_checks": null,
"authentication_data": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "Fasdf",
"country": "CA",
"line1": "Fasdf",
"line2": "Fasdf",
"line3": null,
"zip": "560095",
"state": "ab",
"first_name": "Sakil",
"last_name": "Mostak",
"origin_zip": null
},
"phone": null,
"email": null
},
"order_details": null,
"email": "hello@123.com",
"name": null,
"phone": null,
"return_url": null,
"authentication_type": "no_three_ds",
"statement_descriptor_name": null,
"statement_descriptor_suffix": null,
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "credit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "cus_001247",
"created_at": 1758871671,
"expires": 1758875271,
"secret": "epk_8e029574d35b4424b9ad0ca4bf6df324"
},
"manual_retry_allowed": null,
"connector_transaction_id": "0",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": {
"redirect_response": null,
"search_tags": null,
"apple_pay_recurring_details": null,
"gateway_system": "direct"
},
"reference_id": "0",
"payment_link": null,
"profile_id": "pro_fKWiw0Pbhwo6g8CPBpuE",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_GuStJEZSP9HpoQ5vWhc3",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-09-26T07:42:51.412Z",
"fingerprint": null,
"browser_info": {
"language": "nl-NL",
"time_zone": 0,
"ip_address": "13.232.74.226",
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
"color_depth": 24,
"java_enabled": true,
"screen_width": 1536,
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"screen_height": 723,
"java_script_enabled": true
},
"payment_channel": null,
"payment_method_id": "pm_2nBdpBO5KXAsojpOdAVK",
"network_transaction_id": null,
"payment_method_status": "active",
"updated": "2025-09-26T07:27:53.974Z",
"split_payments": null,
"frm_metadata": null,
"extended_authorization_applied": null,
"capture_before": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null,
"card_discovery": "manual",
"force_3ds_challenge": false,
"force_3ds_challenge_trigger": false,
"issuer_error_code": null,
"issuer_error_message": null,
"is_iframe_redirection_enabled": null,
"whole_connector_response": null,
"enable_partial_authorization": null,
"enable_overcapture": null,
"is_overcapture_enabled": null,
"network_details": null
}
```
<img width="975" height="344" alt="Screenshot 2025-09-26 at 12 58 18 PM" src="https://github.com/user-attachments/assets/8a8fef48-27f4-439a-8336-9f097c5c7d0e" />
Hyperswitch Vaulting may be affected
## 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
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/customers.rs`
- `crates/router/src/core/payments/vault_session.rs`
**2. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs`
- `crates/hyperswitch_connectors/src/connectors/dwolla.rs`
- `crates/hyperswitch_connectors/src/connectors/facilitapay.rs`
- ... and 5 more files
**3. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**4. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 3 more files
**5. Other**
- `crates/hyperswitch_interfaces/src/api.rs`
**Code Patterns Applied:**
- Implement new functions (9 changes)
- Extend existing types with new fields (11 changes)
**Detailed Identifier Changes:**
Commit bfc136cc:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/dwolla.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/facilitapay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/gocardless.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stax.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stripe.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/api.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/connector_integration_interface.rs**
Modify existing code
**crates/router/src/configs/settings.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/customers.rs**
Modify existing code
**crates/router/src/core/payments/vault_session.rs**
Modify existing code
|
{"pr_number": 9569, "pr_title": "fix(core): add should_call_connector_customer function to connector specification", "merged_at": "2025-09-30T07:42:14Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/customers.rs", "crates/router/src/core/payments/vault_session.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs", "crates/hyperswitch_connectors/src/connectors/dwolla.rs", "crates/hyperswitch_connectors/src/connectors/facilitapay.rs", "crates/hyperswitch_connectors/src/connectors/gocardless.rs", "crates/hyperswitch_connectors/src/connectors/hyperswitch_vault.rs", "crates/hyperswitch_connectors/src/connectors/stax.rs", "crates/hyperswitch_connectors/src/connectors/stripe.rs", "crates/hyperswitch_interfaces/src/connector_integration_interface.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml", "crates/router/src/configs/settings.rs"], "other": ["crates/hyperswitch_interfaces/src/api.rs"]}, "change_types": {"functions_added": 9, "fields_added": 11, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
- implement session update flow for Paypal
- implement post_update_tracker for SessionUpdate Flow
hotfix for [PR](https://github.com/juspay/hyperswitch/pull/6299)
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/router_request_types.rs`
- `crates/hyperswitch_domain_models/src/router_response_types.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/flows.rs`
- `crates/router/src/core/payments/operations/payment_approve.rs`
- ... and 15 more files
**4. External Connector Integration**
- `crates/router/src/connector/paypal.rs`
- `crates/router/src/connector/paypal/transformers.rs`
- `crates/router/tests/connectors/utils.rs`
**5. Type Definitions**
- `crates/hyperswitch_interfaces/src/types.rs`
- `crates/router/src/types.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/common_enums/src/enums.rs`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (16 changes)
- Extend existing types with new fields (95 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit 75a67f21:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_response_types.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/types.rs**
Modify existing code
**crates/router/src/connector/paypal.rs**
Modify existing code
**crates/router/src/connector/paypal/transformers.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_approve.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_cancel.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_capture.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_complete_authorize.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_post_session_tokens.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_reject.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_response.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_session.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_start.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_status.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_update.rs**
Modify existing code
**crates/router/src/core/payments/operations/payments_incremental_authorization.rs**
Modify existing code
**crates/router/src/core/payments/operations/tax_calculation.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/types.rs**
Modify existing code
**crates/router/tests/connectors/utils.rs**
Modify existing code
|
{"pr_number": 6350, "pr_title": "feat(router): implement post_update_tracker for SessionUpdate Flow and add support for session_update_flow for Paypal", "merged_at": "2024-10-17T10:22:37Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_request_types.rs", "crates/hyperswitch_domain_models/src/router_response_types.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows.rs", "crates/router/src/core/payments/operations/payment_approve.rs", "crates/router/src/core/payments/operations/payment_cancel.rs", "crates/router/src/core/payments/operations/payment_capture.rs", "crates/router/src/core/payments/operations/payment_complete_authorize.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/operations/payment_post_session_tokens.rs", "crates/router/src/core/payments/operations/payment_reject.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/operations/payment_session.rs", "crates/router/src/core/payments/operations/payment_start.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payments/operations/payment_update.rs", "crates/router/src/core/payments/operations/payments_incremental_authorization.rs", "crates/router/src/core/payments/operations/tax_calculation.rs", "crates/router/src/core/payments/transformers.rs"], "connectors": ["crates/router/src/connector/paypal.rs", "crates/router/src/connector/paypal/transformers.rs", "crates/router/tests/connectors/utils.rs"], "types": ["crates/hyperswitch_interfaces/src/types.rs", "crates/router/src/types.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs"]}, "change_types": {"structs_added": 2, "functions_added": 16, "enums_added": 3, "fields_added": 95, "imports_added": 2, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
- google pay details can be collected from connector_wallets_details field in MCA. Both for decrypt and tokenized flow
- session token response can be generated from both connector_wallets_details and metadata. (connector_wallets_details is given the priority in case both are present)
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Core Business Logic**
- `crates/router/src/core/errors.rs`
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/flows/session_flow.rs`
- ... and 1 more files
**3. External Connector Integration**
- `crates/router/src/connector/trustpay/transformers.rs`
**4. Configuration Files**
- `crates/router/src/configs/secrets_transformers.rs`
- `crates/router/src/configs/settings.rs`
**5. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/router/src/consts.rs`
**Code Patterns Applied:**
- Implement new functions (2 changes)
- Extend existing types with new fields (75 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 66d9c731:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/router/src/configs/secrets_transformers.rs**
Modify existing code
**crates/router/src/configs/settings.rs**
Modify existing code
**crates/router/src/connector/trustpay/transformers.rs**
Modify existing code
**crates/router/src/consts.rs**
Modify existing code
**crates/router/src/core/errors.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/flows/session_flow.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Modify existing code
|
{"pr_number": 7140, "pr_title": "feat(core): add support to generate session token response from both `connector_wallets_details` and `metadata`", "merged_at": "2025-02-13T08:26:17Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "core_business": ["crates/router/src/core/errors.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows/session_flow.rs", "crates/router/src/core/payments/helpers.rs"], "connectors": ["crates/router/src/connector/trustpay/transformers.rs"], "config": ["crates/router/src/configs/secrets_transformers.rs", "crates/router/src/configs/settings.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/router/src/consts.rs"]}, "change_types": {"functions_added": 2, "fields_added": 75, "imports_added": 3, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Add Shipping Cost test case for cypress automation
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/PaymentTest/00004-NoThreeDSAutoCapture.cy.js`
- `cypress-tests/cypress/e2e/PaymentUtils/Adyen.js`
- `cypress-tests/cypress/e2e/PaymentUtils/BankOfAmerica.js`
- ... and 10 more files
**Code Patterns Applied:**
- Extend existing types with new fields (262 changes)
- Add conditional logic for feature flags or filtering (4 changes)
|
{"pr_number": 6779, "pr_title": "ci(cypress): Add shipping cost test case", "merged_at": "2024-12-10T12:53:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/PaymentTest/00004-NoThreeDSAutoCapture.cy.js", "cypress-tests/cypress/e2e/PaymentUtils/Adyen.js", "cypress-tests/cypress/e2e/PaymentUtils/BankOfAmerica.js", "cypress-tests/cypress/e2e/PaymentUtils/Bluesnap.js", "cypress-tests/cypress/e2e/PaymentUtils/Checkout.js", "cypress-tests/cypress/e2e/PaymentUtils/Commons.js", "cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js", "cypress-tests/cypress/e2e/PaymentUtils/Nmi.js", "cypress-tests/cypress/e2e/PaymentUtils/Noon.js", "cypress-tests/cypress/e2e/PaymentUtils/Paypal.js", "cypress-tests/cypress/e2e/PaymentUtils/Stripe.js", "cypress-tests/cypress/e2e/PaymentUtils/Trustpay.js", "cypress-tests/cypress/support/commands.js"]}, "change_types": {"fields_added": 262, "conditionals_added": 4}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
This PR integrates the Euclid-based decision engine with Hyperswitch’s dynamic routing infrastructure. It enables dual routing logic: legacy DSL-based evaluation and decision-engine-backed configurations. The integration ensures routing algorithms can be authored, activated, and evaluated via Euclid and linked seamlessly to merchant profiles.
## Outcomes
- Adds support for storing and linking decision-engine routing IDs (`decision_engine_routing_id`) in the existing `routing_algorithm` table.
- Enables creation and linking of Euclid routing configurations during algorithm creation and configuration linking flows.
- Enhances observability with logging and tracing of decision engine interactions.
- Preserves backward compatibility with existing static/dynamic routing mechanisms.
## Diff Hunk Explanation
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/routing.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/routing_algorithm.rs`
- `crates/diesel_models/src/schema.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments/routing.rs`
- `crates/router/src/core/payments/routing/utils.rs`
- `crates/router/src/core/routing.rs`
- ... and 2 more files
**4. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `migrations/2025-05-08-102850_add_de_euclid_id_in_routing_algorithm_table/down.sql`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (16 changes)
- Implement new functions (24 changes)
- Extend existing types with new fields (146 changes)
- Add conditional logic for feature flags or filtering (20 changes)
**Detailed Identifier Changes:**
Commit 4087cd27:
Files to modify:
**crates/api_models/src/routing.rs**
Modify existing code
**crates/diesel_models/src/routing_algorithm.rs**
Modify existing code
**crates/diesel_models/src/schema.rs**
Modify existing code
**crates/router/src/core/payments/routing.rs**
Modify existing code
**crates/router/src/core/payments/routing/utils.rs**
Modify existing code
**crates/router/src/core/routing.rs**
Modify existing code
**crates/router/src/core/routing/helpers.rs**
Modify existing code
**crates/router/src/core/routing/transformers.rs**
Modify existing code
|
{"pr_number": 7930, "pr_title": "feat(euclid): integration with decision engine", "merged_at": "2025-05-14T18:40:13Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/routing.rs"], "database": ["crates/diesel_models/src/routing_algorithm.rs", "crates/diesel_models/src/schema.rs"], "core_business": ["crates/router/src/core/payments/routing.rs", "crates/router/src/core/payments/routing/utils.rs", "crates/router/src/core/routing.rs", "crates/router/src/core/routing/helpers.rs", "crates/router/src/core/routing/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "migrations/2025-05-08-102850_add_de_euclid_id_in_routing_algorithm_table/down.sql", "migrations/2025-05-08-102850_add_de_euclid_id_in_routing_algorithm_table/up.sql", "v2_migrations/2025-01-13-081847_drop_v1_columns/up.sql"]}, "change_types": {"structs_added": 16, "functions_added": 24, "enums_added": 4, "fields_added": 146, "imports_added": 15, "conditionals_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Corrected the docker setup, for demo app, control-center, and removed mailhog.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Configuration Files**
- `docker-compose-development.yml`
- `docker-compose.yml`
**2. Other**
- `README.md`
- `scripts/docker_output.sh`
- `scripts/poststart_hook.sh`
- ... and 1 more files
**Code Patterns Applied:**
- Extend existing types with new fields (8 changes)
|
{"pr_number": 7963, "pr_title": "fix: fixes the docker setup to clean up the scarf data", "merged_at": "2025-05-12T16:21:53Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"config": ["docker-compose-development.yml", "docker-compose.yml"], "other": ["README.md", "scripts/docker_output.sh", "scripts/poststart_hook.sh", "scripts/setup.sh"]}, "change_types": {"fields_added": 8}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
- Moved required fields for `givex` gift card for `Adyen` from `non-mandate` to `common`
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Configuration Files**
- `config/payment_required_fields_v2.toml`
|
{"pr_number": 9414, "pr_title": "fix(config): Set common required fields for Givex (v2)", "merged_at": "2025-09-18T08:51:00Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"config": ["config/payment_required_fields_v2.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Added WASM build check as part of pipeline



|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Configuration Files**
- `.github/workflows/wasm-bulild-check.yml`
**Code Patterns Applied:**
- Extend existing types with new fields (16 changes)
|
{"pr_number": 6842, "pr_title": "ci: add workflow to check wasm-pack build", "merged_at": "2024-12-17T10:58:16Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"config": [".github/workflows/wasm-bulild-check.yml"]}, "change_types": {"fields_added": 16}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Fix deserlization error for Nuvei card 3ds
|
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/authentication.rs`
**2. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs`
**3. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Nuvei.js`
**Code Patterns Applied:**
- Extend existing types with new fields (12 changes)
|
{"pr_number": 8913, "pr_title": "refactor(connector): [Nuvei] Fix card 3ds", "merged_at": "2025-08-19T11:00:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_request_types/authentication.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/Nuvei.js"]}, "change_types": {"fields_added": 12}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR adds payment methods session confirm endpoint. This endpoint can be used to create multi use tokens for the given payment method data.
Payment method session confirm endpoint creates a payment method based on the `payment_method_session` data. If tokenization parameter is passed when creating the session, then based on the tokenization type appropriate action is taken
- multi_use: A zero auth payment is created and the payment method is updated with the connector mandate details of multi use token.
- single_use: The payment method data is tokenized at the connector and the single use token is stored in the redis. This will have an expiry and the ttl in redis is same as the expiry.
Payment method update endpoint has been modified to take in connector_token_details. This will be used by the payments service to update the payment method with connector details.
Payment method session endpoint also supports passing a `return_url`. This return url will be used to redirect the customer after adding the payment method.
<!--
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).
-->
Add the ability for payment methods to create `multi_use` tokens. These tokens can be used by the merchant to create recurring payments.
The interaction between various services looks like this
```mermaid
sequenceDiagram
participant Client as Client
participant PaymentMethodSession as Payment Method Session Service
participant PaymentMethodService as Payment Method Service
participant PaymentService as Payment Service
participant Processor as Payment Service Provider ( PSP )
Client ->> PaymentMethodSession: Confirm ( payment instrument )
PaymentMethodSession ->> PaymentMethodService: Create payment method
PaymentMethodService -->> PaymentMethodSession: Created payment method
PaymentMethodSession ->> PaymentService: Create zero dollar payment
PaymentService ->> Processor: Create zero dollar payment
Processor ->> PaymentService: Multi use token
PaymentService ->> PaymentMethodService: Update payment method
PaymentMethodService ->> PaymentService: Updated payment method
PaymentService -->> PaymentMethodSession: PaymentsResponse
PaymentMethodSession -->> Client: Final Response
```
## 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)?
-->
- Create a payment method session
```bash
curl --location 'http://localhost:8080/v2/payment-methods-session' \
--header 'x-profile-id: pro_m4wtxJJdOjEkxU91BRlH' \
--header 'Authorization: api-key=dev_B0nkISzanqmcJh32XBxVlyvKmMcX5Yq8FPcEkDDbcX8gO0UrgWD4HnpUedxfE32G' \
--header 'Content-Type: application/json' \
--data-raw '{
"customer_id": "12345_cus_0194f628ad6975c1afdd405f1fea91f2",
"billing": {
"address": {
"first_name": "John",
"last_name": "Dough"
},
"email": "example@example.com"
},
"psp_tokenization": {
"tokenization_type": "multi_use"
}
}'
```
- Confirm the payment method session
```bash
curl --location 'http://localhost:8080/v2/payment-methods-session/12345_pms_0194f8662d1f7f93a40742d6bad750f5/confirm' \
--header 'x-profile-id: pro_m4wtxJJdOjEkxU91BRlH' \
--header 'Authorization: publishable-key=pk_dev_fe499cfc3af84916b8a6c88d1e6d4685,client-secret=cs_0194f8662d217f039899809bd56b8935' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_B0nkISzanqmcJh32XBxVlyvKmMcX5Yq8FPcEkDDbcX8gO0UrgWD4HnpUedxfE32G' \
--data '{
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "03",
"card_exp_year": "25",
"card_holder_name": "John Doe",
"card_cvc": "100"
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit"
}'
```
- Response
```json
{
"id": "12345_pms_019536be6fd07a528fe2fc854e1c4d85",
"customer_id": "12345_cus_019536acdafa7072a37358266d29d792",
"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": null
},
"network_tokenization": null,
"expires_at": "2025-02-24T07:11:45.009Z",
"client_secret": "CLIENT_SECRET_REDACTED",
"return_url": "https://example.com/",
"next_action": null,
"authentication_details": {
"status": "succeeded",
"error": null
},
"associated_payment_methods": null
}
```
- Retrieve the payment method
```bash
curl --location 'http://localhost:8080/v2/payment-methods/12345_pm_019504c895957b519c76a18e87dea20a' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-Profile-Id: pro_1RoTuoBXXI26yZynB5Fo' \
--header 'X-Resource-Type: payment_method' \
--header 'api-key: dev_is9uwUErOA7ZgYT8w8l7tBxFSEdjaS05m2tTolfmo5UjecJvpyqMJjs8GfFya4ag'
```
- Response
```json
{
"id": "12345_pm_019504c895957b519c76a18e87dea20a",
"merchant_id": "cloth_seller_gcurrlmBuT1eneyzkrEl",
"customer_id": "12345_cus_019504c817f17551810ceb7a97c2caeb",
"payment_method_type": null,
"payment_method_subtype": null,
"recurring_enabled": false,
"created": "2025-02-14T14:06:49.238Z",
"last_used_at": "2025-02-14T14:06:49.238Z",
"payment_method_data": {
"card": {
"issuer_country": null,
"last4_digits": "4242",
"expiry_month": "03",
"expiry_year": "25",
"card_holder_name": "John Doe",
"card_fingerprint": null,
"nick_name": null,
"card_network": null,
"card_isin": null,
"card_issuer": null,
"card_type": null,
"saved_to_locker": true
}
},
"connector_tokens": [
{
"connector_id": "mca_THuVOEAhX1eniohK6sdD",
"token_type": "multi_use",
"status": "active",
"connector_token_request_reference_id": "UAXPZSDMQiNhPLdGSn",
"original_payment_authorized_amount": 0,
"original_payment_authorized_currency": "USD",
"metadata": null,
"token": "pm_1QsPXZD5R7gDAGffWSJ6wrsz"
}
]
}
```
## 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
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/events.rs`
- `crates/api_models/src/events/payment.rs`
- `crates/api_models/src/payment_methods.rs`
- ... and 2 more files
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/payment_attempt.rs`
- `crates/diesel_models/src/payment_method.rs`
- `crates/diesel_models/src/payment_methods_session.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/api.rs`
- `crates/hyperswitch_domain_models/src/mandates.rs`
- `crates/hyperswitch_domain_models/src/merchant_account.rs`
- ... and 4 more files
**4. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/payment_methods.rs`
- `crates/router/src/core/payment_methods/transformers.rs`
- ... and 8 more files
**5. Type Definitions**
- `crates/common_types/src/payment_methods.rs`
- `crates/router_env/src/logger/types.rs`
**6. Utils**
- `crates/common_utils/src/macros.rs`
- `crates/router/src/routes/lock_utils.rs`
**7. Other**
- `api-reference-v2/api-reference/payment-method-session/payment-method-session--confirm-a-payment-method-session.mdx`
- `api-reference-v2/mint.json`
- `api-reference-v2/openapi_spec.json`
- ... and 12 more files
**Code Patterns Applied:**
- Define new data structures (17 changes)
- Implement new functions (39 changes)
- Extend existing types with new fields (320 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 0fb01917:
Files to modify:
**crates/api_models/src/events.rs**
Modify existing code
**crates/api_models/src/events/payment.rs**
Modify existing code
**crates/api_models/src/payment_methods.rs**
Modify existing code
**crates/api_models/src/payments.rs**
Modify existing code
**crates/api_models/src/webhooks.rs**
Modify existing code
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/common_types/src/payment_methods.rs**
Modify existing code
**crates/common_utils/src/macros.rs**
Modify existing code
**crates/diesel_models/src/payment_attempt.rs**
Modify existing code
**crates/diesel_models/src/payment_method.rs**
Modify existing code
**crates/diesel_models/src/payment_methods_session.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/api.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/mandates.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/merchant_account.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payment_methods.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_data.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_response_types.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/openapi/src/routes/payment_method.rs**
Modify existing code
**crates/openapi/src/routes/payments.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Modify existing code
**crates/router/src/core/payment_methods/transformers.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm_intent.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_response.rs**
Modify existing code
**crates/router/src/core/payments/tokenization.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/payouts.rs**
Modify existing code
**crates/router/src/core/webhooks/incoming_v2.rs**
Modify existing code
**crates/router/src/core/webhooks/recovery_incoming.rs**
Modify existing code
**crates/router/src/db/kafka_store.rs**
Modify existing code
**crates/router/src/db/payment_method_session.rs**
Modify existing code
**crates/router/src/lib.rs**
Modify existing code
**crates/router/src/routes.rs**
Modify existing code
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/lock_utils.rs**
Modify existing code
**crates/router/src/routes/payment_methods.rs**
Modify existing code
**crates/router/src/routes/payments.rs**
Modify existing code
**crates/router_env/src/logger/types.rs**
Modify existing code
**crates/storage_impl/src/errors.rs**
Modify existing code
|
{"pr_number": 7248, "pr_title": "feat(payment_method_session): implement payment methods session confirm", "merged_at": "2025-02-26T18:13:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/events.rs", "crates/api_models/src/events/payment.rs", "crates/api_models/src/payment_methods.rs", "crates/api_models/src/payments.rs", "crates/api_models/src/webhooks.rs"], "database": ["crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/payment_method.rs", "crates/diesel_models/src/payment_methods_session.rs"], "domain": ["crates/hyperswitch_domain_models/src/api.rs", "crates/hyperswitch_domain_models/src/mandates.rs", "crates/hyperswitch_domain_models/src/merchant_account.rs", "crates/hyperswitch_domain_models/src/payment_methods.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/router_data.rs", "crates/hyperswitch_domain_models/src/router_response_types.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/transformers.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_confirm_intent.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/payouts.rs", "crates/router/src/core/webhooks/incoming_v2.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "types": ["crates/common_types/src/payment_methods.rs", "crates/router_env/src/logger/types.rs"], "utils": ["crates/common_utils/src/macros.rs", "crates/router/src/routes/lock_utils.rs"], "other": ["api-reference-v2/api-reference/payment-method-session/payment-method-session--confirm-a-payment-method-session.mdx", "api-reference-v2/mint.json", "api-reference-v2/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/openapi/src/openapi_v2.rs", "crates/openapi/src/routes/payment_method.rs", "crates/openapi/src/routes/payments.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/db/payment_method_session.rs", "crates/router/src/lib.rs", "crates/router/src/routes.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/payment_methods.rs", "crates/router/src/routes/payments.rs", "crates/storage_impl/src/errors.rs"]}, "change_types": {"structs_added": 17, "functions_added": 39, "enums_added": 2, "fields_added": 320, "imports_added": 5, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR fixes Cypress tests for Itaubank, Paybox and Datatrans.
Datatrans still fail. Datatrans fails because `ResponseCustom` needs a refactor while Paybox requires us to pass `FR` as country and upon fixing it, it started to say wrong creds.
Facilitapay has no issues. Wise and Elavon creds issue.
JP Morgan addressed in https://github.com/juspay/hyperswitch/pull/8282
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Datatrans.js`
- `cypress-tests/cypress/e2e/configs/Payment/ItauBank.js`
- `cypress-tests/cypress/e2e/configs/Payment/Modifiers.js`
- ... and 1 more files
**Code Patterns Applied:**
- Extend existing types with new fields (402 changes)
|
{"pr_number": 8229, "pr_title": "fix(cypress): fix itaubank, datatrans and facilitapay", "merged_at": "2025-06-10T10:26:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Datatrans.js", "cypress-tests/cypress/e2e/configs/Payment/ItauBank.js", "cypress-tests/cypress/e2e/configs/Payment/Modifiers.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js"]}, "change_types": {"fields_added": 402}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Deprecated groups include:
1. organizationManage
2. merchantDetailsView
3. merchantDetailsManage
These permissions are equivalent to
organizationManage == accountManage
merchantDetailsManage == accountManage
merchantDetailsView == accountView
Also earlier validation blocks organizationManage when creating custom roles because this permission was only available for predefined roles. We will be removing that validation check as the permission itself doesn't exists now.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Utils**
- `crates/router/src/utils/user_role.rs`
**2. Other**
- `crates/common_enums/src/enums.rs`
- `crates/router/src/services/authorization/info.rs`
- `crates/router/src/services/authorization/permission_groups.rs`
- ... and 3 more files
**Code Patterns Applied:**
- Add conditional logic for feature flags or filtering (1 changes)
- Modify database queries (4 changes)
**Detailed Identifier Changes:**
Commit 1f34f890:
Files to modify:
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/router/src/services/authorization/info.rs**
Modify existing code
**crates/router/src/services/authorization/permission_groups.rs**
Modify existing code
**crates/router/src/services/authorization/roles/predefined_roles.rs**
Modify existing code
**crates/router/src/utils/user_role.rs**
Modify existing code
|
{"pr_number": 9604, "pr_title": "refactor(users): remove deprecated permission groups", "merged_at": "2025-10-16T07:26:55Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant"]}, "hierarchy": {"utils": ["crates/router/src/utils/user_role.rs"], "other": ["crates/common_enums/src/enums.rs", "crates/router/src/services/authorization/info.rs", "crates/router/src/services/authorization/permission_groups.rs", "crates/router/src/services/authorization/roles/predefined_roles.rs", "migrations/2025-10-06-111411_deprecated_roles_backfill/down.sql", "migrations/2025-10-06-111411_deprecated_roles_backfill/up.sql"]}, "change_types": {"conditionals_added": 1, "database_queries": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Hotfix for https://github.com/juspay/hyperswitch/pull/6725
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/admin.rs`
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/payment_intent.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/lib.rs`
**4. Core Business Logic**
- `crates/router/src/core/payment_link.rs`
- `crates/router/src/core/payment_link/payment_link_initiate/payment_link.css`
- `crates/router/src/core/payment_link/payment_link_initiate/payment_link.html`
- ... and 3 more files
**5. Type Definitions**
- `crates/router/src/types/transformers.rs`
**6. Configuration Files**
- `config/deployments/production.toml`
**7. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/common_enums/src/enums.rs`
- ... and 3 more files
**Code Patterns Applied:**
- Define new data structures (3 changes)
- Implement new functions (8 changes)
- Extend existing types with new fields (64 changes)
- Add conditional logic for feature flags or filtering (18 changes)
**Detailed Identifier Changes:**
Commit 4c2c05a1:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/payments.rs**
Modify existing code
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/common_enums/src/enums/ui.rs**
Modify existing code
**crates/diesel_models/src/business_profile.rs**
Modify existing code
**crates/diesel_models/src/payment_intent.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/lib.rs**
Modify existing code
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/router/src/core/payment_link.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 6831, "pr_title": "feat(core): payment links - add support for custom background image and layout in details section", "merged_at": "2024-12-12T17:58:15Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/payment_intent.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs"], "core_business": ["crates/router/src/core/payment_link.rs", "crates/router/src/core/payment_link/payment_link_initiate/payment_link.css", "crates/router/src/core/payment_link/payment_link_initiate/payment_link.html", "crates/router/src/core/payment_link/payment_link_initiate/payment_link.js", "crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/router/src/types/transformers.rs"], "config": ["config/deployments/production.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/common_enums/src/enums/ui.rs", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs"]}, "change_types": {"structs_added": 3, "functions_added": 8, "enums_added": 4, "fields_added": 64, "imports_added": 4, "conditionals_added": 18}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Closes - #5175
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `README.md`
- `docs/imgs/hyperswitch-logo-dark.svg`
- `docs/imgs/hyperswitch-logo-light.svg`
- ... and 2 more files
|
{"pr_number": 6368, "pr_title": "docs: upload new logos", "merged_at": "2024-10-18T14:34:22Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": ["README.md", "docs/imgs/hyperswitch-logo-dark.svg", "docs/imgs/hyperswitch-logo-light.svg", "docs/imgs/hyperswitch-product.png", "docs/imgs/switch.png"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Ref [PR](https://github.com/juspay/hyperswitch/pull/8455)
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/trustpay.rs`
- `crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (7 changes)
**Detailed Identifier Changes:**
Commit dfcba7ab:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/trustpay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs**
Modify existing code
|
{"pr_number": 8508, "pr_title": "fix(connector): [TRUSTPAY] Consuming Amount in PSync Response", "merged_at": "2025-07-01T09:56:26Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/trustpay.rs", "crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs"]}, "change_types": {"fields_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/api_keys.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/api_keys.rs`
- `crates/diesel_models/src/query/api_keys.rs`
**3. Core Business Logic**
- `crates/router/src/core/api_keys.rs`
**4. Utils**
- `crates/common_utils/src/events.rs`
- `crates/common_utils/src/id_type.rs`
- `crates/common_utils/src/id_type/api_key.rs`
**5. Configuration Files**
- `.typos.toml`
**6. Other**
- `crates/router/src/db/api_keys.rs`
- `crates/router/src/db/kafka_store.rs`
- `crates/router/src/routes/api_keys.rs`
- ... and 3 more files
**Code Patterns Applied:**
- Implement new functions (7 changes)
- Extend existing types with new fields (44 changes)
**Detailed Identifier Changes:**
Commit b3ce373f:
Files to modify:
**crates/api_models/src/api_keys.rs**
Modify existing code
**crates/common_utils/src/events.rs**
Modify existing code
**crates/common_utils/src/id_type.rs**
Modify existing code
**crates/common_utils/src/id_type/api_key.rs**
Modify existing code
**crates/diesel_models/src/api_keys.rs**
Modify existing code
**crates/diesel_models/src/query/api_keys.rs**
Modify existing code
**crates/router/src/core/api_keys.rs**
Modify existing code
**crates/router/src/db/api_keys.rs**
Modify existing code
**crates/router/src/db/kafka_store.rs**
Modify existing code
**crates/router/src/routes/api_keys.rs**
Modify existing code
**crates/router/src/services/authentication.rs**
Modify existing code
**crates/router/src/services/authentication/decision.rs**
Modify existing code
**crates/router/src/services/authentication/detached.rs**
Modify existing code
|
{"pr_number": 6324, "pr_title": "refactor(router): Introduce ApiKeyId id type", "merged_at": "2024-10-21T14:14:20Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/api_keys.rs"], "database": ["crates/diesel_models/src/api_keys.rs", "crates/diesel_models/src/query/api_keys.rs"], "core_business": ["crates/router/src/core/api_keys.rs"], "utils": ["crates/common_utils/src/events.rs", "crates/common_utils/src/id_type.rs", "crates/common_utils/src/id_type/api_key.rs"], "config": [".typos.toml"], "other": ["crates/router/src/db/api_keys.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/routes/api_keys.rs", "crates/router/src/services/authentication.rs", "crates/router/src/services/authentication/decision.rs", "crates/router/src/services/authentication/detached.rs"]}, "change_types": {"functions_added": 7, "fields_added": 44, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR updates the lineage context Redis caching logic to use a dedicated global Redis key prefix (`global`) instead of the default tenant-scoped prefixes (`public_`, `public_v2_`), causing inconsistencies between deployments (i.e., v1 and v2).
Introduced a new helper: `get_redis_connection_for_global_tenant`
- Fetches Redis connection with `key_prefix` set to `global`.
- Updated lineage context caching (`get_lineage_context_from_cache`, `set_lineage_context_in_cache`) to use the global Redis connection
This will enable [https://github.com/juspay/hyperswitch/pull/7871](https://github.com/juspay/hyperswitch/pull/7871) to work with both v1 and v2 merchant accounts.
The redis-key should now be in the format of global:LINEAGE_CONTEXT_<user_id>
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Utils**
- `crates/router/src/utils/user.rs`
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (7 changes)
|
{"pr_number": 7892, "pr_title": "feat(user): use global redis key prefix for user lineage context", "merged_at": "2025-04-24T17:38:33Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant", "user"]}, "hierarchy": {"utils": ["crates/router/src/utils/user.rs"]}, "change_types": {"functions_added": 1, "fields_added": 7}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
template for hyperwallet integration
|
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/connector_endpoints.rs`
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
- ... and 12 more files
**3. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**4. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (83 changes)
- Extend existing types with new fields (163 changes)
**Detailed Identifier Changes:**
Commit b797d934:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/hyperwallet.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/connector_endpoints.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/tests/connectors/hyperwallet.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 8926, "pr_title": "feat(connector): [Hyperwallet] template code", "merged_at": "2025-08-14T08:29:02Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/connector_endpoints.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/hyperwallet.rs", "crates/hyperswitch_connectors/src/connectors/hyperwallet/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/router/src/connector.rs", "crates/router/tests/connectors/hyperwallet.rs", "crates/router/tests/connectors/main.rs", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"structs_added": 10, "functions_added": 83, "enums_added": 2, "fields_added": 163, "imports_added": 22}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
- card network fetch from db was not being populated in payment call resulting in sending the default value which failed the payment
- util function have been added to collect the card network from additional_payment_method_data
- ucaf_indicator is being populated for mastercard
- profile generic update is made optional to not update the force_3ds_challenge if it is passed as null
- External authentication is disabled for Datatrans
Note: hotfix raised against https://github.com/juspay/hyperswitch/pull/7473
|
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/business_profile.rs`
**2. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/payments/transformers.rs`
**3. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs`
- `crates/hyperswitch_connectors/src/utils.rs`
**Code Patterns Applied:**
- Implement new functions (2 changes)
- Extend existing types with new fields (4 changes)
**Detailed Identifier Changes:**
Commit 98ce5f42:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/business_profile.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
|
{"pr_number": 7481, "pr_title": "fix(router): pass card network for external 3DS from additional_payment_method_data", "merged_at": "2025-03-11T15:42:49Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/business_profile.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments/transformers.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"]}, "change_types": {"functions_added": 2, "fields_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
add `sdk-type` and `default-sdk-type` in netcetera authentication request
add `sdk-type` in SDK Information of PaymentsExternalAuthenticationRequest
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. External Connector Integration**
- `crates/router/src/connector/netcetera/netcetera_types.rs`
**3. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/openapi/src/openapi.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (6 changes)
**Detailed Identifier Changes:**
Commit 64a7afa6:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/router/src/connector/netcetera/netcetera_types.rs**
Modify existing code
|
{"pr_number": 7156, "pr_title": "fix(connector): [NETCETERA] add `sdk-type` and `default-sdk-type` in netcetera authentication request", "merged_at": "2025-02-03T19:31:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "connectors": ["crates/router/src/connector/netcetera/netcetera_types.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs"]}, "change_types": {"functions_added": 1, "enums_added": 2, "fields_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Hotfix for [PR](https://github.com/juspay/hyperswitch/pull/8518)
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/payment_attempt.rs`
- `crates/diesel_models/src/payment_intent.rs`
- `crates/diesel_models/src/schema.rs`
- ... and 2 more files
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payments.rs`
- `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`
- `crates/hyperswitch_domain_models/src/payments/payment_intent.rs`
- ... and 1 more files
**4. Core Business Logic**
- `crates/router/src/core/authentication/transformers.rs`
- `crates/router/src/core/fraud_check/flows/checkout_flow.rs`
- `crates/router/src/core/fraud_check/flows/fulfillment_flow.rs`
- ... and 15 more files
**5. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/redsys.rs`
- `crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs`
- ... and 7 more files
**6. Type Definitions**
- `crates/router/src/types.rs`
- `crates/router/src/types/storage/payment_attempt.rs`
**7. Utils**
- `crates/router/src/utils/user/sample_data.rs`
**8. Other**
- `crates/hyperswitch_interfaces/src/api.rs`
- `crates/hyperswitch_interfaces/src/conversion_impls.rs`
- `crates/router/src/routes/payments.rs`
- ... and 6 more files
**Code Patterns Applied:**
- Implement new functions (9 changes)
- Extend existing types with new fields (143 changes)
- Add conditional logic for feature flags or filtering (7 changes)
**Detailed Identifier Changes:**
Commit b6dfffdc:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/diesel_models/src/payment_attempt.rs**
Modify existing code
**crates/diesel_models/src/payment_intent.rs**
Modify existing code
**crates/diesel_models/src/schema.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/diesel_models/src/user/sample_data.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/redsys.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_intent.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_data.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/api.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/connector_integration_interface.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/conversion_impls.rs**
Modify existing code
**crates/router/src/core/authentication/transformers.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/checkout_flow.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/fulfillment_flow.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/record_return.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/sale_flow.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/transaction_flow.rs**
Modify existing code
**crates/router/src/core/mandate/utils.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/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.rs**
Modify existing code
**crates/router/src/core/payments/retry.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/relay/utils.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service/utils.rs**
Modify existing code
**crates/router/src/core/utils.rs**
Modify existing code
**crates/router/src/core/webhooks/utils.rs**
Modify existing code
**crates/router/src/routes/payments.rs**
Modify existing code
**crates/router/src/services/kafka/payment_intent.rs**
Modify existing code
**crates/router/src/services/kafka/payment_intent_event.rs**
Modify existing code
**crates/router/src/types.rs**
Modify existing code
**crates/router/src/types/api/verify_connector.rs**
Modify existing code
**crates/router/src/types/storage/payment_attempt.rs**
Modify existing code
**crates/router/src/utils/user/sample_data.rs**
Modify existing code
**crates/router/tests/connectors/aci.rs**
Modify existing code
**crates/router/tests/connectors/utils.rs**
Modify existing code
**crates/storage_impl/src/mock_db/payment_attempt.rs**
Modify existing code
**crates/storage_impl/src/payments/payment_attempt.rs**
Modify existing code
|
{"pr_number": 8578, "pr_title": "fix(connector): [CYBERSOURCE] Passing pares_status for MasterCard & Visa and transaction_type field", "merged_at": "2025-07-08T18:57:17Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/payment_intent.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs", "crates/diesel_models/src/user/sample_data.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "crates/hyperswitch_domain_models/src/router_data.rs"], "core_business": ["crates/router/src/core/authentication/transformers.rs", "crates/router/src/core/fraud_check/flows/checkout_flow.rs", "crates/router/src/core/fraud_check/flows/fulfillment_flow.rs", "crates/router/src/core/fraud_check/flows/record_return.rs", "crates/router/src/core/fraud_check/flows/sale_flow.rs", "crates/router/src/core/fraud_check/flows/transaction_flow.rs", "crates/router/src/core/mandate/utils.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/retry.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/relay/utils.rs", "crates/router/src/core/unified_authentication_service/utils.rs", "crates/router/src/core/utils.rs", "crates/router/src/core/webhooks/utils.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/connectors/redsys.rs", "crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/hyperswitch_interfaces/src/connector_integration_interface.rs", "crates/router/src/types/api/verify_connector.rs", "crates/router/tests/connectors/aci.rs", "crates/router/tests/connectors/utils.rs", "migrations/2025-07-01-073253_add_connector_request_reference_id_and_is_payment_id_from_merchant/down.sql", "migrations/2025-07-01-073253_add_connector_request_reference_id_and_is_payment_id_from_merchant/up.sql"], "types": ["crates/router/src/types.rs", "crates/router/src/types/storage/payment_attempt.rs"], "utils": ["crates/router/src/utils/user/sample_data.rs"], "other": ["crates/hyperswitch_interfaces/src/api.rs", "crates/hyperswitch_interfaces/src/conversion_impls.rs", "crates/router/src/routes/payments.rs", "crates/router/src/services/kafka/payment_intent.rs", "crates/router/src/services/kafka/payment_intent_event.rs", "crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "v2_migrations/2025-01-13-081847_drop_v1_columns/down.sql", "v2_migrations/2025-01-13-081847_drop_v1_columns/up.sql"]}, "change_types": {"functions_added": 9, "enums_added": 1, "fields_added": 143, "imports_added": 1, "conditionals_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Clippy screenshot

|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs`
- ... and 3 more files
|
{"pr_number": 8108, "pr_title": "fix(connector): [CYBERSOURCE] fix CartesBancaires card_type for Cybersource", "merged_at": "2025-05-22T09:47:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs", "crates/hyperswitch_connectors/src/connectors/payone/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Nanosecond level precision for time based fields
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `crates/router/src/services/kafka/dispute_event.rs`
- `crates/router/src/services/kafka/fraud_check_event.rs`
- `crates/router/src/services/kafka/payment_attempt_event.rs`
- ... and 2 more files
|
{"pr_number": 8759, "pr_title": "chore(events): making events nanosecond level precision", "merged_at": "2025-08-06T12:20:15Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"other": ["crates/router/src/services/kafka/dispute_event.rs", "crates/router/src/services/kafka/fraud_check_event.rs", "crates/router/src/services/kafka/payment_attempt_event.rs", "crates/router/src/services/kafka/payment_intent_event.rs", "crates/router/src/services/kafka/refund_event.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Template PR for Hipay
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/payments/connector_integration_v2_impls.rs`
- `crates/router/src/core/payments/flows.rs`
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/hyperswitch_connectors/src/connectors.rs`
- ... and 9 more files
**3. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**4. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**5. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 3 more files
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (78 changes)
- Extend existing types with new fields (152 changes)
**Detailed Identifier Changes:**
Commit add51526:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/hipay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations_v2.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/configs.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/payments/connector_integration_v2_impls.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/router/tests/connectors/hipay.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 7360, "pr_title": "feat(hipay): Add Template PR", "merged_at": "2025-03-07T07:57:40Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/hipay.rs", "crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/router/src/connector.rs", "crates/router/tests/connectors/hipay.rs", "crates/router/tests/connectors/main.rs", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml", "crates/hyperswitch_interfaces/src/configs.rs"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 152, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR adds necessary payment method configs to the GlobalPay connector.
For wallets (Paypal, Apple Pay and Google Pay), their developer docs does not mention about them being support while their main page says it to be supported. Have got in touch with the team asking for clarification on this topic. Will update the wallet configs accordingly in upcoming PRs.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Type Definitions**
- `crates/currency_conversion/src/types.rs`
**2. Utils**
- `crates/kgraph_utils/src/transformers.rs`
**3. Tests**
- `config/deployments/integration_test.toml`
- `cypress-tests/cypress/e2e/configs/Payment/Commons.js`
- `loadtest/config/development.toml`
**4. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**5. Other**
- `crates/common_enums/src/enums.rs`
**Code Patterns Applied:**
- Implement new functions (2 changes)
**Detailed Identifier Changes:**
Commit 23a2a0cf:
Files to modify:
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/currency_conversion/src/types.rs**
Modify existing code
**crates/kgraph_utils/src/transformers.rs**
Modify existing code
|
{"pr_number": 7512, "pr_title": "chore: update payment method configs for globalpay", "merged_at": "2025-03-20T07:39:28Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "connector"]}, "hierarchy": {"types": ["crates/currency_conversion/src/types.rs"], "utils": ["crates/kgraph_utils/src/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/configs/Payment/Commons.js", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["crates/common_enums/src/enums.rs"]}, "change_types": {"functions_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR extends the connector feature matrix response to include threeds and non_threeds support flags along with card network details in case of cards
> This PR won't affect Payments
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/feature_matrix.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/router_response_types.rs`
**3. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/bambora.rs`
- `crates/hyperswitch_connectors/src/connectors/deutschebank.rs`
- `crates/hyperswitch_connectors/src/connectors/zsl.rs`
**4. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/openapi/src/openapi.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Extend existing types with new fields (17 changes)
**Detailed Identifier Changes:**
Commit e35f7079:
Files to modify:
**crates/api_models/src/feature_matrix.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/bambora.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/deutschebank.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/zsl.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_response_types.rs**
Modify existing code
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/router/src/routes/feature_matrix.rs**
Modify existing code
|
{"pr_number": 6963, "pr_title": "feat(router): add payment method-specific features to connector feature list", "merged_at": "2025-01-21T09:36:09Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "refund", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/feature_matrix.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_response_types.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/bambora.rs", "crates/hyperswitch_connectors/src/connectors/deutschebank.rs", "crates/hyperswitch_connectors/src/connectors/zsl.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs", "crates/router/src/routes/feature_matrix.rs"]}, "change_types": {"structs_added": 1, "enums_added": 1, "fields_added": 17}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Removed deprecated PMTs from Ayden: https://www.adyen.com/payment-methods
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- `crates/connector_configs/toml/sandbox.toml`
- ... and 2 more files
**2. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**3. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Detailed Identifier Changes:**
Commit 40a36fd3:
Files to modify:
**crates/router/src/connector/adyen.rs**
Modify existing code
**crates/router/src/connector/adyen/transformers.rs**
Modify existing code
|
{"pr_number": 7100, "pr_title": "refactor(connector): [Adyen] Removed deprecated PMTs from Ayden (Giropay, Sofort)", "merged_at": "2025-02-12T08:48:54Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"connectors": ["crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/router/src/connector/adyen.rs", "crates/router/src/connector/adyen/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs`
**2. Tests**
- `config/deployments/integration_test.toml`
**3. Configuration Files**
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- `config/development.toml`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Extend existing types with new fields (13 changes)
**Detailed Identifier Changes:**
Commit cadfcf7c:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs**
Modify existing code
|
{"pr_number": 9356, "pr_title": "fix(connector): [checkout] Add US Support for Apple Pay and Google Pay + Enhanced Checkout Response Data", "merged_at": "2025-09-11T13:22:02Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml"]}, "change_types": {"structs_added": 1, "fields_added": 13}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
this pr makes the amount for refund and capture configurable within connector configs.
standardizes the amount to be 6000 while making partial amount to be 2000.
while doing so, a lot of config clean up has been done.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Adyen.js`
- `cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js`
- `cypress-tests/cypress/e2e/configs/Payment/Bluesnap.js`
- ... and 43 more files
**Code Patterns Applied:**
- Extend existing types with new fields (336 changes)
- Add conditional logic for feature flags or filtering (2 changes)
|
{"pr_number": 7219, "pr_title": "refactor(cypress): make amount configurable", "merged_at": "2025-02-12T08:23:26Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "refund", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Adyen.js", "cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js", "cypress-tests/cypress/e2e/configs/Payment/Bluesnap.js", "cypress-tests/cypress/e2e/configs/Payment/Checkout.js", "cypress-tests/cypress/e2e/configs/Payment/Commons.js", "cypress-tests/cypress/e2e/configs/Payment/Cybersource.js", "cypress-tests/cypress/e2e/configs/Payment/Datatrans.js", "cypress-tests/cypress/e2e/configs/Payment/Deutschebank.js", "cypress-tests/cypress/e2e/configs/Payment/Elavon.js", "cypress-tests/cypress/e2e/configs/Payment/Fiservemea.js", "cypress-tests/cypress/e2e/configs/Payment/Fiuu.js", "cypress-tests/cypress/e2e/configs/Payment/Iatapay.js", "cypress-tests/cypress/e2e/configs/Payment/Jpmorgan.js", "cypress-tests/cypress/e2e/configs/Payment/Nexixpay.js", "cypress-tests/cypress/e2e/configs/Payment/Nmi.js", "cypress-tests/cypress/e2e/configs/Payment/Noon.js", "cypress-tests/cypress/e2e/configs/Payment/Novalnet.js", "cypress-tests/cypress/e2e/configs/Payment/Paybox.js", "cypress-tests/cypress/e2e/configs/Payment/Paypal.js", "cypress-tests/cypress/e2e/configs/Payment/Stripe.js", "cypress-tests/cypress/e2e/configs/Payment/Trustpay.js", "cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js", "cypress-tests/cypress/e2e/configs/Payment/WorldPay.js", "cypress-tests/cypress/e2e/configs/Payment/Xendit.js", "cypress-tests/cypress/e2e/configs/PaymentMethodList/Commons.js", "cypress-tests/cypress/e2e/configs/Routing/Adyen.js", "cypress-tests/cypress/e2e/configs/Routing/Stripe.js", "cypress-tests/cypress/e2e/spec/Payment/00006-NoThreeDSManualCapture.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00009-RefundPayment.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00010-SyncRefund.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00011-CreateSingleuseMandate.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00012-CreateMultiuseMandate.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00013-ListAndRevokeMandate.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00014-SaveCardFlow.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00015-ZeroAuthMandate.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00016-ThreeDSManualCapture.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00019-MandatesUsingPMID.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00020-MandatesUsingNTIDProxy.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00021-UPI.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00026-DeletedCustomerPsyncFlow.cy.js", "cypress-tests/cypress/e2e/spec/Payment/00029-IncrementalAuth.cy.js", "cypress-tests/cypress/fixtures/create-confirm-body.json", "cypress-tests/cypress/fixtures/create-mandate-cit.json", "cypress-tests/cypress/fixtures/create-payment-body.json", "cypress-tests/cypress/support/commands.js"]}, "change_types": {"fields_added": 336, "conditionals_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Integrated CIT/MIT and setup mandate flow.
Added `setup_future_usage` to `PaymentsSyncData` to support mandate payments.
For mandate flows, the source_id (connector mandate ID) must be stored in the MandateReference. To identify whether a payment is mandate-based, we need the setup_future_usage field.
|
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/payments/transformers.rs`
**3. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/checkout.rs`
- `crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs`
- `crates/hyperswitch_connectors/src/utils.rs`
**4. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**5. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (10 changes)
- Extend existing types with new fields (83 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 7355a83e:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/checkout.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
|
{"pr_number": 9248, "pr_title": "feat(connector): [checkout] Add mandate flow", "merged_at": "2025-09-10T08:51:15Z", "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/payments/transformers.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/checkout.rs", "crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"structs_added": 2, "functions_added": 10, "enums_added": 2, "fields_added": 83, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Implement Banktransfer PaymentMethod
- SepabankTransfer
- InstantBankTransfer
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
- `crates/api_models/src/payments/additional_info.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payment_method_data.rs`
**3. Core Business Logic**
- `crates/router/src/core/payments/helpers.rs`
**4. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- ... and 15 more files
**5. Type Definitions**
- `crates/router/src/types/transformers.rs`
**6. Utils**
- `crates/kgraph_utils/src/mca.rs`
- `crates/kgraph_utils/src/transformers.rs`
**7. Tests**
- `config/deployments/integration_test.toml`
- `cypress-tests/cypress/e2e/configs/Payout/Adyen.js`
- `cypress-tests/cypress/e2e/configs/Payout/AdyenPlatform.js`
- ... and 6 more files
**8. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**9. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/common_enums/src/enums.rs`
- ... and 4 more files
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (5 changes)
- Extend existing types with new fields (98 changes)
**Detailed Identifier Changes:**
Commit dbcca0fb:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/api_models/src/payments/additional_info.rs**
Modify existing code
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/common_enums/src/transformers.rs**
Modify existing code
**crates/euclid/src/frontend/dir/enums.rs**
Modify existing code
**crates/euclid/src/frontend/dir/lowering.rs**
Modify existing code
**crates/euclid/src/frontend/dir/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/adyen.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/klarna.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/trustpay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/zen/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payment_method_data.rs**
Modify existing code
**crates/kgraph_utils/src/mca.rs**
Modify existing code
**crates/kgraph_utils/src/transformers.rs**
Modify existing code
**crates/router/src/configs/defaults/payment_connector_required_fields.rs**
Modify existing code
**crates/router/src/connector/stripe/transformers.rs**
Modify existing code
**crates/router/src/connector/utils.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 7575, "pr_title": "feat(connector): [TRUSTPAY] implement Banktransfer PaymentMethod", "merged_at": "2025-03-25T14:58:25Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs", "crates/api_models/src/payments/additional_info.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_method_data.rs"], "core_business": ["crates/router/src/core/payments/helpers.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/adyen.rs", "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs", "crates/hyperswitch_connectors/src/connectors/klarna.rs", "crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs", "crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs", "crates/hyperswitch_connectors/src/connectors/trustpay.rs", "crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/zen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs", "crates/router/src/connector/stripe/transformers.rs", "crates/router/src/connector/utils.rs"], "types": ["crates/router/src/types/transformers.rs"], "utils": ["crates/kgraph_utils/src/mca.rs", "crates/kgraph_utils/src/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/configs/Payout/Adyen.js", "cypress-tests/cypress/e2e/configs/Payout/AdyenPlatform.js", "cypress-tests/cypress/e2e/configs/Payout/Nomupay.js", "cypress-tests/cypress/e2e/configs/Payout/Wise.js", "cypress-tests/cypress/e2e/spec/Payout/00004-BankTransfer.cy.js", "cypress-tests/cypress/e2e/spec/Payout/00005-SavePayout.cy.js", "cypress-tests/cypress/e2e/spec/Payout/00006-PayoutUsingPayoutMethodId.cy.js", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/common_enums/src/transformers.rs", "crates/euclid/src/frontend/dir/enums.rs", "crates/euclid/src/frontend/dir/lowering.rs", "crates/euclid/src/frontend/dir/transformers.rs"]}, "change_types": {"structs_added": 1, "functions_added": 5, "enums_added": 1, "fields_added": 98}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
This PR adds SEK currency for cybersource
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `config/deployments/integration_test.toml`
**2. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
|
{"pr_number": 8048, "pr_title": "feat(connector): [CYBERSOURCE] add SEK currency for cybersource", "merged_at": "2025-05-19T11:08:01Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"tests": ["config/deployments/integration_test.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Removed bank_name field from ideal request and language field from klarna request as it is optional.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs`
- `crates/payment_methods/src/configs/payment_connector_required_fields.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (5 changes)
|
{"pr_number": 9060, "pr_title": "fix(connector): [Airwallex] Remove optional fields for Ideal and Klarna pm", "merged_at": "2025-08-28T11:52:06Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs"]}, "change_types": {"fields_added": 5}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Implement card payment with Worldpay xml
Hotfix for https://github.com/juspay/hyperswitch/pull/8076
> Note: Status updation takes 5-10 mins at the connector
## 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)?
-->
<details>
<summary> 1. MCA create </summary>
```
curl --location 'http://localhost:8080/account/postman_merchant_GHAction_b90895b7-51ca-4824-9f06-834ddc53293c/connectors' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_RPa8nmiLG06tHc9W4v378FsyNnVwO7Ko2fBI7NmsJ1Cq4CXatdt3xqrMFIed9gbb' \
--data '{
"connector_type": "payment_processor",
"connector_name": "redsys",
"business_country": "US",
"business_label": "default",
"connector_account_details": {
"auth_type": "SignatureKey",
"api_key": "*******8",
"key1": "*******",
"api_secret": "****************"
},
"test_mode": false,
"disabled": false,
"payment_methods_enabled": [
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "credit",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
},
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "debit",
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
},
],
"metadata": {
}
}'
```
Response
```json
{"connector_type":"payment_processor","connector_name":"redsys","connector_label":"redsys_US_default","merchant_connector_id":"mca_lTOks70dqG9F8f770IAt","profile_id":"pro_1OJnibg63SywyAechHCC","connector_account_details":{"auth_type":"SignatureKey","api_key":"33*****31","key1":"***","api_secret":"sq****************************J7"},"payment_methods_enabled":[{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"affirm","payment_experience":"redirect_to_url","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"afterpay_clearpay","payment_experience":"redirect_to_url","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"klarna","payment_experience":"redirect_to_url","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"klarna","payment_experience":"invoke_sdk_client","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"bank_redirect","payment_method_types":[{"payment_method_type":"ideal","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"bancontact_card","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"przelewy24","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"giropay","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"sofort","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"eps","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"bank_debit","payment_method_types":[{"payment_method_type":"ach","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"becs","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"sepa","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"bacs","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"bank_transfer","payment_method_types":[{"payment_method_type":"ach","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"bacs","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"sepa","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"card","payment_method_types":[{"payment_method_type":"credit","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"card","payment_method_types":[{"payment_method_type":"debit","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"wallet","payment_method_types":[{"payment_method_type":"apple_pay","payment_experience":"invoke_sdk_client","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"wallet","payment_method_types":[{"payment_method_type":"google_pay","payment_experience":"invoke_sdk_client","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]}],"connector_webhook_details":null,"metadata":{"google_pay":{"merchant_info":{"merchant_name":"Narayan Bhat"},"allowed_payment_methods":[{"type":"CARD","parameters":{"allowed_auth_methods":["PAN_ONLY","CRYPTOGRAM_3DS"],"allowed_card_networks":["AMEX","DISCOVER","INTERAC","JCB","MASTERCARD","VISA"]},"tokenization_specification":{"type":"PAYMENT_GATEWAY","parameters":{"gateway":"example","gateway_merchant_id":"{{gateway_merchant_id}}"}}}]}},"test_mode":false,"disabled":false,"frm_configs":null,"business_country":"US","business_label":"default","business_sub_label":null,"applepay_verified_domains":null,"pm_auth_config":null,"status":"active","additional_merchant_data":null,"connector_wallets_details":null}
```
</details>
<details>
<summary>2. Automatic Card Payment</summary>
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_X1J2lFi1QS1vL4u11B4FMVtV4HakriV3Ow30FEgTQ4sMVieSpKKEt6vkEFwCQggW' \
--data '{
"amount": 100,
"currency": "EUR",
"confirm": true,
"description": "payments",
"authentication_type": "three_ds",
"payment_method": "card",
"payment_method_data": {
"card": {
"card_number": "4444333322221111",
"card_exp_month": "12",
"card_exp_year": "49",
"card_holder_name": "Akshaya",
"card_cvc": "123"
}
}
,"browser_info": {
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"language": "nl-NL",
"color_depth": 24,
"screen_height": 723,
"screen_width": 1536,
"time_zone": 0,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "13.232.74.226"
}
}'
```
Response
```json
{"payment_id":"pay_7uOikIjBhvjrYDXc36Cx","merchant_id":"postman_merchant_GHAction_2f406804-7af5-4850-abaa-4999b4fa3f14","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayxml","client_secret":"pay_7uOikIjBhvjrYDXc36Cx_secret_t0fuVie1nBw5hGl69WZe","created":"2025-05-20T06:21:18.104Z","currency":"EUR","customer_id":null,"customer":null,"description":"payments","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":null,"payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"444433","card_extended_bin":null,"card_exp_month":"12","card_exp_year":"49","card_holder_name":"Akshaya","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"pay_7uOikIjBhvjrYDXc36Cx_1","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_7uOikIjBhvjrYDXc36Cx_1","payment_link":null,"profile_id":"pro_3eQAt6KJcj2IkVeFHv4T","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_xBSM1IZ30g83XmJU3X3d","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-20T06:36:18.104Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-20T06:21:19.507Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null}
```
Psync
```
curl --location 'http://localhost:8080/payments/pay_7uOikIjBhvjrYDXc36Cx' \
--header 'Accept: application/json' \
--header 'api-key: dev_X1J2lFi1QS1vL4u11B4FMVtV4HakriV3Ow30FEgTQ4sMVieSpKKEt6vkEFwCQggW'
```
Response
```
{"payment_id":"pay_7uOikIjBhvjrYDXc36Cx","merchant_id":"postman_merchant_GHAction_2f406804-7af5-4850-abaa-4999b4fa3f14","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"worldpayxml","client_secret":"pay_7uOikIjBhvjrYDXc36Cx_secret_t0fuVie1nBw5hGl69WZe","created":"2025-05-20T06:21:18.104Z","currency":"EUR","customer_id":null,"customer":null,"description":"payments","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":null,"payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"444433","card_extended_bin":null,"card_exp_month":"12","card_exp_year":"49","card_holder_name":"Akshaya","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"pay_7uOikIjBhvjrYDXc36Cx_1","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_7uOikIjBhvjrYDXc36Cx_1","payment_link":null,"profile_id":"pro_3eQAt6KJcj2IkVeFHv4T","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_xBSM1IZ30g83XmJU3X3d","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-20T06:36:18.104Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-20T06:40:35.280Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null}
```
</details>
<details>
<summary>3. Manual Card Payment</summary>
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_X1J2lFi1QS1vL4u11B4FMVtV4HakriV3Ow30FEgTQ4sMVieSpKKEt6vkEFwCQggW' \
--data '{
"amount": 100,
"currency": "EUR",
"confirm": true,
"capture_method": "manual",
"description": "payments",
"payment_method": "card",
"payment_method_data": {
"card": {
"card_number": "4444333322221111",
"card_exp_month": "12",
"card_exp_year": "49",
"card_holder_name": "Akshaya",
"card_cvc": "123"
}
}
,"browser_info": {
"user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36",
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"language": "nl-NL",
"color_depth": 24,
"screen_height": 723,
"screen_width": 1536,
"time_zone": 0,
"java_enabled": true,
"java_script_enabled": true,
"ip_address": "13.232.74.226"
}
}'
```
Response
```
{"payment_id":"pay_G9SuNUoZacHL0xaGxdi0","merchant_id":"postman_merchant_GHAction_2f406804-7af5-4850-abaa-4999b4fa3f14","status":"requires_capture","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayxml","client_secret":"pay_G9SuNUoZacHL0xaGxdi0_secret_ujj7y0xYJOiYkGazvGq1","created":"2025-05-20T09:00:55.987Z","currency":"EUR","customer_id":null,"customer":null,"description":"payments","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"444433","card_extended_bin":null,"card_exp_month":"12","card_exp_year":"49","card_holder_name":"Akshaya","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"pay_G9SuNUoZacHL0xaGxdi0_1","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_G9SuNUoZacHL0xaGxdi0_1","payment_link":null,"profile_id":"pro_3eQAt6KJcj2IkVeFHv4T","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_xBSM1IZ30g83XmJU3X3d","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-20T09:15:55.987Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-20T09:00:56.695Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null}
```
Capture call
```
curl --location 'http://localhost:8080/payments/pay_G9SuNUoZacHL0xaGxdi0/capture' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_X1J2lFi1QS1vL4u11B4FMVtV4HakriV3Ow30FEgTQ4sMVieSpKKEt6vkEFwCQggW' \
--data '{
"amount_to_capture": 10,
"statement_descriptor_name": "Joseph",
"statement_descriptor_suffix": "JS"
}'
```
Response
```json
{"payment_id":"pay_G9SuNUoZacHL0xaGxdi0","merchant_id":"postman_merchant_GHAction_2f406804-7af5-4850-abaa-4999b4fa3f14","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayxml","client_secret":"pay_G9SuNUoZacHL0xaGxdi0_secret_ujj7y0xYJOiYkGazvGq1","created":"2025-05-20T09:00:55.987Z","currency":"EUR","customer_id":null,"customer":null,"description":"payments","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"444433","card_extended_bin":null,"card_exp_month":"12","card_exp_year":"49","card_holder_name":"Akshaya","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"pay_G9SuNUoZacHL0xaGxdi0_1","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_G9SuNUoZacHL0xaGxdi0_1","payment_link":null,"profile_id":"pro_3eQAt6KJcj2IkVeFHv4T","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_xBSM1IZ30g83XmJU3X3d","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-20T09:15:55.987Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-20T09:02:48.712Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null}
```
Psync call
```
curl --location 'http://localhost:8080/payments/pay_G9SuNUoZacHL0xaGxdi0?force_sync=true' \
--header 'Accept: application/json' \
--header 'api-key: dev_X1J2lFi1QS1vL4u11B4FMVtV4HakriV3Ow30FEgTQ4sMVieSpKKEt6vkEFwCQggW'
```
Response
```
{"payment_id":"pay_G9SuNUoZacHL0xaGxdi0","merchant_id":"postman_merchant_GHAction_2f406804-7af5-4850-abaa-4999b4fa3f14","status":"partially_captured","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":10,"connector":"worldpayxml","client_secret":"pay_G9SuNUoZacHL0xaGxdi0_secret_ujj7y0xYJOiYkGazvGq1","created":"2025-05-20T09:00:55.987Z","currency":"EUR","customer_id":null,"customer":null,"description":"payments","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"444433","card_extended_bin":null,"card_exp_month":"12","card_exp_year":"49","card_holder_name":"Akshaya","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"pay_G9SuNUoZacHL0xaGxdi0_1","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_G9SuNUoZacHL0xaGxdi0_1","payment_link":null,"profile_id":"pro_3eQAt6KJcj2IkVeFHv4T","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_xBSM1IZ30g83XmJU3X3d","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-20T09:15:55.987Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-20T09:05:56.777Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null}
```
</details>
<details>
<summary> 4. Refund </summary>
```
curl --location 'http://localhost:8080/refunds' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_X1J2lFi1QS1vL4u11B4FMVtV4HakriV3Ow30FEgTQ4sMVieSpKKEt6vkEFwCQggW' \
--data '{
"payment_id": "pay_OKYmLEJQY1O7DkDBO8Ax",
"amount": 10,
"reason": "Customer returned product",
"refund_type": "instant",
"metadata": {
"udf1": "value1",
"new_customer": "true",
"login_date": "2019-09-10T10:11:12Z"
}
}
}'
```
Response
```
{"refund_id":"ref_oNkvIu2PWfKi2RfoVrBn","payment_id":"pay_OKYmLEJQY1O7DkDBO8Ax","amount":10,"currency":"EUR","status":"pending","reason":"Customer returned product","metadata":{"udf1":"value1","new_customer":"true","login_date":"2019-09-10T10:11:12Z"},"error_message":null,"error_code":null,"unified_code":null,"unified_message":null,"created_at":"2025-05-20T11:15:05.175Z","updated_at":"2025-05-20T11:15:05.402Z","connector":"worldpayxml","profile_id":"pro_3eQAt6KJcj2IkVeFHv4T","merchant_connector_id":"mca_xBSM1IZ30g83XmJU3X3d","split_refunds":{"stripe_split_refund":{"revert_platform_fee":true,"revert_transfer":true}},"issuer_error_code":null,"issuer_error_message":null}
```
Rsync
```
{"refund_id":"ref_oNkvIu2PWfKi2RfoVrBn","payment_id":"pay_OKYmLEJQY1O7DkDBO8Ax","amount":10,"currency":"EUR","status":"pending","reason":"Customer returned product","metadata":{"udf1":"value1","new_customer":"true","login_date":"2019-09-10T10:11:12Z"},"error_message":null,"error_code":null,"unified_code":null,"unified_message":null,"created_at":"2025-05-20T11:15:05.175Z","updated_at":"2025-05-20T11:21:35.656Z","connector":"worldpayxml","profile_id":"pro_3eQAt6KJcj2IkVeFHv4T","merchant_connector_id":"mca_xBSM1IZ30g83XmJU3X3d","split_refunds":{"stripe_split_refund":{"revert_platform_fee":true,"revert_transfer":true}},"issuer_error_code":null,"issuer_error_message":null}
```
</details>
<details>
<summary> Void </summary>
```
curl --location 'http://localhost:8080/payments/pay_P5IkFoEExowU6Nqf74k8/cancel' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_N2utjEdSs1p0PtPwRVYQp3Jnwdfj4HHlma1XQpcjIMysYca57WiMOHSM1H4bJD58' \
--data '{"cancellation_reason":"requested_by_customer"}'
```
Response
```
{"payment_id":"pay_P5IkFoEExowU6Nqf74k8","merchant_id":"postman_merchant_GHAction_2c820b48-09b9-4035-a144-662641c32be8","status":"processing","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayxml","client_secret":"pay_P5IkFoEExowU6Nqf74k8_secret_2bMWCYQGeVhcAJjKYXke","created":"2025-05-22T08:23:01.758Z","currency":"USD","customer_id":null,"customer":{"id":null,"name":null,"email":"hyperswitch_sdk_demo_id@gmail.com","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"444433","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":"AUTHORISED","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"New York","country":"US","line1":"123 Main Street Apt 4B","line2":"123 Main Street Apt 4B","line3":"123 Main Street Apt 4B","zip":"10001","state":"New York","first_name":"john","last_name":"doe"},"phone":null,"email":null},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":"requested_by_customer","error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"pay_P5IkFoEExowU6Nqf74k8_1","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_P5IkFoEExowU6Nqf74k8_1","payment_link":null,"profile_id":"pro_3qdXNDn2bZxbrHClQBwa","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_IhXe2U3f7XmrYnxk0NKk","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-22T08:38:01.758Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-22T08:23:09.965Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null}
```
Psync
```
curl --location 'http://localhost:8080/payments/pay_P5IkFoEExowU6Nqf74k8?force_sync=true' \
--header 'Accept: application/json' \
--header 'api-key: dev_N2utjEdSs1p0PtPwRVYQp3Jnwdfj4HHlma1XQpcjIMysYca57WiMOHSM1H4bJD58'
```
Response
```
{"payment_id":"pay_P5IkFoEExowU6Nqf74k8","merchant_id":"postman_merchant_GHAction_2c820b48-09b9-4035-a144-662641c32be8","status":"cancelled","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayxml","client_secret":"pay_P5IkFoEExowU6Nqf74k8_secret_2bMWCYQGeVhcAJjKYXke","created":"2025-05-22T08:23:01.758Z","currency":"USD","customer_id":null,"customer":{"id":null,"name":null,"email":"hyperswitch_sdk_demo_id@gmail.com","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1111","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"444433","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":"AUTHORISED","payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":{"address":{"city":"New York","country":"US","line1":"123 Main Street Apt 4B","line2":"123 Main Street Apt 4B","line3":"123 Main Street Apt 4B","zip":"10001","state":"New York","first_name":"john","last_name":"doe"},"phone":null,"email":null},"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":"requested_by_customer","error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"pay_P5IkFoEExowU6Nqf74k8_1","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_P5IkFoEExowU6Nqf74k8_1","payment_link":null,"profile_id":"pro_3qdXNDn2bZxbrHClQBwa","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_IhXe2U3f7XmrYnxk0NKk","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-05-22T08:38:01.758Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-05-22T08:46:18.210Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null}
```
</details>
## 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`
- [ ] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/admin.rs`
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
- ... and 5 more files
**3. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**4. Tests**
- `config/deployments/integration_test.toml`
- `cypress-tests/cypress/e2e/configs/Payment/Utils.js`
- `cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.js`
**5. Configuration Files**
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- `config/development.toml`
- ... and 1 more files
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Define new data structures (30 changes)
- Implement new functions (30 changes)
- Extend existing types with new fields (580 changes)
- Add conditional logic for feature flags or filtering (14 changes)
**Detailed Identifier Changes:**
Commit cb773c50:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldpayxml.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 8154, "pr_title": "feat(connector): [Worldpayxml] add card payment", "merged_at": "2025-05-27T11:45:17Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/worldpayxml.rs", "crates/hyperswitch_connectors/src/connectors/worldpayxml/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/e2e/configs/Payment/Worldpayxml.js"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"structs_added": 30, "functions_added": 30, "enums_added": 2, "fields_added": 580, "imports_added": 6, "conditionals_added": 14}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR populates UCS status_code (connector HTTP code) in response headers.
It also introduces proxy_connector_http_status_code which when enabled, configures Hyperswitch to mirror (proxy) the connector’s HTTP status code in its own response.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/flows/authorize_flow.rs`
- `crates/router/src/core/payments/flows/psync_flow.rs`
- ... and 4 more files
**2. Configuration Files**
- `config/config.example.toml`
- `config/deployments/env_specific.toml`
- `config/development.toml`
- ... and 5 more files
**3. Other**
- `Cargo.lock`
- `crates/router/src/compatibility/wrap.rs`
- `crates/router/src/lib.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (1 changes)
- Extend existing types with new fields (5 changes)
**Detailed Identifier Changes:**
Commit 2adf6c83:
Files to modify:
**crates/router/src/compatibility/wrap.rs**
Modify existing code
**crates/router/src/configs/secrets_transformers.rs**
Modify existing code
**crates/router/src/configs/settings.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/flows/authorize_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/psync_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/setup_mandate_flow.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/unified_connector_service.rs**
Modify existing code
**crates/router/src/core/unified_connector_service/transformers.rs**
Modify existing code
**crates/router/src/lib.rs**
Modify existing code
**crates/router/src/services/api.rs**
Modify existing code
|
{"pr_number": 8788, "pr_title": "feat(core): populate UCS status_code in response headers", "merged_at": "2025-08-05T09:02:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows/authorize_flow.rs", "crates/router/src/core/payments/flows/psync_flow.rs", "crates/router/src/core/payments/flows/setup_mandate_flow.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/unified_connector_service.rs", "crates/router/src/core/unified_connector_service/transformers.rs"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "config/development.toml", "config/docker_compose.toml", "crates/external_services/Cargo.toml", "crates/router/Cargo.toml", "crates/router/src/configs/secrets_transformers.rs", "crates/router/src/configs/settings.rs"], "other": ["Cargo.lock", "crates/router/src/compatibility/wrap.rs", "crates/router/src/lib.rs", "crates/router/src/services/api.rs"]}, "change_types": {"structs_added": 1, "functions_added": 1, "fields_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This pull request introduces a comprehensive set of changes to add invoice management capabilities to the codebase. The changes include new data models and enums for invoices, database schema and query support, and integration with connectors and APIs for invoice-related workflows.
**Invoice Data Model and Enums**
- Added the `InvoiceStatus` enum to represent the various states an invoice can be in, such as `InvoiceCreated`, `PaymentPending`, `PaymentSucceeded`, etc. (`crates/common_enums/src/connector_enums.rs`)
- Introduced the `InvoiceRecordBackTrackingData` struct for tracking invoice-related process data, along with a constructor. (`crates/api_models/src/process_tracker/invoice_record_back.rs`)
- Created a new `InvoiceId` type and implemented associated methods and traits, including event metric integration. (`crates/common_utils/src/id_type/invoice.rs`)
- Registered the new `InvoiceId` in the global ID types and exposed it for use. (`crates/common_utils/src/id_type.rs`) [[1]](diffhunk://#diff-d949a6c528436f8ab1a851147e7467d525cba63b395b253d1dec17101a971fa1R10) [[2]](diffhunk://#diff-d949a6c528436f8ab1a851147e7467d525cba63b395b253d1dec17101a971fa1R51)
- Added `Invoice` to the `ApiEventsType` enum for event categorization. (`crates/common_utils/src/events.rs`)
- Extended the `ProcessTrackerRunner` enum to include `InvoiceRecordBackflow`. (`crates/common_enums/src/enums.rs`)
**Database Schema and Models**
- Added a new `invoice` table to the Diesel ORM schema (both v1 and v2), including all necessary fields and indices. (`crates/diesel_models/src/schema.rs`, `crates/diesel_models/src/schema_v2.rs`) [[1]](diffhunk://#diff-b3de56db64ac930fe24b6b0acb45282191598a506d20732f70ef00192b4b18d5R718-R751) [[2]](diffhunk://#diff-b3de56db64ac930fe24b6b0acb45282191598a506d20732f70ef00192b4b18d5R1767) [[3]](diffhunk://#diff-22fdeee3005db31c44a9d40cd43c5a244e77a74e17d2e227d4c0b376f133f37eR732-R765) [[4]](diffhunk://#diff-22fdeee3005db31c44a9d40cd43c5a244e77a74e17d2e227d4c0b376f133f37eR1722)
- Implemented the `Invoice`, `InvoiceNew`, and `InvoiceUpdate` structs for ORM mapping, along with constructors and update methods. (`crates/diesel_models/src/invoice.rs`)
- Added query support for inserting, finding, and updating invoices in the database. (`crates/diesel_models/src/query/invoice.rs`)
- Registered the new `invoice` module in the Diesel models and query modules. (`crates/diesel_models/src/lib.rs`, `crates/diesel_models/src/query.rs`) [[1]](diffhunk://#diff-7eb95277f166342b9ffb08398f8165f1498aa8ecb4ac3b967133e4d682c382a3R27) [[2]](diffhunk://#diff-a8ff468e437001f77b303a9f63b47a6204ffc99b25dd4e9d9a122d5093b69f1cR25)
**Connector and API Integration**
- Added support for the invoice record backflow in the Chargebee and Recurly connectors, including trait implementations and integration with request/response types. (`crates/hyperswitch_connectors/src/connectors/chargebee.rs`, `crates/hyperswitch_connectors/src/connectors/recurly.rs`) [[1]](diffhunk://#diff-805dd853d554bb072ad3427d6b5ed7dc7b9ed62ee278f5adbf389a08266996b0R688) [[2]](diffhunk://#diff-987be7b07b93a35ac0316f1eb8ad93ece84e5280d37e5566964238d1c969a3fdL12-R34) [[3]](diffhunk://#diff-987be7b07b93a35ac0316f1eb8ad93ece84e5280d37e5566964238d1c969a3fdR151) [[4]](diffhunk://#diff-987be7b07b93a35ac0316f1eb8ad93ece84e5280d37e5566964238d1c969a3fdR162-R171)
- Updated the default connector implementations to support the new invoice record backflow and related API flows. (`crates/hyperswitch_connectors/src/default_implementations.rs`) [[1]](diffhunk://#diff-ee28a7003b898fbf15bb25eb102e2310a4c52ba46d3961e3f929f4cf6bd1f6beL46-R51) [[2]](diffhunk://#diff-ee28a7003b898fbf15bb25eb102e2310a4c52ba46d3961e3f929f4cf6bd1f6beL69-R75) [[3]](diffhunk://#diff-ee28a7003b898fbf15bb25eb102e2310a4c52ba46d3961e3f929f4cf6bd1f6beL133-R135) [[4]](diffhunk://#diff-ee28a7003b898fbf15bb25eb102e2310a4c52ba46d3961e3f929f4cf6bd1f6beR6946-R6956)
**API Models**
- Added a new module for `invoice_record_back` in the process tracker API models. (`crates/api_models/src/process_tracker.rs`)
---
**Summary of Most Important Changes:**
**Invoice Data Model and Enums**
- Introduced the `InvoiceStatus` enum and the `InvoiceRecordBackTrackingData` struct for invoice state tracking and process workflows. [[1]](diffhunk://#diff-6b571cd80816c7f8efa676e546481b145ab156fe1f76b59a69796f218749aeb1R877-R889) [[2]](diffhunk://#diff-0358abeaeb311c146f922f8915a84016820331754f1e8cb6632dd6b48e3e2fceR1-R44)
- Added a new `InvoiceId` type with associated methods and event metric integration. [[1]](diffhunk://#diff-dbf2199d67bff928fb938c82846a4e4c84e7fa9e077905ca3273556757f2675bR1-R21) [[2]](diffhunk://#diff-d949a6c528436f8ab1a851147e7467d525cba63b395b253d1dec17101a971fa1R10) [[3]](diffhunk://#diff-d949a6c528436f8ab1a851147e7467d525cba63b395b253d1dec17101a971fa1R51) [[4]](diffhunk://#diff-77f0e8abb88015b6a88d517bd4b0eb801b98ed2ac5a4a0fac5be92d4927ee780R89)
- Extended process tracker and event enums for invoice support. [[1]](diffhunk://#diff-955707712c9bdbbd986dc29a9dd001579001580cf0a65e286ac8a2a25a2a49f2R9374) [[2]](diffhunk://#diff-77f0e8abb88015b6a88d517bd4b0eb801b98ed2ac5a4a0fac5be92d4927ee780R89)
**Database Schema and Models**
- Created a new `invoice` table in the Diesel schema, and implemented corresponding ORM structs and query methods for invoice creation, lookup, and updates. [[1]](diffhunk://#diff-b3de56db64ac930fe24b6b0acb45282191598a506d20732f70ef00192b4b18d5R718-R751) [[2]](diffhunk://#diff-b3de56db64ac930fe24b6b0acb45282191598a506d20732f70ef00192b4b18d5R1767) [[3]](diffhunk://#diff-22fdeee3005db31c44a9d40cd43c5a244e77a74e17d2e227d4c0b376f133f37eR732-R765) [[4]](diffhunk://#diff-22fdeee3005db31c44a9d40cd43c5a244e77a74e17d2e227d4c0b376f133f37eR1722) [[5]](diffhunk://#diff-cc8ce5ad039d65f1b8644286fe6abb6e8fae401fdb8e5f43f3984efdf2803696R1-R108) [[6]](diffhunk://#diff-d2c14bc247ee6cee7d5e45e9e967ff7d1cc3e98b98af02f7e5a4a8c6796f40fbR1-R41) [[7]](diffhunk://#diff-7eb95277f166342b9ffb08398f8165f1498aa8ecb4ac3b967133e4d682c382a3R27) [[8]](diffhunk://#diff-a8ff468e437001f77b303a9f63b47a6204ffc99b25dd4e9d9a122d5093b69f1cR25)
**Connector and API Integration**
- Added invoice record backflow support to Chargebee and Recurly connectors, and updated default connector implementations for new invoice-related flows. [[1]](diffhunk://#diff-805dd853d554bb072ad3427d6b5ed7dc7b9ed62ee278f5adbf389a08266996b0R688) [[2]](diffhunk://#diff-987be7b07b93a35ac0316f1eb8ad93ece84e5280d37e5566964238d1c969a3fdL12-R34) [[3]](diffhunk://#diff-987be7b07b93a35ac0316f1eb8ad93ece84e5280d37e5566964238d1c969a3fdR151) [[4]](diffhunk://#diff-987be7b07b93a35ac0316f1eb8ad93ece84e5280d37e5566964238d1c969a3fdR162-R171) [[5]](diffhunk://#diff-ee28a7003b898fbf15bb25eb102e2310a4c52ba46d3961e3f929f4cf6bd1f6beL46-R51) [[6]](diffhunk://#diff-ee28a7003b898fbf15bb25eb102e2310a4c52ba46d3961e3f929f4cf6bd1f6beL69-R75) [[7]](diffhunk://#diff-ee28a7003b898fbf15bb25eb102e2310a4c52ba46d3961e3f929f4cf6bd1f6beL133-R135) [[8]](diffhunk://#diff-ee28a7003b898fbf15bb25eb102e2310a4c52ba46d3961e3f929f4cf6bd1f6beR6946-R6956)
**API Models**
- Registered a new `invoice_record_back` module in the process tracker API models.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/subscription.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs`
**3. Core Business Logic**
- `crates/router/src/core/revenue_recovery/types.rs`
- `crates/router/src/core/subscription.rs`
- `crates/router/src/core/subscription/billing_processor_handler.rs`
- ... and 1 more files
**4. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/chargebee.rs`
- `crates/hyperswitch_connectors/src/connectors/recurly.rs`
- `crates/hyperswitch_connectors/src/connectors/stripebilling.rs`
- ... and 1 more files
**5. Type Definitions**
- `crates/router/src/types/storage.rs`
- `crates/router/src/types/storage/invoice_sync.rs`
- `crates/scheduler/src/consumer/types/process_data.rs`
**6. Utils**
- `crates/scheduler/src/utils.rs`
**7. Other**
- `crates/common_enums/src/enums.rs`
- `crates/hyperswitch_interfaces/src/api/subscriptions.rs`
- `crates/hyperswitch_interfaces/src/api/subscriptions_v2.rs`
- ... and 4 more files
**Code Patterns Applied:**
- Define new data structures (6 changes)
- Implement new functions (23 changes)
- Extend existing types with new fields (128 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit 0a35c617:
Files to modify:
**crates/api_models/src/subscription.rs**
Modify existing code
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/chargebee.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/recurly.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stripebilling.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/api/subscriptions.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/api/subscriptions_v2.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/conversion_impls.rs**
Modify existing code
**crates/router/src/bin/scheduler.rs**
Modify existing code
**crates/router/src/core/revenue_recovery/types.rs**
Modify existing code
**crates/router/src/core/subscription.rs**
Modify existing code
**crates/router/src/core/subscription/billing_processor_handler.rs**
Modify existing code
**crates/router/src/core/subscription/invoice_handler.rs**
Modify existing code
**crates/router/src/types/storage.rs**
Modify existing code
**crates/router/src/types/storage/invoice_sync.rs**
Modify existing code
**crates/router/src/workflows.rs**
Modify existing code
**crates/router/src/workflows/invoice_sync.rs**
Modify existing code
**crates/scheduler/src/consumer/types/process_data.rs**
Modify existing code
**crates/scheduler/src/utils.rs**
Modify existing code
|
{"pr_number": 9529, "pr_title": "feat(subscriptions): Invoice record back workflow", "merged_at": "2025-10-03T19:49:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/subscription.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs"], "core_business": ["crates/router/src/core/revenue_recovery/types.rs", "crates/router/src/core/subscription.rs", "crates/router/src/core/subscription/billing_processor_handler.rs", "crates/router/src/core/subscription/invoice_handler.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee.rs", "crates/hyperswitch_connectors/src/connectors/recurly.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling.rs", "crates/hyperswitch_connectors/src/default_implementations.rs"], "types": ["crates/router/src/types/storage.rs", "crates/router/src/types/storage/invoice_sync.rs", "crates/scheduler/src/consumer/types/process_data.rs"], "utils": ["crates/scheduler/src/utils.rs"], "other": ["crates/common_enums/src/enums.rs", "crates/hyperswitch_interfaces/src/api/subscriptions.rs", "crates/hyperswitch_interfaces/src/api/subscriptions_v2.rs", "crates/hyperswitch_interfaces/src/conversion_impls.rs", "crates/router/src/bin/scheduler.rs", "crates/router/src/workflows.rs", "crates/router/src/workflows/invoice_sync.rs"]}, "change_types": {"structs_added": 6, "functions_added": 23, "enums_added": 1, "fields_added": 128, "imports_added": 14, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
To consume transaction id for some error cases , where currently its not consumed for Adyen, Worldpay. This PR addresses this issue.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/router/src/connector/adyen.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
|
{"pr_number": 7061, "pr_title": "feat(connector): [ADYEN ] Consume transaction id for PaymentsPreProcessing error", "merged_at": "2025-01-22T07:01:32Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["transaction"]}, "hierarchy": {"connectors": ["crates/router/src/connector/adyen.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Described in #6316 (point # 2)
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/router/src/connector/worldpay.rs`
- `crates/router/src/connector/worldpay/response.rs`
- `crates/router/src/connector/worldpay/transformers.rs`
**Code Patterns Applied:**
- Implement new functions (5 changes)
- Extend existing types with new fields (30 changes)
**Detailed Identifier Changes:**
Commit 3d1a3cdc:
Files to modify:
**crates/router/src/connector/worldpay.rs**
Modify existing code
**crates/router/src/connector/worldpay/response.rs**
Modify existing code
**crates/router/src/connector/worldpay/transformers.rs**
Modify existing code
|
{"pr_number": 6392, "pr_title": "refactor(connector): [WorldPay] propagate refusal codes as error code and messages", "merged_at": "2024-10-22T13:03:52Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/router/src/connector/worldpay.rs", "crates/router/src/connector/worldpay/response.rs", "crates/router/src/connector/worldpay/transformers.rs"]}, "change_types": {"functions_added": 5, "fields_added": 30}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Bumped up the UCS Client dependency in order to bring in the latest changes of having first_name and last_name as SecretString types.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/unified_connector_service/transformers.rs`
**2. Configuration Files**
- `crates/external_services/Cargo.toml`
- `crates/router/Cargo.toml`
**3. Other**
- `Cargo.lock`
**Code Patterns Applied:**
- Extend existing types with new fields (3 changes)
|
{"pr_number": 9326, "pr_title": "feat(core): Add first_name and last_name as Secret<String> Types. ", "merged_at": "2025-09-11T12:14:35Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/unified_connector_service/transformers.rs"], "config": ["crates/external_services/Cargo.toml", "crates/router/Cargo.toml"], "other": ["Cargo.lock"]}, "change_types": {"fields_added": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/connector_enums.rs`
**2. Core Business Logic**
- `crates/router/src/core/admin.rs`
**3. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
- ... and 7 more files
**4. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/transformers.rs`
**5. Tests**
- `config/deployments/integration_test.toml`
- `cypress-tests/cypress/e2e/PaymentUtils/Jpmorgan.js`
- `cypress-tests/cypress/e2e/PaymentUtils/Utils.js`
- ... and 1 more files
**6. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**7. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Define new data structures (29 changes)
- Implement new functions (29 changes)
- Extend existing types with new fields (384 changes)
- Add conditional logic for feature flags or filtering (2 changes)
- Modify database queries (4 changes)
**Detailed Identifier Changes:**
Commit adcddd64:
Files to modify:
**crates/api_models/src/connector_enums.rs**
Modify existing code
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/jpmorgan.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/constants.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 6668, "pr_title": "feat(connector): [JPMORGAN] add Payment flows for cards", "merged_at": "2024-12-22T18:18:07Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/connector_enums.rs"], "core_business": ["crates/router/src/core/admin.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/jpmorgan.rs", "crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs", "crates/hyperswitch_connectors/src/constants.rs", "crates/router/tests/connectors/sample_auth.toml", "crates/test_utils/src/connector_auth.rs"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/PaymentUtils/Jpmorgan.js", "cypress-tests/cypress/e2e/PaymentUtils/Utils.js", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"structs_added": 29, "functions_added": 29, "enums_added": 4, "fields_added": 384, "imports_added": 7, "conditionals_added": 2, "database_queries": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
We can update card expiry in payments method data of payment methods table using batch pm update API>
Added support to pass multiple mca ids for updating payment methods entry.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payment_methods.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/payment_method.rs`
**3. Core Business Logic**
- `crates/payment_methods/src/core/migration.rs`
- `crates/router/src/core/payment_methods/migration.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (1 changes)
- Extend existing types with new fields (22 changes)
- Add conditional logic for feature flags or filtering (7 changes)
**Detailed Identifier Changes:**
Commit ad374997:
Files to modify:
**crates/api_models/src/payment_methods.rs**
Modify existing code
**crates/diesel_models/src/payment_method.rs**
Modify existing code
**crates/payment_methods/src/core/migration.rs**
Modify existing code
**crates/router/src/core/payment_methods/migration.rs**
Modify existing code
|
{"pr_number": 9688, "pr_title": "feat(core): Add support to update card exp in update payment methods api", "merged_at": "2025-10-07T12:54:46Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/payment_methods.rs"], "database": ["crates/diesel_models/src/payment_method.rs"], "core_business": ["crates/payment_methods/src/core/migration.rs", "crates/router/src/core/payment_methods/migration.rs"]}, "change_types": {"structs_added": 1, "functions_added": 1, "fields_added": 22, "imports_added": 3, "conditionals_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Previously the `mandate_details` were enough to identify the payment as mandate payment but now it is optional so a payment can be mandate even if there is no `mandate_details` but the payment's `setup_future_usage` is `off-session`.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_methods/cards.rs`
- `crates/router/src/core/payment_methods/utils.rs`
**Code Patterns Applied:**
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 6744, "pr_title": "refactor(constraint_graph): add setup_future_usage for mandate check in payments", "merged_at": "2024-12-10T12:12:50Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/utils.rs"]}, "change_types": {"conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Handled zero auth mandates for Iatapay connector in cypress automation
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/PaymentUtils/Iatapay.js`
**Code Patterns Applied:**
- Extend existing types with new fields (29 changes)
|
{"pr_number": 6552, "pr_title": "ci(cypress): Fix Iatapay Zero Auth Mandates Flow", "merged_at": "2024-11-14T08:07:59Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/PaymentUtils/Iatapay.js"]}, "change_types": {"fields_added": 29}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
- This PR consists of the process tracker flow for Psync and Review Tasks
- **Psync Task** is created if a payment’s status is Processing with an active attempt_id
> Action: match attempt status and update the process tracker status based on that.
> Finish the current task
- This PR also includes changes in the execute_payment workflow where , we record an attempt first and then call the proxy api to perform the payments
<img width="1728" alt="Screenshot 2025-03-12 at 6 25 37 PM" src="https://github.com/user-attachments/assets/2be62b23-1be6-4bc2-a3b9-68e864097c94" />
- if the payment fails it would retry in a given interval for given number of default retries
<img width="1700" alt="Screenshot 2025-03-13 at 2 07 42 PM" src="https://github.com/user-attachments/assets/8276fdf5-d52d-4ce5-bdfc-8ed39be11d78" />
- If thePayment goes to processing , a PSYNC_WORKFLOW Is Scheduled
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/process_tracker.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/lib.rs`
- `crates/hyperswitch_domain_models/src/merchant_connector_account.rs`
- `crates/hyperswitch_domain_models/src/payments.rs`
- ... and 2 more files
**4. Core Business Logic**
- `crates/router/src/core/errors.rs`
- `crates/router/src/core/payments/operations/payment_attempt_record.rs`
- `crates/router/src/core/payments/operations/proxy_payments_intent.rs`
- ... and 6 more files
**5. Type Definitions**
- `crates/router/src/types/storage/revenue_recovery.rs`
**6. Other**
- `crates/router/src/workflows/revenue_recovery.rs`
- `crates/storage_impl/src/errors.rs`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (15 changes)
- Extend existing types with new fields (125 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 9e9a9229:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/diesel_models/src/process_tracker.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/lib.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/merchant_connector_account.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_intent.rs**
Modify existing code
**crates/router/src/core/errors.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_attempt_record.rs**
Modify existing code
**crates/router/src/core/payments/operations/proxy_payments_intent.rs**
Modify existing code
**crates/router/src/core/revenue_recovery.rs**
Modify existing code
**crates/router/src/core/revenue_recovery/api.rs**
Modify existing code
**crates/router/src/core/revenue_recovery/transformers.rs**
Modify existing code
**crates/router/src/core/revenue_recovery/types.rs**
Modify existing code
**crates/router/src/core/webhooks.rs**
Modify existing code
**crates/router/src/core/webhooks/recovery_incoming.rs**
Modify existing code
**crates/router/src/types/storage/revenue_recovery.rs**
Modify existing code
**crates/router/src/workflows/revenue_recovery.rs**
Modify existing code
**crates/storage_impl/src/errors.rs**
Modify existing code
|
{"pr_number": 7178, "pr_title": "feat(process_tracker): Task implementation for psync payments", "merged_at": "2025-04-30T08:25:32Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/process_tracker.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs", "crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs"], "core_business": ["crates/router/src/core/errors.rs", "crates/router/src/core/payments/operations/payment_attempt_record.rs", "crates/router/src/core/payments/operations/proxy_payments_intent.rs", "crates/router/src/core/revenue_recovery.rs", "crates/router/src/core/revenue_recovery/api.rs", "crates/router/src/core/revenue_recovery/transformers.rs", "crates/router/src/core/revenue_recovery/types.rs", "crates/router/src/core/webhooks.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "types": ["crates/router/src/types/storage/revenue_recovery.rs"], "other": ["crates/router/src/workflows/revenue_recovery.rs", "crates/storage_impl/src/errors.rs"]}, "change_types": {"structs_added": 2, "functions_added": 15, "enums_added": 1, "fields_added": 125, "imports_added": 10, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
add support for hide card nickname field for open payment links
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
|
{"pr_number": 6700, "pr_title": "fix(payment_link): add support for hide card nickname field for open payment links", "merged_at": "2024-12-02T14:59:17Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR adds support for running tests against mock server for alpha connectors.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/connector_validation.rs`
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs`
- ... and 3 more files
**3. Tests**
- `.github/workflows/cypress-tests-runner.yml`
- `cypress-tests/cypress/e2e/configs/Payment/Silverflow.js`
- `cypress-tests/cypress/e2e/configs/Payment/Utils.js`
- ... and 3 more files
**4. Other**
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
**Code Patterns Applied:**
- Extend existing types with new fields (1001 changes)
- Add conditional logic for feature flags or filtering (24 changes)
**Detailed Identifier Changes:**
Commit 03bdcfea:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs**
Modify existing code
**crates/payment_methods/src/configs/payment_connector_required_fields.rs**
Modify existing code
**crates/router/src/core/connector_validation.rs**
Modify existing code
**crates/router/src/types/api/connector_mapping.rs**
Modify existing code
**crates/router/src/types/connector_transformers.rs**
Modify existing code
|
{"pr_number": 8742, "pr_title": "feat: add ci support for mock server", "merged_at": "2025-08-01T12:56:53Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/connector_validation.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs", "crates/router/src/types/api/connector_mapping.rs", "crates/router/src/types/connector_transformers.rs"], "tests": [".github/workflows/cypress-tests-runner.yml", "cypress-tests/cypress/e2e/configs/Payment/Silverflow.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/e2e/configs/mock-server/Silverflow.js", "cypress-tests/package-lock.json", "cypress-tests/package.json"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json"]}, "change_types": {"fields_added": 1001, "conditionals_added": 24}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
1) Pass 3 Digit Numeric Code in CountryCode instead of the country alphaCode for Paybox 3DS Request
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 7153, "pr_title": "fix(connector): Fix Paybox 3DS failing issue", "merged_at": "2025-02-04T19:25:06Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/paybox/transformers.rs"]}, "change_types": {"fields_added": 2, "conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Enhanced the script to pre-configure a user and a dummy connector in the control center for the local setup.
replica of https://github.com/juspay/hyperswitch/pull/8093 on the main
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `README.md`
- `scripts/setup.sh`
**Code Patterns Applied:**
- Add conditional logic for feature flags or filtering (18 changes)
|
{"pr_number": 8092, "pr_title": "fix: updated the docker setup", "merged_at": "2025-05-22T09:46:58Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"other": ["README.md", "scripts/setup.sh"]}, "change_types": {"conditionals_added": 18}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Integrate global Success rates for dynamic routing
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/routing.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/dynamic_routing_stats.rs`
- `crates/diesel_models/src/schema.rs`
- `crates/diesel_models/src/schema_v2.rs`
**3. Core Business Logic**
- `crates/router/src/core/routing/helpers.rs`
**4. External Connector Integration**
- `migrations/2025-01-07-101337_global_sr_connector_dynamic_routing/down.sql`
- `migrations/2025-01-07-101337_global_sr_connector_dynamic_routing/up.sql`
**5. Other**
- `api-reference/openapi_spec.json`
- `crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs`
- `crates/openapi/src/openapi.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Implement new functions (3 changes)
- Extend existing types with new fields (26 changes)
**Detailed Identifier Changes:**
Commit 39d2d6c4:
Files to modify:
**crates/api_models/src/routing.rs**
Modify existing code
**crates/diesel_models/src/dynamic_routing_stats.rs**
Modify existing code
**crates/diesel_models/src/schema.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs**
Modify existing code
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/router/src/core/routing/helpers.rs**
Modify existing code
|
{"pr_number": 6950, "pr_title": "feat(routing): Integrate global success rates", "merged_at": "2025-01-21T12:16:06Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/routing.rs"], "database": ["crates/diesel_models/src/dynamic_routing_stats.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs"], "core_business": ["crates/router/src/core/routing/helpers.rs"], "connectors": ["migrations/2025-01-07-101337_global_sr_connector_dynamic_routing/down.sql", "migrations/2025-01-07-101337_global_sr_connector_dynamic_routing/up.sql"], "other": ["api-reference/openapi_spec.json", "crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs", "crates/openapi/src/openapi.rs", "proto/success_rate.proto"]}, "change_types": {"functions_added": 3, "enums_added": 3, "fields_added": 26}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Added Apple Pay Flow for Barclaycard
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- `crates/connector_configs/toml/sandbox.toml`
- ... and 2 more files
**2. Tests**
- `config/deployments/integration_test.toml`
**3. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**Code Patterns Applied:**
- Define new data structures (4 changes)
- Implement new functions (1 changes)
- Extend existing types with new fields (59 changes)
**Detailed Identifier Changes:**
Commit 77498ee5:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/barclaycard.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs**
Modify existing code
|
{"pr_number": 8885, "pr_title": "feat(connector): [Barclaycard] Add Apple Pay Flow", "merged_at": "2025-09-09T09:45:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/barclaycard.rs", "crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"structs_added": 4, "functions_added": 1, "enums_added": 1, "fields_added": 59, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
The error status was previously being accepted as i32, which was causing Hyperswitch to throw an error because the connector returns the status as a String. The status has been changed to type String in this PR.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/router/src/connector/wise/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
|
{"pr_number": 7468, "pr_title": "fix(connector): [WISE] Changed error status to string", "merged_at": "2025-04-02T06:41:10Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "merchant", "connector"]}, "hierarchy": {"connectors": ["crates/router/src/connector/wise/transformers.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Connectors which accept FormData type request, their `raw_connector_request` weren't being logged. Added masking support and logging form-data type requests.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_methods.rs`
**2. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/checkout.rs`
- `crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/fiuu.rs`
- ... and 3 more files
**3. Utils**
- `crates/common_utils/src/request.rs`
**4. Other**
- `crates/external_services/src/http_client.rs`
- `crates/injector/src/vault_metadata.rs`
- `crates/router/src/services/api.rs`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (4 changes)
- Extend existing types with new fields (18 changes)
**Detailed Identifier Changes:**
Commit 1af7f427:
Files to modify:
**crates/common_utils/src/request.rs**
Modify existing code
**crates/external_services/src/http_client.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/checkout.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/fiuu.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/hipay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stripe.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Modify existing code
**crates/router/src/services/api.rs**
Modify existing code
|
{"pr_number": 9496, "pr_title": "feat(core): Add masking support for form-data types request", "merged_at": "2025-10-07T17:32:55Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_methods.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/checkout.rs", "crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs", "crates/hyperswitch_connectors/src/connectors/fiuu.rs", "crates/hyperswitch_connectors/src/connectors/hipay.rs", "crates/hyperswitch_connectors/src/connectors/stripe.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs"], "utils": ["crates/common_utils/src/request.rs"], "other": ["crates/external_services/src/http_client.rs", "crates/injector/src/vault_metadata.rs", "crates/router/src/services/api.rs"]}, "change_types": {"structs_added": 2, "functions_added": 4, "fields_added": 18, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Implemented capture and webhook flow, fix some issues in ACI
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/aci.rs`
- `crates/hyperswitch_connectors/src/connectors/aci/transformers.rs`
**2. Utils**
- `crates/common_utils/src/errors.rs`
**3. Tests**
- `loadtest/config/development.toml`
**4. Configuration Files**
- `config/deployments/production.toml`
- `config/development.toml`
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (19 changes)
- Extend existing types with new fields (116 changes)
- Add conditional logic for feature flags or filtering (9 changes)
**Detailed Identifier Changes:**
Commit 1ae30247:
Files to modify:
**crates/common_utils/src/errors.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/aci.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/aci/transformers.rs**
Modify existing code
|
{"pr_number": 8349, "pr_title": "feat(connector): Implement capture and webhook flow, fix some issues in ACI", "merged_at": "2025-07-01T09:53:19Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/aci.rs", "crates/hyperswitch_connectors/src/connectors/aci/transformers.rs"], "utils": ["crates/common_utils/src/errors.rs"], "tests": ["loadtest/config/development.toml"], "config": ["config/deployments/production.toml", "config/development.toml"]}, "change_types": {"structs_added": 10, "functions_added": 19, "enums_added": 2, "fields_added": 116, "imports_added": 1, "conditionals_added": 9}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
connector_transaction_id of wise only support UUID format.
reference_id wont be required as value since we store the wise's transaction id.
We only send UUID to make the transaction without any error.
Hotfix raised against: https://github.com/juspay/hyperswitch/pull/8836
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/wise/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
|
{"pr_number": 8837, "pr_title": "fix(connector): [Wise] send uuid as connector_transaction_id", "merged_at": "2025-08-05T10:18:31Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "merchant", "order"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/wise/transformers.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Script for one click docker setup, to minimise issues faced by users.
>Run the whole setup with simple command
>Show output with localhost links for different setups
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `README.md`
- `scripts/docker_output.sh`
**Code Patterns Applied:**
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 7762, "pr_title": "fix: script for one click docker setup", "merged_at": "2025-04-13T21:08:39Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"other": ["README.md", "scripts/docker_output.sh"]}, "change_types": {"conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Populated Error Message in Incremental Authorization Flow. Added check for same amount in incremental authorization requests.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/operations/payments_incremental_authorization.rs`
**2. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/stripe.rs`
**Code Patterns Applied:**
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 9006, "pr_title": "fix(connector): [STRIPE] Populate Error Message in Incremental Authorization Flow", "merged_at": "2025-08-21T14:20:35Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/payments_incremental_authorization.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/stripe.rs"]}, "change_types": {"conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
For acquirer CMCIC, Cybersource MIT payments needs the following field
`paymentInformation.card.typeSelectionIndicator`
This PR addresses the same
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Extend existing types with new fields (4 changes)
|
{"pr_number": 9265, "pr_title": "fix(connector): [CYBERSOURCE] Add extra field for Cybersource MIT payment for acquirer CMCIC", "merged_at": "2025-09-07T14:39:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"]}, "change_types": {"structs_added": 1, "fields_added": 4}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.