prompt
stringlengths 6
90.9k
| response
stringlengths 121
18.6k
| metadata
stringlengths 314
42.3k
|
|---|---|---|
<!-- Describe your changes in detail -->
Add service details struct in payments request api_model and authentication table for storing service_details during click to pay authentication via unified_authentication_service
|
To implement this **payment** 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/authentication.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/router_request_types/unified_authentication_service.rs`
**4. Core Business Logic**
- `crates/router/src/core/authentication/utils.rs`
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/operations/payment_approve.rs`
- ... and 15 more files
**5. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/openapi/src/openapi.rs`
- ... and 4 more files
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Extend existing types with new fields (29 changes)
**Detailed Identifier Changes:**
Commit e9a5615f:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/diesel_models/src/authentication.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/router_request_types/unified_authentication_service.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/authentication/utils.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_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/payments_incremental_authorization.rs**
Modify existing code
**crates/router/src/core/payments/operations/tax_calculation.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service/transformers.rs**
Modify existing code
**crates/router/src/db/authentication.rs**
Modify existing code
|
{"pr_number": 6757, "pr_title": "feat(core): Add service details field in authentication table", "merged_at": "2024-12-12T12:43:58Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/authentication.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs"], "core_business": ["crates/router/src/core/authentication/utils.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_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/payments_incremental_authorization.rs", "crates/router/src/core/payments/operations/tax_calculation.rs", "crates/router/src/core/unified_authentication_service.rs", "crates/router/src/core/unified_authentication_service/transformers.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/db/authentication.rs", "migrations/2024-12-05-115544_add-service-details/down.sql", "migrations/2024-12-05-115544_add-service-details/up.sql"]}, "change_types": {"structs_added": 2, "fields_added": 29}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Reverts https://github.com/juspay/hyperswitch/pull/7921
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments.rs`
**Detailed Identifier Changes:**
Commit e902d6d9:
Files to modify:
**crates/router/src/core/payments.rs**
Modify existing code
|
{"pr_number": 8207, "pr_title": "revert(routing): Add connectors from current active routing algorithm before adding fallback connectors", "merged_at": "2025-06-04T16:36:28Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
A new type has been added to the domain models called `Address`. This type has been used in the application everywhere where we use address.
<!--
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)?
-->
- Create a payment by passing the billing and shipping address
```bash
curl --location 'http://localhost:8080/v2/payments/create-intent' \
--header 'api-key: dev_WnAruI89ADcHyYBIs7qWS0DHCkpfcfBma1ubv4mWLK9CoaUCKaVbYvAQUEKycCO0' \
--header 'Content-Type: application/json' \
--header 'x-profile-id: pro_U0hvw0D9plClPdsoS1Gj' \
--data-raw '{
"amount_details": {
"order_amount": 100,
"currency": "USD"
},
"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"
}
}'
```
```json
{
"id": "12345_pay_01936eb3d8f27892b0fc10f02351516c",
"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_01936eb3d8f27892b0fc10f02351516c_secret_01936eb3d8f379e3ab40edeedf17445d",
"profile_id": "pro_U0hvw0D9plClPdsoS1Gj",
"merchant_reference_id": null,
"routing_algorithm_id": null,
"capture_method": "automatic",
"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-11-27T17:53:20.531Z",
"frm_metadata": null,
"request_external_three_ds_authentication": "Skip"
}
```
- Ensure that the billing address and shipping address are returned as expected
- confirm the payment with payment method billing address
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_01936ecc441b75819e855e842cc399fc/confirm-intent' \
--header 'x-client-secret: 12345_pay_01936ecc441b75819e855e842cc399fc_secret_01936ecc441c7c03a3cd39377ec07227' \
--header 'x-profile-id: pro_6Kx6DNIEgnKROYJ8ja9j' \
--header 'Content-Type: application/json' \
--header 'api-key: pk_dev_d088fde71ce44ae3b8deb6786c6a747e' \
--data '{
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "01",
"card_exp_year": "25",
"card_holder_name": "John Doe",
"card_cvc": "100"
},
"billing": {
"address": {
"first_name": "John"
}
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit"
}'
```
```json
{
"id": "12345_pay_01936ecc441b75819e855e842cc399fc",
"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": null
},
"connector": "stripe",
"client_secret": "12345_pay_01936ecc441b75819e855e842cc399fc_secret_01936ecc441c7c03a3cd39377ec07227",
"created": "2024-11-27T18:05:00.828Z",
"payment_method_data": {
"billing": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"line3": null,
"zip": null,
"state": null,
"first_name": "John",
"last_name": null
},
"phone": null,
"email": null
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"next_action": null,
"connector_transaction_id": "pi_3QPpbrD5R7gDAGff0I2xElva",
"connector_reference_id": null,
"merchant_connector_id": "mca_UNBvyDd9IHGPWPC3ORf5",
"browser_info": null,
"error": null
}
```
- Ensure that the payment method billing address are returned as sent in the request
- Retrieve the payment
```bash
curl --location 'http://localhost:8080/v2/payments/12345_pay_01936ecc441b75819e855e842cc399fc' \
--header 'x-profile-id: pro_6Kx6DNIEgnKROYJ8ja9j' \
--header 'api-key: dev_NoVyI0VIpxPwRC3NgYzQ7PFkhxex0bWSXrgDLHZZwu1seej1jhoNs22s0QDJBflS' \
--data ''
```
```json
{
"id": "12345_pay_01936ecc441b75819e855e842cc399fc",
"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": null
},
"connector": "stripe",
"client_secret": "12345_pay_01936ecc441b75819e855e842cc399fc_secret_01936ecc441c7c03a3cd39377ec07227",
"created": "2024-11-27T18:05:00.828Z",
"payment_method_data": {
"billing": {
"address": {
"city": null,
"country": null,
"line1": null,
"line2": null,
"line3": null,
"zip": null,
"state": null,
"first_name": "John",
"last_name": null
},
"phone": null,
"email": null
}
},
"payment_method_type": "card",
"payment_method_subtype": "credit",
"connector_transaction_id": "pi_3QPpbrD5R7gDAGff0I2xElva",
"connector_reference_id": null,
"merchant_connector_id": "mca_UNBvyDd9IHGPWPC3ORf5",
"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"
}
}
```
- Check the billing and shipping details on the stripe dashboard
<img width="606" alt="Screenshot 2024-11-28 at 11 39 26 AM" src="https://github.com/user-attachments/assets/55b05679-d00f-4d07-a5b2-7ae6cbade3fc">
![Uploading Screenshot 2024-11-28 at 11.40.59 AM.png…]()
## 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/payments.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/address.rs`
- `crates/hyperswitch_domain_models/src/payment_address.rs`
- `crates/hyperswitch_domain_models/src/payments.rs`
- ... and 3 more files
**3. Core Business Logic**
- `crates/router/src/core/authentication.rs`
- `crates/router/src/core/authentication/transformers.rs`
- `crates/router/src/core/payment_methods.rs`
- ... and 15 more files
**4. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs`
- ... and 36 more files
**5. Type Definitions**
- `crates/router/src/compatibility/stripe/payment_intents/types.rs`
- `crates/router/src/types.rs`
- `crates/router/src/types/transformers.rs`
**6. Other**
- `api-reference-v2/openapi_spec.json`
- `crates/common_enums/src/enums.rs`
**Code Patterns Applied:**
- Implement new functions (34 changes)
- Extend existing types with new fields (92 changes)
**Detailed Identifier Changes:**
Commit 938b2a89:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/address.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payment_address.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/router_request_types.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types/authentication.rs**
Modify existing code
**crates/router/src/compatibility/stripe/payment_intents/types.rs**
Modify existing code
**crates/router/src/connector/adyen/transformers.rs**
Modify existing code
**crates/router/src/connector/bankofamerica/transformers.rs**
Modify existing code
**crates/router/src/connector/bluesnap/transformers.rs**
Modify existing code
**crates/router/src/connector/cybersource/transformers.rs**
Modify existing code
**crates/router/src/connector/gocardless/transformers.rs**
Modify existing code
**crates/router/src/connector/klarna/transformers.rs**
Modify existing code
**crates/router/src/connector/netcetera/netcetera_types.rs**
Modify existing code
**crates/router/src/connector/paypal/transformers.rs**
Modify existing code
**crates/router/src/connector/riskified/transformers/api.rs**
Modify existing code
**crates/router/src/connector/utils.rs**
Modify existing code
**crates/router/src/connector/wellsfargo/transformers.rs**
Modify existing code
**crates/router/src/connector/wise/transformers.rs**
Modify existing code
**crates/router/src/core/authentication.rs**
Modify existing code
**crates/router/src/core/authentication/transformers.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Modify existing code
**crates/router/src/core/payment_methods/surcharge_decision_configs.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm_intent.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_create.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/operations/tax_calculation.rs**
Modify existing code
**crates/router/src/core/payments/routing.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/payout_link.rs**
Modify existing code
**crates/router/src/core/payouts.rs**
Modify existing code
**crates/router/src/core/utils.rs**
Modify existing code
**crates/router/src/core/webhooks/incoming_v2.rs**
Modify existing code
**crates/router/src/types.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/router/tests/connectors/aci.rs**
Modify existing code
**crates/router/tests/connectors/adyen.rs**
Modify existing code
**crates/router/tests/connectors/airwallex.rs**
Modify existing code
**crates/router/tests/connectors/bitpay.rs**
Modify existing code
**crates/router/tests/connectors/bluesnap.rs**
Modify existing code
**crates/router/tests/connectors/cashtocode.rs**
Modify existing code
**crates/router/tests/connectors/coinbase.rs**
Modify existing code
**crates/router/tests/connectors/cryptopay.rs**
Modify existing code
**crates/router/tests/connectors/cybersource.rs**
Modify existing code
**crates/router/tests/connectors/dlocal.rs**
Modify existing code
**crates/router/tests/connectors/forte.rs**
Modify existing code
**crates/router/tests/connectors/globalpay.rs**
Modify existing code
**crates/router/tests/connectors/iatapay.rs**
Modify existing code
**crates/router/tests/connectors/multisafepay.rs**
Modify existing code
**crates/router/tests/connectors/opennode.rs**
Modify existing code
**crates/router/tests/connectors/payeezy.rs**
Modify existing code
**crates/router/tests/connectors/payme.rs**
Modify existing code
**crates/router/tests/connectors/trustpay.rs**
Modify existing code
**crates/router/tests/connectors/utils.rs**
Modify existing code
**crates/router/tests/connectors/wise.rs**
Modify existing code
**crates/router/tests/connectors/worldline.rs**
Modify existing code
|
{"pr_number": 6608, "pr_title": "refactor(address): change address to domain address in application", "merged_at": "2024-12-04T10:10: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/address.rs", "crates/hyperswitch_domain_models/src/payment_address.rs", "crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/router_request_types.rs", "crates/hyperswitch_domain_models/src/router_request_types/authentication.rs"], "core_business": ["crates/router/src/core/authentication.rs", "crates/router/src/core/authentication/transformers.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/surcharge_decision_configs.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_confirm_intent.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/operations/payment_get.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/operations/tax_calculation.rs", "crates/router/src/core/payments/routing.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/payout_link.rs", "crates/router/src/core/payouts.rs", "crates/router/src/core/utils.rs", "crates/router/src/core/webhooks/incoming_v2.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/dlocal/transformers.rs", "crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs", "crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs", "crates/hyperswitch_connectors/src/connectors/worldline/transformers.rs", "crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/adyen/transformers.rs", "crates/router/src/connector/bankofamerica/transformers.rs", "crates/router/src/connector/bluesnap/transformers.rs", "crates/router/src/connector/cybersource/transformers.rs", "crates/router/src/connector/gocardless/transformers.rs", "crates/router/src/connector/klarna/transformers.rs", "crates/router/src/connector/netcetera/netcetera_types.rs", "crates/router/src/connector/paypal/transformers.rs", "crates/router/src/connector/riskified/transformers/api.rs", "crates/router/src/connector/utils.rs", "crates/router/src/connector/wellsfargo/transformers.rs", "crates/router/src/connector/wise/transformers.rs", "crates/router/tests/connectors/aci.rs", "crates/router/tests/connectors/adyen.rs", "crates/router/tests/connectors/airwallex.rs", "crates/router/tests/connectors/bitpay.rs", "crates/router/tests/connectors/bluesnap.rs", "crates/router/tests/connectors/cashtocode.rs", "crates/router/tests/connectors/coinbase.rs", "crates/router/tests/connectors/cryptopay.rs", "crates/router/tests/connectors/cybersource.rs", "crates/router/tests/connectors/dlocal.rs", "crates/router/tests/connectors/forte.rs", "crates/router/tests/connectors/globalpay.rs", "crates/router/tests/connectors/iatapay.rs", "crates/router/tests/connectors/multisafepay.rs", "crates/router/tests/connectors/opennode.rs", "crates/router/tests/connectors/payeezy.rs", "crates/router/tests/connectors/payme.rs", "crates/router/tests/connectors/trustpay.rs", "crates/router/tests/connectors/utils.rs", "crates/router/tests/connectors/wise.rs", "crates/router/tests/connectors/worldline.rs"], "types": ["crates/router/src/compatibility/stripe/payment_intents/types.rs", "crates/router/src/types.rs", "crates/router/src/types/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/common_enums/src/enums.rs"]}, "change_types": {"functions_added": 34, "fields_added": 92, "imports_added": 29}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This pr refactors the relay flow to add trait based implementation for it.
Changes made:-
1. `relay_flow_decider` decides the relay flow based on the relay types
2. Introduced `RelayInterface` trait that consists the methods required for different relay types
a. `validate_relay_request` validates the relay requests for different type of relay types. It also provides default
implementation, if a new relay type does not have specific type.
b. `get_domain_models` to convert the relay request form api models to domain models
c. `process_relay` that consists the core functionality for every relay type
d. `generate_response` relay type specific response
3. `Validate` trait provides the generic validation. This trait can be implemented for any type, that requires validation.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/relay.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/merchant_connector_account.rs`
- `crates/hyperswitch_domain_models/src/relay.rs`
**3. Core Business Logic**
- `crates/router/src/core/relay.rs`
**4. Other**
- `api-reference/openapi_spec.json`
- `crates/openapi/src/openapi.rs`
- `crates/router/src/routes/relay.rs`
**Code Patterns Applied:**
- Define new data structures (3 changes)
- Implement new functions (17 changes)
- Extend existing types with new fields (63 changes)
**Detailed Identifier Changes:**
Commit cdfbb82f:
Files to modify:
**crates/api_models/src/relay.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/merchant_connector_account.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/relay.rs**
Modify existing code
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/router/src/core/relay.rs**
Modify existing code
**crates/router/src/routes/relay.rs**
Modify existing code
|
{"pr_number": 7264, "pr_title": "refactor(relay): add trait based implementation for relay", "merged_at": "2025-03-03T07:59:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "refund", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/relay.rs"], "domain": ["crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "crates/hyperswitch_domain_models/src/relay.rs"], "core_business": ["crates/router/src/core/relay.rs"], "other": ["api-reference/openapi_spec.json", "crates/openapi/src/openapi.rs", "crates/router/src/routes/relay.rs"]}, "change_types": {"structs_added": 3, "functions_added": 17, "fields_added": 63, "imports_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Fixed the IataPay Cypress test cases as UPI_Collect payments were failing due to an invalid billing.address.country.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Iatapay.js`
- `cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js`
**Code Patterns Applied:**
- Extend existing types with new fields (11 changes)
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 7698, "pr_title": "ci(cypress): fix iatapay upi payments", "merged_at": "2025-04-03T06:47:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Iatapay.js", "cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js"]}, "change_types": {"fields_added": 11, "conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
PR : #[8238](https://github.com/juspay/hyperswitch/pull/8238) calls for a env variable before the .env file is sourced in the scripts/setup.sh file.
This PR fixes the above mentioned issue and handles the health checks using flags instead of exit codes, enabling the script to proceed further without getting terminated.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `scripts/setup.sh`
**Code Patterns Applied:**
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 8320, "pr_title": "fix: correct error for env not found", "merged_at": "2025-06-16T13:09:15Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"other": ["scripts/setup.sh"]}, "change_types": {"conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
add capability to force challenge for 3DS Payments through Netcetera and send few optional fields
1. Profile level enablement `force_3ds_challenge` which would request netcetera for challenge flow
2. Send few optional fields like trans_type, which can potentially be required on PROD (Because docs says, it maybe required in some markets)
Note: hotfix pr against https://github.com/juspay/hyperswitch/pull/7429
|
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`
- `crates/hyperswitch_domain_models/src/router_request_types/authentication.rs`
**4. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/authentication.rs`
- `crates/router/src/core/authentication/transformers.rs`
- ... and 1 more files
**5. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs`
- `crates/router/src/connector/netcetera/netcetera_types.rs`
- `crates/router/src/connector/netcetera/transformers.rs`
**6. Type Definitions**
- `crates/common_utils/src/types.rs`
- `crates/router/src/types/api/admin.rs`
**7. Other**
- `migrations/2025-03-04-105454_add_force_3ds_challenge_column_to_business_profile/down.sql`
- `migrations/2025-03-04-105454_add_force_3ds_challenge_column_to_business_profile/up.sql`
**Code Patterns Applied:**
- Implement new functions (4 changes)
- Extend existing types with new fields (56 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit ec0718f3:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/common_utils/src/types.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_connectors/src/connectors/cybersource/transformers.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/business_profile.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types/authentication.rs**
Modify existing code
**crates/router/src/connector/netcetera/netcetera_types.rs**
Modify existing code
**crates/router/src/connector/netcetera/transformers.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/authentication.rs**
Modify existing code
**crates/router/src/core/authentication/transformers.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/types/api/admin.rs**
Modify existing code
|
{"pr_number": 7449, "pr_title": "feat(router): add capability to force challenge for 3DS Payments through Netcetera and send few optional fields ", "merged_at": "2025-03-06T14:29:40Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "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", "crates/hyperswitch_domain_models/src/router_request_types/authentication.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/authentication.rs", "crates/router/src/core/authentication/transformers.rs", "crates/router/src/core/payments.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/router/src/connector/netcetera/netcetera_types.rs", "crates/router/src/connector/netcetera/transformers.rs"], "types": ["crates/common_utils/src/types.rs", "crates/router/src/types/api/admin.rs"], "other": ["migrations/2025-03-04-105454_add_force_3ds_challenge_column_to_business_profile/down.sql", "migrations/2025-03-04-105454_add_force_3ds_challenge_column_to_business_profile/up.sql"]}, "change_types": {"functions_added": 4, "enums_added": 1, "fields_added": 56, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This will handel the cases for constraint_graph for PML where setup_future_usage is not passed 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`
|
{"pr_number": 6810, "pr_title": "refactor(constraint_graph): handle PML for cases where setup_future_usage is not passed in payments", "merged_at": "2024-12-17T11:45:55Z", "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": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Added the testcases for unified error code and error message for stripe and adyen connector. And added failure payments testcases.
## How did you test it?
Stripe
<img width="729" alt="Screenshot 2024-12-10 at 7 58 49 PM" src="https://github.com/user-attachments/assets/1b7cc860-4d07-4891-b839-08749bb850d0">
Adyen
<img width="730" alt="Screenshot 2024-12-10 at 8 01 29 PM" src="https://github.com/user-attachments/assets/4c72db4f-206f-4467-9af2-b31a149e3c07">
## 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 **payment** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/PaymentTest/00022-Variations.cy.js`
- `cypress-tests/cypress/e2e/PaymentUtils/Adyen.js`
- `cypress-tests/cypress/e2e/PaymentUtils/Commons.js`
- ... and 1 more files
**Code Patterns Applied:**
- Extend existing types with new fields (50 changes)
- Add conditional logic for feature flags or filtering (3 changes)
|
{"pr_number": 6796, "pr_title": "ci(cypress): Add testcases for unified error code and message", "merged_at": "2024-12-13T08:25:47Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/PaymentTest/00022-Variations.cy.js", "cypress-tests/cypress/e2e/PaymentUtils/Adyen.js", "cypress-tests/cypress/e2e/PaymentUtils/Commons.js", "cypress-tests/cypress/e2e/PaymentUtils/Stripe.js"]}, "change_types": {"fields_added": 50, "conditionals_added": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
This PR removes any non mandatory fields from AdyenPlatform connector for card and SEPA payouts.
New list
- Card payouts
[payout_method_data.card.card_number](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-payout-method-data-card-card-number)
[payout_method_data.card.expiry_month](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-payout-method-data-card-expiry-month)
[payout_method_data.card.expiry_year](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-payout-method-data-card-expiry-year)
[payout_method_data.card.card_holder_name](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-payout-method-data-card-card-holder-name)
[billing.address.line1](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-billing-address-line1)
[billing.address.line2](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-billing-address-line2)
[billing.address.city](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-billing-address-city)
[billing.address.country](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-billing-address-country)
- Bank payouts
Along with the payout method data depending on the bank (https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-payout-method-data-bank)
[billing.address.line1](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-billing-address-line1)
[billing.address.line2](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-billing-address-line2)
[billing.address.city](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-billing-address-city)
[billing.address.country](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-billing-address-country)
[billing.address.first_name](https://api-reference.hyperswitch.io/v1/payouts/payouts--create#body-billing-address-first-name)
|
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:**
- Implement new functions (2 changes)
- Extend existing types with new fields (41 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 72eb25f0:
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": 8990, "pr_title": "refactor(connector): [AdyenPlatform] update required fields", "merged_at": "2025-08-19T11:08:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "merchant", "order"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs"], "config": ["crates/router/src/configs/defaults/payout_required_fields.rs"]}, "change_types": {"functions_added": 2, "fields_added": 41, "imports_added": 2, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Add RSA SHA 256 source verification for webhook in Wise
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/wise.rs`
**Code Patterns Applied:**
- Implement new functions (4 changes)
- Extend existing types with new fields (4 changes)
|
{"pr_number": 9100, "pr_title": "feat(connector): [Wise] Add webhook source verification", "merged_at": "2025-08-29T13:57:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant", "user", "webhook"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/wise.rs"]}, "change_types": {"functions_added": 4, "fields_added": 4}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Added comprehensive XSS (Cross-Site Scripting) and SQLi protection to dashboard metadata fields. Implemented a new `SafeString` type wrapper that validates input against XSS attacks during JSON deserialization.
**Dependencies Added**
- `ammonia = "3.3"` - HTML sanitization library
- `urlencoding = "2.1.3"` - URL decoding for encoded payloads
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/user/dashboard_metadata.rs`
**2. Core Business Logic**
- `crates/router/src/core/user/dashboard_metadata.rs`
**3. Type Definitions**
- `crates/common_types/src/primitive_wrappers.rs`
- `crates/router/src/services/email/types.rs`
**4. Utils**
- `crates/common_utils/Cargo.toml`
- `crates/common_utils/src/validation.rs`
- `crates/router/src/utils/user/dashboard_metadata.rs`
**5. Other**
- `Cargo.lock`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (28 changes)
- Extend existing types with new fields (45 changes)
- Add conditional logic for feature flags or filtering (6 changes)
**Detailed Identifier Changes:**
Commit cba489ff:
Files to modify:
**crates/api_models/src/user/dashboard_metadata.rs**
Modify existing code
**crates/common_types/src/primitive_wrappers.rs**
Modify existing code
**crates/common_utils/src/validation.rs**
Modify existing code
**crates/router/src/core/user/dashboard_metadata.rs**
Modify existing code
**crates/router/src/services/email/types.rs**
Modify existing code
**crates/router/src/utils/user/dashboard_metadata.rs**
Modify existing code
|
{"pr_number": 9104, "pr_title": "feat(security): add XSS and sqli validation for dashboard metadata fields", "merged_at": "2025-10-01T08:31:43Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"api_models": ["crates/api_models/src/user/dashboard_metadata.rs"], "core_business": ["crates/router/src/core/user/dashboard_metadata.rs"], "types": ["crates/common_types/src/primitive_wrappers.rs", "crates/router/src/services/email/types.rs"], "utils": ["crates/common_utils/Cargo.toml", "crates/common_utils/src/validation.rs", "crates/router/src/utils/user/dashboard_metadata.rs"], "other": ["Cargo.lock"]}, "change_types": {"structs_added": 1, "functions_added": 28, "fields_added": 45, "imports_added": 8, "conditionals_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Hotfix for https://github.com/juspay/hyperswitch/pull/7828
Authentication with Netcetera was successful, but authorization with Cybersource failed with the below error:
Declined - The request is missing one or more fields, detailed_error_information: paymentInformation.card.typeSelectionIndicator : MISSING_FIELD
Need to send card.typeSelectionIndicator as 1, for all co-badged cards txns with Cybersource (authorization).
|
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)
**Detailed Identifier Changes:**
Commit 6cee28c8:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs**
Modify existing code
|
{"pr_number": 7840, "pr_title": "fix(connector): [Cybersource] send type selection indicator for co-batch cards", "merged_at": "2025-04-17T11:32:15Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
the problem is that we previously extracted `nonce` instead of `signature` and entire regex match instead of `nonce`. this pr fixes webhook source verification for nmi connector by properly extracting `signature` (`2`) and `nonce` (`1`) values.
check attached issue for detailed explanation.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/nmi.rs`
**Code Patterns Applied:**
|
{"pr_number": 8946, "pr_title": "fix(connector): [nmi] webhook source verification", "merged_at": "2025-08-13T15:58:58Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/nmi.rs"]}, "change_types": {"imports_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
1)Added Mandate flow for Paybox
2) Added a new field `additional_payment_method_data` in PaymentsAuthorizeData type
3) Added `connector_mandate_request_reference_id` in RouterData
|
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`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`
- `crates/hyperswitch_domain_models/src/router_data.rs`
- `crates/hyperswitch_domain_models/src/router_request_types.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 14 more files
**5. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs`
- `crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs`
- ... and 24 more files
**6. Type Definitions**
- `crates/router/src/types.rs`
- `crates/router/src/types/storage/payment_method.rs`
**7. Utils**
- `crates/common_utils/src/lib.rs`
**8. Other**
- `crates/router/src/consts.rs`
- `crates/router/src/services/conversion_impls.rs`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (18 changes)
- Extend existing types with new fields (152 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit 37513e0f:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/common_utils/src/lib.rs**
Modify existing code
**crates/diesel_models/src/payment_attempt.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.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_request_types.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_response_types.rs**
Modify existing code
**crates/router/src/connector/aci/transformers.rs**
Modify existing code
**crates/router/src/connector/adyen/transformers.rs**
Modify existing code
**crates/router/src/connector/authorizedotnet/transformers.rs**
Modify existing code
**crates/router/src/connector/bamboraapac/transformers.rs**
Modify existing code
**crates/router/src/connector/bankofamerica/transformers.rs**
Modify existing code
**crates/router/src/connector/braintree/transformers.rs**
Modify existing code
**crates/router/src/connector/cybersource/transformers.rs**
Modify existing code
**crates/router/src/connector/globalpay/transformers.rs**
Modify existing code
**crates/router/src/connector/gocardless/transformers.rs**
Modify existing code
**crates/router/src/connector/multisafepay/transformers.rs**
Modify existing code
**crates/router/src/connector/noon/transformers.rs**
Modify existing code
**crates/router/src/connector/nuvei/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/payme/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/connector/wellsfargo/transformers.rs**
Modify existing code
**crates/router/src/consts.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/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/operations/payment_response.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_update.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/utils.rs**
Modify existing code
**crates/router/src/core/webhooks/utils.rs**
Modify existing code
**crates/router/src/services/conversion_impls.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_method.rs**
Modify existing code
**crates/router/tests/connectors/aci.rs**
Modify existing code
**crates/router/tests/connectors/utils.rs**
Modify existing code
|
{"pr_number": 6378, "pr_title": "feat(connector): [Paybox] Add mandates Flow for Paybox", "merged_at": "2024-10-30T16:38:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/payment_attempt.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/router_data.rs", "crates/hyperswitch_domain_models/src/router_request_types.rs", "crates/hyperswitch_domain_models/src/router_response_types.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/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/operations/payment_response.rs", "crates/router/src/core/payments/operations/payment_update.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/utils.rs", "crates/router/src/core/webhooks/utils.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs", "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nexinets/transformers.rs", "crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs", "crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/aci/transformers.rs", "crates/router/src/connector/adyen/transformers.rs", "crates/router/src/connector/authorizedotnet/transformers.rs", "crates/router/src/connector/bamboraapac/transformers.rs", "crates/router/src/connector/bankofamerica/transformers.rs", "crates/router/src/connector/braintree/transformers.rs", "crates/router/src/connector/cybersource/transformers.rs", "crates/router/src/connector/globalpay/transformers.rs", "crates/router/src/connector/gocardless/transformers.rs", "crates/router/src/connector/multisafepay/transformers.rs", "crates/router/src/connector/noon/transformers.rs", "crates/router/src/connector/nuvei/transformers.rs", "crates/router/src/connector/paybox.rs", "crates/router/src/connector/paybox/transformers.rs", "crates/router/src/connector/payme/transformers.rs", "crates/router/src/connector/stripe/transformers.rs", "crates/router/src/connector/utils.rs", "crates/router/src/connector/wellsfargo/transformers.rs", "crates/router/src/types/api/verify_connector.rs", "crates/router/tests/connectors/aci.rs", "crates/router/tests/connectors/utils.rs"], "types": ["crates/router/src/types.rs", "crates/router/src/types/storage/payment_method.rs"], "utils": ["crates/common_utils/src/lib.rs"], "other": ["crates/router/src/consts.rs", "crates/router/src/services/conversion_impls.rs"]}, "change_types": {"structs_added": 2, "functions_added": 18, "fields_added": 152, "imports_added": 6, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This pull request includes changes to enhance the handling of billing and shipping address requirements for Samsung Pay and Google Pay session tokens. The most important changes include adding new fields to the `SamsungPaySessionTokenResponse` struct, updating the `create_samsung_pay_session_token` function to include these new fields, and refactoring the code to use helper functions for determining address requirements.
Enhancements to session token handling:
* Added `billing_address_required` and `shipping_address_required` fields to the `SamsungPaySessionTokenResponse` struct.
* Updated the `create_samsung_pay_session_token` function to include the new address requirement fields and refactored the logic to use helper functions for determining if billing and shipping addresses are required.
Refactoring for address requirement determination:
* Introduced the `is_billing_address_required_to_be_collected_from_wallet` and `is_shipping_address_required_to_be_collected_form_wallet` functions to encapsulate the logic for determining address requirements based on business profile settings and connector fields.
* Refactored the `create_gpay_session_token` function to use the new helper functions for determining billing and shipping address requirements.
|
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/flows/session_flow.rs`
**3. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Implement new functions (3 changes)
- Extend existing types with new fields (13 changes)
- Add conditional logic for feature flags or filtering (2 changes)
**Detailed Identifier Changes:**
Commit c14519eb:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/router/src/core/payments/flows/session_flow.rs**
Modify existing code
|
{"pr_number": 7320, "pr_title": "feat(samsung_pay): collect customer address details form Samsung Pay based on business profile config and connector required fields", "merged_at": "2025-02-22T08:38:20Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "core_business": ["crates/router/src/core/payments/flows/session_flow.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"functions_added": 3, "fields_added": 13, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
this pr introduces apple pay hyperswitch decryption flow (simplified and manual) and predecrypt flow to tesouro connector.
connector does not support connector decryption flow. so, we throw an error in that case stating decrypted data is missing.
tesouro does not have any required fields. neither do they have mentioned the supported countries and currencies on their website.
|
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/deployments/production.toml`
- `config/deployments/sandbox.toml`
- `config/development.toml`
- ... and 1 more files
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (2 changes)
- Extend existing types with new fields (19 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 8375629c:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/tesouro.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/tesouro/transformers.rs**
Modify existing code
|
{"pr_number": 9648, "pr_title": "feat(connector): [tesouro] apple pay", "merged_at": "2025-10-07T08:22:58Z", "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/tesouro.rs", "crates/hyperswitch_connectors/src/connectors/tesouro/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"structs_added": 2, "functions_added": 2, "enums_added": 1, "fields_added": 19, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
- Added `customer_id` as a filter for payment intents
- Added `payment_processed_amount` metric for `payment_intents` table
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/analytics/payment_intents.rs`
**2. Database Layer (Queries & Schema)**
- `crates/analytics/src/query.rs`
**3. Core Business Logic**
- `crates/analytics/src/payment_intents/core.rs`
**4. Type Definitions**
- `crates/analytics/src/payment_intents/types.rs`
**5. Other**
- `crates/analytics/src/payment_intents/filters.rs`
- `crates/analytics/src/payment_intents/metrics.rs`
- `crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Implement new functions (2 changes)
- Extend existing types with new fields (22 changes)
- Add conditional logic for feature flags or filtering (2 changes)
**Detailed Identifier Changes:**
Commit d697def0:
Files to modify:
**crates/analytics/src/payment_intents/core.rs**
Modify existing code
**crates/analytics/src/payment_intents/filters.rs**
Modify existing code
**crates/analytics/src/payment_intents/metrics.rs**
Modify existing code
**crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs**
Modify existing code
**crates/analytics/src/payment_intents/types.rs**
Modify existing code
**crates/analytics/src/query.rs**
Modify existing code
**crates/analytics/src/sqlx.rs**
Modify existing code
**crates/api_models/src/analytics/payment_intents.rs**
Modify existing code
|
{"pr_number": 6344, "pr_title": "feat(analytics): add `customer_id` as filter for payment intents", "merged_at": "2024-10-30T10:11:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/analytics/payment_intents.rs"], "database": ["crates/analytics/src/query.rs"], "core_business": ["crates/analytics/src/payment_intents/core.rs"], "types": ["crates/analytics/src/payment_intents/types.rs"], "other": ["crates/analytics/src/payment_intents/filters.rs", "crates/analytics/src/payment_intents/metrics.rs", "crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs", "crates/analytics/src/sqlx.rs"]}, "change_types": {"functions_added": 2, "fields_added": 22, "imports_added": 9, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR introduces 2 new features:
- Multiple credentials for a connector
- Configuration flags
closes #6645 (check this issue for detailed documentation / flow / explanation)
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Utils**
- `cypress-tests/cypress/utils/featureFlags.js`
**2. Tests**
- `.github/workflows/cypress-tests-runner.yml`
- `cypress-tests/.gitignore`
- `cypress-tests/.prettierrc`
- ... and 64 more files
**Code Patterns Applied:**
- Extend existing types with new fields (795 changes)
- Add conditional logic for feature flags or filtering (400 changes)
|
{"pr_number": 6588, "pr_title": "feat(cypress): add multiple creds and flags support", "merged_at": "2024-12-03T11:39:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "refund", "connector"]}, "hierarchy": {"utils": ["cypress-tests/cypress/utils/featureFlags.js"], "tests": [".github/workflows/cypress-tests-runner.yml", "cypress-tests/.gitignore", "cypress-tests/.prettierrc", "cypress-tests/.prettierrc.json", "cypress-tests/cypress.config.js", "cypress-tests/cypress.env.json", "cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js", "cypress-tests/cypress/e2e/PaymentMethodListUtils/Commons.js", "cypress-tests/cypress/e2e/PaymentMethodListUtils/Stripe.js", "cypress-tests/cypress/e2e/PaymentMethodListUtils/Utils.js", "cypress-tests/cypress/e2e/PaymentTest/00001-AccountCreate.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00003-ConnectorCreate.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00004-NoThreeDSAutoCapture.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00005-ThreeDSAutoCapture.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00006-NoThreeDSManualCapture.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00007-VoidPayment.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00008-SyncPayment.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00009-RefundPayment.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00010-SyncRefund.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00011-CreateSingleuseMandate.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00012-CreateMultiuseMandate.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00013-ListAndRevokeMandate.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00014-SaveCardFlow.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00015-ZeroAuthMandate.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00016-ThreeDSManualCapture.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00017-BankTransfers.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00018-BankRedirect.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00019-MandatesUsingPMID.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00020-MandatesUsingNTID.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00021-UPI.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00022-Variations.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00023-PaymentMethods.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00024-ConnectorAgnostic.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00025-ConfigTest.cy.js", "cypress-tests/cypress/e2e/PaymentTest/00026-IncrementalAuth.cy.js", "cypress-tests/cypress/e2e/PaymentUtils/Bluesnap.js", "cypress-tests/cypress/e2e/PaymentUtils/Commons.js", "cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js", "cypress-tests/cypress/e2e/PaymentUtils/Elavon.js", "cypress-tests/cypress/e2e/PaymentUtils/Fiuu.js", "cypress-tests/cypress/e2e/PaymentUtils/Nexixpay.js", "cypress-tests/cypress/e2e/PaymentUtils/Nmi.js", "cypress-tests/cypress/e2e/PaymentUtils/Noon.js", "cypress-tests/cypress/e2e/PaymentUtils/Novalnet.js", "cypress-tests/cypress/e2e/PaymentUtils/Paybox.js", "cypress-tests/cypress/e2e/PaymentUtils/Paypal.js", "cypress-tests/cypress/e2e/PaymentUtils/Trustpay.js", "cypress-tests/cypress/e2e/PaymentUtils/Utils.js", "cypress-tests/cypress/e2e/PaymentUtils/WellsFargo.js", "cypress-tests/cypress/e2e/PaymentUtils/WorldPay.js", "cypress-tests/cypress/e2e/PayoutTest/00003-CardTest.cy.js", "cypress-tests/cypress/e2e/PayoutTest/00004-BankTransfer.cy.js", "cypress-tests/cypress/e2e/PayoutTest/00005-SavePayout.cy.js", "cypress-tests/cypress/e2e/PayoutUtils/Commons.js", "cypress-tests/cypress/e2e/PayoutUtils/Utils.js", "cypress-tests/cypress/e2e/RoutingTest/00000-PriorityRouting.cy.js", "cypress-tests/cypress/e2e/RoutingTest/00001-VolumeBasedRouting.cy.js", "cypress-tests/cypress/e2e/RoutingTest/00002-RuleBasedRouting.cy.js", "cypress-tests/cypress/e2e/RoutingTest/00003-Retries.cy.js", "cypress-tests/cypress/e2e/RoutingUtils/Commons.js", "cypress-tests/cypress/e2e/RoutingUtils/Utils.js", "cypress-tests/cypress/fixtures/create-ntid-mit.json", "cypress-tests/cypress/support/commands.js", "cypress-tests/cypress/support/redirectionHandler.js", "cypress-tests/eslint.config.js", "cypress-tests/package-lock.json", "cypress-tests/package.json"]}, "change_types": {"fields_added": 795, "conditionals_added": 400}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Update production endpoint for connector Airwallex (https://api.airwallex.com/)
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Configuration Files**
- `config/deployments/production.toml`
|
{"pr_number": 6632, "pr_title": "feat(connector): [AIRWALLEX] Update production endpoint", "merged_at": "2024-11-21T21:06:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"config": ["config/deployments/production.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Added `psp_tokenization_enabled` field to `CustomerPaymentMethod` that denotes whether `psp_tokenization` is enabled for a saved payment method
|
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/payment_methods.rs`
**2. Core Business Logic**
- `crates/router/src/core/payment_methods/transformers.rs`
**3. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- `crates/openapi/src/openapi.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
**Detailed Identifier Changes:**
Commit a341e82d:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/payment_methods.rs**
Modify existing code
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/openapi/src/routes/payment_method.rs**
Modify existing code
**crates/router/src/core/payment_methods/transformers.rs**
Modify existing code
|
{"pr_number": 7519, "pr_title": "feat(router): Return psp_tokenization_enabled in Customer PML", "merged_at": "2025-03-20T10:04:56Z", "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/payment_methods.rs"], "core_business": ["crates/router/src/core/payment_methods/transformers.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/openapi/src/routes/payment_method.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Add Phonepe, Paytm supported payment methods, currencies and countries in feature matrix.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/paytm.rs`
- `crates/hyperswitch_connectors/src/connectors/phonepe.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (20 changes)
**Detailed Identifier Changes:**
Commit cf5737f4:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/paytm.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/phonepe.rs**
Modify existing code
|
{"pr_number": 8822, "pr_title": "feat(feature_matrix): add feature matrix for both paytm and phonepe", "merged_at": "2025-08-04T07:49:08Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "refund"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/paytm.rs", "crates/hyperswitch_connectors/src/connectors/phonepe.rs"]}, "change_types": {"fields_added": 20, "imports_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
1) Add Response Redirection URL for PopupURL Next Action
2) Accept Empty Metadata for Adyen
3) Fix Coinbase Connector Config
|
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.rs`
- `crates/router/src/core/payments/transformers.rs`
**3. External Connector Integration**
- `crates/connector_configs/src/connector.rs`
- `crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs`
**4. Type Definitions**
- `crates/router/src/compatibility/stripe/payment_intents/types.rs`
- `crates/router/src/compatibility/stripe/setup_intents/types.rs`
**5. Other**
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Extend existing types with new fields (3 changes)
|
{"pr_number": 8257, "pr_title": "fix(connector): Add RedirectInsidePopup response redirection URL", "merged_at": "2025-06-10T17:51:53Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/transformers.rs"], "connectors": ["crates/connector_configs/src/connector.rs", "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs"], "types": ["crates/router/src/compatibility/stripe/payment_intents/types.rs", "crates/router/src/compatibility/stripe/setup_intents/types.rs"], "other": ["api-reference/openapi_spec.json"]}, "change_types": {"fields_added": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Added PML test for Novalnet
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js`
- `cypress-tests/cypress/e2e/PaymentMethodListUtils/Commons.js`
- `cypress-tests/cypress/e2e/PaymentMethodListUtils/Stripe.js`
- ... and 2 more files
**Code Patterns Applied:**
- Extend existing types with new fields (100 changes)
|
{"pr_number": 6544, "pr_title": "Ci(Cypress): Add PML test and Dynamic Fields Test for Novalnet", "merged_at": "2025-01-06T07:27:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/PaymentMethodListTest/00000-PaymentMethodListTests.cy.js", "cypress-tests/cypress/e2e/PaymentMethodListUtils/Commons.js", "cypress-tests/cypress/e2e/PaymentMethodListUtils/Stripe.js", "cypress-tests/cypress/e2e/PaymentMethodListUtils/Utils.js", "cypress-tests/cypress/e2e/PaymentUtils/Novalnet.js"]}, "change_types": {"fields_added": 100}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
template for Tokenex 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 (165 changes)
**Detailed Identifier Changes:**
Commit 40357ae2:
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/tokenex.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/tokenex/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/main.rs**
Modify existing code
**crates/router/tests/connectors/tokenex.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 9416, "pr_title": "feat(connector): [Tokenex] add template code", "merged_at": "2025-09-22T10:01:50Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["token"]}, "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/tokenex.rs", "crates/hyperswitch_connectors/src/connectors/tokenex/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/tokenex.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": 165, "imports_added": 22}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Connector template code for new connector silverflow.
|
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/configs.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 c322eb9c:
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/silverflow.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/silverflow/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/configs.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Modify existing code
**crates/router/tests/connectors/silverflow.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 8553, "pr_title": "feat(connector): [silverflow] template code", "merged_at": "2025-07-08T08:39:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/configs.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/silverflow.rs", "crates/hyperswitch_connectors/src/connectors/silverflow/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/silverflow.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"}
|
Hotfix for https://github.com/juspay/hyperswitch/pull/9508
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/webhooks/incoming.rs`
|
{"pr_number": 9530, "pr_title": "fix(webhooks): move webhook acknowledge config to cover early deserialization errors", "merged_at": "2025-09-24T05:41:00Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"core_business": ["crates/router/src/core/webhooks/incoming.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Add PLN to the currency config of card, googlepay and applepay via Cybersource.
## Test Case
1) Do a googlepay payment via PLN cybersource
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_0GGWV59O1lNRZ09AZbD3Kro4CFqhkWBlUSC8QBd072jy4E7T4rsi0Bp07CawLE1N' \
--data-raw '{
"amount": 10000,
"currency": "PLN",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"customer_id": "CustomerX",
"email": "guest@example.com",
"name": "John Doe",
"phone": "999999999",
"phone_country_code": "+1",
"description": "Its my first payment request",
"authentication_type": "no_three_ds",
"return_url": "https://google.com",
"payment_method": "wallet",
"payment_method_type": "google_pay",
"payment_method_data": {
"wallet": {
"google_pay": {
"type": "CARD",
"description": "Visa •••• 1111",
"info": {
"card_network": "VISA",
"card_details": "1111"
},
"tokenization_data": {
"type": "PAYMENT_GATEWAY",
"token": "{\"signature\":\"Mz\"}"
}
}
}
},
"billing": {
"address": {
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"city": "San Fransico",
"state": "Dubai",
"zip": "94122",
"country": "AE",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+97"
}
},
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS"
,
"mandate_data": {
"customer_acceptance": {
"acceptance_type": "offline",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "125.0.0.1",
"user_agent": "amet irure esse"
}
},
"mandate_type": {
"multi_use": {
"amount": 1000,
"currency": "USD",
"start_date": "2023-04-21T00:00:00Z",
"end_date": "2023-05-21T00:00:00Z",
"metadata": {
"frequency": "13"
}
}
}
},
"setup_future_usage": "off_session"
}'
```
Response
```
{
"payment_id": "pay_2EwINOXkho0LWNH3nXmJ",
"merchant_id": "merchant_1732193622",
"status": "succeeded",
"amount": 10000,
"net_amount": 10000,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 10000,
"connector": "cybersource",
"client_secret": "pay_2EwINOXkho0LWNH3nXmJ_secret_LvsitK5yYVopwl6jK6dF",
"created": "2024-11-21T12:55:19.435Z",
"currency": "PLN",
"customer_id": "CustomerX",
"customer": {
"id": "CustomerX",
"name": "John Doe",
"email": "guest@example.com",
"phone": "999999999",
"phone_country_code": "+1"
},
"description": "Its my first payment request",
"refunds": null,
"disputes": null,
"mandate_id": "man_P74lcNfYDTBEdpbxgKER",
"mandate_data": {
"update_mandate_id": null,
"customer_acceptance": {
"acceptance_type": "offline",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "125.0.0.1",
"user_agent": "amet irure esse"
}
},
"mandate_type": {
"multi_use": {
"amount": 1000,
"currency": "USD",
"start_date": "2023-04-21T00:00:00.000Z",
"end_date": "2023-05-21T00:00:00.000Z",
"metadata": {
"frequency": "13"
}
}
}
},
"setup_future_usage": "off_session",
"off_session": null,
"capture_on": null,
"capture_method": "automatic",
"payment_method": "wallet",
"payment_method_data": {
"wallet": {
"google_pay": {
"last4": "1111",
"card_network": "VISA",
"type": "CARD"
}
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "San Fransico",
"country": "AE",
"line1": "1467",
"line2": "Harrison Street",
"line3": "Harrison Street",
"zip": "94122",
"state": "Dubai",
"first_name": "joseph",
"last_name": "Doe"
},
"phone": {
"number": "8056594427",
"country_code": "+97"
},
"email": null
},
"order_details": null,
"email": "guest@example.com",
"name": "John Doe",
"phone": "999999999",
"return_url": "https://google.com/",
"authentication_type": "no_three_ds",
"statement_descriptor_name": "joseph",
"statement_descriptor_suffix": "JS",
"next_action": null,
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "google_pay",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "CustomerX",
"created_at": 1732193719,
"expires": 1732197319,
"secret": "epk_8b6d16dd3fd14d09a3271f748f2073c7"
},
"manual_retry_allowed": false,
"connector_transaction_id": "7321937196376524304953",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": "pay_2EwINOXkho0LWNH3nXmJ_1",
"payment_link": null,
"profile_id": "pro_9Lg7G2CtmwcsBHGPmFxJ",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_T01hal3cEXdTRdvr6aL7",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2024-11-21T13:10:19.435Z",
"fingerprint": null,
"browser_info": null,
"payment_method_id": "pm_6aPLImPeEEFrHcMC4ZTI",
"payment_method_status": null,
"updated": "2024-11-21T12:55:21.942Z",
"charges": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
}
```
1) Do a card payment via PLN cybersource
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_0GGWV59O1lNRZ09AZbD3Kro4CFqhkWBlUSC8QBd072jy4E7T4rsi0Bp07CawLE1N' \
--data-raw '{
"amount": 1404,
"currency": "PLN",
"confirm": true,
"capture_method": "automatic",
"capture_on": "2022-09-10T10:11:12Z",
"customer_id": "CustomerX",
"email": "guest@example.com",
"authentication_type": "no_three_ds",
"return_url": "https://google.com",
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_data": {
"card": {
"card_number": "4111111111111111",
"card_exp_month": "12",
"card_exp_year": "30",
"card_holder_name": "joseph Doe",
"card_cvc": "029"
}
},
"billing": {
"address": {
"line1": "cq",
"city": "dshcvjhdw",
"state": "whecvjkcdv",
"zip": "46205",
"country": "MW",
"first_name": "joseph",
"last_name": "doe"
},
"phone": {
"number": "12345",
"country_code": "+93"
}
},
"metadata": {
"count_tickets": 1,
"transaction_number": "5590043"
},
"business_label": "food",
"business_country": "US"
}'
```
Respone
```
{
"payment_id": "pay_XHu3qy854hdtYGEtI21A",
"merchant_id": "merchant_1732193622",
"status": "succeeded",
"amount": 1404,
"net_amount": 1404,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 1404,
"connector": "cybersource",
"client_secret": "pay_XHu3qy854hdtYGEtI21A_secret_YdyQwjtFTdkrbUsNQsFj",
"created": "2024-11-21T12:57:03.858Z",
"currency": "PLN",
"customer_id": "CustomerX",
"customer": {
"id": "CustomerX",
"name": "John Doe",
"email": "guest@example.com",
"phone": "999999999",
"phone_country_code": "+1"
},
"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": "1111",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "411111",
"card_extended_bin": null,
"card_exp_month": "12",
"card_exp_year": "30",
"card_holder_name": null,
"payment_checks": {
"avs_response": {
"code": "Y",
"codeRaw": "Y"
},
"card_verification": null
},
"authentication_data": null
},
"billing": null
},
"payment_token": "token_nECUY6AS4l2bqpKF5ZC5",
"shipping": null,
"billing": {
"address": {
"city": "dshcvjhdw",
"country": "MW",
"line1": "cq",
"line2": null,
"line3": null,
"zip": "46205",
"state": "whecvjkcdv",
"first_name": "joseph",
"last_name": "doe"
},
"phone": {
"number": "12345",
"country_code": "+93"
},
"email": null
},
"order_details": null,
"email": "guest@example.com",
"name": "John Doe",
"phone": "999999999",
"return_url": "https://google.com/",
"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": "cybersource_US_food_default",
"business_country": "US",
"business_label": "food",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "CustomerX",
"created_at": 1732193823,
"expires": 1732197423,
"secret": "epk_a7cf79e303944fe3887a0db8a9b94aaf"
},
"manual_retry_allowed": false,
"connector_transaction_id": "7321938248516770104953",
"frm_message": null,
"metadata": {
"count_tickets": 1,
"transaction_number": "5590043"
},
"connector_metadata": null,
"feature_metadata": null,
"reference_id": "pay_XHu3qy854hdtYGEtI21A_1",
"payment_link": null,
"profile_id": "pro_9Lg7G2CtmwcsBHGPmFxJ",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_T01hal3cEXdTRdvr6aL7",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2024-11-21T13:12:03.858Z",
"fingerprint": null,
"browser_info": null,
"payment_method_id": null,
"payment_method_status": null,
"updated": "2024-11-21T12:57:05.696Z",
"charges": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
}
```
## Checklist
<!-- Put an `x` in the boxes that apply -->
- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed the submitted code
- [ ] I added unit tests for my changes where possible
|
To implement this **payment** 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": 6628, "pr_title": "feat(router): [Cybersource] add PLN to the currency config", "merged_at": "2024-11-26T12:02:00Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "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 -->
Changed required value for juspayThreedsserver config
## 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)?
-->
<img width="948" height="175" alt="Screenshot 2025-08-11 at 12 18 19 PM" src="https://github.com/user-attachments/assets/e94890ad-72a4-4bb8-87bb-d441d7ee05eb" />
## 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 **connector_integration** 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`
|
{"pr_number": 8890, "pr_title": "fix(authentication): changed required value for juspayThreedsserver config", "merged_at": "2025-08-20T09:49:22Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"connectors": ["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"}
|
Hotfix for [PR](https://github.com/juspay/hyperswitch/pull/7623)
`cargo clippy output`
<img width="1098" alt="Screenshot 2025-03-25 at 4 24 55 PM" src="https://github.com/user-attachments/assets/7bfec754-cafb-4e58-b21c-05a96542eb95" />
|
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`
|
{"pr_number": 7625, "pr_title": "fix(connector): [CYBERSOURCE] change ucaf_collection_indicator for mastercard payments via netcetera", "merged_at": "2025-03-25T11:20:23Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
flattened paymentData in authentication trait functions
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/authentication.rs`
**2. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/operations/payment_confirm.rs`
- `crates/router/src/core/unified_authentication_service.rs`
- ... and 2 more files
**3. Other**
- `migrations/2025-05-19-130655_authentication_table_refactor/down.sql`
**Code Patterns Applied:**
- Extend existing types with new fields (68 changes)
**Detailed Identifier Changes:**
Commit 18a779f9:
Files to modify:
**crates/api_models/src/authentication.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service/types.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service/utils.rs**
Modify existing code
|
{"pr_number": 8365, "pr_title": "refactor(authentication): flattened paymentData in authentication trait functions", "merged_at": "2025-07-01T13:52:12Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/authentication.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/unified_authentication_service.rs", "crates/router/src/core/unified_authentication_service/types.rs", "crates/router/src/core/unified_authentication_service/utils.rs"], "other": ["migrations/2025-05-19-130655_authentication_table_refactor/down.sql"]}, "change_types": {"fields_added": 68}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Reverts
|
To implement this **unknown** feature, you'll need to modify these architectural layers:
**1. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/authentication.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/router_request_types/authentication.rs`
- `crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs`
- `crates/hyperswitch_domain_models/src/router_response_types.rs`
**3. Core Business Logic**
- `crates/router/src/core/authentication.rs`
- `crates/router/src/core/authentication/utils.rs`
- `crates/router/src/core/payments.rs`
- ... and 7 more files
**4. External Connector Integration**
- `crates/router/src/connector/gpayments/gpayments_types.rs`
- `crates/router/src/connector/netcetera/transformers.rs`
- `crates/router/src/connector/threedsecureio/transformers.rs`
**5. Type Definitions**
- `crates/router/src/types/api/authentication.rs`
- `crates/router/src/types/domain.rs`
- `crates/router/src/types/transformers.rs`
**6. Other**
- `crates/hyperswitch_interfaces/src/authentication.rs`
**Code Patterns Applied:**
- Implement new functions (8 changes)
- Extend existing types with new fields (23 changes)
- Add conditional logic for feature flags or filtering (5 changes)
**Detailed Identifier Changes:**
Commit 996fc981:
Files to modify:
**crates/diesel_models/src/authentication.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types/authentication.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_response_types.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/authentication.rs**
Modify existing code
**crates/router/src/connector/gpayments/gpayments_types.rs**
Modify existing code
**crates/router/src/connector/netcetera/transformers.rs**
Modify existing code
**crates/router/src/connector/threedsecureio/transformers.rs**
Modify existing code
**crates/router/src/core/authentication.rs**
Modify existing code
**crates/router/src/core/authentication/utils.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_response.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_status.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/payments/types.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service/utils.rs**
Modify existing code
**crates/router/src/core/webhooks/incoming.rs**
Modify existing code
**crates/router/src/types/api/authentication.rs**
Modify existing code
**crates/router/src/types/domain.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 8021, "pr_title": "refactor(authentication): moved cavv storing from table to temp locker", "merged_at": "2025-05-14T07:50:11Z", "intent": {"feature_type": "unknown", "action": "unknown", "entities": []}, "hierarchy": {"database": ["crates/diesel_models/src/authentication.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_request_types/authentication.rs", "crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs", "crates/hyperswitch_domain_models/src/router_response_types.rs"], "core_business": ["crates/router/src/core/authentication.rs", "crates/router/src/core/authentication/utils.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/payments/types.rs", "crates/router/src/core/unified_authentication_service/utils.rs", "crates/router/src/core/webhooks/incoming.rs"], "connectors": ["crates/router/src/connector/gpayments/gpayments_types.rs", "crates/router/src/connector/netcetera/transformers.rs", "crates/router/src/connector/threedsecureio/transformers.rs"], "types": ["crates/router/src/types/api/authentication.rs", "crates/router/src/types/domain.rs", "crates/router/src/types/transformers.rs"], "other": ["crates/hyperswitch_interfaces/src/authentication.rs"]}, "change_types": {"functions_added": 8, "fields_added": 23, "imports_added": 2, "conditionals_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Replace their vantiv's open sandbox url `: https://www.testvantivcnp.com/sandbox/communicator/online` with pre-live url
`https://payments.vantivprelive.com/vap/communicator/online` and fix typo
## 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)?
-->
## 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 **payment** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs`
**2. Tests**
- `config/deployments/integration_test.toml`
- `loadtest/config/development.toml`
**3. Configuration Files**
- `config/config.example.toml`
- `config/deployments/sandbox.toml`
- `config/development.toml`
- ... and 1 more files
|
{"pr_number": 8286, "pr_title": "refactor(connectors): [worldpayvantiv] replace sandbox url with pre-live url and fix typo", "merged_at": "2025-06-10T12:44:54Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
This pull request introduces a new helper function to update the default fallback connector configuration whenever a merchant connector account (MCA) is updated. This ensures that changes to connector status (such as disabling or enabling) are accurately reflected in both merchant and profile configurations. The changes also include necessary imports and function calls to integrate this logic into the connector update flow.
**Connector fallback configuration updates:**
* Added the `update_default_fallback_on_mca_update` function in `routing/helpers.rs` to update merchant and profile default connector configurations based on the status of the updated MCA. The function ensures that disabled or inactive connectors are removed from the defaults, and enabled connectors are added if not already present.
* Integrated the new helper into the `update_connector` flow in `admin.rs`, so it is triggered automatically after connector updates.
**Imports and code organization:**
* Added necessary imports for `update_default_fallback_on_mca_update` and related types in `admin.rs` and `helpers.rs` to support the new logic. [[1]](diffhunk://#diff-7e1b4a44fadc4de1af2a6abeb318b3ddf044177c44ba00731c33dbf4cdce92b7R25-R28) [[2]](diffhunk://#diff-ea48d33e52b2cb7edbbba1d236b55f946fdb2c178f8c76f4226818b3630c4658R6)
|
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/routing.rs`
- `crates/router/src/core/routing/helpers.rs`
**Code Patterns Applied:**
- Implement new functions (2 changes)
- Extend existing types with new fields (10 changes)
- Add conditional logic for feature flags or filtering (2 changes)
**Detailed Identifier Changes:**
Commit 286e18b2:
Files to modify:
**crates/router/src/core/admin.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": 9659, "pr_title": "refactor(routing): update configs on updation of mca", "merged_at": "2025-10-07T16:53:24Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant", "connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/routing.rs", "crates/router/src/core/routing/helpers.rs"]}, "change_types": {"functions_added": 2, "fields_added": 10, "imports_added": 2, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Once the open router call is completed for the co-badged card lookup in a debit routing flow, it returns all the debit networks eligible for the card. These networks must be validated against the merchant-enabled debit networks for each merchant connector account.
This PR adds the necessary filtering logic to enforce this validation.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/debit_routing.rs`
**Code Patterns Applied:**
- Implement new functions (7 changes)
- Extend existing types with new fields (26 changes)
- Add conditional logic for feature flags or filtering (10 changes)
- Modify database queries (3 changes)
**Detailed Identifier Changes:**
Commit 5f97b7bc:
Files to modify:
**crates/router/src/core/debit_routing.rs**
Modify existing code
|
{"pr_number": 8175, "pr_title": "refactor(debit_routing): filter debit networks based on merchant connector account configuration", "merged_at": "2025-06-12T13:15:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/debit_routing.rs"]}, "change_types": {"functions_added": 7, "fields_added": 26, "imports_added": 1, "conditionals_added": 10, "database_queries": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Modified the v1 merchant list query to list only v1 merchant accounts, v2 merchants cannot deserialize in v1 application code.
This change is required, since now, both v1 and v2 merchant accounts are stored in the same schema.
This will affect the following flows:
- list merchant accounts for user in org
- list merchant accounts (admin API)
- get single merchant id (during sign-in, to create JWT token)
- switch org for user
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/query/merchant_account.rs`
**Code Patterns Applied:**
- Modify database queries (3 changes)
|
{"pr_number": 7782, "pr_title": "refactor(users): modify query to list only v1 merchant_accounts for list v1 merchant accounts API", "merged_at": "2025-04-10T10:14:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["merchant", "user", "token"]}, "hierarchy": {"database": ["crates/diesel_models/src/query/merchant_account.rs"]}, "change_types": {"imports_added": 2, "database_queries": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Add click to pay and unified authentication service integration in core
## 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)?
-->
check payments sanity
#1 : Create Business profile with `"is_click_to_pay_enabled": true`
```
curl --location 'http://localhost:8080/account/cewqcewc/business_profile' \
--header 'Content-Type: application/json' \
--header 'api-key: test_admin' \
--data '{
"profile_name": "cewqcewc",
"payment_link_config": {
"business_specific_configs": {
"key1": {
"theme": "#3B845E",
"logo": "https://i.pinimg.com/736x/4d/83/5c/4d835ca8aafbbb15f84d07d926fda473.jpg",
"seller_name": "sahkal",
"display_sdk_only": true
},
"key2": {
"theme": "#B202FF",
"logo": "https://i.pinimg.com/736x/4d/83/5c/4d835ca8aafbbb15f84d07d926fda473.jpg",
"seller_name": "sahkal",
"enable_saved_payment_method":true
}
}
},
"is_click_to_pay_enabled": true
}'
```
#2: Create Merchant connector account for mastercard click to pay and adyen (if authorisation supported by adyen only)
Ctp MCA
```
curl --location 'http://localhost:8080/account/cewqcewc/connectors' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: test_admin' \
--data '
{
"connector_type": "authentication_processor",
"connector_name": "ctp_mastercard",
"connector_account_details": {
"auth_type": "HeaderKey",
"api_key": "MASTERCARD-API-KEY"
},
"test_mode": true,
"disabled": false,
"payment_methods_enabled": [
{
"payment_method": "card",
"payment_method_types": [
{
"payment_method_type": "credit",
"card_networks": [
"Mastercard"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
},
{
"payment_method_type": "debit",
"card_networks": [
"Mastercard"
],
"minimum_amount": 1,
"maximum_amount": 68607706,
"recurring_enabled": true,
"installment_payment_enabled": true
}
]
}
],
"metadata": {
"city": "NY",
"unit": "245",
"live_endpoint_prefix": "vsfbjh"
},
"business_country": "US",
"business_label": "default"
}
'
```
#3 : Do payments Create with `confirm=false`
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_07eZpksxjV2V4SeM7X70PfZiQtsp27ygyhooXVjdV7mVIRxVKlELWwOrtVJ7XGRo' \
--data '{
"amount": 1130,
"currency": "USD",
"confirm": false,
"customer_id": "sahkal12",
"return_url": "https://hyperswitch.io"
}'
```
#4. Get the client secret and do a confirm call
```
curl --location 'http://localhost:8080/payments/pay_VjKiaXwRYsaw8p5gLY2k/confirm' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: pk_dev_10d1a8db20d74c1b941685208ecd6a46' \
--data '
{
"payment_method": "card",
"payment_method_type": "debit",
"client_secret": "pay_VjKiaXwRYsaw8p5gLY2k_secret_1QGBIB0svvM5xCMGA1my",
"ctp_service_details" : {
"merchant_transaction_id": "0a4e0d3.34f4a04b.803eb38b0a56f082296538d4a70c064a6b320639",
"correlation_id": "34f4a04b.bcd1ac39-e0f3-479e-b3ee-703ade0c66dc",
"x_src_flow_id" : "34f4a04b.bcd1ac39-e0f3-479e-b3ee-703ade0c66dc.1727438793"
},
"browser_info": {
"accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
"color_depth": 24,
"java_enabled":true,
"java_script_enabled": true,
"language": "en-GB",
"screen_height": 1440,
"screen_width": 2560,
"time_zone": -330,
"user_agent": "Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36"
}
}'
```
# Logs
PreAuthentication via Uas
<img width="1718" alt="Screenshot 2024-12-13 at 9 00 05 PM" src="https://github.com/user-attachments/assets/6b8f12ad-de0c-44eb-8219-c8f1c569998c" />
PostAuthentication via Uas
<img width="1725" alt="Screenshot 2024-12-13 at 9 00 35 PM" src="https://github.com/user-attachments/assets/c1ddcb11-c12f-4070-905b-7184728fc5a2" />
Authorization Request to adyen with connector token received from uas
<img width="1728" alt="Screenshot 2024-12-13 at 9 01 20 PM" src="https://github.com/user-attachments/assets/5181d236-ac68-4dc5-9190-d7534168177f" />
## 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 **payment** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/connector_enums.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payment_method_data.rs`
- `crates/hyperswitch_domain_models/src/router_flow_types.rs`
- `crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs`
- ... and 2 more files
**3. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/payment_methods.rs`
- `crates/router/src/core/payment_methods/network_tokenization.rs`
- ... and 12 more files
**4. External Connector Integration**
- `crates/connector_configs/src/connector.rs`
- `crates/hyperswitch_connectors/src/connectors.rs`
- `crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs`
- ... and 7 more files
**5. Type Definitions**
- `crates/hyperswitch_interfaces/src/types.rs`
- `crates/router/src/types/api.rs`
- `crates/router/src/types/api/authentication.rs`
- ... and 3 more files
**6. Tests**
- `cypress-tests-v2/cypress/e2e/configs/Payment/Commons.js`
- `cypress-tests/cypress/e2e/PaymentUtils/Commons.js`
- `cypress-tests/cypress/e2e/PaymentUtils/Paybox.js`
- ... and 2 more files
**7. Configuration Files**
- `.typos.toml`
- `crates/hyperswitch_interfaces/src/configs.rs`
**8. 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 (24 changes)
- Implement new functions (11 changes)
- Extend existing types with new fields (253 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 165ead61:
Files to modify:
**crates/api_models/src/connector_enums.rs**
Modify existing code
**crates/common_enums/src/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/ctp_mastercard.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/constants.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/payment_method_data.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_flow_types.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/types.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/api.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/configs.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/types.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/src/connector/adyen/transformers.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/network_tokenization.rs**
Modify existing code
**crates/router/src/core/payments.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/core/payments/helpers.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_update.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service/transformers.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service/types.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/api/authentication.rs**
Modify existing code
**crates/router/src/types/api/unified_authentication_service.rs**
Modify existing code
**crates/router/src/types/api/unified_authentication_service_v2.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 6769, "pr_title": "feat(core): Add click to pay support in hyperswitch", "merged_at": "2024-12-16T14:25:44Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/connector_enums.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_method_data.rs", "crates/hyperswitch_domain_models/src/router_flow_types.rs", "crates/hyperswitch_domain_models/src/router_flow_types/unified_authentication_service.rs", "crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs", "crates/hyperswitch_domain_models/src/types.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/network_tokenization.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs", "crates/router/src/core/payments/helpers.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_update.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/unified_authentication_service.rs", "crates/router/src/core/unified_authentication_service/transformers.rs", "crates/router/src/core/unified_authentication_service/types.rs"], "connectors": ["crates/connector_configs/src/connector.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs", "crates/hyperswitch_connectors/src/connectors/unified_authentication_service.rs", "crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs", "crates/hyperswitch_connectors/src/constants.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/router/src/connector.rs", "crates/router/src/connector/adyen/transformers.rs"], "types": ["crates/hyperswitch_interfaces/src/types.rs", "crates/router/src/types/api.rs", "crates/router/src/types/api/authentication.rs", "crates/router/src/types/api/unified_authentication_service.rs", "crates/router/src/types/api/unified_authentication_service_v2.rs", "crates/router/src/types/transformers.rs"], "tests": ["cypress-tests-v2/cypress/e2e/configs/Payment/Commons.js", "cypress-tests/cypress/e2e/PaymentUtils/Commons.js", "cypress-tests/cypress/e2e/PaymentUtils/Paybox.js", "postman/collection-dir/checkout/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/event.test.js", "postman/collection-dir/paypal/Flow Testcases/Variation Cases/Scenario2-Confirming the payment without PMD/Payments - Confirm/event.test.js"], "config": [".typos.toml", "crates/hyperswitch_interfaces/src/configs.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/hyperswitch_interfaces/src/api.rs", "postman/collection-json/checkout.postman_collection.json", "postman/collection-json/paypal.postman_collection.json"]}, "change_types": {"structs_added": 24, "functions_added": 11, "enums_added": 2, "fields_added": 253, "imports_added": 14, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR
1. Adds payment method display name to feature matrix response
2. Replace the 2 digit country codes into 3 digit country codes
## 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)?
-->
List the feature matrix and ensure it contains the payment_method_type_dsplay_name field and the country code is 3 digits long.
```
curl --location 'http://localhost:8080/feature_matrix' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json'
```
Response
```
{
"connector_count": 28,
"connectors": [
{
"name": "BAMBORA",
"display_name": "Bambora",
"description": "Bambora is a leading online payment provider in Canada and United States.",
"category": "payment_gateway",
"supported_payment_methods": [
{
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_type_display_name": "Credit Card",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"three_ds": "supported",
"no_three_ds": "supported",
"supported_card_networks": [
"Visa",
"Mastercard",
"AmericanExpress",
"Discover",
"JCB",
"DinersClub"
],
"supported_countries": [
"USA",
"CAN"
],
"supported_currencies": [
"USD"
]
}
],
"supported_webhook_flows": []
},
{
"name": "BAMBORAAPAC",
"display_name": "Bambora Asia-Pacific",
"description": "Bambora Asia-Pacific, provides comprehensive payment solutions, offering merchants smart and smooth payment processing capabilities.",
"category": "payment_gateway",
"supported_payment_methods": [
{
"payment_method": "card",
"payment_method_type": "debit",
"payment_method_type_display_name": "Debit Card",
"mandates": "supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"three_ds": "supported",
"no_three_ds": "supported",
"supported_card_networks": [
"Visa",
"Mastercard",
"DinersClub"
],
"supported_countries": [
"KIR",
"SWE",
"MUS",
"COL",
"USA",
"EST",
"LIE",
"WSM",
"IND",
"NLD",
"COD",
"SOM",
"FRA",
"UKR",
"KEN",
"TJK",
"CPV",
"MRT",
"SSD",
"CAN",
"NOR",
"HND",
"GBR",
"AUT",
"SUR",
"MDA",
"DEU",
"MDV",
"PAK",
"LSO",
"ARG",
"JOR",
"SMR",
"LKA",
"SRB",
"TGO",
"DMA",
"ZWE",
"RWA",
"LAO",
"EGY",
"PRT",
"BEN",
"PNG",
"ETH",
"BHR",
"NAM",
"TKM",
"PER",
"AUS",
"MEX",
"BWA",
"ECU",
"UGA",
"TUN",
"JAM",
"GNQ",
"CZE",
"BIH",
"ISR",
"CHL",
"BGR",
"KAZ",
"BOL",
"POL",
"BDI",
"AZE",
"MNE",
"GIN",
"ZAF",
"TZA",
"URY",
"SYC",
"DZA",
"ROU",
"IRL",
"OMN",
"NZL",
"MWI",
"BRA",
"CAF",
"PSE",
"BTN",
"GGY",
"MCO",
"SWZ",
"NIC",
"JPN",
"CRI",
"AND",
"NER",
"SLE",
"SEN",
"ERI",
"LUX",
"NPL",
"TTO",
"SAU",
"BRB",
"BLZ",
"PHL",
"DOM",
"MLT",
"TUV",
"TON",
"FJI",
"KNA",
"CIV",
"MYS",
"TLS",
"MDG",
"CYP",
"MMR",
"PRY",
"GUY",
"VNM",
"BHS",
"NGA",
"ZMB",
"VEN",
"SGP",
"TCD",
"GAB",
"GNB",
"DJI",
"TUR",
"CHN",
"KWT",
"LTU",
"AGO",
"GTM",
"SVN",
"UZB",
"CMR",
"SLB",
"ARM",
"FSM",
"STP",
"DNK",
"GRD",
"ISL",
"NRU",
"IDN",
"LCA",
"HTI",
"CHE",
"ALB",
"MKD",
"KGZ",
"MNG",
"BEL",
"MAR",
"GMB",
"VAT",
"VCT",
"LVA",
"PAN",
"MHL",
"QAT",
"BGD",
"ITA",
"GEO",
"MOZ",
"COG",
"ESP",
"LBR",
"HRV",
"LBN",
"ATG",
"GRC",
"BRN",
"MLI",
"BLR",
"ARE",
"SLV",
"FIN",
"PLW",
"HUN",
"GHA",
"VUT",
"KOR",
"SVK",
"KHM",
"COM",
"THA"
],
"supported_currencies": [
"RUB",
"ILS",
"ZMW",
"KZT",
"MOP",
"MAD",
"EGP",
"SCR",
"SLL",
"CHF",
"LAK",
"MMK",
"SEK",
"RWF",
"MDL",
"DKK",
"QAR",
"UAH",
"MXN",
"INR",
"IQD",
"CZK",
"BGN",
"NAD",
"USD",
"MWK",
"BRL",
"RSD",
"BOB",
"CAD",
"KRW",
"IDR",
"NZD",
"BDT",
"SGD",
"XOF",
"THB",
"NOK",
"GHS",
"NPR",
"KWD",
"UGX",
"ZAR",
"BND",
"HUF",
"GEL",
"PEN",
"JPY",
"MZN",
"UYU",
"EUR",
"TRY",
"COP",
"LKR",
"HRK",
"CNY",
"NGN",
"KES",
"XAF",
"TZS",
"VND",
"PLN",
"GBP",
"ISK",
"AED",
"BWP",
"HKD",
"TWD",
"PHP",
"RON",
"MYR",
"SAR",
"AUD",
"IRR",
"PKR",
"FJD"
]
},
{
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_type_display_name": "Credit Card",
"mandates": "supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"three_ds": "supported",
"no_three_ds": "supported",
"supported_card_networks": [
"Visa",
"Mastercard",
"DinersClub"
],
"supported_countries": [
"VEN",
"JOR",
"EST",
"PLW",
"VNM",
"KEN",
"ROU",
"NER",
"VCT",
"KHM",
"IRL",
"NPL",
"GTM",
"BRB",
"CHE",
"DNK",
"TJK",
"PAN",
"CIV",
"PRT",
"PER",
"JPN",
"KIR",
"SAU",
"MAR",
"QAT",
"HUN",
"DMA",
"CMR",
"URY",
"ETH",
"MDG",
"VAT",
"TZA",
"SLB",
"ARE",
"HRV",
"FSM",
"MLT",
"ZWE",
"AUT",
"COM",
"IDN",
"LCA",
"GGY",
"ESP",
"TKM",
"GNQ",
"NGA",
"AND",
"LAO",
"LKA",
"SLV",
"FJI",
"USA",
"BRA",
"LUX",
"SGP",
"JAM",
"GBR",
"NAM",
"PHL",
"GIN",
"LIE",
"ISL",
"GMB",
"DEU",
"AUS",
"KWT",
"SOM",
"BTN",
"SYC",
"FIN",
"BLR",
"UZB",
"MMR",
"POL",
"MNE",
"BWA",
"PRY",
"BGR",
"CRI",
"SMR",
"MLI",
"SSD",
"TLS",
"GRD",
"SVK",
"KOR",
"MDV",
"ZMB",
"BHR",
"MHL",
"NZL",
"IND",
"MNG",
"MDA",
"GRC",
"VUT",
"LVA",
"GHA",
"CHL",
"CPV",
"CAN",
"CAF",
"ISR",
"DZA",
"MCO",
"TUN",
"MUS",
"BEN",
"CHN",
"BEL",
"EGY",
"PNG",
"UGA",
"DJI",
"ECU",
"ATG",
"SEN",
"LBN",
"ERI",
"BHS",
"KNA",
"THA",
"MEX",
"WSM",
"SUR",
"TUR",
"SLE",
"ARM",
"NOR",
"MWI",
"AZE",
"FRA",
"AGO",
"NLD",
"ALB",
"HND",
"LTU",
"RWA",
"KGZ",
"DOM",
"TTO",
"BRN",
"KAZ",
"COL",
"BIH",
"NRU",
"CYP",
"ZAF",
"LSO",
"OMN",
"TON",
"GNB",
"MRT",
"ARG",
"GEO",
"COG",
"GAB",
"BGD",
"TCD",
"TUV",
"MKD",
"SVN",
"BLZ",
"SRB",
"LBR",
"BDI",
"SWZ",
"ITA",
"PSE",
"COD",
"STP",
"PAK",
"NIC",
"TGO",
"CZE",
"UKR",
"HTI",
"SWE",
"BOL",
"GUY",
"MOZ",
"MYS"
],
"supported_currencies": [
"QAR",
"MZN",
"ILS",
"NPR",
"RON",
"CHF",
"LKR",
"ISK",
"NAD",
"RWF",
"DKK",
"UYU",
"VND",
"IRR",
"XAF",
"KWD",
"MWK",
"MAD",
"RSD",
"MMK",
"HUF",
"CZK",
"BGN",
"THB",
"PKR",
"IDR",
"LAK",
"BRL",
"GBP",
"MOP",
"NGN",
"SCR",
"SLL",
"ZMW",
"INR",
"MYR",
"IQD",
"GEL",
"RUB",
"NZD",
"JPY",
"EGP",
"AED",
"SEK",
"XOF",
"FJD",
"GHS",
"PHP",
"TZS",
"NOK",
"CAD",
"TRY",
"MXN",
"PEN",
"CNY",
"KRW",
"MDL",
"SGD",
"BDT",
"AUD",
"UGX",
"USD",
"ZAR",
"UAH",
"HKD",
"BND",
"BOB",
"COP",
"HRK",
"TWD",
"PLN",
"BWP",
"SAR",
"KZT",
"KES",
"EUR"
]
}
],
"supported_webhook_flows": []
},
{
"name": "BILLWERK",
"display_name": "Billwerk",
"description": "Billwerk+ Pay is an acquirer independent payment gateway that's easy to setup with more than 50 recurring and non-recurring payment methods.",
"category": "payment_gateway",
"supported_payment_methods": [
{
"payment_method": "card",
"payment_method_type": "credit",
"payment_method_type_display_name": "Credit Card",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"three_ds": "not_supported",
"no_three_ds": "supported",
"supported_card_networks": [
"Mastercard",
"Visa",
"AmericanExpress",
"Discover",
"JCB",
"UnionPay",
"DinersClub",
"Interac",
"CartesBancaires"
],
"supported_countries": [
"SWE",
"FRA",
"DNK",
"DEU"
],
"supported_currencies": [
"DKK",
"NOK"
]
},
{
"payment_method": "card",
"payment_method_type": "debit",
"payment_method_type_display_name": "Debit Card",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"three_ds": "not_supported",
"no_three_ds": "supported",
"supported_card_networks": [
"Mastercard",
"Visa",
"AmericanExpress",
"Discover",
"JCB",
"UnionPay",
"DinersClub",
"Interac",
"CartesBancaires"
],
"supported_countries": [
"DNK",
"FRA",
"SWE",
"DEU"
],
"supported_currencies": [
"DKK",
"NOK"
]
}
],
"supported_webhook_flows": []
}
]}
```
## 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 **payment** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/feature_matrix.rs`
**2. 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:**
- Implement new functions (1 changes)
- Extend existing types with new fields (15 changes)
**Detailed Identifier Changes:**
Commit e8afec2f:
Files to modify:
**crates/api_models/src/feature_matrix.rs**
Modify existing code
**crates/common_enums/src/enums.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": 7639, "pr_title": "feat(router): add payment method display name to feature matrix response", "merged_at": "2025-04-01T12:15:42Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "merchant", "refund"]}, "hierarchy": {"api_models": ["crates/api_models/src/feature_matrix.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs", "crates/router/src/routes/feature_matrix.rs"]}, "change_types": {"functions_added": 1, "fields_added": 15}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
implement payouts for Loonio
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/enums.rs`
- `crates/api_models/src/payouts.rs`
**2. Core Business Logic**
- `crates/router/src/core/payment_methods/cards.rs`
- `crates/router/src/core/payment_methods/vault.rs`
- `crates/router/src/core/payouts/helpers.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 15 more files
**4. Type Definitions**
- `crates/router/src/types/api/payouts.rs`
- `crates/router/src/types/transformers.rs`
**5. Utils**
- `crates/common_utils/src/payout_method_utils.rs`
**6. Tests**
- `config/deployments/integration_test.toml`
**7. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 3 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 5 more files
**Code Patterns Applied:**
- Define new data structures (7 changes)
- Implement new functions (23 changes)
- Extend existing types with new fields (124 changes)
- Modify database queries (1 changes)
**Detailed Identifier Changes:**
Commit abcc70be:
Files to modify:
**crates/api_models/src/enums.rs**
Modify existing code
**crates/api_models/src/payouts.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_utils/src/payout_method_utils.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/euclid/src/enums.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/adyenplatform/transformers/payouts.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/loonio.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/payone/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/wise/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/openapi/src/openapi.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/router/src/configs/defaults/payout_required_fields.rs**
Modify existing code
**crates/router/src/core/payment_methods/cards.rs**
Modify existing code
**crates/router/src/core/payment_methods/vault.rs**
Modify existing code
**crates/router/src/core/payouts/helpers.rs**
Modify existing code
**crates/router/src/types/api/payouts.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/router/tests/connectors/adyen.rs**
Modify existing code
|
{"pr_number": 9718, "pr_title": "feat(connector): [Loonio] implement payouts", "merged_at": "2025-10-08T16:47:56Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "merchant", "order"]}, "hierarchy": {"api_models": ["crates/api_models/src/enums.rs", "crates/api_models/src/payouts.rs"], "core_business": ["crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/vault.rs", "crates/router/src/core/payouts/helpers.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/adyen.rs", "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs", "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/connectors/ebanx/transformers.rs", "crates/hyperswitch_connectors/src/connectors/loonio.rs", "crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs", "crates/hyperswitch_connectors/src/connectors/payone/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers/connect.rs", "crates/hyperswitch_connectors/src/connectors/wise/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/router/tests/connectors/adyen.rs"], "types": ["crates/router/src/types/api/payouts.rs", "crates/router/src/types/transformers.rs"], "utils": ["crates/common_utils/src/payout_method_utils.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", "crates/router/src/configs/defaults/payout_required_fields.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/common_enums/src/enums.rs", "crates/euclid/src/enums.rs", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs", "migrations/2025-10-07-100547-0000_add_bank_redirect_in/down.sql", "migrations/2025-10-07-100547-0000_add_bank_redirect_in/up.sql"]}, "change_types": {"structs_added": 7, "functions_added": 23, "enums_added": 3, "fields_added": 124, "imports_added": 5, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
1. Added supported currencies for novalnet
2. Removed browser info from required fields for novalnet
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/enums.rs`
**2. External Connector Integration**
- `crates/router/src/configs/defaults/payment_connector_required_fields.rs`
**3. Tests**
- `config/deployments/integration_test.toml`
**4. Configuration Files**
- `config/config.example.toml`
- `config/deployments/production.toml`
- `config/deployments/sandbox.toml`
- ... and 2 more files
**5. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Detailed Identifier Changes:**
Commit a35a4f31:
Files to modify:
**crates/api_models/src/enums.rs**
Modify existing code
**crates/router/src/configs/defaults/payment_connector_required_fields.rs**
Modify existing code
|
{"pr_number": 6547, "pr_title": "feat(connector): [Novalnet] Add supported currencies", "merged_at": "2024-11-14T11:45:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["card"]}, "hierarchy": {"api_models": ["crates/api_models/src/enums.rs"], "connectors": ["crates/router/src/configs/defaults/payment_connector_required_fields.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"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
This PR introduces UI revamps to the payment links by including below changes - (described in #6711)
- Introduce `branding_visibility` in business profile's payment link config
- Introduce `details_layout` and `background_image` in both business profile and payments create API
- Consume these values in payment link's template
There are two additional changes which are mentioned below
- Always use SDK's top redirection in payment links
- Update connector_list ENV config for `network_transaction_id_supported_connectors`
|
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 d11d8740:
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": 6725, "pr_title": "feat(core): payment links - add support for custom background image and layout in details section", "merged_at": "2024-12-12T15:48:18Z", "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.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 -->
Added validation check for amount in capture flow.
Fixed WASM for Peachpayments
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/helpers.rs`
**2. External Connector Integration**
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
- `crates/connector_configs/toml/production.toml`
- ... and 1 more files
**Code Patterns Applied:**
- Extend existing types with new fields (7 changes)
**Detailed Identifier Changes:**
Commit 87fc0066:
Files to modify:
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Modify existing code
|
{"pr_number": 9434, "pr_title": "fix(core): Add Validation Check for Amount in Capture Flow", "merged_at": "2025-09-19T07:35:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/helpers.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"]}, "change_types": {"fields_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
main PR
https://github.com/juspay/hyperswitch/pull/7978
https://github.com/juspay/hyperswitch/pull/8035
## 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)?
-->
## 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 **connector_integration** feature, you'll need to modify these architectural layers:
**1. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/authentication.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/router_request_types/authentication.rs`
- `crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs`
- `crates/hyperswitch_domain_models/src/router_response_types.rs`
**3. Core Business Logic**
- `crates/router/src/core/authentication.rs`
- `crates/router/src/core/authentication/utils.rs`
- `crates/router/src/core/payments.rs`
- ... and 7 more files
**4. External Connector Integration**
- `crates/router/src/connector/gpayments/gpayments_types.rs`
- `crates/router/src/connector/netcetera/transformers.rs`
- `crates/router/src/connector/threedsecureio/transformers.rs`
**5. Type Definitions**
- `crates/router/src/types/api/authentication.rs`
- `crates/router/src/types/domain.rs`
- `crates/router/src/types/transformers.rs`
**6. Other**
- `crates/hyperswitch_interfaces/src/authentication.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (8 changes)
- Extend existing types with new fields (32 changes)
- Add conditional logic for feature flags or filtering (4 changes)
**Detailed Identifier Changes:**
Commit 1d45b589:
Files to modify:
**crates/diesel_models/src/authentication.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types/authentication.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_response_types.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/authentication.rs**
Modify existing code
**crates/router/src/connector/gpayments/gpayments_types.rs**
Modify existing code
**crates/router/src/connector/netcetera/transformers.rs**
Modify existing code
**crates/router/src/connector/threedsecureio/transformers.rs**
Modify existing code
**crates/router/src/core/authentication.rs**
Modify existing code
**crates/router/src/core/authentication/utils.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_response.rs**
Modify existing code
**crates/router/src/core/payments/operations/payment_status.rs**
Modify existing code
**crates/router/src/core/payments/transformers.rs**
Modify existing code
**crates/router/src/core/payments/types.rs**
Modify existing code
**crates/router/src/core/unified_authentication_service/utils.rs**
Modify existing code
**crates/router/src/core/webhooks/incoming.rs**
Modify existing code
**crates/router/src/types/api/authentication.rs**
Modify existing code
**crates/router/src/types/domain.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 8043, "pr_title": "refactor(authentication): moved cavv storing from table to temp locker", "merged_at": "2025-05-15T13:07:06Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": []}, "hierarchy": {"database": ["crates/diesel_models/src/authentication.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_request_types/authentication.rs", "crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs", "crates/hyperswitch_domain_models/src/router_response_types.rs"], "core_business": ["crates/router/src/core/authentication.rs", "crates/router/src/core/authentication/utils.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/payments/types.rs", "crates/router/src/core/unified_authentication_service/utils.rs", "crates/router/src/core/webhooks/incoming.rs"], "connectors": ["crates/router/src/connector/gpayments/gpayments_types.rs", "crates/router/src/connector/netcetera/transformers.rs", "crates/router/src/connector/threedsecureio/transformers.rs"], "types": ["crates/router/src/types/api/authentication.rs", "crates/router/src/types/domain.rs", "crates/router/src/types/transformers.rs"], "other": ["crates/hyperswitch_interfaces/src/authentication.rs"]}, "change_types": {"structs_added": 1, "functions_added": 8, "fields_added": 32, "imports_added": 5, "conditionals_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Add support for record back flow for chargebee.
**What is record back flow ?**
After payment is retried by revenue recovery, we need to update the billing processor invoice.
Chargebee flow
We record the transaction in chargebee created by internal system. This transaction will automatically update the invoice status in chargebee system.
|
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_flow_types/revenue_recovery.rs`
**2. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/payments/flows.rs`
**3. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/chargebee.rs`
- `crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs`
- `crates/hyperswitch_connectors/src/default_implementations.rs`
**4. Other**
- `crates/hyperswitch_interfaces/src/api/revenue_recovery.rs`
- `crates/router/src/services/conversion_impls.rs`
**Code Patterns Applied:**
- Define new data structures (4 changes)
- Implement new functions (14 changes)
- Extend existing types with new fields (51 changes)
**Detailed Identifier Changes:**
Commit e77bb71c:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/chargebee.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/default_implementations.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/api/revenue_recovery.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
**crates/router/src/services/conversion_impls.rs**
Modify existing code
|
{"pr_number": 7505, "pr_title": "feat(connector): [Chargebee] Add record back support for chargebee [V2]", "merged_at": "2025-03-18T13:16:25Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "transaction"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee.rs", "crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs"], "other": ["crates/hyperswitch_interfaces/src/api/revenue_recovery.rs", "crates/router/src/services/conversion_impls.rs"]}, "change_types": {"structs_added": 4, "functions_added": 14, "enums_added": 2, "fields_added": 51, "imports_added": 10}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
added support for fetching multiple keys for redis cluster.
Earlier, we were using `mget` to fetch multiple keys. While this works fine for standalone redis, it would fail for redis cluster(it won't work if redis keys are stored in multiple hash slots).
So, introduced a new redis interface function to use `mget` for standalone redis and parallel `get` calls for cluster redis.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `crates/redis_interface/src/commands.rs`
- `crates/redis_interface/src/lib.rs`
**Code Patterns Applied:**
- Implement new functions (4 changes)
- Extend existing types with new fields (8 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit cc44831c:
Files to modify:
**crates/redis_interface/src/commands.rs**
Modify existing code
**crates/redis_interface/src/lib.rs**
Modify existing code
|
{"pr_number": 9019, "pr_title": "fix(redis): add support for fetching multiple keys for redis cluster", "merged_at": "2025-08-22T14:07:12Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": ["crates/redis_interface/src/commands.rs", "crates/redis_interface/src/lib.rs"]}, "change_types": {"functions_added": 4, "fields_added": 8, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Added comprehensive event logging for UCS operations to improve debugging and monitoring. The changes wrap UCS calls with structured logging that captures request/response data, timing, and errors across all payment flows.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments/flows/authorize_flow.rs`
- `crates/router/src/core/payments/flows/external_proxy_flow.rs`
- `crates/router/src/core/payments/flows/psync_flow.rs`
- ... and 2 more files
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (11 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 10cf161d:
Files to modify:
**crates/router/src/core/payments/flows/authorize_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/external_proxy_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/unified_connector_service.rs**
Modify existing code
|
{"pr_number": 9058, "pr_title": "feat(ucs): add event logging for UCS operations", "merged_at": "2025-09-02T08:13:26Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/flows/authorize_flow.rs", "crates/router/src/core/payments/flows/external_proxy_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/unified_connector_service.rs"]}, "change_types": {"functions_added": 1, "fields_added": 11, "imports_added": 2, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This is continuation on this PR.
https://github.com/juspay/hyperswitch/pull/6607
Changes in this PR:
In this PR, I've added support for sending the request_extended_authorization flag to the connector module from core. And handling the response from the connector and updating the same in DB.
Flow:
1. Merchant can set `always_request_extended_authorization` as true in BusinessProfile.
2. Merchant can also send the `request_extended_authorization` in PaymentsCreate Call(payment_intent).
3. In case `always_request_extended_authorization` or `request_extended_authorization` is true, we will see if the selected connector supports extended authorization for the selected payment_method and payment_method_type, If yes, then we will populate `request_extended_authorization` in payment_attempt in update_trackers and send the flag to the connector.
4. Once we get the response from the connector, the rseponse will be updated in post_update_trackers().
This PR does not add support for extended authorization for any connector. This will be taken up in a separate PR.
|
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`
- `crates/api_models/src/payments/trait_impls.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/payment_attempt.rs`
- `crates/diesel_models/src/payment_intent.rs`
- ... and 1 more files
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/business_profile.rs`
- `crates/hyperswitch_domain_models/src/payments.rs`
- `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`
- ... and 2 more files
**4. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/operations.rs`
- `crates/router/src/core/payments/operations/payment_confirm.rs`
- ... and 4 more files
**5. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/hyperswitch_connectors/src/utils.rs`
- `crates/router/src/types/api/verify_connector.rs`
- ... and 1 more files
**6. Type Definitions**
- `crates/common_types/src/lib.rs`
- `crates/common_types/src/primitive_wrappers.rs`
- `crates/router/src/types.rs`
**Code Patterns Applied:**
- Define new data structures (4 changes)
- Implement new functions (17 changes)
- Extend existing types with new fields (85 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit c3c4f50f:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/payments.rs**
Modify existing code
**crates/api_models/src/payments/trait_impls.rs**
Modify existing code
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/common_types/src/lib.rs**
Modify existing code
**crates/common_types/src/primitive_wrappers.rs**
Modify existing code
**crates/diesel_models/src/business_profile.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/user/sample_data.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/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/router_data.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_request_types.rs**
Modify existing code
**crates/router/src/core/payments.rs**
Modify existing code
**crates/router/src/core/payments/operations.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/transformers.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/tests/connectors/utils.rs**
Modify existing code
|
{"pr_number": 6766, "pr_title": "feat: core changes for extended authorization", "merged_at": "2025-03-21T12:57:19Z", "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", "crates/api_models/src/payments/trait_impls.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/payment_intent.rs", "crates/diesel_models/src/user/sample_data.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs", "crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/router_data.rs", "crates/hyperswitch_domain_models/src/router_request_types.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations.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/transformers.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/types/api/verify_connector.rs", "crates/router/tests/connectors/utils.rs"], "types": ["crates/common_types/src/lib.rs", "crates/common_types/src/primitive_wrappers.rs", "crates/router/src/types.rs"]}, "change_types": {"structs_added": 4, "functions_added": 17, "fields_added": 85, "imports_added": 19, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Connector template code for new connector breadpay.
|
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 b2ab9277:
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/breadpay.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/breadpay/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/breadpay.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": 8655, "pr_title": "feat(connector): Add template code for breadpay", "merged_at": "2025-07-22T08:52:52Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "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/breadpay.rs", "crates/hyperswitch_connectors/src/connectors/breadpay/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/breadpay.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 -->
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. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (8 changes)
- Add conditional logic for feature flags or filtering (5 changes)
**Detailed Identifier Changes:**
Commit a3b76003:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs**
Modify existing code
|
{"pr_number": 8541, "pr_title": "fix(connector): [CYBERSOURCE] Passing pares_status for MasterCard & Visa and transaction_type field", "merged_at": "2025-07-03T10:34:09Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"]}, "change_types": {"enums_added": 1, "fields_added": 8, "conditionals_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
The OrderId field in Nexixpay request is limited to 18 characters in size.
Along with that added validation checks for fields inside shipping and billing addresses.
|
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/errors/api_error_response.rs`
**2. Core Business Logic**
- `crates/router/src/core/errors/utils.rs`
**3. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs`
**4. Other**
- `crates/hyperswitch_interfaces/src/errors.rs`
- `crates/router/src/compatibility/stripe/errors.rs`
- `crates/storage_impl/src/errors.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (7 changes)
- Extend existing types with new fields (68 changes)
- Add conditional logic for feature flags or filtering (13 changes)
**Detailed Identifier Changes:**
Commit 6fd7626c:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/errors/api_error_response.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/errors.rs**
Modify existing code
**crates/router/src/compatibility/stripe/errors.rs**
Modify existing code
**crates/router/src/core/errors/utils.rs**
Modify existing code
**crates/storage_impl/src/errors.rs**
Modify existing code
|
{"pr_number": 8345, "pr_title": "fix(connector): [NEXIXPAY] Add Validation Checks for Request Fields", "merged_at": "2025-06-23T10:09:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/errors/api_error_response.rs"], "core_business": ["crates/router/src/core/errors/utils.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/nexixpay/transformers.rs"], "other": ["crates/hyperswitch_interfaces/src/errors.rs", "crates/router/src/compatibility/stripe/errors.rs", "crates/storage_impl/src/errors.rs"]}, "change_types": {"structs_added": 1, "functions_added": 7, "enums_added": 1, "fields_added": 68, "imports_added": 1, "conditionals_added": 13}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
`payment_information.tokenized_card.transaction_type` should be 3 for GPay, APay and SamsungPay MIT payments via Cybersource, and 1 for all other cases.
Some parts of the Cybersource transformer file were missing this logic. This PR fixes those gaps.
|
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 (2 changes)
- Extend existing types with new fields (10 changes)
|
{"pr_number": 9071, "pr_title": "fix(connector): [CYBERSOURCE] Fix transaction_type for Googlepay payments", "merged_at": "2025-08-28T12:39:03Z", "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": 2, "fields_added": 10}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
- create a temporary payment_token for session confirm call and pass it in the response
- the payment_token is created against the payment_method_id and is saved in redis
- payment can be done using the payment_token generated by session confirm for the payment_method_data
|
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_methods_session.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payment_methods.rs`
**4. Core Business Logic**
- `crates/router/src/core/payment_methods.rs`
**5. Other**
- `crates/external_services/src/http_client/client.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (16 changes)
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 8391, "pr_title": "feat(payment-method): create payment_token for session confirm call", "merged_at": "2025-06-19T13:53:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "session", "token"]}, "hierarchy": {"api_models": ["crates/api_models/src/payment_methods.rs"], "database": ["crates/diesel_models/src/payment_methods_session.rs"], "domain": ["crates/hyperswitch_domain_models/src/payment_methods.rs"], "core_business": ["crates/router/src/core/payment_methods.rs"], "other": ["crates/external_services/src/http_client/client.rs"]}, "change_types": {"fields_added": 16, "conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Data poi
nt related to Revenue Recovery
- There is a maximum limit on how much time we can do a retry, this limit is fixed by card network.
- What will be the maximum limit for other payment methods?
- `max_retry_count_by_network` refers to maximum limit.
- where can we store this? Env
- There is a maximum limit how much time we can do a retry which is fixed by merchant for each `billing connector`
- `max_retry_count` refers to maximum limit set by merchant.
- `billing_connector_retry_threshold`: maximum `billing connector` retries before revenue recovery can start executing retries.
- Merchant configured their payment processor accounts in `billing connector` where they process payment, these accounts are identified as `AccountReferenceId`.
- In Revenue Recovery service also merchants needs to config payment processor accounts, these accounts are identified as `Hyperswitch Merchant Connector Account Id` and they need to provide the mapping between these accounts for every `billing connector`.
- These data is added as `recovery_metadata` in `feature_metadata`.
```json
"feature_metadata": {
"revenue_recovery": {
"max_retry_count": 15,
"billing_connector_retry_threshold": 5,
"billing_account_reference": {
"mca_stripe1234": "chargebee_stripe_123"
}
}
}
```
We need recovery metadata to validate and process retries, there are two places we can add recovery metadata
- Merchant connector account
- Profiles
There are 2 scenarios we need this recovery metadata
- while receiving the webhooks
- while triggering update to invoice
|
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/merchant_connector_account.rs`
- `crates/diesel_models/src/schema_v2.rs`
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/merchant_connector_account.rs`
**4. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/connector_onboarding/paypal.rs`
- `crates/router/src/core/verification/utils.rs`
**5. External Connector Integration**
- `crates/router/src/db/merchant_connector_account.rs`
- `v2_migrations/2025-01-29-103844_add_feature_metadata_in_merchant_connector_account/down.sql`
- `v2_migrations/2025-01-29-103844_add_feature_metadata_in_merchant_connector_account/up.sql`
**6. Type Definitions**
- `crates/router/src/types.rs`
- `crates/router/src/types/transformers.rs`
**7. Other**
- `api-reference-v2/openapi_spec.json`
- `crates/openapi/src/openapi_v2.rs`
**Code Patterns Applied:**
- Define new data structures (8 changes)
- Implement new functions (6 changes)
- Extend existing types with new fields (52 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 647e1631:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/diesel_models/src/merchant_connector_account.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/merchant_connector_account.rs**
Modify existing code
**crates/openapi/src/openapi_v2.rs**
Modify existing code
**crates/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/connector_onboarding/paypal.rs**
Modify existing code
**crates/router/src/core/verification/utils.rs**
Modify existing code
**crates/router/src/db/merchant_connector_account.rs**
Modify existing code
**crates/router/src/types.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
|
{"pr_number": 7144, "pr_title": "refactor(router): add feature_metadata for merchant_connector_account create v2 flow", "merged_at": "2025-02-10T12:55:08Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs"], "database": ["crates/diesel_models/src/merchant_connector_account.rs", "crates/diesel_models/src/schema_v2.rs"], "domain": ["crates/hyperswitch_domain_models/src/merchant_connector_account.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/connector_onboarding/paypal.rs", "crates/router/src/core/verification/utils.rs"], "connectors": ["crates/router/src/db/merchant_connector_account.rs", "v2_migrations/2025-01-29-103844_add_feature_metadata_in_merchant_connector_account/down.sql", "v2_migrations/2025-01-29-103844_add_feature_metadata_in_merchant_connector_account/up.sql"], "types": ["crates/router/src/types.rs", "crates/router/src/types/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/openapi/src/openapi_v2.rs"]}, "change_types": {"structs_added": 8, "functions_added": 6, "fields_added": 52, "imports_added": 9, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Template PR for TOkenio
|
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/configs.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/hyperswitch_connectors/src/connectors.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 2 more files
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (78 changes)
- Extend existing types with new fields (157 changes)
**Detailed Identifier Changes:**
Commit 9f9fef49:
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/tokenio.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/tokenio/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/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/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/tokenio.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 8095, "pr_title": "feat(tokenio): Add Template PR", "merged_at": "2025-05-23T09:40:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["token"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/configs.rs"], "core_business": ["crates/router/src/core/admin.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/tokenio.rs", "crates/hyperswitch_connectors/src/connectors/tokenio/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/tokenio.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"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 157, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Reverts juspay/hyperswitch#7832
|
To implement this **unknown** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/noon.rs`
- `crates/hyperswitch_connectors/src/connectors/noon/transformers.rs`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (1 changes)
- Extend existing types with new fields (31 changes)
**Detailed Identifier Changes:**
Commit c89a4121:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/noon.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/noon/transformers.rs**
Modify existing code
|
{"pr_number": 7859, "pr_title": "revert: fix(connector): [noon] address `next_action_url` being `null` for cards in 3ds payment", "merged_at": "2025-04-21T17:24:14Z", "intent": {"feature_type": "unknown", "action": "unknown", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/noon.rs", "crates/hyperswitch_connectors/src/connectors/noon/transformers.rs"]}, "change_types": {"structs_added": 2, "functions_added": 1, "enums_added": 1, "fields_added": 31}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR adds the following rule to `.gitattributes` to ensure `.patch` files always use LF line endings, regardless of developer OS:
```gitattributes
*.patch text eol=lf
```
This rule overrides Windows’ default `core.autocrlf` behavior and prevents errors during migration when Diesel’s patch parser encounters CRLF line endings.
**Additionally**: For developers who have already cloned the repository and whose `.patch` files may still have CRLF endings, a workaround :
```bash
git checkout -- crates/diesel_models/drop_id.patch
```
This ensures the `.patch` file is re-checked-out with the correct LF line endings, without requiring a full reclone.
Closes: #9120
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `.gitattributes`
|
{"pr_number": 9333, "pr_title": "fix(gitattributes): enforce LF for `.patch` files to avoid CRLF parsing errors on Windows", "merged_at": "2025-09-17T10:03:30Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": [".gitattributes"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Need to make unused fields in novalnet refund response as optional. This will prevent the deserialization errors.
It's a configuration done on Novalnet side, only available in prod. Cannot test this specific case in sandbox. cc: @kashif-m
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (2 changes)
|
{"pr_number": 7721, "pr_title": "fix(connector): [Novalnet] handle refund failure response in novalnet", "merged_at": "2025-04-06T12:25:39Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "refund"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Fixed the wellsfargo cypress test
## How did you test it?
<img width="482" alt="Screenshot 2025-07-01 at 7 26 17 PM" src="https://github.com/user-attachments/assets/863ea827-7e79-438d-9e64-ffd485241b1b" />
Failure Reason:
3ds payments silently falling back to no-3ds(Should throw validation)
## 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 **payment** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/Utils.js`
- `cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js`
**Code Patterns Applied:**
- Extend existing types with new fields (120 changes)
|
{"pr_number": 8513, "pr_title": "ci(cypress): Fix wellsfargo test", "merged_at": "2025-07-02T10:33:27Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/e2e/configs/Payment/WellsFargo.js"]}, "change_types": {"fields_added": 120}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR updates the production endpoint url environment value for GlobalPay while fixing minor inconsistencies
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/globalpay.rs`
**2. Configuration Files**
- `config/deployments/production.toml`
**3. Other**
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
**Code Patterns Applied:**
- Implement new functions (1 changes)
|
{"pr_number": 7588, "pr_title": "chore: update production endpoint url for globalPay", "merged_at": "2025-03-24T08:11:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/globalpay.rs"], "config": ["config/deployments/production.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"functions_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
The payment flow starts in call_connector_service()
**1. Determining Unified Connector Service Eligibility:**
The flow starts with `should_call_unified_connector_service()` which determines if a payment should be routed through the unified connector service.
The function:
- Gets the merchant ID and connector name
- Constructs a config key using `merchant_id`, `connector_name`, `payment_method`, and `flow_name`
- Checks the database for a rollout configuration using this key
- If a config exists, it parses the rollout percentage
- Generates a random value and compares it with the rollout percentage
- If the random value is less than the rollout percentage, it attempts to connect to the unified connector service
- Returns either a connected client or None
**2. Calling Unified Connector Service:**
If the service is eligible, the `call_unified_connector_service()` function is invoked:
The function:
- Constructs the authorization request using `construct_ucs_authorize_request()`
- Creates a new gRPC request
- Adds metadata to the request using `construct_ucs_request_metadata()`
- Makes the gRPC call to authorize the payment
- Processes the response using `construct_router_data_from_ucs_authorize_response()`
**3. Request Metadata Construction:**
The `construct_ucs_request_metadata()` function adds necessary metadata to the request:
The function:
- Extracts the connector authentication type
- Gets the connector name
- Adds the connector name to metadata
- Adds authentication headers based on the auth type (e.g., header key)
**4. Post-Processing and Tracker Updates:**
After the unified connector service call:
- If needed, adds a task to the process tracker
- Updates payment trackers with the latest information
- Records timing information for monitoring
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core.rs`
- `crates/router/src/core/fraud_check/flows/checkout_flow.rs`
- `crates/router/src/core/fraud_check/flows/record_return.rs`
- ... and 21 more files
**2. External Connector Integration**
- `crates/external_services/src/grpc_client/unified_connector_service.rs`
**3. Utils**
- `crates/common_utils/src/consts.rs`
**4. Tests**
- `.github/workflows/cypress-tests-runner.yml`
**5. Configuration Files**
- `config/config.example.toml`
- `config/deployments/env_specific.toml`
- `config/development.toml`
- ... and 2 more files
**6. Other**
- `Cargo.lock`
- `crates/external_services/src/grpc_client.rs`
- `crates/external_services/src/lib.rs`
- ... and 1 more files
**Code Patterns Applied:**
- Define new data structures (3 changes)
- Implement new functions (25 changes)
- Extend existing types with new fields (208 changes)
- Add conditional logic for feature flags or filtering (10 changes)
- Modify database queries (3 changes)
**Detailed Identifier Changes:**
Commit f6574b78:
Files to modify:
**crates/common_utils/src/consts.rs**
Modify existing code
**crates/external_services/src/grpc_client.rs**
Modify existing code
**crates/external_services/src/grpc_client/unified_connector_service.rs**
Modify existing code
**crates/external_services/src/lib.rs**
Modify existing code
**crates/router/src/consts.rs**
Modify existing code
**crates/router/src/core.rs**
Modify existing code
**crates/router/src/core/fraud_check/flows/checkout_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/payments.rs**
Modify existing code
**crates/router/src/core/payments/flows.rs**
Modify existing code
**crates/router/src/core/payments/flows/approve_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/authorize_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/cancel_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/capture_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/complete_authorize_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/incremental_authorization_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/post_session_tokens_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/psync_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/reject_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/session_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/session_update_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/setup_mandate_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/update_metadata_flow.rs**
Modify existing code
**crates/router/src/core/payments/helpers.rs**
Modify existing code
**crates/router/src/core/payments/retry.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
|
{"pr_number": 8280, "pr_title": "feat(core): Hyperswitch <|> UCS Integration", "merged_at": "2025-07-04T17:42:01Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core.rs", "crates/router/src/core/fraud_check/flows/checkout_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/payments.rs", "crates/router/src/core/payments/flows.rs", "crates/router/src/core/payments/flows/approve_flow.rs", "crates/router/src/core/payments/flows/authorize_flow.rs", "crates/router/src/core/payments/flows/cancel_flow.rs", "crates/router/src/core/payments/flows/capture_flow.rs", "crates/router/src/core/payments/flows/complete_authorize_flow.rs", "crates/router/src/core/payments/flows/incremental_authorization_flow.rs", "crates/router/src/core/payments/flows/post_session_tokens_flow.rs", "crates/router/src/core/payments/flows/psync_flow.rs", "crates/router/src/core/payments/flows/reject_flow.rs", "crates/router/src/core/payments/flows/session_flow.rs", "crates/router/src/core/payments/flows/session_update_flow.rs", "crates/router/src/core/payments/flows/setup_mandate_flow.rs", "crates/router/src/core/payments/flows/update_metadata_flow.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/retry.rs", "crates/router/src/core/unified_connector_service.rs", "crates/router/src/core/unified_connector_service/transformers.rs"], "connectors": ["crates/external_services/src/grpc_client/unified_connector_service.rs"], "utils": ["crates/common_utils/src/consts.rs"], "tests": [".github/workflows/cypress-tests-runner.yml"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "config/development.toml", "crates/external_services/Cargo.toml", "crates/router/Cargo.toml"], "other": ["Cargo.lock", "crates/external_services/src/grpc_client.rs", "crates/external_services/src/lib.rs", "crates/router/src/consts.rs"]}, "change_types": {"structs_added": 3, "functions_added": 25, "enums_added": 1, "fields_added": 208, "imports_added": 33, "conditionals_added": 10, "database_queries": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Add connector template code for Paysafe
|
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 (165 changes)
**Detailed Identifier Changes:**
Commit ce0159b6:
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/paysafe.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/paysafe/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/main.rs**
Modify existing code
**crates/router/tests/connectors/paysafe.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 9011, "pr_title": "feat(connector): [Paysafe] add connector template code", "merged_at": "2025-08-26T07:01:33Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "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/paysafe.rs", "crates/hyperswitch_connectors/src/connectors/paysafe/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/paysafe.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": 165, "imports_added": 22}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
1. Move the Customer db to storage_impl and its interface to hyperswitch_domain_model
2. Added resource handling implementations in KVRouterStore, RouterStore, With this support all the resource handlers can now directly call these generic functions instead of handling the merchant storage scheme manually
|
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/customer.rs`
**2. Other**
- `crates/router/src/db.rs`
- `crates/router/src/db/customers.rs`
- `crates/router/src/db/kafka_store.rs`
- ... and 4 more files
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (50 changes)
- Extend existing types with new fields (261 changes)
- Add conditional logic for feature flags or filtering (1 changes)
- Modify database queries (2 changes)
**Detailed Identifier Changes:**
Commit e8e0b5df:
Files to modify:
**crates/hyperswitch_domain_models/src/customer.rs**
Modify existing code
**crates/router/src/db.rs**
Modify existing code
**crates/router/src/db/customers.rs**
Modify existing code
**crates/router/src/db/kafka_store.rs**
Modify existing code
**crates/storage_impl/src/customers.rs**
Modify existing code
**crates/storage_impl/src/lib.rs**
Modify existing code
**crates/storage_impl/src/mock_db.rs**
Modify existing code
**crates/storage_impl/src/payment_method.rs**
Modify existing code
|
{"pr_number": 7538, "pr_title": "refactor(customer): refactor customer db with storage utils and move trait to domain_models and impl to storage_model", "merged_at": "2025-04-15T07:54:33Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/customer.rs"], "other": ["crates/router/src/db.rs", "crates/router/src/db/customers.rs", "crates/router/src/db/kafka_store.rs", "crates/storage_impl/src/customers.rs", "crates/storage_impl/src/lib.rs", "crates/storage_impl/src/mock_db.rs", "crates/storage_impl/src/payment_method.rs"]}, "change_types": {"structs_added": 1, "functions_added": 50, "fields_added": 261, "imports_added": 11, "conditionals_added": 1, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Hotfix for https://github.com/juspay/hyperswitch/pull/8473
|
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. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/lib.rs`
- `crates/hyperswitch_domain_models/src/payment_methods.rs`
- `crates/hyperswitch_domain_models/src/transformers.rs`
**3. Core Business Logic**
- `crates/payment_methods/src/core/migration.rs`
- `crates/router/src/core/customers.rs`
**4. Type Definitions**
- `crates/router/src/types/api/payment_methods.rs`
**5. Other**
- `crates/router/src/routes/payment_methods.rs`
- `flake.nix`
**Code Patterns Applied:**
- Define new data structures (3 changes)
- Implement new functions (8 changes)
- Extend existing types with new fields (63 changes)
- Add conditional logic for feature flags or filtering (10 changes)
- Modify database queries (1 changes)
**Detailed Identifier Changes:**
Commit cabfcbad:
Files to modify:
**crates/api_models/src/payment_methods.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/lib.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payment_methods.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/transformers.rs**
Modify existing code
**crates/payment_methods/src/core/migration.rs**
Modify existing code
**crates/router/src/core/customers.rs**
Modify existing code
**crates/router/src/routes/payment_methods.rs**
Modify existing code
**crates/router/src/types/api/payment_methods.rs**
Modify existing code
|
{"pr_number": 8552, "pr_title": "feat(data-migration): add connector customer and mandate details support for multiple profiles", "merged_at": "2025-07-08T08:54:11Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"api_models": ["crates/api_models/src/payment_methods.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs", "crates/hyperswitch_domain_models/src/payment_methods.rs", "crates/hyperswitch_domain_models/src/transformers.rs"], "core_business": ["crates/payment_methods/src/core/migration.rs", "crates/router/src/core/customers.rs"], "types": ["crates/router/src/types/api/payment_methods.rs"], "other": ["crates/router/src/routes/payment_methods.rs", "flake.nix"]}, "change_types": {"structs_added": 3, "functions_added": 8, "fields_added": 63, "imports_added": 3, "conditionals_added": 10, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Throw unsupported error incase of 3DS cards and in the BOA payment request, limit administrative area length to 20 characters .
## 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 with state longer than 20 characters
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_6HyqIL1RNpFa7ixYObwRhbrFnSUTfngXT0LkLcKVpabQjnUDQvKLpRmVa7N9aikJ' \
--data-raw '{
"amount": 1000,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"customer_id": "cust_no_pm",
"authentication_type": "no_three_ds",
"email": "guest@example.com",
"payment_method": "card",
"payment_method_type": "debit",
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "03",
"card_exp_year": "30",
"card_holder_name": "joseph Doe",
"card_cvc": "737"
}
},
"name": "박 성 준",
"billing": {
"address": {
"line1": "Singapore Changi Airport. 2nd flr",
"line2": "",
"line3": "",
"city": "Downtown Core",
"state": "Central Indiana America",
"zip": "039393",
"country": "SG",
"first_name": "박성준",
"last_name": "박성준"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"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_rp9iJKVCO0quOZT2n2WT",
"merchant_id": "postman_merchant_GHAction_38467516-1474-4975-ad33-5a875d9616d2",
"status": "succeeded",
"amount": 1000,
"net_amount": 1000,
"shipping_cost": null,
"amount_capturable": 0,
"amount_received": 1000,
"connector": "bankofamerica",
"client_secret": "pay_rp9iJKVCO0quOZT2n2WT_secret_PfwM1zJhCX1oKnuJmncp",
"created": "2025-02-04T09:11:12.704Z",
"currency": "USD",
"customer_id": "cust_no_pm",
"customer": {
"id": "cust_no_pm",
"name": "박 성 준",
"email": "guest@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": "automatic",
"payment_method": "card",
"payment_method_data": {
"card": {
"last4": "4242",
"card_type": null,
"card_network": null,
"card_issuer": null,
"card_issuing_country": null,
"card_isin": "424242",
"card_extended_bin": null,
"card_exp_month": "03",
"card_exp_year": "30",
"card_holder_name": "joseph Doe",
"payment_checks": {
"eci": null,
"cavv": null,
"eci_raw": null,
"avs_response": {
"code": "Y",
"codeRaw": "Y"
},
"approval_code": "831000",
"card_verification": null,
"consumer_authentication_response": null
},
"authentication_data": {
"acs_transaction_id": null,
"system_trace_audit_number": null,
"retrieval_reference_number": null
}
},
"billing": null
},
"payment_token": "token_I0N7vymfMgpLEfMCVhNK",
"shipping": null,
"billing": {
"address": {
"city": "Downtown Core",
"country": "SG",
"line1": "Singapore Changi Airport. 2nd flr",
"line2": "",
"line3": "",
"zip": "039393",
"state": "Central Indiana America",
"first_name": "박성준",
"last_name": "박성준"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": null
},
"order_details": null,
"email": "guest@example.com",
"name": "박 성 준",
"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": "debit",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "cust_no_pm",
"created_at": 1738660272,
"expires": 1738663872,
"secret": "epk_f0fbc9e59b9e44388d3713e444d71989"
},
"manual_retry_allowed": false,
"connector_transaction_id": "7386602729516040204806",
"frm_message": null,
"metadata": null,
"connector_metadata": null,
"feature_metadata": null,
"reference_id": "pay_rp9iJKVCO0quOZT2n2WT_1",
"payment_link": null,
"profile_id": "pro_lMHkHJOsVjrm2ukgK5pZ",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_LJjAfCJzvFj0PiotJqUx",
"incremental_authorization_allowed": null,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-02-04T09:26:12.704Z",
"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-02-04T09:11:13.934Z",
"split_payments": null,
"frm_metadata": null,
"merchant_order_reference_id": null,
"order_tax_amount": null,
"connector_mandate_id": null
}
```
Create a card 3ds payment
```
curl --location 'http://localhost:8080/payments' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_6HyqIL1RNpFa7ixYObwRhbrFnSUTfngXT0LkLcKVpabQjnUDQvKLpRmVa7N9aikJ' \
--data-raw '{
"amount": 1000,
"currency": "USD",
"confirm": true,
"capture_method": "automatic",
"customer_id": "cust_no_pm",
"authentication_type": "three_ds",
"email": "guest@example.com",
"payment_method": "card",
"payment_method_type": "debit",
"payment_method_data": {
"card": {
"card_number": "4242424242424242",
"card_exp_month": "03",
"card_exp_year": "30",
"card_holder_name": "joseph Doe",
"card_cvc": "737"
}
},
"name": "박 성 준",
"billing": {
"address": {
"line1": "Singapore Changi Airport. 2nd flr",
"line2": "",
"line3": "",
"city": "Downtown Core",
"state": "Central Indiana America",
"zip": "039393",
"country": "SG",
"first_name": "박성준",
"last_name": "박성준"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
}
},
"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
```
{
"error": {
"type": "invalid_request",
"message": "Payment method type not supported",
"code": "IR_19",
"reason": "Card 3DS is not supported by BankOfAmerica"
}
}
```
Cypress Test

> 1. Refund Failures: Refunds are failing because the current test case cannot handle the dual possibility of receiving either "pending" or "succeeded" statuses from the connector.
> 2. Connector Agnostic Mandates for Non-3DS MIT: This is out of the scope of this PR.
## 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 **payment** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs`
**2. Tests**
- `cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js`
**Code Patterns Applied:**
- Extend existing types with new fields (16 changes)
- Add conditional logic for feature flags or filtering (2 changes)
**Detailed Identifier Changes:**
Commit 6bbfe628:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs**
Modify existing code
Commit 6f90b93c:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs**
Modify existing code
|
{"pr_number": 7174, "pr_title": "fix(connector): [BOA] throw unsupported error incase of 3DS cards and limit administrative area length to 20 characters ", "merged_at": "2025-02-05T14:21:55Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/BankOfAmerica.js"]}, "change_types": {"fields_added": 16, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 2, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
ORIGINAL PR: https://github.com/juspay/hyperswitch/pull/7591
Pass email in payment request body of Braintree as it is mandatory field for sending receipts in braintree
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Extend existing types with new fields (8 changes)
|
{"pr_number": 7617, "pr_title": "refactor(connector): [BRAINTREE] Pass email in payment requests", "merged_at": "2025-03-25T10:47:02Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs"]}, "change_types": {"structs_added": 1, "fields_added": 8}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
this pr addresses the comments which is concerned about reducing repeated code by moving them into a separate function within impl block.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/mandate.rs`
**2. Type Definitions**
- `crates/router/src/types/api/mandates.rs`
**3. Other**
- `crates/router/src/db/mandate.rs`
**Code Patterns Applied:**
- Implement new functions (2 changes)
- Extend existing types with new fields (1 changes)
|
{"pr_number": 8772, "pr_title": "refactor(mandate): move repeated code to a separate function within Mandate impl", "merged_at": "2025-08-01T12:59:37Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"database": ["crates/diesel_models/src/mandate.rs"], "types": ["crates/router/src/types/api/mandates.rs"], "other": ["crates/router/src/db/mandate.rs"]}, "change_types": {"functions_added": 2, "fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
hotfix for https://github.com/juspay/hyperswitch/pull/6745
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payment_link/locale.js`
**Code Patterns Applied:**
- Extend existing types with new fields (30 changes)
|
{"pr_number": 6765, "pr_title": "feat(payments): [Payment links] Add support for traditional chinese locale for payment links", "merged_at": "2024-12-06T11:46:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"core_business": ["crates/router/src/core/payment_link/locale.js"]}, "change_types": {"fields_added": 30}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Removed the unused variable declaration from the cy.get("body").then(...) callback.
## Motivation and Context
This change is made to resolve CI check failures related to Cypress linting rules.
## How did you test it?
No additional testing was required as the CI checks passed successfully, confirming compliance with Cypress linting standards.
|
To implement this **webhook** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/support/redirectionHandler.js`
|
{"pr_number": 8011, "pr_title": "ci(cypress): Address lints", "merged_at": "2025-05-14T18:11:47Z", "intent": {"feature_type": "webhook", "action": "add_feature", "entities": []}, "hierarchy": {"tests": ["cypress-tests/cypress/support/redirectionHandler.js"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Updated the currency and country code for the following connectors :
[Checkout](https://www.checkout.com/docs/developer-resources/codes/currency-codes), [BlueSnap](https://support.bluesnap.com/docs/currencies), [Nuvei](https://docs.nuvei.com/documentation/additional-links/country-and-currency-codes/#currency-codes), [Rapyd](https://docs.rapyd.net/en/supported-currencies.html), [Airwallex](https://www.airwallex.com/docs/payments__supported-currencies), [Worldpay](https://developer.worldpay.com/products/access/reference/supported-countries-currencies), [Cybersource](https://developer.cybersource.com/library/documentation/dev_guides/VCO_Getting_Started/html/Topics/countries.htm), [Stripe](https://docs.stripe.com/currencies), [Adyen](https://docs.adyen.com/development-resources/currency-codes/), [Multisafepay](https://docs.multisafepay.com/docs/google-pay), [PayU](https://docs.payu.in/docs/supported-currencies-for-international-payments), [Novalnet](https://www.novalnet.com/currencies/)
Docs referred for ApplePay and GooglePay : [ApplePay](https://support.apple.com/en-us/102775) , [GooglePay](https://support.google.com/pay/india/answer/9023773?hl=en#zippy=%2Cpay-online-in-apps)
|
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 2 more files
|
{"pr_number": 8383, "pr_title": "feat(connector): Added Supported Country and Currencies", "merged_at": "2025-07-16T10:00:35Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "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/development.toml", "config/docker_compose.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR adds mandates support for Google Pay and Apple Pay Payment Method via `Authorize.Net` connector. It also supports Zero Auth Mandates.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs`
- `crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.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:**
- Extend existing types with new fields (20 changes)
**Detailed Identifier Changes:**
Commit 07733a5c:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs**
Modify existing code
|
{"pr_number": 7412, "pr_title": "feat(connector): implement wallet mandates for authorizedotnet", "merged_at": "2025-03-11T14:41:15Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/authorizedotnet.rs", "crates/hyperswitch_connectors/src/connectors/authorizedotnet/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": {"fields_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR includes refactors around the customer payment methods list v2 code to follow some of the practices we've started enforcing in the recent few months. Additionally, I've picked up some minor refactors along the way.
This PR contains the following changes:
- Adds a `should_collect_cvv_during_payment` column to the business profile v2 table to replace the `{merchant_id}_requires_cvv` config we used to read previously (and still do in v1) from the `configs` table.
- Renames the `business_profile` field to `profile` in the `SavedPMLPaymentsInfo` struct. (This follows the changes done in #5877.)
- Renames the `requires_cvv` field to `collect_cvv_during_payment` in `SavedPMLPaymentsInfo` struct, to follow the new column added in the business profile v2 table.
- Passes profile to the `form_payments_info()` method instead of fetching it within the method. Eventually, we'd want to obtain the profile from the authentication layer instead, which would be passed forward.
- Moves the `PaymentsMandateReference` from the `router` crate to the `diesel_models` crate, and updates the `connector_mandate_details` field in the payment methods table to use `PaymentsMandateReference` instead of `serde_json::Value` in v2 code. (This should help reduce / prevent invalid data being stored in this column of the database.)
- Refactors the `get_mca_status()` function to avoid a possible database call (to fetch merchant connector accounts associated with a merchant / profile) happening within an iterator.
- Drops the `metadata` column from the payment methods table and API models in v2 code, since it isn't being actively used in v1 code anyway. Neither do any of our hosted environments have any useful data stored in that column.
The other minor refactors I took up along the way include:
- Improves the doc comment for the `is_network_tokenization_enabled` field in profile API models.
- Update the `ExtendedCardInfoUpdate`, `ConnectorAgnosticMitUpdate` and `NetworkTokenizationUpdate` enum variants of the `ProfileUpdate` domain model enum to have required fields instead of optional ones. (This is because these variants either enable something or not, and we always have the value to be updated in all cases.)
- Uses `serialize_and_set_key_with_expiry()` when storing payment method token in Redis instead of explicit JSON serialization happening in business logic.
- Replace usages of `create_payment_method()` (which only seemed to be updating the metadata field, and was thus confusing) with a correct `apply_changeset()` implementation. This change only affects MockDb implementation.
The PR can be reviewed one commit at a time, if that helps ease reviews.
|
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/payment_methods.rs`
- `crates/api_models/src/payments.rs`
**2. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/business_profile.rs`
- `crates/diesel_models/src/payment_attempt.rs`
- `crates/diesel_models/src/payment_method.rs`
- ... and 1 more files
**3. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/business_profile.rs`
- `crates/hyperswitch_domain_models/src/merchant_connector_account.rs`
- `crates/hyperswitch_domain_models/src/payment_methods.rs`
- ... and 2 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/cards.rs`
- ... and 4 more files
**5. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs`
**6. Type Definitions**
- `crates/router/src/types/api/admin.rs`
- `crates/router/src/types/payment_methods.rs`
- `crates/router/src/types/storage/payment_method.rs`
**7. Other**
- `Cargo.lock`
- `api-reference-v2/openapi_spec.json`
- `api-reference/openapi_spec.json`
- ... and 7 more files
**Code Patterns Applied:**
- Define new data structures (3 changes)
- Implement new functions (10 changes)
- Extend existing types with new fields (171 changes)
- Add conditional logic for feature flags or filtering (3 changes)
- Modify database queries (4 changes)
**Detailed Identifier Changes:**
Commit 0389ae74:
Files to modify:
**crates/api_models/src/admin.rs**
Modify existing code
**crates/api_models/src/payment_methods.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_attempt.rs**
Modify existing code
**crates/diesel_models/src/payment_method.rs**
Modify existing code
**crates/diesel_models/src/schema_v2.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/business_profile.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/merchant_connector_account.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payment_methods.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/router/src/core/admin.rs**
Modify existing code
**crates/router/src/core/payment_methods.rs**
Modify existing code
**crates/router/src/core/payment_methods/cards.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_response.rs**
Modify existing code
**crates/router/src/core/payments/tokenization.rs**
Modify existing code
**crates/router/src/db/payment_method.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/api/admin.rs**
Modify existing code
**crates/router/src/types/payment_methods.rs**
Modify existing code
**crates/router/src/types/storage/payment_method.rs**
Modify existing code
|
{"pr_number": 6433, "pr_title": "refactor(payment_methods): refactor customer payment methods list v2 code to follow better code practices", "merged_at": "2024-11-08T14:57:43Z", "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/payment_methods.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/payment_method.rs", "crates/diesel_models/src/schema_v2.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs", "crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "crates/hyperswitch_domain_models/src/payment_methods.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/cards.rs", "crates/router/src/core/payment_methods/transformers.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/tokenization.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs"], "types": ["crates/router/src/types/api/admin.rs", "crates/router/src/types/payment_methods.rs", "crates/router/src/types/storage/payment_method.rs"], "other": ["Cargo.lock", "api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/router/src/db/payment_method.rs", "crates/router/src/routes/payment_methods.rs", "crates/router/src/services/authentication.rs", "v2_migrations/2024-08-23-112510_payment_methods_v2_db_changes/down.sql", "v2_migrations/2024-08-23-112510_payment_methods_v2_db_changes/up.sql", "v2_migrations/2024-08-28-081721_add_v2_columns/down.sql", "v2_migrations/2024-08-28-081721_add_v2_columns/up.sql"]}, "change_types": {"structs_added": 3, "functions_added": 10, "fields_added": 171, "imports_added": 3, "conditionals_added": 3, "database_queries": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
When deleting a merchant account, the code previously included a direct call to the **Decision Engine (DE)** to remove the merchant configuration (`delete_decision_engine_merchant`). This was gated behind the `dynamic_routing` and `v1` feature flags and executed synchronously within the merchant deletion flow.
|
To implement this **payment** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/admin.rs`
|
{"pr_number": 9076, "pr_title": "refactor(dynamic_routing): remove delete_merchant for DE", "merged_at": "2025-09-01T13:35:37Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR implements UPI Intent and QR code payment flows for the Unified Connector Service (UCS) integration, adding default implementations for Paytm and PhonePe connectors.
|
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. Core Business Logic**
- `crates/router/src/core/connector_validation.rs`
- `crates/router/src/core/unified_connector_service.rs`
- `crates/router/src/core/unified_connector_service/transformers.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 19 more files
**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 5 more files
**6. Other**
- `Cargo.lock`
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
**Code Patterns Applied:**
- Define new data structures (20 changes)
- Implement new functions (166 changes)
- Extend existing types with new fields (337 changes)
- Add conditional logic for feature flags or filtering (1 changes)
**Detailed Identifier Changes:**
Commit 01e94748:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/connector_configs/src/connector.rs**
Modify existing code
**crates/external_services/src/grpc_client/unified_connector_service.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/paytm.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/phonepe.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/phonepe/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/payment_methods/src/configs/payment_connector_required_fields.rs**
Modify existing code
**crates/router/src/connector.rs**
Modify existing code
**crates/router/src/core/connector_validation.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/types/api/connector_mapping.rs**
Modify existing code
**crates/router/src/types/connector_transformers.rs**
Modify existing code
**crates/router/tests/connectors/main.rs**
Modify existing code
**crates/router/tests/connectors/paytm.rs**
Modify existing code
**crates/router/tests/connectors/phonepe.rs**
Modify existing code
**crates/test_utils/src/connector_auth.rs**
Modify existing code
|
{"pr_number": 8732, "pr_title": "feat(core): Implement UCS based upi for paytm and phonepe", "merged_at": "2025-07-31T14:18:08Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/connector_endpoints.rs"], "core_business": ["crates/router/src/core/connector_validation.rs", "crates/router/src/core/unified_connector_service.rs", "crates/router/src/core/unified_connector_service/transformers.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/external_services/src/grpc_client/unified_connector_service.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/paytm.rs", "crates/hyperswitch_connectors/src/connectors/paytm/transformers.rs", "crates/hyperswitch_connectors/src/connectors/phonepe.rs", "crates/hyperswitch_connectors/src/connectors/phonepe/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs", "crates/router/src/connector.rs", "crates/router/src/types/api/connector_mapping.rs", "crates/router/src/types/connector_transformers.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/paytm.rs", "crates/router/tests/connectors/phonepe.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", "config/payment_required_fields_v2.toml", "crates/external_services/Cargo.toml", "crates/router/Cargo.toml"], "other": ["Cargo.lock", "api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json"]}, "change_types": {"structs_added": 20, "functions_added": 166, "enums_added": 4, "fields_added": 337, "imports_added": 48, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This PR adds a check in Cypress `redirectionHandler` to verify that `payment_id` exists after the redirection completes without which it throws an error!
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `cypress-tests/cypress/support/redirectionHandler.js`
**Code Patterns Applied:**
- Add conditional logic for feature flags or filtering (2 changes)
|
{"pr_number": 7657, "pr_title": "ci(cypress): verify existence of `payment_id` after redirection", "merged_at": "2025-04-02T06:55:56Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"tests": ["cypress-tests/cypress/support/redirectionHandler.js"]}, "change_types": {"conditionals_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
This PR makes raw_connector_response as a Secret and it also addresses unresolved comments of https://github.com/juspay/hyperswitch/pull/8499
|
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_data.rs`
**3. 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 1 more files
**4. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/razorpay.rs`
**5. Type Definitions**
- `crates/common_types/src/domain.rs`
**6. Other**
- `crates/router/src/services/api.rs`
**Code Patterns Applied:**
- Implement new functions (2 changes)
- Extend existing types with new fields (6 changes)
**Detailed Identifier Changes:**
Commit fb33937c:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/common_types/src/domain.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/razorpay.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_data.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/operations/payment_confirm_intent.rs**
Modify existing code
**crates/router/src/services/api.rs**
Modify existing code
|
{"pr_number": 8565, "pr_title": "refactor(core): make raw_connector_response as secret", "merged_at": "2025-07-16T10:39:40Z", "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_data.rs"], "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/operations/payment_confirm_intent.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/razorpay.rs"], "types": ["crates/common_types/src/domain.rs"], "other": ["crates/router/src/services/api.rs"]}, "change_types": {"functions_added": 2, "fields_added": 6, "imports_added": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Added SecretString type definition in UCS proto files which will get swapped out with hyperswitch_masking::Secret type during build. This will allow us to mask any sensitive data like card_cvc, card _exp_month etc.
In this PR, all proto request types for which masked types were added, have been handled.
|
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.rs`
- `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 (42 changes)
**Detailed Identifier Changes:**
Commit cf64d2a9:
Files to modify:
**crates/router/src/core/unified_connector_service.rs**
Modify existing code
**crates/router/src/core/unified_connector_service/transformers.rs**
Modify existing code
|
{"pr_number": 9044, "pr_title": "feat(core): Added support for unified_connector_service CardNumber and Secret<String> Type", "merged_at": "2025-08-27T15:50:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/unified_connector_service.rs", "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": 42, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Add ckh columns for 3ds intelligence analytics
Added nullable columns in CKH authentication table
```
`mcc` Nullable(String),
`amount` Nullable(UInt32),
`currency` LowCardinality(Nullable(String)),
`merchant_country` LowCardinality(Nullable(String)),
`billing_country` LowCardinality(Nullable(String)),
`shipping_country` LowCardinality(Nullable(String)),
`issuer_country` LowCardinality(Nullable(String)),
`earliest_supported_version` LowCardinality(Nullable(String)),
`latest_supported_version` LowCardinality(Nullable(String)),
`whitelist_decision` Nullable(Bool),
`device_manufacturer` Nullable(String),
`platform` LowCardinality(Nullable(String)),
`device_type` LowCardinality(Nullable(String)),
`device_brand` Nullable(String),
`device_os` Nullable(String),
`device_display` Nullable(String),
`browser_name` Nullable(String),
`browser_version` Nullable(String),
`issuer_id` Nullable(String),
`scheme_name` Nullable(String),
`exemption_requested` Nullable(Bool),
`exemption_accepted` Nullable(Bool),
```
## 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)?
-->
NA
## 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 **payment** feature, you'll need to modify these architectural layers:
**1. Other**
- `crates/analytics/docs/clickhouse/scripts/authentications.sql`
**Code Patterns Applied:**
- Modify database queries (2 changes)
|
{"pr_number": 8136, "pr_title": "feat(analytics): Add ckh columns for 3ds intelligence analytics", "merged_at": "2025-05-28T14:20:03Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["merchant", "card"]}, "hierarchy": {"other": ["crates/analytics/docs/clickhouse/scripts/authentications.sql"]}, "change_types": {"database_queries": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Fixed the following mintlify pages:
- `v2/customers/customers--update.mdx`
- `payment-method-session--confirm-a-payment-method-session.mdx`
- `payment-method-session--delete-a-saved-payment-method.mdx`
- `payment-method-session--list-payment-methods.mdx`
- `payment-method-session--retrieve.mdx`
- `payment-method-session--update-a-saved-payment-method.mdx`
Added the following missing pages:
- `payment-method--list-customer-saved-payment-methods.mdx`
- `refunds--list.mdx`
- `refunds--metadata-update.mdx`
- `refunds--retrieve.mdx`
- `revenue-recovery--retrieve.mdx`
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `api-reference/docs.json`
- `api-reference/v2/customers/customers--update.mdx`
- `api-reference/v2/openapi_spec_v2.json`
- ... and 15 more files
**Detailed Identifier Changes:**
Commit 9319c7a6:
Files to modify:
**crates/openapi/src/routes/payments.rs**
Modify existing code
**crates/openapi/src/routes/tokenization.rs**
Modify existing code
|
{"pr_number": 8382, "pr_title": "fix(openapi): Fix broken mintlify pages (v2)", "merged_at": "2025-06-20T13:54:03Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "refund"]}, "hierarchy": {"other": ["api-reference/docs.json", "api-reference/v2/customers/customers--update.mdx", "api-reference/v2/openapi_spec_v2.json", "api-reference/v2/payment-method-session/payment-method-session--confirm-a-payment-method-session.mdx", "api-reference/v2/payment-method-session/payment-method-session--delete-a-saved-payment-method.mdx", "api-reference/v2/payment-method-session/payment-method-session--list-payment-methods.mdx", "api-reference/v2/payment-method-session/payment-method-session--retrieve.mdx", "api-reference/v2/payment-method-session/payment-method-session--update-a-saved-payment-method.mdx", "api-reference/v2/payment-methods/list-customer-saved-payment-methods-for-a-payment.mdx", "api-reference/v2/payment-methods/list-payment-methods-for-a-customer.mdx", "api-reference/v2/payment-methods/list-saved-payment-methods-for-a-customer.mdx", "api-reference/v2/customers/customers--list-saved-payment-methods.mdx", "api-reference/v2/refunds/refunds--list.mdx", "api-reference/v2/refunds/refunds--metadata-update.mdx", "api-reference/v2/refunds/refunds--retrieve.mdx", "api-reference/v2/revenue-recovery/revenue-recovery--retrieve.mdx", "crates/openapi/src/routes/payments.rs", "crates/openapi/src/routes/tokenization.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Modified the Auth in the postman collection for payment connectors, from Admin API Key to API Key.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `postman/collection-dir/bankofamerica/API Key/Delete API Key/event.test.js`
- `postman/collection-dir/hyperswitch/API Key/Delete API Key/event.test.js`
- `postman/collection-dir/stripe/API Key/Delete API Key/event.test.js`
**2. Other**
- `postman/collection-dir/aci/Flow Testcases/QuickStart/Payment Connector - Create/request.json`
- `postman/collection-dir/adyen_uk/Flow Testcases/QuickStart/Payment Connector - Create/request.json`
- `postman/collection-dir/adyen_uk/Flow Testcases/QuickStart/Payout Connector - Create/request.json`
- ... and 66 more files
|
{"pr_number": 7702, "pr_title": "chore(postman): update auth for payment connectors in postman collection", "merged_at": "2025-04-04T09:42:24Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"tests": ["postman/collection-dir/bankofamerica/API Key/Delete API Key/event.test.js", "postman/collection-dir/hyperswitch/API Key/Delete API Key/event.test.js", "postman/collection-dir/stripe/API Key/Delete API Key/event.test.js"], "other": ["postman/collection-dir/aci/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/adyen_uk/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/adyen_uk/Flow Testcases/QuickStart/Payout Connector - Create/request.json", "postman/collection-dir/airwallex/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/authorizedotnet/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/authorizedotnet/Flow Testcases/Variation Cases/Scenario12-Failed case for wrong api keys/Payment Connector - Update/request.json", "postman/collection-dir/bambora/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/bambora_3ds/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/bankofamerica/API Key/.meta.json", "postman/collection-dir/bankofamerica/Flow Testcases/Happy Cases/Scenario1-Create payment with confirm true/Payments - Create/request.json", "postman/collection-dir/bankofamerica/Flow Testcases/Happy Cases/Scenario2-Create payment with confirm false/Payments - Create/request.json", "postman/collection-dir/bankofamerica/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/bankofamerica/PaymentConnectors/.meta.json", "postman/collection-dir/bankofamerica/API Key/Delete API Key/.event.meta.json", "postman/collection-dir/bankofamerica/API Key/Delete API Key/request.json", "postman/collection-dir/bankofamerica/API Key/Delete API Key/response.json", "postman/collection-dir/bankofamerica/PaymentConnectors/List Connectors by MID/request.json", "postman/collection-dir/bankofamerica/PaymentConnectors/Payment Connector - Create/request.json", "postman/collection-dir/bankofamerica/PaymentConnectors/Payment Connector - Retrieve/request.json", "postman/collection-dir/bankofamerica/PaymentConnectors/Payment Connector - Update/request.json", "postman/collection-dir/bluesnap/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/braintree/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/checkout/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/cybersource/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/forte/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/globalpay/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/hyperswitch/API Key/.meta.json", "postman/collection-dir/hyperswitch/Hackathon/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/hyperswitch/PaymentConnectors/.meta.json", "postman/collection-dir/hyperswitch/API Key/Delete API Key/.event.meta.json", "postman/collection-dir/hyperswitch/API Key/Delete API Key/request.json", "postman/collection-dir/hyperswitch/API Key/Delete API Key/response.json", "postman/collection-dir/hyperswitch/PaymentConnectors/List Connectors by MID/request.json", "postman/collection-dir/hyperswitch/PaymentConnectors/Payment Connector - Create/request.json", "postman/collection-dir/hyperswitch/PaymentConnectors/Payment Connector - Retrieve/request.json", "postman/collection-dir/hyperswitch/PaymentConnectors/Payment Connector - Update/request.json", "postman/collection-dir/hyperswitch/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/mollie/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/multisafepay/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/multisafepay/Flow Testcases/Variation Cases/Scenario6- Create payment with Invalid Merchant ID/Payment Connector - Update/request.json", "postman/collection-dir/nexinets/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/nmi/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/nuvei/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/payme/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/paypal/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/powertranz/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/prophetpay/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/rapyd/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/shift4/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/stripe/API Key/.meta.json", "postman/collection-dir/stripe/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/stripe/PaymentConnectors/.meta.json", "postman/collection-dir/stripe/API Key/Delete API Key/.event.meta.json", "postman/collection-dir/stripe/API Key/Delete API Key/request.json", "postman/collection-dir/stripe/API Key/Delete API Key/response.json", "postman/collection-dir/stripe/PaymentConnectors/List Connectors by MID/request.json", "postman/collection-dir/stripe/PaymentConnectors/Payment Connector - Create Multiple/Create First Connector/request.json", "postman/collection-dir/stripe/PaymentConnectors/Payment Connector - Create Multiple/Create Second Connector/request.json", "postman/collection-dir/stripe/PaymentConnectors/Payment Connector - Create/request.json", "postman/collection-dir/stripe/PaymentConnectors/Payment Connector - Retrieve/request.json", "postman/collection-dir/stripe/PaymentConnectors/Payment Connector - Update/request.json", "postman/collection-dir/stripe/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/stripe/QuickStart/Payment Connector - Update/request.json", "postman/collection-dir/trustpay/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/volt/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/wise/Flow Testcases/QuickStart/Payout Connector - Create/request.json", "postman/collection-dir/worldline/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/zen/Flow Testcases/QuickStart/Payment Connector - Create/request.json", "postman/collection-dir/zsl/Flow Testcases/QuickStart/Payment Connector - Create/request.json"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
to_state_code method of router is not updated so the implementation from hyperswitch_connectors needs to be used and the one from router is depreciated.
Note: Contains remaning European countries for ISO conversion
Note: hotfix against https://github.com/juspay/hyperswitch/pull/7278
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/utils.rs`
- `crates/router/src/connector/netcetera/netcetera_types.rs`
- `crates/router/src/connector/threedsecureio/transformers.rs`
- ... and 1 more files
**2. Configuration Files**
- `.typos.toml`
**3. Other**
- `crates/common_enums/src/enums.rs`
**Code Patterns Applied:**
- Implement new functions (9 changes)
- Extend existing types with new fields (9 changes)
**Detailed Identifier Changes:**
Commit f63d7800:
Files to modify:
**crates/common_enums/src/enums.rs**
Modify existing code
**crates/hyperswitch_connectors/src/utils.rs**
Modify existing code
**crates/router/src/connector/netcetera/netcetera_types.rs**
Modify existing code
**crates/router/src/connector/threedsecureio/transformers.rs**
Modify existing code
**crates/router/src/connector/utils.rs**
Modify existing code
|
{"pr_number": 7303, "pr_title": "refactor(utils): use to_state_code of hyperswitch_connectors in router", "merged_at": "2025-02-19T09:27:16Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "connector"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/netcetera/netcetera_types.rs", "crates/router/src/connector/threedsecureio/transformers.rs", "crates/router/src/connector/utils.rs"], "config": [".typos.toml"], "other": ["crates/common_enums/src/enums.rs"]}, "change_types": {"functions_added": 9, "enums_added": 9, "fields_added": 9, "imports_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Add type for fields in juspay threeds server
## 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)?
-->
Complied wasm in local terminal
<img width="917" height="396" alt="Screenshot 2025-10-08 at 3 48 48 PM" src="https://github.com/user-attachments/assets/380e43c9-43a1-4133-9be3-688b88c38208" />
## 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 **connector_integration** 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`
|
{"pr_number": 9744, "pr_title": "fix(core): Add type for fields in juspay threeds server", "merged_at": "2025-10-08T12:43:54Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"connectors": ["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"}
|
This PR introduces the following struct fix for netcetera authentication response since `message_extension` is recieved in Netcetera's authentication response ARes and not in AReq.
**Current structure**
```
NetceteraAuthenticationSuccessResponse{
....
authentication_request: {
message_extension: Option<serde_json::Value>,
....
}
...
}
```
**Correct structure**
```
NetceteraAuthenticationSuccessResponse{
....
authentication_response: {
message_extension: Option<serde_json::Value>,
....
}
...
}
```
[Ref](https://docs.3dsecure.io/3dsv2/specification_231.html#attr-ARes-messageExtension) - 3dsecure.io docs highlights **message_extension**'s correct placement i.e ARes. Adding reference to 3dsecure.io docs since Netcetera documentation is not super clear.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (1 changes)
|
{"pr_number": 9077, "pr_title": "fix(connector): [NETCETERA] Add fix for netcetera authentication response", "merged_at": "2025-09-02T13:35:01Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Implement hashing in PaymentAttemptUpdate conversion by using ConnectorTransactionId::form_id_and_data, setting connector_payment_id to the hash and preserving the original in connector_payment_data.For worldpay connector_payment_id should be less then 128 so after this original payment_id will be stored in connector_payment_data and hased id will be stored in connector_payment_id that is less than 128.
|
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`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs`
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (204 changes)
**Detailed Identifier Changes:**
Commit 97ae3203:
Files to modify:
**crates/diesel_models/src/payment_attempt.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/payments/payment_attempt.rs**
Modify existing code
|
{"pr_number": 9017, "pr_title": "fix(payments): automatic connector_payment_id hashing in v2 if length > 128", "merged_at": "2025-09-01T14:34:13Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"database": ["crates/diesel_models/src/payment_attempt.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_attempt.rs"]}, "change_types": {"functions_added": 1, "fields_added": 204}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Currently we are not marking users as verified if the user comes from SSO and there is no other way to verify if SSO is the only login method that is available.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/user.rs`
**Code Patterns Applied:**
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 6694, "pr_title": "fix(users): Mark user as verified if user logins from SSO", "merged_at": "2024-11-29T10:52:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"core_business": ["crates/router/src/core/user.rs"]}, "change_types": {"conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
`Paypal` wallet added in `BRAINTREE`.
API contract changes are done in `PaypalSessionTokenResponse` because we would need more details (client_token, amount, currency, etc) in session token response as mentioned in the test cases.
|
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/flows/session_flow.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. Other**
- `api-reference/v1/openapi_spec_v1.json`
- `api-reference/v2/openapi_spec_v2.json`
- `crates/openapi/src/openapi.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 (27 changes)
**Detailed Identifier Changes:**
Commit f71090a9:
Files to modify:
**crates/api_models/src/payments.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/braintree.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/braintree/transformers.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/payments/flows/session_flow.rs**
Modify existing code
|
{"pr_number": 8984, "pr_title": "feat(connector): [BRAINTREE] Paypal wallet added", "merged_at": "2025-10-09T15:25:24Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "core_business": ["crates/router/src/core/payments/flows/session_flow.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/braintree.rs", "crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs"]}, "change_types": {"structs_added": 1, "functions_added": 1, "enums_added": 2, "fields_added": 27}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
This API updates the lock status of customer token to unlock in revenue recovery.
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. API Request/Response Models**
- `crates/api_models/src/revenue_recovery_data_backfill.rs`
**2. Core Business Logic**
- `crates/router/src/core/revenue_recovery_data_backfill.rs`
**3. Other**
- `crates/router/src/routes/app.rs`
- `crates/router/src/routes/revenue_recovery_data_backfill.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (4 changes)
- Extend existing types with new fields (6 changes)
**Detailed Identifier Changes:**
Commit 1d23e28a:
Files to modify:
**crates/api_models/src/revenue_recovery_data_backfill.rs**
Modify existing code
**crates/router/src/core/revenue_recovery_data_backfill.rs**
Modify existing code
**crates/router/src/routes/app.rs**
Modify existing code
**crates/router/src/routes/revenue_recovery_data_backfill.rs**
Modify existing code
|
{"pr_number": 9403, "pr_title": "feat(revenue_recovery): Implement redis API to update the lock status for connector customer id", "merged_at": "2025-09-18T15:34:30Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "user", "token"]}, "hierarchy": {"api_models": ["crates/api_models/src/revenue_recovery_data_backfill.rs"], "core_business": ["crates/router/src/core/revenue_recovery_data_backfill.rs"], "other": ["crates/router/src/routes/app.rs", "crates/router/src/routes/revenue_recovery_data_backfill.rs"]}, "change_types": {"structs_added": 1, "functions_added": 4, "fields_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Loomio webhooks for payments
## payment request
```json
{
"amount": 1500,
"currency": "CAD",
"confirm": true,
"capture_method": "automatic",
"customer_id": "aaaa",
"authentication_type": "three_ds",
"payment_method": "bank_redirect",
"payment_method_type": "interac",
"payment_method_data": {
"bank_redirect": {
"interac": {}
}
},
"billing": {
"address": {
"line1": "Singapore Changi Airport. 2nd flr",
"line2": "",
"line3": "",
"city": "Downtown Core",
"state": "Central Indiana America",
"zip": "039393",
"country": "SG",
"first_name": "Swangi",
"last_name": "Kumari"
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": "swangi.kumari@juspay.in"
},
"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": "127.0.0.1"
}
}
```
## response
```json
{
"payment_id": "pay_J3xaVGqCX1QbnGKyQoCQ",
"merchant_id": "merchant_1759821555",
"status": "requires_customer_action",
"amount": 1500,
"net_amount": 1500,
"shipping_cost": null,
"amount_capturable": 1500,
"amount_received": null,
"connector": "loonio",
"client_secret": "pay_J3xaVGqCX1QbnGKyQoCQ_secret_IfvZo54PdakCzmi10muX",
"created": "2025-10-07T09:15:47.349Z",
"currency": "CAD",
"customer_id": "aaaa",
"customer": {
"id": "aaaa",
"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": "bank_redirect",
"payment_method_data": {
"bank_redirect": {
"type": "BankRedirectResponse",
"bank_name": null
},
"billing": null
},
"payment_token": null,
"shipping": null,
"billing": {
"address": {
"city": "Downtown Core",
"country": "SG",
"line1": "Singapore Changi Airport. 2nd flr",
"line2": "",
"line3": "",
"zip": "039393",
"state": "Central Indiana America",
"first_name": "Swangi",
"last_name": "Kumari",
"origin_zip": null
},
"phone": {
"number": "8056594427",
"country_code": "+91"
},
"email": "swangi.kumari@juspay.in"
},
"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": {
"type": "redirect_to_url",
"redirect_to_url": "http://localhost:8080/payments/redirect/pay_J3xaVGqCX1QbnGKyQoCQ/merchant_1759821555/pay_J3xaVGqCX1QbnGKyQoCQ_1"
},
"cancellation_reason": null,
"error_code": null,
"error_message": null,
"unified_code": null,
"unified_message": null,
"payment_experience": null,
"payment_method_type": "interac",
"connector_label": null,
"business_country": null,
"business_label": "default",
"business_sub_label": null,
"allowed_payment_method_types": null,
"ephemeral_key": {
"customer_id": "aaaa",
"created_at": 1759828547,
"expires": 1759832147,
"secret": "epk_dfb1c2f173f34c4da48ee0a98d48051f"
},
"manual_retry_allowed": null,
"connector_transaction_id": "pay_J3xaVGqCX1QbnGKyQoCQ_1",
"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": null,
"payment_link": null,
"profile_id": "pro_MLEtbytGk3haqiqlaheV",
"surcharge_details": null,
"attempt_count": 1,
"merchant_decision": null,
"merchant_connector_id": "mca_UKE4wkdWmZVIs8oRKgbo",
"incremental_authorization_allowed": false,
"authorization_count": null,
"incremental_authorizations": null,
"external_authentication_details": null,
"external_3ds_authentication_attempted": false,
"expires_on": "2025-10-07T09:30:47.349Z",
"fingerprint": null,
"browser_info": {
"language": "nl-NL",
"time_zone": 0,
"ip_address": "127.0.0.1",
"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": null,
"network_transaction_id": null,
"payment_method_status": null,
"updated": "2025-10-07T09:15:48.782Z",
"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": null,
"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
}
```
## make redirect
<img width="1708" height="1115" alt="Screenshot 2025-10-07 at 2 47 11 PM" src="https://github.com/user-attachments/assets/35ea68fa-8b86-48ef-9600-64916ebdaf2b" />
## the status will change when webhook reaches without force psync
<img width="1178" height="678" alt="Screenshot 2025-10-07 at 2 47 43 PM" src="https://github.com/user-attachments/assets/254d2a5f-eab1-4b15-988a-a353338d1536" />
## webhook source verificaiton = false
<img width="1085" height="311" alt="Screenshot 2025-10-07 at 6 15 09 PM" src="https://github.com/user-attachments/assets/0f21632f-0927-47ac-95b4-4593dcbb1633" />
<img width="648" height="246" alt="Screenshot 2025-10-07 at 6 15 21 PM" src="https://github.com/user-attachments/assets/1871af58-ce58-4c78-97d3-7c1502ab77ba" />
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/hyperswitch_connectors/src/connectors/loonio.rs`
- `crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (4 changes)
- Extend existing types with new fields (37 changes)
**Detailed Identifier Changes:**
Commit 27a7845a:
Files to modify:
**crates/hyperswitch_connectors/src/connectors/loonio.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs**
Modify existing code
|
{"pr_number": 9707, "pr_title": "feat(connector): Loonio Webhooks", "merged_at": "2025-10-07T17:37:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/loonio.rs", "crates/hyperswitch_connectors/src/connectors/loonio/transformers.rs"]}, "change_types": {"structs_added": 1, "functions_added": 4, "enums_added": 3, "fields_added": 37, "imports_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
Described in #6719
This PR introduces below changes
- `get_network_txn_id` fn in IncomingWebhook trait
- implement this new fn for Adyen for retrieving the network txn ID
- consume this fn in core flows for updating `network_transaction_id` in `payment_methods` table
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Database Layer (Queries & Schema)**
- `crates/diesel_models/src/payment_method.rs`
**2. Domain Models (Business Logic Types)**
- `crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs`
**3. Core Business Logic**
- `crates/router/src/core/webhooks/incoming.rs`
**4. External Connector Integration**
- `crates/router/src/connector/adyen.rs`
- `crates/router/src/connector/adyen/transformers.rs`
- `crates/router/src/services/connector_integration_interface.rs`
**5. Other**
- `crates/hyperswitch_interfaces/src/webhooks.rs`
**Code Patterns Applied:**
- Define new data structures (1 changes)
- Implement new functions (5 changes)
- Extend existing types with new fields (27 changes)
- Add conditional logic for feature flags or filtering (3 changes)
**Detailed Identifier Changes:**
Commit 871a3637:
Files to modify:
**crates/diesel_models/src/payment_method.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs**
Modify existing code
**crates/hyperswitch_interfaces/src/webhooks.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/core/webhooks/incoming.rs**
Modify existing code
**crates/router/src/services/connector_integration_interface.rs**
Modify existing code
|
{"pr_number": 6738, "pr_title": "feat(webhooks): adyen - consume and update connector's network_transaction_id in payment_methods", "merged_at": "2024-12-05T13:34:59Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"database": ["crates/diesel_models/src/payment_method.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_flow_types/webhooks.rs"], "core_business": ["crates/router/src/core/webhooks/incoming.rs"], "connectors": ["crates/router/src/connector/adyen.rs", "crates/router/src/connector/adyen/transformers.rs", "crates/router/src/services/connector_integration_interface.rs"], "other": ["crates/hyperswitch_interfaces/src/webhooks.rs"]}, "change_types": {"structs_added": 1, "functions_added": 5, "fields_added": 27, "imports_added": 1, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
- Add missing countries and currencies for nuvei
|
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 2 more files
|
{"pr_number": 9563, "pr_title": "fix(nuvei): Update countries list for nuvei", "merged_at": "2025-09-25T16:22:29Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "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/development.toml", "config/docker_compose.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
Add fallback connectors to the list of eligible connectors for routing instead of connectors configured in the active routing rules
this PR reverts https://github.com/juspay/hyperswitch/pull/7921
Link for main branch revert PR - https://github.com/juspay/hyperswitch/pull/8207
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/payments.rs`
**Detailed Identifier Changes:**
Commit 18262562:
Files to modify:
**crates/router/src/core/payments.rs**
Modify existing code
|
{"pr_number": 8259, "pr_title": "revert(routing): Add connectors from current active routing algorithm before adding fallback connectors", "merged_at": "2025-06-06T07:51:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Now that `analytics` depends on `currency_conversion` crate after this [PR](#6418), we need to include instructions in `analytics` documentation to set up this service.
## Fixes #6513
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Other**
- `crates/analytics/docs/README.md`
|
{"pr_number": 6516, "pr_title": "docs(analytics): add setup instructions for currency_conversion service", "merged_at": "2024-11-13T09:54:17Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": ["crates/analytics/docs/README.md"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
make `endpoint_prefix` optional in three_ds_metadata for unified_authentication_service
Main PR - https://github.com/juspay/hyperswitch/pull/9717
|
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/unified_authentication_service.rs`
**2. Core Business Logic**
- `crates/router/src/core/payments/operations/payment_confirm.rs`
- `crates/router/src/core/unified_authentication_service.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (3 changes)
|
{"pr_number": 9719, "pr_title": "fix(router): make `endpoint_prefix` optional in three_ds_metadata for unified_authentication_service", "merged_at": "2025-10-07T13:58:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs"], "core_business": ["crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/unified_authentication_service.rs"]}, "change_types": {"fields_added": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Added Session Token Call Testcases in cypress
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. Tests**
- `.github/workflows/cypress-tests-runner.yml`
- `cypress-tests/cypress/e2e/PaymentTest/00024-SessionCall.cy.js`
- `cypress-tests/cypress/e2e/PaymentUtils/Commons.js`
- ... and 3 more files
**Code Patterns Applied:**
- Extend existing types with new fields (48 changes)
- Add conditional logic for feature flags or filtering (3 changes)
|
{"pr_number": 6683, "pr_title": "ci(cypress): Add Session Token Testcases", "merged_at": "2025-01-06T10:21:39Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "session", "token"]}, "hierarchy": {"tests": [".github/workflows/cypress-tests-runner.yml", "cypress-tests/cypress/e2e/PaymentTest/00024-SessionCall.cy.js", "cypress-tests/cypress/e2e/PaymentUtils/Commons.js", "cypress-tests/cypress/e2e/PaymentUtils/Cybersource.js", "cypress-tests/cypress/e2e/PaymentUtils/Stripe.js", "cypress-tests/cypress/support/commands.js"]}, "change_types": {"fields_added": 48, "conditionals_added": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
This PR adds below dynamic required fields for processing Worldpay payments -
- address.line1
- address.city
- address.country
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/router/src/configs/defaults/payment_connector_required_fields.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (12 changes)
|
{"pr_number": 7002, "pr_title": "chore(dynamic-fields): [Worldpay] update dynamic fields for payments", "merged_at": "2025-01-08T08:15:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"connectors": ["crates/router/src/configs/defaults/payment_connector_required_fields.rs"]}, "change_types": {"fields_added": 12}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
Described in the linked #6719
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `crates/router/src/connector/adyen.rs`
- `crates/router/src/connector/adyen/transformers.rs`
**Code Patterns Applied:**
- Implement new functions (1 changes)
- Extend existing types with new fields (3 changes)
|
{"pr_number": 6720, "pr_title": "fix(connector): adyen - propagate connector mandate details in incoming webhooks", "merged_at": "2024-12-02T18:30:38Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector", "webhook"]}, "hierarchy": {"connectors": ["crates/router/src/connector/adyen.rs", "crates/router/src/connector/adyen/transformers.rs"]}, "change_types": {"functions_added": 1, "fields_added": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
- pass external vault proxy metadata to uce for injector consumption
- it is passed in header as x-external-vault-metadata
- base64 encoded for parsing compatibility
|
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/merchant_connector_account.rs`
**2. Core Business Logic**
- `crates/router/src/core/payments.rs`
- `crates/router/src/core/payments/flows.rs`
- `crates/router/src/core/payments/flows/authorize_flow.rs`
- ... and 2 more files
**3. External Connector Integration**
- `crates/external_services/src/grpc_client/unified_connector_service.rs`
**4. Other**
- `crates/external_services/src/lib.rs`
**Code Patterns Applied:**
- Define new data structures (2 changes)
- Implement new functions (5 changes)
- Extend existing types with new fields (36 changes)
- Add conditional logic for feature flags or filtering (2 changes)
**Detailed Identifier Changes:**
Commit c02d8b9b:
Files to modify:
**crates/external_services/src/grpc_client/unified_connector_service.rs**
Modify existing code
**crates/external_services/src/lib.rs**
Modify existing code
**crates/hyperswitch_domain_models/src/merchant_connector_account.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/flows/authorize_flow.rs**
Modify existing code
**crates/router/src/core/payments/flows/external_proxy_flow.rs**
Modify existing code
**crates/router/src/core/unified_connector_service.rs**
Modify existing code
|
{"pr_number": 9108, "pr_title": "feat(core): [proxy payments] send external vault proxy metadata to UCS", "merged_at": "2025-09-01T11:21:32Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/merchant_connector_account.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows.rs", "crates/router/src/core/payments/flows/authorize_flow.rs", "crates/router/src/core/payments/flows/external_proxy_flow.rs", "crates/router/src/core/unified_connector_service.rs"], "connectors": ["crates/external_services/src/grpc_client/unified_connector_service.rs"], "other": ["crates/external_services/src/lib.rs"]}, "change_types": {"structs_added": 2, "functions_added": 5, "enums_added": 1, "fields_added": 36, "imports_added": 4, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
URLs are removed from config for Hyperswitch vault
|
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/env_specific.toml`
- `config/deployments/production.toml`
- ... and 3 more files
|
{"pr_number": 8276, "pr_title": "refactor(config): redact config urls for hyperswitch vault", "merged_at": "2025-06-07T06:56:35Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/env_specific.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 -->
In this PR we will
1. Add display_name field to connector feature api
2. Rename non_threeDs to no_threeDs
## 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)?
-->
List the connector feature and check if it contains display name and no_threeds instead of threeds
```
curl --location 'http://localhost:8080/feature_matrix' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json'
```
Response
```
{
"connector_count": 3,
"connectors": [
{
"name": "BAMBORA",
"display_name": "Bambora",
"description": "Bambora is a leading online payment provider in Canada and United States.",
"category": "payment_gateway",
"supported_payment_methods": [
{
"payment_method": "card",
"payment_method_type": "credit",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"three_ds": "supported",
"no_three_ds": "supported",
"supported_card_networks": [
"Visa",
"Mastercard",
"AmericanExpress",
"Discover",
"JCB",
"DinersClub"
],
"supported_countries": [
"CA",
"US"
],
"supported_currencies": [
"USD"
]
}
],
"supported_webhook_flows": []
},
{
"name": "DEUTSCHEBANK",
"display_name": "Deutsche Bank",
"description": "Deutsche Bank is a German multinational investment bank and financial services company ",
"category": "bank_acquirer",
"supported_payment_methods": [
{
"payment_method": "card",
"payment_method_type": "credit",
"mandates": "not_supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"three_ds": "supported",
"no_three_ds": "not_supported",
"supported_card_networks": [
"Visa",
"Mastercard"
],
"supported_countries": null,
"supported_currencies": null
},
{
"payment_method": "bank_debit",
"payment_method_type": "sepa",
"mandates": "supported",
"refunds": "supported",
"supported_capture_methods": [
"automatic",
"manual",
"sequential_automatic"
],
"supported_countries": null,
"supported_currencies": null
}
],
"supported_webhook_flows": []
},
{
"name": "ZSL",
"display_name": "ZSL",
"description": "Zsl is a payment gateway operating in China, specializing in facilitating local bank transfers",
"category": "payment_gateway",
"supported_payment_methods": [
{
"payment_method": "bank_transfer",
"payment_method_type": "local_bank_transfer",
"mandates": "not_supported",
"refunds": "not_supported",
"supported_capture_methods": [
"automatic"
],
"supported_countries": [
"CN"
],
"supported_currencies": [
"CNY"
]
}
],
"supported_webhook_flows": []
}
]
}
```
## 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 **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/router/src/routes/feature_matrix.rs`
**Code Patterns Applied:**
- Extend existing types with new fields (13 changes)
|
{"pr_number": 7121, "pr_title": "refactor(router): add display_name field to connector feature api ", "merged_at": "2025-02-07T08:29:19Z", "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/router/src/routes/feature_matrix.rs"]}, "change_types": {"fields_added": 13}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
|
<!-- Describe your changes in detail -->
original pr's
https://github.com/juspay/hyperswitch/pull/7441
https://github.com/juspay/hyperswitch/pull/7424
## 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 **validation** feature, you'll need to modify these architectural layers:
**1. Core Business Logic**
- `crates/router/src/core/admin.rs`
- `crates/router/src/core/authentication.rs`
- `crates/router/src/core/authentication/transformers.rs`
- ... and 5 more files
**2. External Connector Integration**
- `crates/common_enums/src/connector_enums.rs`
- `crates/connector_configs/src/connector.rs`
- `crates/connector_configs/toml/development.toml`
- ... and 11 more files
**3. Type Definitions**
- `crates/router/src/types/api.rs`
- `crates/router/src/types/api/authentication.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
**6. Other**
- `crates/common_enums/src/enums.rs`
**Code Patterns Applied:**
- Define new data structures (10 changes)
- Implement new functions (79 changes)
- Extend existing types with new fields (166 changes)
**Detailed Identifier Changes:**
Commit fc160caf:
Files to modify:
**crates/common_enums/src/connector_enums.rs**
Modify existing code
**crates/common_enums/src/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/juspaythreedsserver.rs**
Modify existing code
**crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/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/authentication.rs**
Modify existing code
**crates/router/src/core/authentication/transformers.rs**
Modify existing code
**crates/router/src/core/authentication/utils.rs**
Modify existing code
**crates/router/src/core/payments.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/core/payments/operations/payment_confirm.rs**
Modify existing code
**crates/router/src/types/api.rs**
Modify existing code
**crates/router/src/types/api/authentication.rs**
Modify existing code
**crates/router/src/types/transformers.rs**
Modify existing code
**crates/router/tests/connectors/juspaythreedsserver.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": 7446, "pr_title": "feat(connector): Added ThreeDs server integration template pr", "merged_at": "2025-03-06T12:14:51Z", "intent": {"feature_type": "validation", "action": "add_feature", "entities": []}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/authentication.rs", "crates/router/src/core/authentication/transformers.rs", "crates/router/src/core/authentication/utils.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs", "crates/router/src/core/payments/operations/payment_confirm.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/sandbox.toml", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/juspaythreedsserver.rs", "crates/hyperswitch_connectors/src/connectors/juspaythreedsserver/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/juspaythreedsserver.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/api/authentication.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"], "other": ["crates/common_enums/src/enums.rs"]}, "change_types": {"structs_added": 10, "functions_added": 79, "enums_added": 2, "fields_added": 166, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
|
<!-- Describe your changes in detail -->
Removed old add_connector.md file
|
To implement this **search_filter** feature, you'll need to modify these architectural layers:
**1. External Connector Integration**
- `add_connector.md`
- `add_connector_updated.md`
**Code Patterns Applied:**
- Define new data structures (4 changes)
- Implement new functions (13 changes)
- Extend existing types with new fields (78 changes)
- Add conditional logic for feature flags or filtering (1 changes)
|
{"pr_number": 8143, "pr_title": "chore(docs): remove old add_connector.md file", "merged_at": "2025-05-29T10:25:39Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"connectors": ["add_connector.md", "add_connector_updated.md"]}, "change_types": {"structs_added": 4, "functions_added": 13, "enums_added": 1, "fields_added": 78, "conditionals_added": 1}, "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.