prompt
stringlengths
6
90.9k
response
stringlengths
121
18.6k
metadata
stringlengths
314
42.3k
<!-- Describe your changes in detail --> Added Support for Domestic Card Network Added Mandatory Fields for 3ds -transactions
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_data.rs` **2. Core Business Logic** - `crates/router/src/core/payments/flows.rs` - `crates/router/src/core/payments/flows/complete_authorize_flow.rs` - `crates/router/src/core/payments/helpers.rs` - ... and 1 more files **3. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs` - ... and 3 more files **4. Type Definitions** - `crates/router/src/types.rs` **5. Tests** - `cypress-tests/cypress/e2e/configs/Payment/Hipay.js` **Code Patterns Applied:** - Define new data structures (2 changes) - Implement new functions (3 changes) - Extend existing types with new fields (143 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit 446716ee: Files to modify: **crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data.rs** Modify existing code **crates/router/src/configs/defaults/payment_connector_required_fields.rs** Modify existing code **crates/router/src/connector/stripe/transformers.rs** Modify existing code **crates/router/src/core/payments/flows.rs** Modify existing code **crates/router/src/core/payments/flows/complete_authorize_flow.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Modify existing code **crates/router/src/core/payments/tokenization.rs** Modify existing code **crates/router/src/types.rs** Modify existing code
{"pr_number": 7603, "pr_title": "fix(connectors): [Hipay] Fix 3DS Mandatory Fields", "merged_at": "2025-04-01T18:13:59Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "card", "transaction"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_data.rs"], "core_business": ["crates/router/src/core/payments/flows.rs", "crates/router/src/core/payments/flows/complete_authorize_flow.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/tokenization.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs", "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/connectors/hipay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs", "crates/router/src/connector/stripe/transformers.rs"], "types": ["crates/router/src/types.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/Hipay.js"]}, "change_types": {"structs_added": 2, "functions_added": 3, "fields_added": 143, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This PR fixes two critical issues in Adyen Platform connector and payout core flow error handling: 1. **Enhanced error message construction**: Modified `build_error_response` in `crates/hyperswitch_connectors/src/connectors/adyenplatform.rs` to include the `detail` field when `invalid_fields` is not present. This provides users with comprehensive error information, especially for business logic errors where Adyen provides detailed explanations. 2. **Fixed improper PayoutFailed usage**: Removed multiple instances of `PayoutFailed` from core payouts flow that were being thrown after connector calls. This was bypassing proper connector error handling and preventing detailed error messages from reaching the API response.
To implement this **payment** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payouts.rs` **2. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/adyenplatform.rs` - `crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs` **Code Patterns Applied:** - Extend existing types with new fields (19 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit 1c0fc496: Files to modify: **crates/hyperswitch_connectors/src/connectors/adyenplatform.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs** Modify existing code **crates/router/src/core/payouts.rs** Modify existing code
{"pr_number": 9384, "pr_title": "fix(connector): [adyenplatform] update error mapping", "merged_at": "2025-09-18T14:31:52Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "merchant", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/payouts.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/adyenplatform.rs", "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs"]}, "change_types": {"fields_added": 19, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> add proxy card as a valid payment method subtype for cards
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`
{"pr_number": 9136, "pr_title": "fix(payment_method): add validation for proxy card details", "merged_at": "2025-09-01T15:28:44Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "card"]}, "hierarchy": {"api_models": ["crates/api_models/src/payment_methods.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> This PR forces users to use 2FA in production.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Configuration Files** - `config/deployments/production.toml`
{"pr_number": 6596, "pr_title": "refactor(users): Force 2FA in production environment", "merged_at": "2024-11-19T13:18:51Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"config": ["config/deployments/production.toml"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> This PR marks refunds as supported by JPMorgan connector. Although this does not affect refund flow, the feature matrix marking is wrong.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/jpmorgan.rs` **Code Patterns Applied:** - Extend existing types with new fields (2 changes)
{"pr_number": 8699, "pr_title": "fix(feature_matrix): refunds are supported by jpmorgan", "merged_at": "2025-07-24T13:32:53Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "refund", "connector"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/jpmorgan.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
This PR contains changes to - update status mapping for Worldpay - payments and refunds - add required fields for Worldpay - fix refund retrieve bug for Worldpay Described in detail - #6316 point # 5
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Database Layer (Queries & Schema)** - `crates/diesel_models/src/query/payment_attempt.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` **3. Core Business Logic** - `crates/router/src/core/refunds.rs` **4. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/worldpay.rs` - `crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs` - `crates/router/src/configs/defaults/payment_connector_required_fields.rs` **5. Tests** - `cypress-tests/cypress/e2e/PaymentUtils/WorldPay.js` - `cypress-tests/cypress/fixtures/confirm-body.json` - `cypress-tests/cypress/fixtures/create-confirm-body.json` - ... and 5 more files **6. Other** - `crates/router/src/db/kafka_store.rs` - `crates/storage_impl/src/mock_db/payment_attempt.rs` - `crates/storage_impl/src/payments/payment_attempt.rs` **Code Patterns Applied:** - Implement new functions (2 changes) - Extend existing types with new fields (243 changes) - Add conditional logic for feature flags or filtering (2 changes) - Modify database queries (4 changes) **Detailed Identifier Changes:** Commit 5a98ed65: Files to modify: **crates/diesel_models/src/query/payment_attempt.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/router/src/configs/defaults/payment_connector_required_fields.rs** Modify existing code **crates/router/src/core/refunds.rs** Modify existing code **crates/router/src/db/kafka_store.rs** Modify existing code **crates/storage_impl/src/mock_db/payment_attempt.rs** Modify existing code **crates/storage_impl/src/payments/payment_attempt.rs** Modify existing code
{"pr_number": 6468, "pr_title": "feat(connector): worldpay - add dynamic fields and update terminal status mapping", "merged_at": "2024-11-28T14:50:09Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "refund"]}, "hierarchy": {"database": ["crates/diesel_models/src/query/payment_attempt.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_attempt.rs"], "core_business": ["crates/router/src/core/refunds.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/worldpay.rs", "crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs"], "tests": ["cypress-tests/cypress/e2e/PaymentUtils/WorldPay.js", "cypress-tests/cypress/fixtures/confirm-body.json", "cypress-tests/cypress/fixtures/create-confirm-body.json", "cypress-tests/cypress/fixtures/create-mandate-cit.json", "cypress-tests/cypress/fixtures/create-mandate-mit.json", "cypress-tests/cypress/fixtures/create-pm-id-mit.json", "cypress-tests/cypress/fixtures/save-card-confirm-body.json", "cypress-tests/cypress/support/commands.js"], "other": ["crates/router/src/db/kafka_store.rs", "crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/payments/payment_attempt.rs"]}, "change_types": {"functions_added": 2, "fields_added": 243, "conditionals_added": 2, "database_queries": 4}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
This PR adds a diesel migration for including below variants in Currency ENUM in database ```AFN BTN CDF ERN IRR ISK KPW SDG SYP TJS TMT ZMW ZWL ```
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Other** - `migrations/2025-01-03-084904_add_currencies/down.sql` - `migrations/2025-01-03-084904_add_currencies/up.sql` **Code Patterns Applied:** - Modify database queries (4 changes)
{"pr_number": 6980, "pr_title": "chore: add migrations for Currency type in DB", "merged_at": "2025-01-03T11:24:28Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": ["migrations/2025-01-03-084904_add_currencies/down.sql", "migrations/2025-01-03-084904_add_currencies/up.sql"]}, "change_types": {"database_queries": 4}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> https://github.com/juspay/hyperswitch/pull/6911 Fix required fileds for wallet mandate payments for cybersource and bank of america.
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 (8 changes)
{"pr_number": 6921, "pr_title": "fix(connector): [Cybersource] fix the required fields for wallet mandate payments", "merged_at": "2024-12-23T14:13:00Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/router/src/configs/defaults/payment_connector_required_fields.rs"]}, "change_types": {"fields_added": 8}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Hotfix for https://github.com/juspay/hyperswitch/pull/8219 Add worldpay vantiv as a payment connector. Integrated non 3ds cards flow. > Note: Report Group for each transaction is collected from the payment's metadata. If not provided - then the default report group provided in the MCA is used > Note: Currency for the transaction is not passed in the payment request to the connector. As the connector process payments based on the creds. The currency for a transaction is not included in the payment request sent to the connector. Instead, the connector determines the currency based on the credentials (merchant account) used for processing. Pass the merchant_config_currency field in the MCA metadata > Note: Performing a psync after a void, capture, or refund may return an incorrect status. This is because Worldpay Vantiv does not support retrieving the status of void or capture operations, and the response will reflect the status of the original authorization instead. MCA Metadata - required ``` "metadata": { "report_group" : "Hello", "merchant_config_currency":"USD" } ``` Payments Metadata - optional ``` "metadata": { "report_group" : "Hello" } ``` ## 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)? --> Find the PR for cypress testcases here https://github.com/juspay/hyperswitch/pull/8234 <details> <summary>MCA Create</summary> > Note: Add Metadata ``` curl --location 'http://localhost:8080/account/postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \ --data-raw '{ "connector_type": "payment_processor", "connector_name": "worldpayvantiv", "business_country": "US", "business_label": "default", "connector_account_details": { "auth_type": "SignatureKey", "api_key": "***********8", "key1": "***********", "api_secret": "********" }, "test_mode": false, "disabled": false, "payment_methods_enabled": [ { "payment_method": "card", "payment_method_types": [ { "payment_method_type": "credit", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "card", "payment_method_types": [ { "payment_method_type": "debit", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] } ], "metadata": { "report_group" : "Hello", "merchant_config_currency":"EUR" } }' ``` Response ``` {"connector_type":"payment_processor","connector_name":"worldpayvantiv","connector_label":"worldpayvantiv_US_default","merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","profile_id":"pro_sKicDP92EtTBg8xTcMvo","connector_account_details":{"auth_type":"SignatureKey","api_key":"YA****************AG","key1":"e@************{S","api_secret":"VI*******ST"},"payment_methods_enabled":[{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"affirm","payment_experience":"redirect_to_url","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"afterpay_clearpay","payment_experience":"redirect_to_url","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"klarna","payment_experience":"redirect_to_url","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"pay_later","payment_method_types":[{"payment_method_type":"klarna","payment_experience":"invoke_sdk_client","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"bank_redirect","payment_method_types":[{"payment_method_type":"ideal","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"bancontact_card","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"przelewy24","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"giropay","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"sofort","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"eps","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"bank_debit","payment_method_types":[{"payment_method_type":"ach","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"becs","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"sepa","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"bacs","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"bank_transfer","payment_method_types":[{"payment_method_type":"ach","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"bacs","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true},{"payment_method_type":"sepa","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"card","payment_method_types":[{"payment_method_type":"credit","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"card","payment_method_types":[{"payment_method_type":"debit","payment_experience":null,"card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"wallet","payment_method_types":[{"payment_method_type":"apple_pay","payment_experience":"invoke_sdk_client","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]},{"payment_method":"wallet","payment_method_types":[{"payment_method_type":"google_pay","payment_experience":"invoke_sdk_client","card_networks":null,"accepted_currencies":null,"accepted_countries":null,"minimum_amount":1,"maximum_amount":68607706,"recurring_enabled":true,"installment_payment_enabled":true}]}],"connector_webhook_details":null,"metadata":{"google_pay":{"merchant_info":{"merchant_name":"Narayan Bhat"},"allowed_payment_methods":[{"type":"CARD","parameters":{"allowed_auth_methods":["PAN_ONLY","CRYPTOGRAM_3DS"],"allowed_card_networks":["AMEX","DISCOVER","INTERAC","JCB","MASTERCARD","VISA"]},"tokenization_specification":{"type":"PAYMENT_GATEWAY","parameters":{"gateway":"example","gateway_merchant_id":"{{gateway_merchant_id}}"}}}]},"report_group":"Hello"},"test_mode":false,"disabled":false,"frm_configs":null,"business_country":"US","business_label":"default","business_sub_label":null,"applepay_verified_domains":null,"pm_auth_config":null,"status":"active","additional_merchant_data":null,"connector_wallets_details":null} ``` </details> <details> <summary> Payment - Automatic Capture</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \ --data-raw '{ "return_url": "https://example.com", "confirm": true, "customer_acceptance": null, "description": "Test Payment", "email": "hyperswitch_sdk_demo_id@gmail.com", "browser_info": { "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "language": "en-US", "color_depth": 32, "screen_height": 1117, "screen_width": 1728, "time_zone": -330, "java_enabled": true, "java_script_enabled": true, "ip_address": "127.0.0.1" }, "payment_method": "card", "amount": 5000, "authentication_type": "no_three_ds", "payment_method_data": { "card": { "card_number": "4470330769941000", "card_exp_month": "01", "card_exp_year": "27", "card_cvc": "123" } }, "currency": "EUR" }' ``` Response ``` {"payment_id":"pay_0DS5p4fWlx7o3YrJImLd","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"succeeded","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":5000,"connector":"worldpayvantiv","client_secret":"pay_0DS5p4fWlx7o3YrJImLd_secret_nxG6CBMA6jyl2GJCwLQo","created":"2025-06-03T10:00:29.128Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"hyperswitch_sdk_demo_id@gmail.com","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":null,"payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.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":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"309835803353942786","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_0DS5p4fWlx7o3YrJImLd","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:15:29.128Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:00:29.551Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null} ``` </details> <details> <summary> Payment - Manual Capture</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \ --data-raw '{ "return_url": "https://example.com", "confirm": true, "customer_acceptance": null, "description": "Test Payment", "capture_method": "manual", "email": "hyperswitch_sdk_demo_id@gmail.com", "browser_info": { "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "language": "en-US", "color_depth": 32, "screen_height": 1117, "screen_width": 1728, "time_zone": -330, "java_enabled": true, "java_script_enabled": true, "ip_address": "127.0.0.1" }, "payment_method": "card", "amount": 5000, "authentication_type": "no_three_ds", "payment_method_data": { "card": { "card_number": "4470330769941000", "card_exp_month": "01", "card_exp_year": "27", "card_cvc": "123" } }, "currency": "EUR" }' ``` Response ``` {"payment_id":"pay_w1skMTTK9fahKyRPaxFn","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"requires_capture","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":5000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_w1skMTTK9fahKyRPaxFn_secret_riJAK83eAjjroVnvZpom","created":"2025-06-03T10:01:55.966Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"hyperswitch_sdk_demo_id@gmail.com","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.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":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"037145635133998069","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_w1skMTTK9fahKyRPaxFn","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:16:55.966Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:01:56.302Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null} ``` Capture ``` curl --location 'http://localhost:8080/payments/pay_w1skMTTK9fahKyRPaxFn/capture' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \ --data '{ "amount_to_capture": 10, "statement_descriptor_name": "Joseph", "statement_descriptor_suffix": "JS" }' ``` Response ``` {"payment_id":"pay_w1skMTTK9fahKyRPaxFn","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"partially_captured","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":10,"connector":"worldpayvantiv","client_secret":"pay_w1skMTTK9fahKyRPaxFn_secret_riJAK83eAjjroVnvZpom","created":"2025-06-03T10:01:55.966Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"hyperswitch_sdk_demo_id@gmail.com","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.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":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"507635677444597930","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_w1skMTTK9fahKyRPaxFn","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:16:55.966Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:02:35.795Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null} ``` </details> <details> <summary> Payment - Manual and Void</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \ --data-raw '{ "return_url": "https://example.com", "confirm": true, "customer_acceptance": null, "description": "Test Payment", "capture_method": "manual", "email": "hyperswitch_sdk_demo_id@gmail.com", "browser_info": { "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "language": "en-US", "color_depth": 32, "screen_height": 1117, "screen_width": 1728, "time_zone": -330, "java_enabled": true, "java_script_enabled": true, "ip_address": "127.0.0.1" }, "payment_method": "card", "amount": 5000, "authentication_type": "no_three_ds", "payment_method_data": { "card": { "card_number": "4470330769941000", "card_exp_month": "01", "card_exp_year": "27", "card_cvc": "123" } }, "currency": "EUR" }' ``` Response ``` {"payment_id":"pay_1VguBrodKij7MjODXDUx","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"requires_capture","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":5000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_1VguBrodKij7MjODXDUx_secret_0NK6mTyzXyIksKIscFdg","created":"2025-06-03T10:03:40.285Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"hyperswitch_sdk_demo_id@gmail.com","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.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":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"811673778835197805","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_1VguBrodKij7MjODXDUx","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:18:40.285Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:03:40.653Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null} ``` Void ``` curl --location 'http://localhost:8080/payments/pay_qRZdNBi5Uqbub8TPwW4g/cancel' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \ --data '{"cancellation_reason":"requested_by_customer"}' ``` Response ``` {"payment_id":"pay_qRZdNBi5Uqbub8TPwW4g","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"cancelled","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_qRZdNBi5Uqbub8TPwW4g_secret_3pTlx8WqwVgOzNL13YRZ","created":"2025-06-03T10:11:25.750Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"hyperswitch_sdk_demo_id@gmail.com","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"manual","payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.com/","authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":"requested_by_customer","error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"274134101692557291","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_qRZdNBi5Uqbub8TPwW4g","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:26:25.750Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:11:35.087Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null} ``` </details> <details> <summary> Payment and Refund </summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \ --data-raw '{ "return_url": "https://example.com", "confirm": true, "customer_acceptance": null, "description": "Test Payment", "email": "hyperswitch_sdk_demo_id@gmail.com", "browser_info": { "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "language": "en-US", "color_depth": 32, "screen_height": 1117, "screen_width": 1728, "time_zone": -330, "java_enabled": true, "java_script_enabled": true, "ip_address": "127.0.0.1" }, "payment_method": "card", "amount": 5000, "authentication_type": "no_three_ds", "payment_method_data": { "card": { "card_number": "4470330769941000", "card_exp_month": "01", "card_exp_year": "27", "card_cvc": "123" } }, "currency": "EUR" }' ``` Response ``` {"payment_id":"pay_zRc36Lj42iKAOFxZgSxo","merchant_id":"postman_merchant_GHAction_0e943b6a-2420-40b9-9038-014526c6d5c4","status":"succeeded","amount":5000,"net_amount":5000,"shipping_cost":null,"amount_capturable":0,"amount_received":5000,"connector":"worldpayvantiv","client_secret":"pay_zRc36Lj42iKAOFxZgSxo_secret_IrmD7ftImm8kFInOIdmr","created":"2025-06-03T10:06:14.096Z","currency":"EUR","customer_id":null,"customer":{"id":null,"name":null,"email":"hyperswitch_sdk_demo_id@gmail.com","phone":null,"phone_country_code":null},"description":"Test Payment","refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":null,"payment_method":"card","payment_method_data":{"card":{"last4":"1000","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"447033","card_extended_bin":null,"card_exp_month":"01","card_exp_year":"27","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":"https://example.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":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"615543068718754950","frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":"pay_zRc36Lj42iKAOFxZgSxo","payment_link":null,"profile_id":"pro_sKicDP92EtTBg8xTcMvo","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-06-03T10:21:14.096Z","fingerprint":null,"browser_info":{"language":"en-US","time_zone":-330,"ip_address":"127.0.0.1","user_agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36","color_depth":32,"java_enabled":true,"screen_width":1728,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":1117,"java_script_enabled":true},"payment_method_id":null,"payment_method_status":null,"updated":"2025-06-03T10:06:14.472Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null} ``` Refund ``` curl --location 'http://localhost:8080/refunds' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_f5rS4tT7dwe1ASV4c9vswu99Exi1XhbtkQkq8WlQ4kJkwggWd1j5PMlyMOBRxC7X' \ --data '{ "payment_id": "pay_zRc36Lj42iKAOFxZgSxo", "amount": 10, "reason": "Customer returned product", "refund_type": "instant", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` Response ``` {"refund_id":"ref_u50Ektt5srnf8HobAdxT","payment_id":"pay_zRc36Lj42iKAOFxZgSxo","amount":10,"currency":"EUR","status":"succeeded","reason":"Customer returned product","metadata":{"udf1":"value1","new_customer":"true","login_date":"2019-09-10T10:11:12Z"},"error_message":null,"error_code":null,"unified_code":null,"unified_message":null,"created_at":"2025-06-03T10:06:40.909Z","updated_at":"2025-06-03T10:06:41.300Z","connector":"worldpayvantiv","profile_id":"pro_sKicDP92EtTBg8xTcMvo","merchant_connector_id":"mca_mDfUiiycKohM3lhqPzmF","split_refunds":{"stripe_split_refund":{"revert_platform_fee":true,"revert_transfer":true}},"issuer_error_code":null,"issuer_error_message":null} ``` </details> ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt --all` - [x] I addressed lints thrown by `cargo clippy` - [ ] I reviewed the submitted code - [ ] I added unit tests for my changes where possible
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/admin.rs` **2. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/connector_configs/src/connector.rs` - `crates/connector_configs/toml/development.toml` - ... and 7 more files **3. Type Definitions** - `crates/router/src/types/api.rs` - `crates/router/src/types/transformers.rs` **4. Tests** - `config/deployments/integration_test.toml` - `loadtest/config/development.toml` **5. Configuration Files** - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - `config/development.toml` - ... and 1 more files **6. Other** - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` **Code Patterns Applied:** - Define new data structures (21 changes) - Implement new functions (28 changes) - Extend existing types with new fields (516 changes) - Add conditional logic for feature flags or filtering (16 changes) **Detailed Identifier Changes:** Commit ec4b4479: 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/worldpayvantiv.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpayxml.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/payment_methods/src/configs/payment_connector_required_fields.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/types/api.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"pr_number": 8246, "pr_title": "feat(connectors): [Worldpayvantiv] add card support", "merged_at": "2025-06-05T06:25:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs", "crates/hyperswitch_connectors/src/connectors/worldpayxml.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs"], "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/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"structs_added": 21, "functions_added": 28, "enums_added": 4, "fields_added": 516, "imports_added": 6, "conditionals_added": 16}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> change amount conversion from MInorUnit to FloatMajorUnit hotfix raised against https://github.com/juspay/hyperswitch/pull/8991
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` - `crates/hyperswitch_connectors/src/connectors/wise/transformers.rs` **Code Patterns Applied:** - Implement new functions (3 changes) - Extend existing types with new fields (6 changes)
{"pr_number": 8995, "pr_title": "fix(connector): [Wise] change amount conversion unit", "merged_at": "2025-08-19T15:29:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/wise.rs", "crates/hyperswitch_connectors/src/connectors/wise/transformers.rs"]}, "change_types": {"functions_added": 3, "enums_added": 1, "fields_added": 6, "imports_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> This PR is about adding ApplePay Payment Method in Hyperswitch. This has both the Hyperswitch level Decryption Flow as well as the Connector Level Decryption Flow. NOTE: The connector returns an error as missing fields probably because this particular payment method is not enabled from the connector's end.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/connector_configs/toml/development.toml` - `crates/connector_configs/toml/production.toml` - `crates/connector_configs/toml/sandbox.toml` - ... and 2 more files **2. Tests** - `config/deployments/integration_test.toml` **3. Configuration Files** - `config/config.example.toml` - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - ... and 2 more files **Code Patterns Applied:** - Define new data structures (5 changes) - Implement new functions (2 changes) - Extend existing types with new fields (53 changes) **Detailed Identifier Changes:** Commit 8bb8b206: Files to modify: **crates/hyperswitch_connectors/src/connectors/fiserv.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs** Modify existing code
{"pr_number": 8670, "pr_title": "feat(connector): [FISERV] Added ApplePay Wallet", "merged_at": "2025-08-12T07:25:47Z", "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/fiserv.rs", "crates/hyperswitch_connectors/src/connectors/fiserv/transformers.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"structs_added": 5, "functions_added": 2, "enums_added": 1, "fields_added": 53, "imports_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Added Cards flow for Elavon (ThreeDs not implemented) Added Mandates Flow Void Flow is not available for Elavon
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/connector_enums.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/router_request_types.rs` **3. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/utils.rs` **4. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/connector_configs/src/connector.rs` - `crates/connector_configs/toml/development.toml` - ... and 8 more files **5. Type Definitions** - `crates/router/src/types/api.rs` - `crates/router/src/types/transformers.rs` **6. Tests** - `config/deployments/integration_test.toml` - `cypress-tests/cypress/e2e/PaymentUtils/Elavon.js` - `cypress-tests/cypress/e2e/PaymentUtils/Utils.js` - ... and 1 more files **7. Configuration Files** - `.typos.toml` - `config/config.example.toml` - `config/deployments/production.toml` - ... and 3 more files **8. Other** - `Cargo.lock` - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` **Code Patterns Applied:** - Define new data structures (8 changes) - Implement new functions (21 changes) - Extend existing types with new fields (657 changes) - Add conditional logic for feature flags or filtering (7 changes) **Detailed Identifier Changes:** Commit 68876811: Files to modify: **crates/api_models/src/connector_enums.rs** Modify existing code **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/connector_configs/src/connector.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/elavon.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types.rs** Modify existing code **crates/router/src/configs/defaults/payment_connector_required_fields.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/utils.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/utils.rs** Modify existing code
{"pr_number": 6485, "pr_title": "feat(connector): [Elavon] Implement cards Flow", "merged_at": "2024-11-25T14:38:04Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/connector_enums.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_request_types.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/utils.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/Cargo.toml", "crates/hyperswitch_connectors/src/connectors/elavon.rs", "crates/hyperswitch_connectors/src/connectors/elavon/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs", "crates/router/tests/connectors/utils.rs"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/PaymentUtils/Elavon.js", "cypress-tests/cypress/e2e/PaymentUtils/Utils.js", "loadtest/config/development.toml"], "config": [".typos.toml", "config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["Cargo.lock", "api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"structs_added": 8, "functions_added": 21, "enums_added": 6, "fields_added": 657, "imports_added": 11, "conditionals_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
- add AT,DE,IT country for instant_banktransfer
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": 7815, "pr_title": "feat(configs): [Trustpay] add support for AT,DE,IT country for instant_banktransfer", "merged_at": "2025-04-15T13:48:28Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "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 --> We are filtering the response for payment and payout processors. So this works as follows: If Payment's route is hit only PaymentProcessors will be listed and nothing else like PayoutConnectors etc. Payment : ``` curl --location 'http://localhost:8080/routing/default/profile' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMWMyMTJhODgtOGFmYy00YjJjLWIwYWQtODY3MmQ2NTI3MzdlIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQxMDAzMjgwIiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0MTE3NjE1Miwib3JnX2lkIjoib3JnX1c4MkFMNTZ6VVE1dXFHcEEyYzFkIiwicHJvZmlsZV9pZCI6InByb19NcUlMcDAwdUFJeW5JZDdtUTNUTyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.RoPyIG-JGrH6QmM6Gqd9gh03hOqy6MuC9Our9EHYGNk' \ --header 'Cookie: login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMWMyMTJhODgtOGFmYy00YjJjLWIwYWQtODY3MmQ2NTI3MzdlIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQxMDAzMjgwIiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0MTE3NjE1Miwib3JnX2lkIjoib3JnX1c4MkFMNTZ6VVE1dXFHcEEyYzFkIiwicHJvZmlsZV9pZCI6InByb19NcUlMcDAwdUFJeW5JZDdtUTNUTyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.RoPyIG-JGrH6QmM6Gqd9gh03hOqy6MuC9Our9EHYGNk' ``` If Payout's route is hit, only Payout's connector will be shown and nothing else. Payout : ``` curl --location 'http://localhost:8080/routing/payout/default/profile' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMWMyMTJhODgtOGFmYy00YjJjLWIwYWQtODY3MmQ2NTI3MzdlIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQxMDAzMjgwIiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0MTE3NjE1Miwib3JnX2lkIjoib3JnX1c4MkFMNTZ6VVE1dXFHcEEyYzFkIiwicHJvZmlsZV9pZCI6InByb19NcUlMcDAwdUFJeW5JZDdtUTNUTyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.RoPyIG-JGrH6QmM6Gqd9gh03hOqy6MuC9Our9EHYGNk' \ --header 'Cookie: login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMWMyMTJhODgtOGFmYy00YjJjLWIwYWQtODY3MmQ2NTI3MzdlIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzQxMDAzMjgwIiwicm9sZV9pZCI6Im9yZ19hZG1pbiIsImV4cCI6MTc0MTE3NjE1Miwib3JnX2lkIjoib3JnX1c4MkFMNTZ6VVE1dXFHcEEyYzFkIiwicHJvZmlsZV9pZCI6InByb19NcUlMcDAwdUFJeW5JZDdtUTNUTyIsInRlbmFudF9pZCI6InB1YmxpYyJ9.RoPyIG-JGrH6QmM6Gqd9gh03hOqy6MuC9Our9EHYGNk' ``` ![Screenshot 2025-03-04 at 12 51 02 PM](https://github.com/user-attachments/assets/e465d666-e405-4615-82dc-ce5ae1d2dd81) <img width="1333" alt="Screenshot 2025-03-04 at 1 02 15 PM" src="https://github.com/user-attachments/assets/a587b7c3-ee87-4caf-8b29-dcb281a1e6f4" />
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/routing.rs` **Code Patterns Applied:** - Extend existing types with new fields (1 changes) - Modify database queries (1 changes) **Detailed Identifier Changes:** Commit 18db67c7: Files to modify: **crates/router/src/core/routing.rs** Modify existing code
{"pr_number": 7199, "pr_title": "refactor(core): filter default routing config response based on connector type", "merged_at": "2025-03-11T15:00:03Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/routing.rs"]}, "change_types": {"fields_added": 1, "imports_added": 3, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Postman Tests for `nmi` were failing on SBX (but not on Integ) because `Flow Testcases/Variation Cases/Scenario9-Create a mandate payment` responded an error message as `debit mandate payment is not supported by nmi` on SBX and `credit mandate payment is not supported by nmi` on Integ when we are using Card `4111111111111111`. So, I thought of two solutions. First, check whether the error message contains "mandate payment is not supported by nmi" or second, change the card number for which the error message in both the environments are same. I chose the second way finally. And, there is a slight change, which I missed in #7159. <!-- However, I made a change in #7159, which goes like the following ![image](https://github.com/user-attachments/assets/62b3ed2a-bbe2-426f-8a30-eb4f980b51ba) Because it was failing expecting the error message to be " mandate payment is not supported by nmi" but it should include the same instead of equal to. -->
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Tests** - `postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a mandate payment/Payments - Create/event.test.js` **2. Other** - `postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a mandate payment/Payments - Create/request.json`
{"pr_number": 7765, "pr_title": "ci(postman): update assertion error message for nmi collection", "merged_at": "2025-04-17T07:51:28Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "card"]}, "hierarchy": {"tests": ["postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a mandate payment/Payments - Create/event.test.js"], "other": ["postman/collection-dir/nmi/Flow Testcases/Variation Cases/Scenario9-Create a mandate payment/Payments - Create/request.json"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> This PR adds a new NetworkDetails struct containing network_advice_code to capture network-level response information from payment processors. Key Changes: 1)Added network_details JSONB column to payment_attempt table 2)Extended PaymentsResponse API to include optional network_details field 3)Updated payment attempt models and error handling to populate network advice codes 4)Added database migration and comprehensive model updates across the codebase
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/payments.rs` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/payment_attempt.rs` - `crates/diesel_models/src/schema.rs` - `crates/diesel_models/src/schema_v2.rs` - ... and 1 more files **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` **4. Core Business Logic** - `crates/router/src/core/payments/helpers.rs` - `crates/router/src/core/payments/operations/payment_create.rs` - `crates/router/src/core/payments/operations/payment_response.rs` - ... and 2 more files **5. Type Definitions** - `crates/router/src/types/storage/payment_attempt.rs` **6. Utils** - `crates/router/src/utils/user/sample_data.rs` **7. Tests** - `crates/router/tests/payments.rs` - `crates/router/tests/payments2.rs` **8. Other** - `api-reference/v1/openapi_spec_v1.json` - `crates/openapi/src/openapi.rs` - `crates/router/src/db/events.rs` - ... and 5 more files **Code Patterns Applied:** - Define new data structures (2 changes) - Implement new functions (3 changes) - Extend existing types with new fields (72 changes) **Detailed Identifier Changes:** Commit 75bf58d6: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/diesel_models/src/schema.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/user/sample_data.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/openapi/src/openapi.rs** Modify existing code **crates/router/src/core/payments/helpers.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/db/events.rs** Modify existing code **crates/router/src/types/storage/payment_attempt.rs** Modify existing code **crates/router/src/utils/user/sample_data.rs** Modify existing code **crates/router/src/workflows/payment_sync.rs** Modify existing code **crates/router/tests/payments.rs** Modify existing code **crates/router/tests/payments2.rs** Modify existing code **crates/storage_impl/src/mock_db/payment_attempt.rs** Modify existing code **crates/storage_impl/src/payments/payment_attempt.rs** Modify existing code
{"pr_number": 9273, "pr_title": "feat(core): Add Network Details in Payments Response", "merged_at": "2025-09-09T14:10:52Z", "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", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs", "crates/diesel_models/src/user/sample_data.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_attempt.rs"], "core_business": ["crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_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"], "types": ["crates/router/src/types/storage/payment_attempt.rs"], "utils": ["crates/router/src/utils/user/sample_data.rs"], "tests": ["crates/router/tests/payments.rs", "crates/router/tests/payments2.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "crates/openapi/src/openapi.rs", "crates/router/src/db/events.rs", "crates/router/src/workflows/payment_sync.rs", "crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "migrations/2025-09-09-171443_add_network_details_in_attempt_table/down.sql", "migrations/2025-09-09-171443_add_network_details_in_attempt_table/up.sql"]}, "change_types": {"structs_added": 2, "functions_added": 3, "fields_added": 72}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Connector Feature Matrix Bugfix: 1. Removed Dispute webhook from stax 2. Capture methods added in Inespay 3. Card Authentication type corrected in Fiserv and Bluesnap 4. Added Refund webhook in shift4. <img width="1728" alt="Screenshot 2025-05-16 at 5 45 57 PM" src="https://github.com/user-attachments/assets/4937e50b-891b-43af-aa26-0047a330cdec" /> <img width="1728" alt="Screenshot 2025-05-16 at 5 46 07 PM" src="https://github.com/user-attachments/assets/04b92964-ac7f-455d-af31-cd07c6402a1e" /> <img width="1728" alt="Screenshot 2025-05-16 at 5 56 52 PM" src="https://github.com/user-attachments/assets/9937575b-0664-45e0-b0a1-a6bfa1a4691a" /> <img width="1728" alt="Screenshot 2025-05-16 at 5 46 24 PM" src="https://github.com/user-attachments/assets/57e5c954-6907-4ecd-bf85-234a499839fe" />
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 5 more files **Code Patterns Applied:** - Extend existing types with new fields (7 changes) **Detailed Identifier Changes:** Commit 8b0fd048: Files to modify: **crates/hyperswitch_connectors/src/connectors/bluesnap.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/fiserv.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/inespay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/shift4.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stax.rs** Modify existing code
{"pr_number": 8047, "pr_title": "fix(connector): Connector Feature Matrix Bugfix", "merged_at": "2025-05-22T10:40:05Z", "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/bluesnap.rs", "crates/hyperswitch_connectors/src/connectors/fiserv.rs", "crates/hyperswitch_connectors/src/connectors/inespay.rs", "crates/hyperswitch_connectors/src/connectors/shift4.rs", "crates/hyperswitch_connectors/src/connectors/stax.rs"]}, "change_types": {"fields_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> - Accept merchant_connector_credentials in the Request Body of Refunds create and retrieve - Add a new POST endpoint refunds_retrieve_with_gateway_creds
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/payments.rs` - `crates/api_models/src/refunds.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/merchant_connector_account.rs` - `crates/hyperswitch_domain_models/src/payments.rs` **3. Core Business Logic** - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/helpers.rs` - `crates/router/src/core/refunds_v2.rs` - ... and 1 more files **4. Type Definitions** - `crates/common_types/src/domain.rs` **5. Other** - `api-reference/v2/openapi_spec_v2.json` - `crates/openapi/src/openapi_v2.rs` - `crates/router/src/routes/app.rs` - ... and 1 more files **Code Patterns Applied:** - Define new data structures (2 changes) - Implement new functions (5 changes) - Extend existing types with new fields (46 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit b185d85f: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/api_models/src/refunds.rs** Modify existing code **crates/common_types/src/domain.rs** Modify existing code **crates/hyperswitch_domain_models/src/merchant_connector_account.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/openapi/src/openapi_v2.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/refunds_v2.rs** Modify existing code **crates/router/src/core/utils.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/refunds.rs** Modify existing code
{"pr_number": 8441, "pr_title": "feat(core): accept merchant_connector_details in Refunds create and retrieve flow", "merged_at": "2025-06-26T14:23:16Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs", "crates/api_models/src/refunds.rs"], "domain": ["crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "crates/hyperswitch_domain_models/src/payments.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/refunds_v2.rs", "crates/router/src/core/utils.rs"], "types": ["crates/common_types/src/domain.rs"], "other": ["api-reference/v2/openapi_spec_v2.json", "crates/openapi/src/openapi_v2.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/refunds.rs"]}, "change_types": {"structs_added": 2, "functions_added": 5, "fields_added": 46, "imports_added": 1, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Enhanced the script to pre-configure a user and a dummy connector in the control center for the local setup.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Other** - `README.md` - `scripts/setup.sh` **Code Patterns Applied:** - Add conditional logic for feature flags or filtering (18 changes)
{"pr_number": 8093, "pr_title": "fix: updated the docker setup", "merged_at": "2025-05-21T09:51:53Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"other": ["README.md", "scripts/setup.sh"]}, "change_types": {"conditionals_added": 18}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> A recent change in [this PR](https://github.com/juspay/hyperswitch/pull/7537) removed the usage of DomainStorageError in all the places and started using StorageError everywhere. Previously, DataStorage and RedisError were manually converted into StorageError based on few conditions which was missing in the mentioned PR resulting in resource_not_found being thrown as 5xx instead of 4xx. ``` StorageError::DatabaseError(i) => match i.current_context() { DatabaseError::DatabaseConnectionError => DataStorageError::DatabaseConnectionError, // TODO: Update this error type to encompass & propagate the missing type (instead of generic `db value not found`) DatabaseError::NotFound => { DataStorageError::ValueNotFound(String::from("db value not found")) } // TODO: Update this error type to encompass & propagate the duplicate type (instead of generic `db value not found`) DatabaseError::UniqueViolation => DataStorageError::DuplicateValue { entity: "db entity", key: None, }, err => DataStorageError::DatabaseError(error_stack::report!(*err)), } ``` This PR handles the manual conversion logic for DataStorageError and RedisError
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Other** - `crates/storage_impl/src/errors.rs` **Code Patterns Applied:** - Extend existing types with new fields (2 changes)
{"pr_number": 7712, "pr_title": "fix(errors): Entry not found error as 4xx instead of 5xx", "merged_at": "2025-04-03T12:18:30Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"other": ["crates/storage_impl/src/errors.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
Cards Non-3DS payments added for silverflow (Alpha Integration). Ref: https://www.silverflow.com/
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 3 more files **Code Patterns Applied:** - Define new data structures (30 changes) - Implement new functions (30 changes) - Extend existing types with new fields (274 changes) - Add conditional logic for feature flags or filtering (3 changes) **Detailed Identifier Changes:** Commit b5219519: Files to modify: **crates/hyperswitch_connectors/src/connectors/silverflow.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs** Modify existing code **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 8591, "pr_title": "feat(connector): [SILVERFLOW] Integrate cards non 3ds payments", "merged_at": "2025-07-24T06:43:09Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "card"]}, "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/silverflow.rs", "crates/hyperswitch_connectors/src/connectors/silverflow/transformers.rs", "crates/test_utils/src/connector_auth.rs"]}, "change_types": {"structs_added": 30, "functions_added": 30, "enums_added": 6, "fields_added": 274, "imports_added": 6, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Adyen now uses `connector_customer_id` to form `shopper_reference` if the field is present, else falls to previous implementation.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs` **2. Tests** - `config/deployments/integration_test.toml` - `loadtest/config/development.toml` **3. Configuration Files** - `config/config.example.toml` - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - ... and 2 more files **Code Patterns Applied:** - Implement new functions (1 changes) **Detailed Identifier Changes:** Commit 7ad29326: Files to modify: **crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs** Modify existing code
{"pr_number": 8447, "pr_title": "fix(connector): adyen connector creates connector's customer reference on the fly fixed", "merged_at": "2025-06-24T17:23:39Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "user", "connector"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"functions_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Changed the query to apply the merchant_id filter after the join. This ensures valid rows aren’t excluded too early and fixes an issue where **payments with the same IDs but different merchants** were being handled incorrectly.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Other** - `crates/storage_impl/src/payments/payment_intent.rs` **Code Patterns Applied:** - Modify database queries (7 changes)
{"pr_number": 6917, "pr_title": "fix(payments_list): handle same payment/attempt ids for different merchants", "merged_at": "2024-12-24T13:29:37Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"other": ["crates/storage_impl/src/payments/payment_intent.rs"]}, "change_types": {"database_queries": 7}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
Context: In case of some billing connectors we dont get the enough data in the webhook itself to support creation of payment intent and payment attempt in our system. So previously we derived a flow named "AdditionalRevenuerecoveryDetails" in this PR:#7402 which name is now changed to "BillingConnectorPaymentSync". This flow is used to fetch payment details of the invoices from the billing connectors using an API call to that billing connector. In this pr we are calling the flow and getting the details which are needed to create payment intent and attempt in our system. 1. Creates a connector integration in stripe billing that supports the API call. 2. Call the flow in recovery_incoming.rs file and using that details further we are creating the payment intent and attempt and verifying them.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/webhooks.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/revenue_recovery.rs` - `crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs` - `crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs` - ... and 3 more files **3. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/errors.rs` - `crates/router/src/core/payments/flows.rs` - ... and 3 more files **4. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/connector_configs/src/connector.rs` - `crates/hyperswitch_connectors/src/connectors/stripebilling.rs` - ... and 4 more files **5. Type Definitions** - `crates/hyperswitch_interfaces/src/types.rs` - `crates/router/src/types.rs` - `crates/router/src/types/api.rs` - ... and 1 more files **6. Configuration Files** - `config/config.example.toml` - `config/development.toml` - `config/docker_compose.toml` - ... and 2 more files **7. Other** - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` - `crates/hyperswitch_interfaces/src/api.rs` - ... and 4 more files **Code Patterns Applied:** - Define new data structures (9 changes) - Implement new functions (31 changes) - Extend existing types with new fields (134 changes) **Detailed Identifier Changes:** Commit cfe22694: Files to modify: **crates/api_models/src/webhooks.rs** Modify existing code **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/connector_configs/src/connector.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripebilling.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripebilling/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/revenue_recovery.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.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/api/revenue_recovery.rs** Modify existing code **crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs** Modify existing code **crates/hyperswitch_interfaces/src/conversion_impls.rs** Modify existing code **crates/hyperswitch_interfaces/src/types.rs** Modify existing code **crates/router/src/configs/secrets_transformers.rs** Modify existing code **crates/router/src/configs/settings.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/errors.rs** Modify existing code **crates/router/src/core/payments/flows.rs** Modify existing code **crates/router/src/core/webhooks/incoming_v2.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Modify existing code **crates/router/src/services/api.rs** Modify existing code **crates/router/src/types.rs** Modify existing code **crates/router/src/types/api.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"pr_number": 7461, "pr_title": "feat(connector): Add recovery support for stripebilling", "merged_at": "2025-04-02T07:49:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/webhooks.rs"], "domain": ["crates/hyperswitch_domain_models/src/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs", "crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/types.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/errors.rs", "crates/router/src/core/payments/flows.rs", "crates/router/src/core/revenue_recovery.rs", "crates/router/src/core/webhooks/incoming_v2.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/hyperswitch_interfaces/src/connector_integration_v2.rs"], "types": ["crates/hyperswitch_interfaces/src/types.rs", "crates/router/src/types.rs", "crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "config": ["config/config.example.toml", "config/development.toml", "config/docker_compose.toml", "crates/router/src/configs/secrets_transformers.rs", "crates/router/src/configs/settings.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/hyperswitch_interfaces/src/api.rs", "crates/hyperswitch_interfaces/src/api/revenue_recovery.rs", "crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs", "crates/hyperswitch_interfaces/src/conversion_impls.rs", "crates/router/src/services/api.rs"]}, "change_types": {"structs_added": 9, "functions_added": 31, "fields_added": 134, "imports_added": 11}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This pull request adds support pass the decryted apple pay token directly in the confirm call. This pull also request introduces significant changes to the handling of Apple Pay payment data across multiple modules, improving the structure, validation, and usage of encrypted and decrypted Apple Pay data. It also refactors related code to enhance type safety and modularity. Below is a summary of the most important changes grouped by themes.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/payments.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payment_method_data.rs` - `crates/hyperswitch_domain_models/src/router_data.rs` **3. Core Business Logic** - `crates/router/src/core/payments.rs` **4. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs` - ... and 16 more files **5. Type Definitions** - `crates/common_types/Cargo.toml` - `crates/common_types/src/payments.rs` - `crates/router/src/types.rs` **6. Tests** - `config/deployments/integration_test.toml` **7. Configuration Files** - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - `config/development.toml` **8. Other** - `Cargo.lock` - `api-reference/v1/openapi_spec_v1.json` - `api-reference/v2/openapi_spec_v2.json` - ... and 2 more files **Code Patterns Applied:** - Define new data structures (5 changes) - Implement new functions (21 changes) - Extend existing types with new fields (94 changes) - Add conditional logic for feature flags or filtering (3 changes) **Detailed Identifier Changes:** Commit b91e6d95: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/common_types/src/payments.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/payu/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/hyperswitch_domain_models/src/payment_method_data.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data.rs** Modify existing code **crates/openapi/src/openapi.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/router/src/connector/utils.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/types.rs** Modify existing code **crates/router/tests/connectors/worldpay.rs** Modify existing code
{"pr_number": 8815, "pr_title": "feat(router): add support for apple pay pre-decrypted token in the payments confirm call", "merged_at": "2025-08-05T08:19:29Z", "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/payment_method_data.rs", "crates/hyperswitch_domain_models/src/router_data.rs"], "core_business": ["crates/router/src/core/payments.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs", "crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs", "crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs", "crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs", "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "crates/hyperswitch_connectors/src/connectors/mollie/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs", "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs", "crates/hyperswitch_connectors/src/connectors/payu/transformers.rs", "crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs", "crates/hyperswitch_connectors/src/connectors/wellsfargo/transformers.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/utils.rs", "crates/router/tests/connectors/worldpay.rs"], "types": ["crates/common_types/Cargo.toml", "crates/common_types/src/payments.rs", "crates/router/src/types.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml"], "other": ["Cargo.lock", "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": 5, "functions_added": 21, "enums_added": 2, "fields_added": 94, "imports_added": 9, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> During the MIT if the decided connector is same as the connector with which the mandate is created then the MIT should be processed with the connector mandate _id.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payments.rs` **Code Patterns Applied:** - Add conditional logic for feature flags or filtering (1 changes)
{"pr_number": 7081, "pr_title": "refactor(router): prioritise `connector_mandate_id` over `network_transaction_id` during MITs", "merged_at": "2025-01-28T21:02:35Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs"]}, "change_types": {"conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Wasm fix for xendit connector ## Checklist <!-- Put an `x` in the boxes that apply --> - [ ] I formatted the code `cargo +nightly fmt --all` - [ ] I addressed lints thrown by `cargo clippy` - [ ] I reviewed the submitted code - [ ] I added unit tests for my changes where possible
To implement this **connector_integration** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/connector_configs/toml/development.toml` - `crates/connector_configs/toml/production.toml` - `crates/connector_configs/toml/sandbox.toml`
{"pr_number": 7459, "pr_title": "fix(dashboard): Wasm fix for xendit connector", "merged_at": "2025-03-07T10:24:04Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": ["connector"]}, "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"}
<!-- Describe your changes in detail --> hotfix PR for https://github.com/juspay/hyperswitch/pull/6519
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payments/operations/payment_confirm.rs` - `crates/router/src/core/payments/operations/payment_create.rs` - `crates/router/src/core/payments/transformers.rs` **Code Patterns Applied:** - Implement new functions (1 changes) - Add conditional logic for feature flags or filtering (3 changes) **Detailed Identifier Changes:** Commit 6230eb49: Files to modify: **crates/router/src/core/payments/operations/payment_confirm.rs** Modify existing code **crates/router/src/core/payments/operations/payment_create.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code
{"pr_number": 6557, "pr_title": "fix(payments): populate payment_method_type in payment_attempt for cards", "merged_at": "2024-11-13T13:42:37Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/transformers.rs"]}, "change_types": {"functions_added": 1, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
This PR removes billing details as required fields for Worldpay connector.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/payment_methods/src/configs/payment_connector_required_fields.rs`
{"pr_number": 7853, "pr_title": "chore(dynamic-fields): remove billing details as required fields for Worldpay connector", "merged_at": "2025-04-22T08:46:45Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"connectors": ["crates/payment_methods/src/configs/payment_connector_required_fields.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
Added `type_selection_indicator` as 1 for all cards Reason for this change - Without this field Mastercard card payments are currently failing for a france-based merchant acquirer CMCIC in prod for cybersource, it expects type_selection_indicator as 1. Please note, this change is a fix on top of this [PR](https://github.com/juspay/hyperswitch/pull/7828) This change not only makes type_selection_indicator as 1 for co-badged cards, but for all cards in general.
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 (6 changes) **Detailed Identifier Changes:** Commit 2bac3e0a: Files to modify: **crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs** Modify existing code
{"pr_number": 8663, "pr_title": "fix(connector): [Cybersource] Add type_selection_indicator as 1 for all cards ", "merged_at": "2025-07-21T14:21:53Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"]}, "change_types": {"fields_added": 6}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Added dispute support for novalnet. Novalnet supports 2 webhook events for disputes 1. Chargeback 2. Representment (dispute won) Novalnet does not support emails/webhooks for Arbitration and Pre-Arbitration stages.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/novalnet.rs` - `crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs` **Code Patterns Applied:** - Implement new functions (3 changes) - Extend existing types with new fields (11 changes) **Detailed Identifier Changes:** Commit 6881ce2e: Files to modify: **crates/hyperswitch_connectors/src/connectors/novalnet.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs** Modify existing code
{"pr_number": 6560, "pr_title": "feat(connector): [Novalnet] Add support for disputes ", "merged_at": "2024-11-18T14:22:01Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "webhook"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/novalnet.rs", "crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs"]}, "change_types": {"functions_added": 3, "enums_added": 1, "fields_added": 11}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Updated to check if the payment method is Wallet before proceeding with the wallet decryption operation. main branch pr https://github.com/juspay/hyperswitch/pull/8744
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payments.rs` **Code Patterns Applied:** - Add conditional logic for feature flags or filtering (1 changes)
{"pr_number": 8747, "pr_title": "fix(router): add payment method Wallet check for decrypted wallet payment method token logic", "merged_at": "2025-07-24T11:44:58Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs"]}, "change_types": {"conditionals_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> This pull request introduces support for fetching subscription estimates from Chargebee, alongside the existing subscription plans functionality. It adds new data structures, request/response types, and integration logic to handle the "Get Subscription Estimate" flow end-to-end. The changes span the domain models, interface types, and the Chargebee connector implementation.
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_data_v2/flow_common_types.rs` - `crates/hyperswitch_domain_models/src/router_flow_types/subscriptions.rs` - `crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs` - ... and 2 more files **2. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/chargebee.rs` - `crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/recurly.rs` - ... and 1 more files **3. Type Definitions** - `crates/hyperswitch_interfaces/src/types.rs` **4. Other** - `crates/hyperswitch_interfaces/src/api/subscriptions.rs` - `crates/hyperswitch_interfaces/src/api/subscriptions_v2.rs` - `crates/router/src/services/api.rs` **Code Patterns Applied:** - Define new data structures (11 changes) - Implement new functions (9 changes) - Extend existing types with new fields (89 changes) **Detailed Identifier Changes:** Commit a7518373: 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/connectors/recurly.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_flow_types/subscriptions.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_response_types/subscriptions.rs** Modify existing code **crates/hyperswitch_domain_models/src/types.rs** Modify existing code **crates/hyperswitch_interfaces/src/api/subscriptions.rs** Modify existing code **crates/hyperswitch_interfaces/src/api/subscriptions_v2.rs** Modify existing code **crates/hyperswitch_interfaces/src/types.rs** Modify existing code **crates/router/src/services/api.rs** Modify existing code
{"pr_number": 9336, "pr_title": "feat(subscription): Add support to estimate for a subscription in chargebee", "merged_at": "2025-09-24T16:58:56Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs", "crates/hyperswitch_domain_models/src/router_flow_types/subscriptions.rs", "crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs", "crates/hyperswitch_domain_models/src/router_response_types/subscriptions.rs", "crates/hyperswitch_domain_models/src/types.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee.rs", "crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs", "crates/hyperswitch_connectors/src/connectors/recurly.rs", "crates/hyperswitch_connectors/src/default_implementations.rs"], "types": ["crates/hyperswitch_interfaces/src/types.rs"], "other": ["crates/hyperswitch_interfaces/src/api/subscriptions.rs", "crates/hyperswitch_interfaces/src/api/subscriptions_v2.rs", "crates/router/src/services/api.rs"]}, "change_types": {"structs_added": 11, "functions_added": 9, "fields_added": 89}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This PR updates Hyperswitch Docker images to be prefixed by `docker.juspay.io`. This includes the same changes as #7368, I've cherry picked the same commit. ## 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). --> N/A ## 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)? --> N/A ## Checklist <!-- Put an `x` in the boxes that apply --> - [ ] I formatted the code `cargo +nightly fmt --all` - [ ] I addressed lints thrown by `cargo clippy` - [x] I reviewed the submitted code - [ ] I added unit tests for my changes where possible
To implement this **connector_integration** feature, you'll need to modify these architectural layers: **1. Configuration Files** - `config/deployments/README.md` - `docker-compose-development.yml` - `docker-compose.yml` **2. Other** - `aws/hyperswitch_aws_setup.sh` **Code Patterns Applied:** - Extend existing types with new fields (10 changes)
{"pr_number": 7592, "pr_title": "chore(docker): prefix Hyperswitch Docker image URIs with `docker.juspay.io`", "merged_at": "2025-03-21T11:37:07Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": []}, "hierarchy": {"config": ["config/deployments/README.md", "docker-compose-development.yml", "docker-compose.yml"], "other": ["aws/hyperswitch_aws_setup.sh"]}, "change_types": {"fields_added": 10}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail -->
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Other** - `README.md` - `docs/one_click_setup.md` - `docs/try_local_system.md` - ... and 1 more files **Code Patterns Applied:** - Add conditional logic for feature flags or filtering (15 changes)
{"pr_number": 7804, "pr_title": "feat(deploy): Add one-click Docker setup script", "merged_at": "2025-05-02T12:35:09Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user"]}, "hierarchy": {"other": ["README.md", "docs/one_click_setup.md", "docs/try_local_system.md", "scripts/setup.sh"]}, "change_types": {"conditionals_added": 15}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
Allow update of `connector_mandate_details` for card in case of metadata changes(in case of expiry changes). First the value is set as inactive and if a successful payment has been made then set it back to active
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payments/operations/payment_response.rs` - `crates/router/src/core/payments/tokenization.rs` **Code Patterns Applied:** - Implement new functions (1 changes) - Extend existing types with new fields (10 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit d19c1a19: Files to modify: **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code **crates/router/src/core/payments/tokenization.rs** Modify existing code
{"pr_number": 6848, "pr_title": "refactor(payment_methods): update `connector_mandate_details` for card metadata changes", "merged_at": "2024-12-27T06:21:58Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "connector"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/tokenization.rs"]}, "change_types": {"functions_added": 1, "fields_added": 10, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> When customer_id with length greater than 20 is passed in payload along with email, customer will be created only with email and not id (because length validation will fail). Now when we again use some other customer_id with length greater than 20 with the same email, createConnectorCustomer will try to create the customer with only email, which will throw error "customer already exists". In this PR, this error is handled more gracefully.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs` **Code Patterns Applied:** - Extend existing types with new fields (2 changes)
{"pr_number": 8866, "pr_title": "fix(connector): [AUTHORIZEDOTNET] error for customer already exists refactored", "merged_at": "2025-08-07T12:03:49Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> - Developed the proxy-confirm-intent API, specifically designed for Merchant-Initiated Transactions (MIT) payments. This is a generic and reusable API that facilitates MIT payment confirmations. - Its working is similar to confirm-intent api but in proxy flow we will be not having customer's details, rather we need mca_id and psp_token in order to confirm intent. - This API will help in PCR as it totally depends on recurring payments(MIT transaction) so, it needs proxy-confirm-intent. - This PR also includes support for Set/Unsetting the active attempt id
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/payment_methods.rs` - `crates/api_models/src/payments.rs` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/payment_attempt.rs` - `crates/diesel_models/src/payment_intent.rs` - `crates/diesel_models/src/types.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments.rs` - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` - `crates/hyperswitch_domain_models/src/payments/payment_intent.rs` - ... and 2 more files **4. Core Business Logic** - `crates/router/src/core/passive_churn_recovery/types.rs` - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/operations.rs` - ... and 4 more files **5. Type Definitions** - `crates/router_env/src/logger/types.rs` **6. Utils** - `crates/router/src/routes/lock_utils.rs` **7. Configuration Files** - `.typos.toml` **8. Other** - `api-reference-v2/openapi_spec.json` - `crates/common_enums/src/enums.rs` - `crates/openapi/src/openapi_v2.rs` - ... and 2 more files **Code Patterns Applied:** - Define new data structures (2 changes) - Implement new functions (42 changes) - Extend existing types with new fields (199 changes) - Add conditional logic for feature flags or filtering (2 changes) - Modify database queries (2 changes) **Detailed Identifier Changes:** Commit 30f321bc: Files to modify: **crates/api_models/src/enums.rs** Modify existing code **crates/api_models/src/payment_methods.rs** Modify existing code **crates/api_models/src/payments.rs** Modify existing code **crates/common_enums/src/enums.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/types.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/router/src/core/passive_churn_recovery/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_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_update_intent.rs** Modify existing code **crates/router/src/core/payments/operations/proxy_payments_intent.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/lock_utils.rs** Modify existing code **crates/router/src/routes/payments.rs** Modify existing code **crates/router_env/src/logger/types.rs** Modify existing code
{"pr_number": 7215, "pr_title": "feat(router): add proxy-confirm-intent api for payments in v2 flow", "merged_at": "2025-03-05T09:02:52Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/enums.rs", "crates/api_models/src/payment_methods.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/payment_intent.rs", "crates/diesel_models/src/types.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "crates/hyperswitch_domain_models/src/router_data.rs", "crates/hyperswitch_domain_models/src/router_request_types.rs"], "core_business": ["crates/router/src/core/passive_churn_recovery/types.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations.rs", "crates/router/src/core/payments/operations/payment_confirm_intent.rs", "crates/router/src/core/payments/operations/payment_update_intent.rs", "crates/router/src/core/payments/operations/proxy_payments_intent.rs", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/router_env/src/logger/types.rs"], "utils": ["crates/router/src/routes/lock_utils.rs"], "config": [".typos.toml"], "other": ["api-reference-v2/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/openapi/src/openapi_v2.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/payments.rs"]}, "change_types": {"structs_added": 2, "functions_added": 42, "enums_added": 1, "fields_added": 199, "imports_added": 15, "conditionals_added": 2, "database_queries": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Introduced a new field in business_profile (is_pre_network_tokenization_enabled). Based on that field the card will be tokenized before first payment. If the payment get succeeded the card and network token data will be stored in the locker afterwards.
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` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/business_profile.rs` - `crates/hyperswitch_domain_models/src/payment_method_data.rs` - `crates/hyperswitch_domain_models/src/payments.rs` **4. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/helpers.rs` - ... and 3 more files **5. Type Definitions** - `crates/router/src/types/api/admin.rs` **6. Tests** - `cypress-tests/cypress/e2e/configs/Payment/Noon.js` - `cypress-tests/cypress/support/commands.js` **7. Other** - `migrations/2025-05-16-064616_add_is_pre_network_tokenization_enabled_in_business_profile/down.sql` - `migrations/2025-05-16-064616_add_is_pre_network_tokenization_enabled_in_business_profile/up.sql` - `v2_migrations/2025-05-05-073505_remove_is_pre_network_tokenization_enabled_from_business_profile/down.sql` - ... and 1 more files **Code Patterns Applied:** - Define new data structures (3 changes) - Implement new functions (7 changes) - Extend existing types with new fields (106 changes) - Add conditional logic for feature flags or filtering (12 changes) - Modify database queries (3 changes) **Detailed Identifier Changes:** Commit da90d74b: Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/diesel_models/src/business_profile.rs** Modify existing code **crates/diesel_models/src/schema.rs** Modify existing code **crates/hyperswitch_domain_models/src/business_profile.rs** Modify existing code **crates/hyperswitch_domain_models/src/payment_method_data.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/helpers.rs** Modify existing code **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code **crates/router/src/core/payments/tokenization.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/types/api/admin.rs** Modify existing code
{"pr_number": 6873, "pr_title": "feat(core): [Network Tokenization] pre network tokenization", "merged_at": "2025-05-19T11:07:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs"], "database": ["crates/diesel_models/src/business_profile.rs", "crates/diesel_models/src/schema.rs"], "domain": ["crates/hyperswitch_domain_models/src/business_profile.rs", "crates/hyperswitch_domain_models/src/payment_method_data.rs", "crates/hyperswitch_domain_models/src/payments.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/router/src/types/api/admin.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/Noon.js", "cypress-tests/cypress/support/commands.js"], "other": ["migrations/2025-05-16-064616_add_is_pre_network_tokenization_enabled_in_business_profile/down.sql", "migrations/2025-05-16-064616_add_is_pre_network_tokenization_enabled_in_business_profile/up.sql", "v2_migrations/2025-05-05-073505_remove_is_pre_network_tokenization_enabled_from_business_profile/down.sql", "v2_migrations/2025-05-05-073505_remove_is_pre_network_tokenization_enabled_from_business_profile/up.sql"]}, "change_types": {"structs_added": 3, "functions_added": 7, "fields_added": 106, "imports_added": 1, "conditionals_added": 12, "database_queries": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Added `FRM` data in payment request for connector `Adyen`
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (4 changes) - Extend existing types with new fields (37 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit b00deb96: Files to modify: **crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs** Modify existing code
{"pr_number": 7615, "pr_title": "refactor(request_body): Added FRM data in payment request", "merged_at": "2025-03-28T12:12:51Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs"]}, "change_types": {"structs_added": 1, "functions_added": 4, "fields_added": 37, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
To support the transaction monitoring feature for charge bee we need to consume the following fields : Billing Address details for invoices such as city, state, country, zip and invoices next billing time and retry count. Since all these details are in invoice level we should be storing them in payment intent. Billing address will be stored in billing_address column of the payment intent table and for adds a new column in feature metadata of the payment intent and the retry_count logic will be like the following: Why do we need to consume retry count? If a merchant onboards and merchant has previous subscription there is a chance that we will miss those webhooks before before registering our webhook endpoint in the billing connector. Since retry count will not be synched in our system and billing connectors. To avoid this we will be consuming retry count and use the count as the retry count for the payment intent. For further webhooks we increment the count by 1. In chargebee we wont receive retry count directly. So we will consume the listed payments and its length will be equal to retry count.
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/types.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/lib.rs` - `crates/hyperswitch_domain_models/src/payments.rs` - `crates/hyperswitch_domain_models/src/revenue_recovery.rs` **4. Core Business Logic** - `crates/router/src/core/payments/operations/payment_attempt_record.rs` - `crates/router/src/core/payments/transformers.rs` - `crates/router/src/core/webhooks/recovery_incoming.rs` **5. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs` - `crates/hyperswitch_interfaces/src/connector_integration_interface.rs` **6. Utils** - `crates/common_utils/src/id_type/global_id/payment.rs` **7. Other** - `api-reference-v2/openapi_spec.json` - `crates/hyperswitch_interfaces/src/webhooks.rs` **Code Patterns Applied:** - Define new data structures (3 changes) - Implement new functions (5 changes) - Extend existing types with new fields (58 changes) **Detailed Identifier Changes:** Commit 5fa54e5e: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/common_utils/src/id_type/global_id/payment.rs** Modify existing code **crates/diesel_models/src/types.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs** Modify existing code **crates/hyperswitch_domain_models/src/lib.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/hyperswitch_domain_models/src/revenue_recovery.rs** Modify existing code **crates/hyperswitch_interfaces/src/connector_integration_interface.rs** Modify existing code **crates/hyperswitch_interfaces/src/webhooks.rs** Modify existing code **crates/router/src/core/payments/operations/payment_attempt_record.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Modify existing code
{"pr_number": 7774, "pr_title": "feat(connector): [chargebee] consumes required fields to support transaction monitoring", "merged_at": "2025-04-16T08:29:29Z", "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/types.rs"], "domain": ["crates/hyperswitch_domain_models/src/lib.rs", "crates/hyperswitch_domain_models/src/payments.rs", "crates/hyperswitch_domain_models/src/revenue_recovery.rs"], "core_business": ["crates/router/src/core/payments/operations/payment_attempt_record.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs", "crates/hyperswitch_interfaces/src/connector_integration_interface.rs"], "utils": ["crates/common_utils/src/id_type/global_id/payment.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/hyperswitch_interfaces/src/webhooks.rs"]}, "change_types": {"structs_added": 3, "functions_added": 5, "fields_added": 58}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
This PR contains the following - Opened an endpoint to dashboard for process tracker's revenue_recovery workflow to retrieve the schedule time , to display the time the next retry has been scheduled - Also it includes the naming changes, for consistent naming , we have changed the file names to revenue_recovery instead of passive churn recovery
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/events.rs` - `crates/api_models/src/events/revenue_recovery.rs` - `crates/api_models/src/lib.rs` - ... and 2 more files **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/enums.rs` - `crates/diesel_models/src/process_tracker.rs` **3. Core Business Logic** - `crates/router/src/core.rs` - `crates/router/src/core/passive_churn_recovery.rs` - `crates/router/src/core/passive_churn_recovery/transformers.rs` - ... and 2 more files **4. Type Definitions** - `crates/router/src/types/storage.rs` - `crates/router/src/types/storage/passive_churn_recovery.rs` - `crates/router_env/src/logger/types.rs` **5. Utils** - `crates/common_utils/src/events.rs` - `crates/common_utils/src/id_type/global_id/payment.rs` - `crates/router/src/routes/lock_utils.rs` **6. Other** - `api-reference-v2/openapi_spec.json` - `crates/common_enums/src/enums.rs` - `crates/openapi/src/openapi_v2.rs` - ... and 12 more files **Code Patterns Applied:** - Define new data structures (3 changes) - Implement new functions (9 changes) - Extend existing types with new fields (32 changes) **Detailed Identifier Changes:** Commit 87140bfc: Files to modify: **crates/api_models/src/events.rs** Modify existing code **crates/api_models/src/events/revenue_recovery.rs** Modify existing code **crates/api_models/src/lib.rs** Modify existing code **crates/api_models/src/process_tracker.rs** Modify existing code **crates/api_models/src/process_tracker/revenue_recovery.rs** Modify existing code **crates/common_enums/src/enums.rs** Modify existing code **crates/common_utils/src/events.rs** Modify existing code **crates/common_utils/src/id_type/global_id/payment.rs** Modify existing code **crates/diesel_models/src/enums.rs** Modify existing code **crates/diesel_models/src/process_tracker.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/openapi/src/routes.rs** Modify existing code **crates/openapi/src/routes/revenue_recovery.rs** Modify existing code **crates/router/src/bin/scheduler.rs** Modify existing code **crates/router/src/core.rs** Modify existing code **crates/router/src/core/passive_churn_recovery.rs** Modify existing code **crates/router/src/core/passive_churn_recovery/transformers.rs** Modify existing code **crates/router/src/core/passive_churn_recovery/types.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Modify existing code **crates/router/src/lib.rs** Modify existing code **crates/router/src/routes.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/lock_utils.rs** Modify existing code **crates/router/src/routes/process_tracker.rs** Modify existing code **crates/router/src/routes/process_tracker/revenue_recovery.rs** Modify existing code **crates/router/src/services/authorization/permission_groups.rs** Modify existing code **crates/router/src/services/authorization/permissions.rs** Modify existing code **crates/router/src/types/storage.rs** Modify existing code **crates/router/src/types/storage/passive_churn_recovery.rs** Modify existing code **crates/router/src/workflows.rs** Modify existing code **crates/router/src/workflows/passive_churn_recovery_workflow.rs** Modify existing code **crates/router_env/src/logger/types.rs** Modify existing code
{"pr_number": 7602, "pr_title": "feat(core): Add support for process tracker retrieve api in v2", "merged_at": "2025-03-27T12:12:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/events.rs", "crates/api_models/src/events/revenue_recovery.rs", "crates/api_models/src/lib.rs", "crates/api_models/src/process_tracker.rs", "crates/api_models/src/process_tracker/revenue_recovery.rs"], "database": ["crates/diesel_models/src/enums.rs", "crates/diesel_models/src/process_tracker.rs"], "core_business": ["crates/router/src/core.rs", "crates/router/src/core/passive_churn_recovery.rs", "crates/router/src/core/passive_churn_recovery/transformers.rs", "crates/router/src/core/passive_churn_recovery/types.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "types": ["crates/router/src/types/storage.rs", "crates/router/src/types/storage/passive_churn_recovery.rs", "crates/router_env/src/logger/types.rs"], "utils": ["crates/common_utils/src/events.rs", "crates/common_utils/src/id_type/global_id/payment.rs", "crates/router/src/routes/lock_utils.rs"], "other": ["api-reference-v2/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/openapi/src/openapi_v2.rs", "crates/openapi/src/routes.rs", "crates/openapi/src/routes/revenue_recovery.rs", "crates/router/src/bin/scheduler.rs", "crates/router/src/lib.rs", "crates/router/src/routes.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/process_tracker.rs", "crates/router/src/routes/process_tracker/revenue_recovery.rs", "crates/router/src/services/authorization/permission_groups.rs", "crates/router/src/services/authorization/permissions.rs", "crates/router/src/workflows.rs", "crates/router/src/workflows/passive_churn_recovery_workflow.rs"]}, "change_types": {"structs_added": 3, "functions_added": 9, "enums_added": 2, "fields_added": 32, "imports_added": 17}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> We need to update traditional chinese locale for payment link expired.
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 (2 changes)
{"pr_number": 8935, "pr_title": "feat(payment-link): update traditional chinese local", "merged_at": "2025-08-13T10:06:47Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/payment_link/locale.js"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
Described in #6609
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Utils** - `crates/router/src/utils.rs` **2. Tests** - `cypress-tests-v2/cypress/e2e/configs/Payment/Commons.js` - `cypress-tests-v2/cypress/e2e/configs/Payment/Utils.js` - `cypress-tests/cypress/e2e/PaymentUtils/Commons.js` - ... and 2 more files **Code Patterns Applied:** - Extend existing types with new fields (48 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit 40d3c38b: Files to modify: **crates/router/src/utils.rs** Modify existing code
{"pr_number": 6610, "pr_title": "refactor: update API response for JSON deserialization errors", "merged_at": "2024-11-21T22:26:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"utils": ["crates/router/src/utils.rs"], "tests": ["cypress-tests-v2/cypress/e2e/configs/Payment/Commons.js", "cypress-tests-v2/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/e2e/PaymentUtils/Commons.js", "cypress-tests/cypress/e2e/PaymentUtils/Paybox.js", "cypress-tests/cypress/e2e/PaymentUtils/Utils.js"]}, "change_types": {"fields_added": 48, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Adds tenant-id for every requests to keymanager ## 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). --> Added tenant id header for the keymanager service to classify key ids based on tenants. ## 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 Merchant Account with x-tenant-id as `public` ```bash curl --location 'http://localhost:8080/accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-feature: integ-custom' \ --header 'x-tenant-id: public' \ --header 'api-key: test_admin' \ --data-raw '{ "merchant_id": "1735815159", "locker_id": "m0010", "merchant_name": "NewAge Retailer", "merchant_details": { "primary_contact_person": "John Test", "primary_email": "JohnTest@test.com", "primary_phone": "sunt laborum", "secondary_contact_person": "John Test2", "secondary_email": "JohnTest2@test.com", "secondary_phone": "cillum do dolor id", "website": "www.example.com", "about_business": "Online Retail with a wide selection of organic products for North America", "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US" } }, "return_url": "https://google.com/success", "webhook_details": { "webhook_version": "1.0.1", "webhook_username": "ekart_retail", "webhook_password": "password_ekart@123", "payment_created_enabled": true, "payment_succeeded_enabled": true, "payment_failed_enabled": true }, "sub_merchants_enabled": false, "metadata": { "city": "NY", "unit": "245" }, "primary_business_details": [ { "country": "US", "business": "default" } ] }' ``` - Get the `x-request-id` for the request and query it in grafana and see the if the tenant_id is `public` ![Screenshot 2025-01-02 at 4 24 01 PM](https://github.com/user-attachments/assets/eb9f2933-7390-4fa0-a9c7-33e6b522bc1e) ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt --all` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed the submitted code
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Type Definitions** - `crates/common_utils/src/types/keymanager.rs` - `crates/router/src/types/domain/types.rs` **2. Utils** - `crates/common_utils/src/consts.rs` - `crates/common_utils/src/id_type/tenant.rs` - `crates/common_utils/src/keymanager.rs` **3. Tests** - `loadtest/config/development.toml` **4. Configuration Files** - `config/config.example.toml` - `config/deployments/env_specific.toml` - `config/development.toml` - ... and 3 more files **Code Patterns Applied:** - Implement new functions (4 changes) - Extend existing types with new fields (10 changes) **Detailed Identifier Changes:** Commit 79013024: Files to modify: **crates/common_utils/src/consts.rs** Modify existing code **crates/common_utils/src/id_type/tenant.rs** Modify existing code **crates/common_utils/src/keymanager.rs** Modify existing code **crates/common_utils/src/types/keymanager.rs** Modify existing code **crates/router/src/configs/defaults.rs** Modify existing code **crates/router/src/configs/settings.rs** Modify existing code **crates/router/src/types/domain/types.rs** Modify existing code
{"pr_number": 6968, "pr_title": "chore(keymanager): add tenant-id to keymanager requests", "merged_at": "2025-01-06T15:34:01Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"types": ["crates/common_utils/src/types/keymanager.rs", "crates/router/src/types/domain/types.rs"], "utils": ["crates/common_utils/src/consts.rs", "crates/common_utils/src/id_type/tenant.rs", "crates/common_utils/src/keymanager.rs"], "tests": ["loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "config/development.toml", "config/docker_compose.toml", "crates/router/src/configs/defaults.rs", "crates/router/src/configs/settings.rs"]}, "change_types": {"functions_added": 4, "fields_added": 10, "imports_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> In the MIT flow when the recurring details is of type "type": "network_transaction_id_and_card_details" the eligible connector needs to be set in the payment attempt.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payments.rs`
{"pr_number": 6347, "pr_title": "fix(router): set the eligible connector in the payment attempt for nti based mit flow", "merged_at": "2024-10-17T13:55:22Z", "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": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Added all_keys_required in confirm and psync payload. If all_keys_required is passed as true, we will send the whole connector response.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/payments.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/router_data.rs` **3. Core Business Logic** - `crates/router/src/core/authentication/transformers.rs` - `crates/router/src/core/authentication/utils.rs` - `crates/router/src/core/disputes.rs` - ... and 62 more files **4. External Connector Integration** - `crates/hyperswitch_connectors/src/utils.rs` - `crates/router/src/types/api/verify_connector.rs` - `crates/router/tests/connectors/aci.rs` - ... and 1 more files **5. Type Definitions** - `crates/router/src/types.rs` **6. Tests** - `crates/router/tests/payments.rs` - `crates/router/tests/payments2.rs` **7. Other** - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` - `crates/hyperswitch_interfaces/src/conversion_impls.rs` - ... and 4 more files **Code Patterns Applied:** - Implement new functions (15 changes) - Extend existing types with new fields (123 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit 071b0732: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data.rs** Modify existing code **crates/hyperswitch_interfaces/src/conversion_impls.rs** Modify existing code **crates/router/src/compatibility/stripe/payment_intents.rs** Modify existing code **crates/router/src/compatibility/stripe/setup_intents.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/disputes.rs** Modify existing code **crates/router/src/core/files/helpers.rs** Modify existing code **crates/router/src/core/fraud_check.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.rs** Modify existing code **crates/router/src/core/mandate/utils.rs** Modify existing code **crates/router/src/core/payment_methods.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/access_token.rs** Modify existing code **crates/router/src/core/payments/customers.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/operations/payment_approve.rs** Modify existing code **crates/router/src/core/payments/operations/payment_cancel.rs** Modify existing code **crates/router/src/core/payments/operations/payment_capture.rs** Modify existing code **crates/router/src/core/payments/operations/payment_complete_authorize.rs** Modify existing code **crates/router/src/core/payments/operations/payment_confirm.rs** Modify existing code **crates/router/src/core/payments/operations/payment_create.rs** Modify existing code **crates/router/src/core/payments/operations/payment_post_session_tokens.rs** Modify existing code **crates/router/src/core/payments/operations/payment_reject.rs** Modify existing code **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code **crates/router/src/core/payments/operations/payment_session.rs** Modify existing code **crates/router/src/core/payments/operations/payment_start.rs** Modify existing code **crates/router/src/core/payments/operations/payment_status.rs** Modify existing code **crates/router/src/core/payments/operations/payment_update.rs** Modify existing code **crates/router/src/core/payments/operations/payment_update_metadata.rs** Modify existing code **crates/router/src/core/payments/operations/payments_incremental_authorization.rs** Modify existing code **crates/router/src/core/payments/operations/tax_calculation.rs** Modify existing code **crates/router/src/core/payments/retry.rs** Modify existing code **crates/router/src/core/payments/session_operation.rs** Modify existing code **crates/router/src/core/payments/tokenization.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/core/payouts.rs** Modify existing code **crates/router/src/core/payouts/access_token.rs** Modify existing code **crates/router/src/core/refunds.rs** Modify existing code **crates/router/src/core/refunds_v2.rs** Modify existing code **crates/router/src/core/relay.rs** Modify existing code **crates/router/src/core/relay/utils.rs** Modify existing code **crates/router/src/core/revenue_recovery/api.rs** Modify existing code **crates/router/src/core/revenue_recovery/types.rs** Modify existing code **crates/router/src/core/unified_authentication_service/utils.rs** Modify existing code **crates/router/src/core/utils.rs** Modify existing code **crates/router/src/core/webhooks/incoming.rs** Modify existing code **crates/router/src/core/webhooks/incoming_v2.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Modify existing code **crates/router/src/core/webhooks/utils.rs** Modify existing code **crates/router/src/routes/payments.rs** Modify existing code **crates/router/src/services/api.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/aci.rs** Modify existing code **crates/router/tests/connectors/utils.rs** Modify existing code **crates/router/tests/payments.rs** Modify existing code **crates/router/tests/payments2.rs** Modify existing code
{"pr_number": 7998, "pr_title": "feat(core): add all_keys_required in confirm and psync payload", "merged_at": "2025-05-19T14:00:36Z", "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/authentication/transformers.rs", "crates/router/src/core/authentication/utils.rs", "crates/router/src/core/disputes.rs", "crates/router/src/core/files/helpers.rs", "crates/router/src/core/fraud_check.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.rs", "crates/router/src/core/mandate/utils.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/access_token.rs", "crates/router/src/core/payments/customers.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/operations/payment_approve.rs", "crates/router/src/core/payments/operations/payment_cancel.rs", "crates/router/src/core/payments/operations/payment_capture.rs", "crates/router/src/core/payments/operations/payment_complete_authorize.rs", "crates/router/src/core/payments/operations/payment_confirm.rs", "crates/router/src/core/payments/operations/payment_create.rs", "crates/router/src/core/payments/operations/payment_post_session_tokens.rs", "crates/router/src/core/payments/operations/payment_reject.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/operations/payment_session.rs", "crates/router/src/core/payments/operations/payment_start.rs", "crates/router/src/core/payments/operations/payment_status.rs", "crates/router/src/core/payments/operations/payment_update.rs", "crates/router/src/core/payments/operations/payment_update_metadata.rs", "crates/router/src/core/payments/operations/payments_incremental_authorization.rs", "crates/router/src/core/payments/operations/tax_calculation.rs", "crates/router/src/core/payments/retry.rs", "crates/router/src/core/payments/session_operation.rs", "crates/router/src/core/payments/tokenization.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/payouts.rs", "crates/router/src/core/payouts/access_token.rs", "crates/router/src/core/refunds.rs", "crates/router/src/core/refunds_v2.rs", "crates/router/src/core/relay.rs", "crates/router/src/core/relay/utils.rs", "crates/router/src/core/revenue_recovery/api.rs", "crates/router/src/core/revenue_recovery/types.rs", "crates/router/src/core/unified_authentication_service/utils.rs", "crates/router/src/core/utils.rs", "crates/router/src/core/webhooks/incoming.rs", "crates/router/src/core/webhooks/incoming_v2.rs", "crates/router/src/core/webhooks/recovery_incoming.rs", "crates/router/src/core/webhooks/utils.rs"], "connectors": ["crates/hyperswitch_connectors/src/utils.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"], "tests": ["crates/router/tests/payments.rs", "crates/router/tests/payments2.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/hyperswitch_interfaces/src/conversion_impls.rs", "crates/router/src/compatibility/stripe/payment_intents.rs", "crates/router/src/compatibility/stripe/setup_intents.rs", "crates/router/src/routes/payments.rs", "crates/router/src/services/api.rs"]}, "change_types": {"functions_added": 15, "fields_added": 123, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
- set Instant as the default RefundType
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/analytics/refunds.rs` - `crates/api_models/src/refunds.rs` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/enums.rs`
{"pr_number": 7824, "pr_title": "refactor(refunds): set Instant as the default RefundType", "merged_at": "2025-04-28T11:50:25Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/analytics/refunds.rs", "crates/api_models/src/refunds.rs"], "database": ["crates/diesel_models/src/enums.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Added template code for [Checkbook](https://docs.checkbook.io/reference/)
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 10 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 95077c64: 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/checkbook.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/checkbook/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/checkbook.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": 8494, "pr_title": "feat(connector): [CHECKBOOK] Add Template Code", "merged_at": "2025-07-02T10:27:27Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "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/checkbook.rs", "crates/hyperswitch_connectors/src/connectors/checkbook/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/checkbook.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/sample_auth.toml", "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": 19}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This pr adds api refs for routing ``` "v1/routing/routing--evaluate", "v1/routing/routing--feedback", "v1/routing/routing--rule-evaluate" ``` Moved `RoutingEvaluateRequest`, `RoutingEvaluateResponse`, `DeRoutableConnectorChoice`, `ValueType`, `MetadataValue`, `NumberComparison`, and `ComparisonType` to api_models so that we can use RoutingEvaluateRequest and RoutingEvaluateResponse in to openapi crate.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/open_router.rs` - `crates/api_models/src/routing.rs` **2. Core Business Logic** - `crates/router/src/core/payments/routing/utils.rs` **3. Other** - `api-reference/docs.json` - `api-reference/v1/openapi_spec_v1.json` - `api-reference/v1/routing/routing--evaluate.mdx` - ... and 5 more files **Code Patterns Applied:** - Define new data structures (5 changes) - Implement new functions (5 changes) - Extend existing types with new fields (18 changes) **Detailed Identifier Changes:** Commit 4dea30ff: Files to modify: **crates/api_models/src/open_router.rs** Modify existing code **crates/api_models/src/routing.rs** Modify existing code **crates/openapi/src/openapi.rs** Modify existing code **crates/openapi/src/routes/routing.rs** Modify existing code **crates/router/src/core/payments/routing/utils.rs** Modify existing code **crates/router/src/routes/routing.rs** Modify existing code
{"pr_number": 8709, "pr_title": "feat(routing): Add api-refs for new decision engine endpoints", "merged_at": "2025-07-29T11:33:19Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/open_router.rs", "crates/api_models/src/routing.rs"], "core_business": ["crates/router/src/core/payments/routing/utils.rs"], "other": ["api-reference/docs.json", "api-reference/v1/openapi_spec_v1.json", "api-reference/v1/routing/routing--evaluate.mdx", "api-reference/v1/routing/routing--feedback.mdx", "api-reference/v1/routing/routing--rule-evaluate.mdx", "crates/openapi/src/openapi.rs", "crates/openapi/src/routes/routing.rs", "crates/router/src/routes/routing.rs"]}, "change_types": {"structs_added": 5, "functions_added": 5, "enums_added": 2, "fields_added": 18}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Add Payment connector template for Worldpayvantiv. Worldpay Vantiv, also known as the Worldpay CNP API, is a robust XML-based interface used to process online (card-not-present) transactions such as e-commerce purchases, subscription billing, and digital payments Doc Reference - http://support.worldpay.com/support/CNP-API/content/introduction.htm ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt --all` - [x] I addressed lints thrown by `cargo clippy` - [ ] I reviewed the submitted code - [ ] I added unit tests for my changes where possible
To implement this **payment** feature, you'll need to modify these architectural layers: **1. 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 (158 changes) **Detailed Identifier Changes:** Commit fd844c3d: 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/worldpayvantiv.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpayvantiv/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/worldpayvantiv.rs** Modify existing code **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 8226, "pr_title": "feat(connectors): [Template] add Worldpayvantiv ", "merged_at": "2025-06-04T10:31:32Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "connector", "card"]}, "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/worldpayvantiv.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv/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/worldpayvantiv.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": 158, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This pull request introduces several improvements to the subscription flow, primarily focused on more robust handling and propagation of billing address information, as well as better error handling for missing required fields. The changes ensure that billing address is consistently validated and passed through various layers of the subscription logic, reducing ambiguity and potential runtime errors. **Billing Address Handling and Validation** * Added a `billing` field to `ConfirmSubscriptionPaymentDetails` and `PaymentResponseData` structs, ensuring billing address is captured and available throughout the subscription process. [[1]](diffhunk://#diff-3d85d9e288cc67856867986ee406a3102ce1d0cf9fe5c8f9efed3a578608f817R215) [[2]](diffhunk://#diff-3d85d9e288cc67856867986ee406a3102ce1d0cf9fe5c8f9efed3a578608f817R298-R299) * Implemented `get_billing_address` method for both `ConfirmSubscriptionRequest` and `CreateAndConfirmSubscriptionRequest` to centralize billing address validation and error reporting. [[1]](diffhunk://#diff-3d85d9e288cc67856867986ee406a3102ce1d0cf9fe5c8f9efed3a578608f817R340-L338) [[2]](diffhunk://#diff-3d85d9e288cc67856867986ee406a3102ce1d0cf9fe5c8f9efed3a578608f817R392-R401) **Subscription Flow Updates** * Updated subscription confirmation and creation logic to use the new `get_billing_address` method, improving error handling for missing billing addresses and ensuring billing information is required and validated at each step. [[1]](diffhunk://#diff-adea1b33060886c62616ea56c46edb8f356525cbacea004da12e8819334cf27cL194-R202) [[2]](diffhunk://#diff-adea1b33060886c62616ea56c46edb8f356525cbacea004da12e8819334cf27cL208-R223) [[3]](diffhunk://#diff-adea1b33060886c62616ea56c46edb8f356525cbacea004da12e8819334cf27cL341-R387) **API and Handler Changes** * Refactored `BillingHandler` and `InvoiceHandler` to require billing address as a mandatory parameter and utilize the new validation logic, removing previous optional handling and associated error checks. [[1]](diffhunk://#diff-57a5a7402c9b28e022a6839808acf84b88808f76da82ce1c76a80660c8869ec6L181-R181) [[2]](diffhunk://#diff-57a5a7402c9b28e022a6839808acf84b88808f76da82ce1c76a80660c8869ec6L193-R193) [[3]](diffhunk://#diff-bacee0b3d81189090ca0d5f72fc58118b681a7dd4aab772679f2dec2a585a073L195-R195) [[4]](diffhunk://#diff-bacee0b3d81189090ca0d5f72fc58118b681a7dd4aab772679f2dec2a585a073L223-R223) **Response Structure Improvements** * Modified `ConfirmSubscriptionResponse` to include `plan_id` and `price_id` as parameters, ensuring these values are propagated and available in API responses. [[1]](diffhunk://#diff-adea1b33060886c62616ea56c46edb8f356525cbacea004da12e8819334cf27cR290-R291) [[2]](diffhunk://#diff-adea1b33060886c62616ea56c46edb8f356525cbacea004da12e8819334cf27cR443-R444) [[3]](diffhunk://#diff-1d71cc03e82ba9b3c7478b6304bd763431e20cc723881a1623ab3127301b8976R230-R241)
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/subscription.rs` **2. Core Business Logic** - `crates/router/src/core/subscription.rs` - `crates/router/src/core/subscription/invoice_handler.rs` - `crates/router/src/core/subscription/subscription_handler.rs` **Code Patterns Applied:** - Implement new functions (2 changes) - Extend existing types with new fields (7 changes) **Detailed Identifier Changes:** Commit 435bc117: Files to modify: **crates/api_models/src/subscription.rs** Modify existing code **crates/router/src/core/subscription.rs** Modify existing code **crates/router/src/core/subscription/invoice_handler.rs** Modify existing code **crates/router/src/core/subscription/subscription_handler.rs** Modify existing code
{"pr_number": 9788, "pr_title": "refactor: Refactored Response types for subscription APIs", "merged_at": "2025-10-13T11:00:21Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/subscription.rs"], "core_business": ["crates/router/src/core/subscription.rs", "crates/router/src/core/subscription/invoice_handler.rs", "crates/router/src/core/subscription/subscription_handler.rs"]}, "change_types": {"functions_added": 2, "fields_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This PR resolves the v2 warnings generated in common_utils.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Utils** - `crates/common_utils/src/id_type/global_id.rs` - `crates/common_utils/src/id_type/global_id/customer.rs` - `crates/common_utils/src/id_type/global_id/payment.rs` - ... and 1 more files **Code Patterns Applied:**
{"pr_number": 7358, "pr_title": "chore: resolve v2 warnings in common_utils", "merged_at": "2025-05-13T06:56:09Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"utils": ["crates/common_utils/src/id_type/global_id.rs", "crates/common_utils/src/id_type/global_id/customer.rs", "crates/common_utils/src/id_type/global_id/payment.rs", "crates/common_utils/src/id_type/global_id/refunds.rs"]}, "change_types": {"imports_added": 3}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
Fixed payment failures caused by changes in the Iatapay redirection page by triggering the Simulate button during the redirection flow. ## Motivation and Context Iatapay UPI is failing due to new element added in the redirection page ## How did you test it? Ran locally <img width="1295" height="670" alt="Screenshot 2025-10-13 at 3 15 08 PM" src="https://github.com/user-attachments/assets/69fbed33-bcd6-474b-9d7f-f1824790c91c" /> <img width="772" height="622" alt="Screenshot 2025-10-13 at 3 17 03 PM" src="https://github.com/user-attachments/assets/391eb55e-8965-4e37-a541-3f9977482fa9" /> ## 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/support/redirectionHandler.js`
{"pr_number": 9811, "pr_title": "ci(cypress): Fix Iatapay UPI redirection", "merged_at": "2025-10-13T11:49:13Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"tests": ["cypress-tests/cypress/support/redirectionHandler.js"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Add mandate revoke flow to Braintree https://developer.paypal.com/braintree/graphql/guides/payment_methods/#delete
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/braintree.rs` - `crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs` - `crates/hyperswitch_connectors/src/default_implementations.rs` **Code Patterns Applied:** - Define new data structures (5 changes) - Implement new functions (8 changes) - Extend existing types with new fields (26 changes) **Detailed Identifier Changes:** Commit 2f55be45: Files to modify: **crates/hyperswitch_connectors/src/connectors/braintree.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code
{"pr_number": 7525, "pr_title": "feat(connector): [BRAINTREE] Add revoke mandate flow", "merged_at": "2025-03-15T11:52:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/braintree.rs", "crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs"]}, "change_types": {"structs_added": 5, "functions_added": 8, "enums_added": 1, "fields_added": 26}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This Pr fixes the following 1.Maps cnp_txn_id to connector_transaction_id in error responses when cnp_txn_id is present. 2.Enforces maximum length validation for customer_id and connector_request_reference_id. 3.Maps merchant_order_reference to customer_reference. Since we currently don’t accept any customer-provided ID, merchant_order_reference is used as the customer_reference. ## How did you test it? <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> <details> <summary> Test Payment Reference ID</summary> </br> <details> <summary> Payment Create without passing payment_id </summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_N4Kk872pMhxmIKSazZbKqAzQfpHKxRtRKqB6JHDvd2Dy3yvBeIjvbRNfP7CMpNw0' \ --data '{ "amount":100, "currency": "USD", "confirm": true, "capture_method": "automatic", "customer_id": "aaaa", "payment_method": "card", "payment_method_data": { "card": { "card_number": "371449635398431", "card_exp_month": "03", "card_exp_year": "30", "card_cvc": "7373" } }, "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_RtqW1aiJvJqKbbou3dBf","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_RtqW1aiJvJqKbbou3dBf_secret_j55H6oN8k7awIJ9wlE8x","created":"2025-08-22T08:38:01.856Z","currency":"USD","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":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755851881,"expires":1755855481,"secret":"epk_e4f67de6065a47f69b7dd62a6b676536"},"manual_retry_allowed":false,"connector_transaction_id":"84085436440119947","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":"722914851615","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T08:53:01.856Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-22T08:38:05.188Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` Psync ``` {"payment_id":"pay_RtqW1aiJvJqKbbou3dBf","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"worldpayvantiv","client_secret":"pay_RtqW1aiJvJqKbbou3dBf_secret_j55H6oN8k7awIJ9wlE8x","created":"2025-08-22T08:38:01.856Z","currency":"USD","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":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"84085436440119947","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":"722914851615","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T08:53:01.856Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-22T08:38:16.022Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` </details> </br> <details> <summary>Payment Create by passing payment_id with 28 characters</summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_N4Kk872pMhxmIKSazZbKqAzQfpHKxRtRKqB6JHDvd2Dy3yvBeIjvbRNfP7CMpNw0' \ --data '{ "amount":100, "currency": "USD", "confirm": true, "capture_method": "automatic", "payment_id": "1234567891234567891234567891", "customer_id": "aaaa", "payment_method": "card", "payment_method_data": { "card": { "card_number": "371449635398431", "card_exp_month": "03", "card_exp_year": "30", "card_cvc": "7373" } }, "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":"1234567891234567891234567891","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"1234567891234567891234567891_secret_0Rjkpe7kGLRs93Q6Q20i","created":"2025-08-22T08:41:22.344Z","currency":"USD","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":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755852082,"expires":1755855682,"secret":"epk_ae78361207794ae793784a79a4bf0440"},"manual_retry_allowed":false,"connector_transaction_id":"84085436440147989","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":"350830977505","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T08:56:22.344Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-22T08:41:23.419Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` Psync ``` {"payment_id":"1234567891234567891234567891","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"worldpayvantiv","client_secret":"1234567891234567891234567891_secret_0Rjkpe7kGLRs93Q6Q20i","created":"2025-08-22T08:41:22.344Z","currency":"USD","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":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"84085436440147989","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":"350830977505","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T08:56:22.344Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-22T08:42:35.299Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` </details> </br> <details> <summary>Payment Create by passing payment_id with more than 30 characters </summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_N4Kk872pMhxmIKSazZbKqAzQfpHKxRtRKqB6JHDvd2Dy3yvBeIjvbRNfP7CMpNw0' \ --data '{ "amount":100, "currency": "USD", "confirm": true, "capture_method": "automatic", "payment_id": "X7a9Bq2Lm8Rt4Nv6Pw3KyeHd0Gd5797965", "customer_id": "aaaa", "payment_method": "card", "payment_method_data": { "card": { "card_number": "371449635398431", "card_exp_month": "03", "card_exp_year": "30", "card_cvc": "7373" } }, "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":"X7a9Bq2Lm8Rt4Nv6Pw3KyeHd0Gd5797965","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"X7a9Bq2Lm8Rt4Nv6Pw3KyeHd0Gd5797965_secret_TVtDnJmiIjcNYg8eAeyX","created":"2025-08-22T08:50:27.027Z","currency":"USD","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":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755852626,"expires":1755856226,"secret":"epk_9b06dad3189642e6b509d28d42cf0ce1"},"manual_retry_allowed":false,"connector_transaction_id":"84085436620745420","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":"878812383960","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T09:05:27.027Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-22T08:50:27.475Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` > Note: In this case is_config_enabled_to_send_payment_id_as_connector_request_id is not enabled hence we will send the id we generate Psync ``` {"payment_id":"X7a9Bq2Lm8Rt4Nv6Pw3KyeHd0Gd5797965","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"worldpayvantiv","client_secret":"X7a9Bq2Lm8Rt4Nv6Pw3KyeHd0Gd5797965_secret_TVtDnJmiIjcNYg8eAeyX","created":"2025-08-22T08:50:27.027Z","currency":"USD","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":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"84085436620745420","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":"878812383960","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T09:05:27.027Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-22T08:52:51.713Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` </details> <details> <summary> Payment Create by passing payment_id with 28 characters with is_config_enabled_to_send_payment_id_as_connector_request_id enabled </summary> ```curl curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_N4Kk872pMhxmIKSazZbKqAzQfpHKxRtRKqB6JHDvd2Dy3yvBeIjvbRNfP7CMpNw0' \ --data '{ "amount":100, "currency": "USD", "confirm": true, "capture_method": "automatic", "payment_id": "X7a9Bq2Lm8Rt4Nv6Pw3Ky5Hd0Gc", "customer_id": "aaaa", "payment_method": "card", "payment_method_data": { "card": { "card_number": "371449635398431", "card_exp_month": "03", "card_exp_year": "30", "card_cvc": "7373" } }, "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":"The payment with the specified payment_id already exists in our records","code":"HE_01","reason":"PaymentId(\"X7a9Bq2Lm8Rt4Nv6Pw3Ky5Hd0Gc\") already exists"}} ``` </details> </details> </br> <details><summary>Test customer ID</summary> Create a payment id with 51 characters -> the payment should not fail ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_N4Kk872pMhxmIKSazZbKqAzQfpHKxRtRKqB6JHDvd2Dy3yvBeIjvbRNfP7CMpNw0' \ --data '{ "amount":100, "currency": "USD", "confirm": true, "capture_method": "automatic", "customer_id": "Ab9xL2qWeRtY7uIoPzK4sDfGhJmNcVbX1tUyQwErZaSdFgHiJk", "payment_method": "card", "payment_method_data": { "card": { "card_number": "371449635398431", "card_exp_month": "03", "card_exp_year": "30", "card_cvc": "7373" } }, "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_iKl3IPwXyePRNlXcatnT","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_iKl3IPwXyePRNlXcatnT_secret_gwSugh28oFpJYZ8ms6kD","created":"2025-08-22T11:34:29.994Z","currency":"USD","customer_id":"Ab9xL2qWeRtY7uIoPzK4sDfGhJmNcVbX1tUyQwErZaSdFgHiJk","customer":{"id":"Ab9xL2qWeRtY7uIoPzK4sDfGhJmNcVbX1tUyQwErZaSdFgHiJk","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"Ab9xL2qWeRtY7uIoPzK4sDfGhJmNcVbX1tUyQwErZaSdFgHiJk","created_at":1755862469,"expires":1755866069,"secret":"epk_754d6c55ce6e42499ef22a6a9f560879"},"manual_retry_allowed":false,"connector_transaction_id":"84085439258716242","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":"6WOPuD6Jt-s0ONpyKdwTiSOJUjCh","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T11:49:29.994Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-22T11:34:32.478Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` Psync ``` {"payment_id":"pay_iKl3IPwXyePRNlXcatnT","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"worldpayvantiv","client_secret":"pay_iKl3IPwXyePRNlXcatnT_secret_gwSugh28oFpJYZ8ms6kD","created":"2025-08-22T11:34:29.994Z","currency":"USD","customer_id":"Ab9xL2qWeRtY7uIoPzK4sDfGhJmNcVbX1tUyQwErZaSdFgHiJk","customer":{"id":"Ab9xL2qWeRtY7uIoPzK4sDfGhJmNcVbX1tUyQwErZaSdFgHiJk","name":null,"email":null,"phone":null,"phone_country_code":null},"description":null,"refunds":null,"disputes":null,"mandate_id":null,"mandate_data":null,"setup_future_usage":null,"off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"84085439258716242","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":"6WOPuD6Jt-s0ONpyKdwTiSOJUjCh","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T11:49:29.994Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-22T11:35:15.956Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` </details> </br> <details> <summary>Test connector_transaction_id mapping</summary> Create a CIT payment ```curl curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_N4Kk872pMhxmIKSazZbKqAzQfpHKxRtRKqB6JHDvd2Dy3yvBeIjvbRNfP7CMpNw0' \ --data '{ "amount":100, "currency": "USD", "confirm": true, "capture_method": "automatic", "customer_id": "aaaa", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "371449635398431", "card_exp_month": "03", "card_exp_year": "30", "card_cvc": "7373" } }, "customer_acceptance": { "acceptance_type": "online", "accepted_at": "2025-03-27T13:56:49.848Z", "online": { "ip_address": null, "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.3 Safari/605.1.15" } }, "setup_future_usage": "off_session", "browser_info": { "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "language": "nl-NL", "color_depth": 24, "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true, "ip_address": "13.232.74.226" } }' ``` Response ```json {"payment_id":"pay_gpuWWaVNgGjsFO9Qf2Ht","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"processing","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_gpuWWaVNgGjsFO9Qf2Ht_secret_ZzlzHt4aO4Nd9aEtwLhF","created":"2025-08-22T11:39:35.676Z","currency":"USD","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":"on_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755862775,"expires":1755866375,"secret":"epk_677ebe9f72fc4ecf9251b35805374f60"},"manual_retry_allowed":false,"connector_transaction_id":"83997479617603144","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":"OSU_Spn7Zs7cmEcBXX7YL57bM-T9","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T11:54:35.676Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":null,"network_transaction_id":null,"payment_method_status":null,"updated":"2025-08-22T11:39:38.567Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` Psync ```json {"payment_id":"pay_gpuWWaVNgGjsFO9Qf2Ht","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"succeeded","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":0,"amount_received":100,"connector":"worldpayvantiv","client_secret":"pay_gpuWWaVNgGjsFO9Qf2Ht_secret_ZzlzHt4aO4Nd9aEtwLhF","created":"2025-08-22T11:39:35.676Z","currency":"USD","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":"on_session","off_session":null,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":{"avs_result":"02","advanced_a_v_s_result":null,"authentication_result":null,"card_validation_result":"M"},"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"83997479617603144","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":"OSU_Spn7Zs7cmEcBXX7YL57bM-T9","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T11:54:35.676Z","fingerprint":null,"browser_info":{"language":"nl-NL","time_zone":0,"ip_address":"13.232.74.226","user_agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36","color_depth":24,"java_enabled":true,"screen_width":1536,"accept_header":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8","screen_height":723,"java_script_enabled":true},"payment_channel":null,"payment_method_id":"pm_pLGxYw7DY1nET3bjel8s","network_transaction_id":null,"payment_method_status":"inactive","updated":"2025-08-22T11:40:55.204Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` MIT ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_N4Kk872pMhxmIKSazZbKqAzQfpHKxRtRKqB6JHDvd2Dy3yvBeIjvbRNfP7CMpNw0' \ --data '{ "amount": 15000, "currency": "USD", "off_session": true, "confirm": true, "capture_method": "automatic", "recurring_details": { "type": "payment_method_id", "data": "pm_50OIlMv7pxOew89alATb" }, "customer_id": "aaaa", "connector": [ "worldpayvantiv" ] }' ``` Response ``` {"payment_id":"pay_4Dw2f3P7ITvGcU7nSH75","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"processing","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":15000,"amount_received":null,"connector":"worldpayvantiv","client_secret":"pay_4Dw2f3P7ITvGcU7nSH75_secret_TlgTo55JiDPHRASDLQrK","created":"2025-08-22T11:43:53.999Z","currency":"USD","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":true,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"aaaa","created_at":1755863033,"expires":1755866633,"secret":"epk_5b1da7ef3d42490f8f019fa2b43798cb"},"manual_retry_allowed":false,"connector_transaction_id":"83997479689435292","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":"veeQfK1abJYO7RvVkIBhM5AjITJk","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T11:58:53.999Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_50OIlMv7pxOew89alATb","network_transaction_id":"239605450718890","payment_method_status":"active","updated":"2025-08-22T11:43:54.691Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":"270340788048431","card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` Psync ```json {"payment_id":"pay_4Dw2f3P7ITvGcU7nSH75","merchant_id":"postman_merchant_GHAction_ddbb3a5f-2662-42ea-8552-0e837234ea86","status":"succeeded","amount":15000,"net_amount":15000,"shipping_cost":null,"amount_capturable":0,"amount_received":15000,"connector":"worldpayvantiv","client_secret":"pay_4Dw2f3P7ITvGcU7nSH75_secret_TlgTo55JiDPHRASDLQrK","created":"2025-08-22T11:43:53.999Z","currency":"USD","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":true,"capture_on":null,"capture_method":"automatic","payment_method":"card","payment_method_data":{"card":{"last4":"8431","card_type":null,"card_network":null,"card_issuer":null,"card_issuing_country":null,"card_isin":"371449","card_extended_bin":null,"card_exp_month":"03","card_exp_year":"30","card_holder_name":null,"payment_checks":null,"authentication_data":null},"billing":null},"payment_token":null,"shipping":null,"billing":null,"order_details":null,"email":null,"name":null,"phone":null,"return_url":null,"authentication_type":"no_three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":"credit","connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":null,"manual_retry_allowed":false,"connector_transaction_id":"83997479689435292","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":"veeQfK1abJYO7RvVkIBhM5AjITJk","payment_link":null,"profile_id":"pro_l1p84NUKtcjTefm3Cvx1","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":"mca_hUK6008UqqyNo8IcS7Al","incremental_authorization_allowed":false,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2025-08-22T11:58:53.999Z","fingerprint":null,"browser_info":null,"payment_channel":null,"payment_method_id":"pm_50OIlMv7pxOew89alATb","network_transaction_id":"239605450718890","payment_method_status":"active","updated":"2025-08-22T11:47:31.273Z","split_payments":null,"frm_metadata":null,"extended_authorization_applied":null,"capture_before":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null,"card_discovery":"manual","force_3ds_challenge":false,"force_3ds_challenge_trigger":false,"issuer_error_code":null,"issuer_error_message":null,"is_iframe_redirection_enabled":null,"whole_connector_response":null,"enable_partial_authorization":null} ``` </details> ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt --all` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed the submitted code - [ ] I added unit tests for my changes where possible
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/Cargo.toml` - `crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs` - `crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs` - ... and 1 more files **2. Other** - `Cargo.lock` **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 b1486f8b: Files to modify: **crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code
{"pr_number": 9031, "pr_title": "fix(connectors): [worldpayvantiv] map cnp_txn_id to connector_txn_id and enforce max length for customer_id and connector_request_reference_id", "merged_at": "2025-08-22T13:07:55Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/Cargo.toml", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"], "other": ["Cargo.lock"]}, "change_types": {"functions_added": 8, "fields_added": 23, "conditionals_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Added Feature Matrix supported payment methods, countries and currencies for Multisafepay, Cashtocode, Worldpay and Wellsfargo.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/cashtocode.rs` - `crates/hyperswitch_connectors/src/connectors/deutschebank.rs` - `crates/hyperswitch_connectors/src/connectors/multisafepay.rs` - ... and 2 more files **2. Tests** - `config/deployments/integration_test.toml` **3. Configuration Files** - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - `config/development.toml` - ... and 1 more files **Code Patterns Applied:** - Implement new functions (12 changes) - Extend existing types with new fields (105 changes) **Detailed Identifier Changes:** Commit 8c77da7a: Files to modify: **crates/hyperswitch_connectors/src/connectors/cashtocode.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/deutschebank.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/multisafepay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/wellsfargo.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpay.rs** Modify existing code
{"pr_number": 7149, "pr_title": "feat(connector): [MULTISAFEPAY, CASHTOCODE, WORLDPAY, WELLSFARGO] Supported features for feature matrix", "merged_at": "2025-04-30T09:31:43Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cashtocode.rs", "crates/hyperswitch_connectors/src/connectors/deutschebank.rs", "crates/hyperswitch_connectors/src/connectors/multisafepay.rs", "crates/hyperswitch_connectors/src/connectors/wellsfargo.rs", "crates/hyperswitch_connectors/src/connectors/worldpay.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"]}, "change_types": {"functions_added": 12, "fields_added": 105, "imports_added": 9}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Added flag to the CyberSource capture call to indicate the final capture in cases of manual capture. This flag has been incorporated into the CyberSource capture request body to ensure the issuer bank is informed appropriately. ## 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 cybersource ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:*******' \ --data-raw '{ "amount": 1000, "currency": "USD", "confirm": true, "capture_method": "manual", "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": "4917 6100 0000 0000", "card_exp_month": "03", "card_exp_year": "30", "card_holder_name": "joseph Doe", "card_cvc": "737" } }, "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "joseph", "last_name": "Doe" }, "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_lNsJx0F1KfljeOpelS9S", "merchant_id": "postman_merchant_GHAction_0960f2ad-f7eb-40b6-b26e-76f7b2c8a314", "status": "requires_capture", "amount": 1000, "net_amount": 1000, "shipping_cost": null, "amount_capturable": 1000, "amount_received": null, "connector": "cybersource", "client_secret": "pay_lNsJx0F1KfljeOpelS9S_secret_smChi9KPNC8npC6RrMRM", "created": "2025-01-22T05:59:00.160Z", "currency": "USD", "customer_id": "cust_no_pm", "customer": { "id": "cust_no_pm", "name": null, "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": "manual", "payment_method": "card", "payment_method_data": { "card": { "last4": "0000", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "491761", "card_extended_bin": null, "card_exp_month": "03", "card_exp_year": "30", "card_holder_name": "joseph Doe", "payment_checks": { "avs_response": { "code": "Y", "codeRaw": "Y" }, "card_verification": null }, "authentication_data": null }, "billing": null }, "payment_token": "token_X2vJwiKJaVZGGBlHyCAl", "shipping": null, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": null }, "order_details": null, "email": "guest@example.com", "name": null, "phone": null, "return_url": null, "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "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": 1737525540, "expires": 1737529140, "secret": "epk_ee0b15d3ac32418c85bc7db03112c46c" }, "manual_retry_allowed": false, "connector_transaction_id": "7375255413326173904805", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_lNsJx0F1KfljeOpelS9S_1", "payment_link": null, "profile_id": "pro_fuk87m6LvjQtft86rwDM", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_iFThtaTcJgCADiOBnpnG", "incremental_authorization_allowed": true, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-01-22T06:14:00.160Z", "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-01-22T05:59:02.003Z", "split_payments": null, "frm_metadata": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null } ``` Capture call ``` curl --location 'http://localhost:8080/payments/pay_lNsJx0F1KfljeOpelS9S/capture' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:******8' \ --data '{ "amount_to_capture": 1000, "statement_descriptor_name": "Joseph", "statement_descriptor_suffix": "JS" }' ``` Response ``` { "payment_id": "pay_lNsJx0F1KfljeOpelS9S", "merchant_id": "postman_merchant_GHAction_0960f2ad-f7eb-40b6-b26e-76f7b2c8a314", "status": "processing", "amount": 1000, "net_amount": 1000, "shipping_cost": null, "amount_capturable": 1000, "amount_received": null, "connector": "cybersource", "client_secret": "pay_lNsJx0F1KfljeOpelS9S_secret_smChi9KPNC8npC6RrMRM", "created": "2025-01-22T05:59:00.160Z", "currency": "USD", "customer_id": "cust_no_pm", "customer": { "id": "cust_no_pm", "name": null, "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": "manual", "payment_method": "card", "payment_method_data": { "card": { "last4": "0000", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "491761", "card_extended_bin": null, "card_exp_month": "03", "card_exp_year": "30", "card_holder_name": "joseph Doe", "payment_checks": { "avs_response": { "code": "Y", "codeRaw": "Y" }, "card_verification": null }, "authentication_data": null }, "billing": null }, "payment_token": "token_X2vJwiKJaVZGGBlHyCAl", "shipping": null, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "8056594427", "country_code": "+91" }, "email": null }, "order_details": null, "email": "guest@example.com", "name": null, "phone": null, "return_url": null, "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "debit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": null, "manual_retry_allowed": false, "connector_transaction_id": "7377201269126748303954", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_lNsJx0F1KfljeOpelS9S_1", "payment_link": null, "profile_id": "pro_fuk87m6LvjQtft86rwDM", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_iFThtaTcJgCADiOBnpnG", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-01-22T06:14:00.160Z", "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-01-22T05:59:08.242Z", "split_payments": null, "frm_metadata": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null } ``` ![Screenshot 2025-01-27 at 1 17 13 PM](https://github.com/user-attachments/assets/e9af38f6-0c92-43fc-a41e-f84aa33b77d9) Psync ``` curl --location 'http://localhost:8080/payments/pay_78YAFiVnkKgXA0j3xTjc?force_sync=true' \ --header 'Accept: application/json' \ --header 'api-key: dev_6kiThdH4P6mBBPHdwXYItx4btqxOFYkIMlOnnuhm2Mf3y3puFoZsi8pt3hIm4BJq' ``` Response ``` { "payment_id": "pay_78YAFiVnkKgXA0j3xTjc", "merchant_id": "postman_merchant_GHAction_dfe9803e-7fd8-473e-89d6-9fbf749f1f1f", "status": "succeeded", "amount": 1000, "net_amount": 1000, "shipping_cost": null, "amount_capturable": 0, "amount_received": 1000, "connector": "cybersource", "client_secret": "pay_78YAFiVnkKgXA0j3xTjc_secret_q1IxnrvhYEjKVC7y0wM9", "created": "2025-01-24T12:01:59.112Z", "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": "manual", "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": { "avs_response": { "code": "Y", "codeRaw": "Y" }, "card_verification": null }, "authentication_data": null }, "billing": null }, "payment_token": "token_lRVuuoX4WGATxCGmBEoQ", "shipping": null, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "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": null, "manual_retry_allowed": false, "connector_transaction_id": "7377201269126748303954", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_78YAFiVnkKgXA0j3xTjc_1", "payment_link": null, "profile_id": "pro_oEimuIUyzLP64DhYs9uv", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_pijohfcR2jaEvPLtc1mQ", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-01-24T12:16:59.112Z", "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-01-27T07:50:54.314Z", "split_payments": 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. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs` **Code Patterns Applied:** - Extend existing types with new fields (1 changes)
{"pr_number": 7085, "pr_title": "fix(router): [Cybersource] add flag to indicate final capture ", "merged_at": "2025-02-04T01:21:48Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Implemented payment method: Card no-3ds Implemented Flows 1. Authorization 2. Capture 3. Void 4. Refund 5. Psync 6. Rsync ## How did you test it? <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> <details> <summary>MCA </summary> ```sh curl --location 'http://localhost:8080/account/postman_merchant_GHAction_4cb4b491-da52-43a7-8fff-360261ebd79c/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_8XGtpjTSBeWNmsMy7KR8pdMkGBcvRI6OhCMmzxQcAVj8yjZ8Gp7MCjtNZyJWeFSx' \ --data '{ "connector_type": "payment_processor", "business_country": "US", "business_label": "default", "connector_name": "tesouro", "connector_account_details": { "auth_type": "SignatureKey", "api_key": "nTEAZfcT**********", "api_secret": "4T4su51E2FbR**************/", "key1": "a82c239a-54a7-403f**************" }, "test_mode": false, "disabled": false, "payment_methods_enabled": [ { "payment_method": "card", "payment_method_types": [ { "payment_method_type": "credit", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "card", "payment_method_types": [ { "payment_method_type": "debit", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "wallet", "payment_method_types": [ { "payment_method_type": "apple_pay", "payment_experience": "invoke_sdk_client", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "wallet", "payment_method_types": [ { "payment_method_type": "google_pay", "payment_experience": "invoke_sdk_client", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "wallet", "payment_method_types": [ { "payment_method_type": "skrill", "payment_experience": "redirect_to_url", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": false, "installment_payment_enabled": false } ] }, { "payment_method": "bank_redirect", "payment_method_types": [ { "payment_method_type": "interac", "payment_experience": "redirect_to_url", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "gift_card", "payment_method_types": [ { "payment_method_type": "pay_safe_card", "payment_experience": "invoke_sdk_client", "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] } ], }' ``` Response ```json { "connector_type": "payment_processor", "connector_name": "tesouro", "connector_label": "tesouro_US_default", "merchant_connector_id": "mca_M3Q1V50G2ytWac7zWmOF", "profile_id": "pro_eKnWPC646SRcs9KRGG0n", "connector_account_details": { "auth_type": "SignatureKey", "api_key": "nT***********************ow", "key1": "a8********************************d3", "api_secret": "4T************************************f/" }, "payment_methods_enabled": [ { "payment_method": "card", "payment_method_types": [ { "payment_method_type": "credit", "payment_experience": null, "card_networks": null, "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "card", "payment_method_types": [ { "payment_method_type": "debit", "payment_experience": null, "card_networks": null, "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "wallet", "payment_method_types": [ { "payment_method_type": "apple_pay", "payment_experience": "invoke_sdk_client", "card_networks": null, "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "wallet", "payment_method_types": [ { "payment_method_type": "google_pay", "payment_experience": "invoke_sdk_client", "card_networks": null, "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "wallet", "payment_method_types": [ { "payment_method_type": "skrill", "payment_experience": "redirect_to_url", "card_networks": null, "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": false, "installment_payment_enabled": false } ] }, { "payment_method": "bank_redirect", "payment_method_types": [ { "payment_method_type": "interac", "payment_experience": "redirect_to_url", "card_networks": null, "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method": "gift_card", "payment_method_types": [ { "payment_method_type": "pay_safe_card", "payment_experience": "invoke_sdk_client", "card_networks": null, "accepted_currencies": null, "accepted_countries": null, "minimum_amount": 1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] } ], "connector_webhook_details": null, "metadata": null, "test_mode": false, "disabled": false, "frm_configs": null, "business_country": "US", "business_label": "default", "business_sub_label": null, "applepay_verified_domains": null, "pm_auth_config": null, "status": "active", "additional_merchant_data": null, "connector_wallets_details": null } ``` </details> <details> <summary> Automatic no 3ds Card payment and Refund </summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_CK71LxQKH9Ca9ALpjDMLqTvPdsyUMWegZaSZl2GPErwxQffyESKr0PTWfRtBiHRL' \ --data-raw '{ "amount": 100, "currency": "USD", "confirm": true, "capture_method": "automatic", "email": "hello@123.com", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "4111111111111111", "card_exp_month": "10", "card_exp_year": "25", "card_cvc": "1111" } }, "browser_info": { "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "language": "nl-NL", "color_depth": 24, "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true, "ip_address": "13.232.74.226" }, "billing": { "address": { "zip": "560095", "country": "CA", "state": "ab", "line2": "Fasdf", "city": "Fasdf" } } }' ``` Response ```json { "payment_id": "pay_SVsgv5wtaqOdSpb76MVI", "merchant_id": "postman_merchant_GHAction_9f0a82e1-b575-4a82-933e-2c7ac56d04a8", "status": "succeeded", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 0, "amount_received": 100, "connector": "tesouro", "client_secret": "pay_SVsgv5wtaqOdSpb76MVI_secret_ukZI5V7J8cUQsghCx9Be", "created": "2025-10-01T05:33:30.915Z", "currency": "USD", "customer_id": null, "customer": { "id": null, "name": null, "email": "hello@123.com", "phone": null, "phone_country_code": null }, "description": null, "refunds": null, "disputes": null, "mandate_id": null, "mandate_data": null, "setup_future_usage": 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": "10", "card_exp_year": "25", "card_holder_name": null, "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "CA", "line1": null, "line2": "Fasdf", "line3": null, "zip": "560095", "state": "ab", "first_name": null, "last_name": null, "origin_zip": null }, "phone": null, "email": null }, "order_details": null, "email": null, "name": null, "phone": null, "return_url": null, "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "credit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": null, "manual_retry_allowed": null, "connector_transaction_id": "2a65a3e0-9e88-11f0-9a42-dc24789d2db7", "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_Za2p72f3BBR1hq7Y1RSc", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_r0WktD3si60vWLU2A0fP", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-01T05:48:30.915Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "13.232.74.226", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "color_depth": 24, "java_enabled": true, "screen_width": 1536, "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "screen_height": 723, "java_script_enabled": true }, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-01T05:33:31.364Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "request_extended_authorization": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null, "card_discovery": "manual", "force_3ds_challenge": false, "force_3ds_challenge_trigger": false, "issuer_error_code": null, "issuer_error_message": null, "is_iframe_redirection_enabled": null, "whole_connector_response": null, "enable_partial_authorization": null, "enable_overcapture": null, "is_overcapture_enabled": null, "network_details": null } ``` Refund the transaction ``` curl --location 'http://localhost:8080/refunds' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_CK71LxQKH9Ca9ALpjDMLqTvPdsyUMWegZaSZl2GPErwxQffyESKr0PTWfRtBiHRL' \ --data '{ "payment_id": "pay_SVsgv5wtaqOdSpb76MVI", "reason": "Customer returned product", "refund_type": "instant", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` Response ```json { "refund_id": "ref_BH1KVGCPkjKW6jKtLpWN", "payment_id": "pay_SVsgv5wtaqOdSpb76MVI", "amount": 100, "currency": "USD", "status": "pending", "reason": "Customer returned product", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" }, "error_message": null, "error_code": null, "unified_code": null, "unified_message": null, "created_at": "2025-10-01T05:35:46.545Z", "updated_at": "2025-10-01T05:35:48.609Z", "connector": "tesouro", "profile_id": "pro_Za2p72f3BBR1hq7Y1RSc", "merchant_connector_id": "mca_r0WktD3si60vWLU2A0fP", "split_refunds": null, "issuer_error_code": null, "issuer_error_message": null } ``` Rsync ``` curl --location 'http://localhost:8080/refunds/ref_BH1KVGCPkjKW6jKtLpWN' \ --header 'Accept: application/json' \ --header 'api-key: dev_CK71LxQKH9Ca9ALpjDMLqTvPdsyUMWegZaSZl2GPErwxQffyESKr0PTWfRtBiHRL' ``` Response ```json { "refund_id": "ref_BH1KVGCPkjKW6jKtLpWN", "payment_id": "pay_SVsgv5wtaqOdSpb76MVI", "amount": 100, "currency": "USD", "status": "succeeded", "reason": "Customer returned product", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" }, "error_message": null, "error_code": null, "unified_code": null, "unified_message": null, "created_at": "2025-10-01T05:35:46.545Z", "updated_at": "2025-10-01T05:36:42.990Z", "connector": "tesouro", "profile_id": "pro_Za2p72f3BBR1hq7Y1RSc", "merchant_connector_id": "mca_r0WktD3si60vWLU2A0fP", "split_refunds": null, "issuer_error_code": null, "issuer_error_message": null } ``` </details> <details> <summary>Manual Payment and Capture </summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_CK71LxQKH9Ca9ALpjDMLqTvPdsyUMWegZaSZl2GPErwxQffyESKr0PTWfRtBiHRL' \ --data-raw '{ "amount": 100, "currency": "USD", "confirm": true, "capture_method": "manual", "email": "hello@123.com", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "4111111111111111", "card_exp_month": "10", "card_exp_year": "25", "card_cvc": "1111" } }, "browser_info": { "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "language": "nl-NL", "color_depth": 24, "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true, "ip_address": "13.232.74.226" }, "billing": { "address": { "zip": "560095", "country": "CA", "state": "ab", "line2": "Fasdf", "city": "Fasdf" } } }' ``` Response ```json { "payment_id": "pay_OZP40FmatEF5cs67oZiX", "merchant_id": "postman_merchant_GHAction_9f0a82e1-b575-4a82-933e-2c7ac56d04a8", "status": "requires_capture", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 100, "amount_received": null, "connector": "tesouro", "client_secret": "pay_OZP40FmatEF5cs67oZiX_secret_8H4Yrw0NUSU8Cbzq2s9j", "created": "2025-10-01T06:07:43.490Z", "currency": "USD", "customer_id": null, "customer": { "id": null, "name": null, "email": "hello@123.com", "phone": null, "phone_country_code": null }, "description": null, "refunds": null, "disputes": null, "mandate_id": null, "mandate_data": null, "setup_future_usage": null, "off_session": null, "capture_on": null, "capture_method": "manual", "payment_method": "card", "payment_method_data": { "card": { "last4": "1111", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "411111", "card_extended_bin": null, "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": null, "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "CA", "line1": null, "line2": "Fasdf", "line3": null, "zip": "560095", "state": "ab", "first_name": null, "last_name": null, "origin_zip": null }, "phone": null, "email": null }, "order_details": null, "email": null, "name": null, "phone": null, "return_url": null, "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "credit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": null, "manual_retry_allowed": null, "connector_transaction_id": "f1bde650-9e8c-11f0-b70a-028553774ff4", "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_Za2p72f3BBR1hq7Y1RSc", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_r0WktD3si60vWLU2A0fP", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-01T06:22:43.490Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "13.232.74.226", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "color_depth": 24, "java_enabled": true, "screen_width": 1536, "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "screen_height": 723, "java_script_enabled": true }, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-01T06:07:43.817Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "request_extended_authorization": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null, "card_discovery": "manual", "force_3ds_challenge": false, "force_3ds_challenge_trigger": false, "issuer_error_code": null, "issuer_error_message": null, "is_iframe_redirection_enabled": null, "whole_connector_response": null, "enable_partial_authorization": null, "enable_overcapture": null, "is_overcapture_enabled": null, "network_details": null } ``` Capture ```sh curl --location 'http://localhost:8080/payments/pay_OZP40FmatEF5cs67oZiX/capture' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_CK71LxQKH9Ca9ALpjDMLqTvPdsyUMWegZaSZl2GPErwxQffyESKr0PTWfRtBiHRL' \ --data '{ "amount_to_capture": 10 }' ``` Response ``` { "payment_id": "pay_OZP40FmatEF5cs67oZiX", "merchant_id": "postman_merchant_GHAction_9f0a82e1-b575-4a82-933e-2c7ac56d04a8", "status": "partially_captured", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 0, "amount_received": 10, "connector": "tesouro", "client_secret": "pay_OZP40FmatEF5cs67oZiX_secret_8H4Yrw0NUSU8Cbzq2s9j", "created": "2025-10-01T06:07:43.490Z", "currency": "USD", "customer_id": null, "customer": { "id": null, "name": null, "email": "hello@123.com", "phone": null, "phone_country_code": null }, "description": null, "refunds": null, "disputes": null, "mandate_id": null, "mandate_data": null, "setup_future_usage": null, "off_session": null, "capture_on": null, "capture_method": "manual", "payment_method": "card", "payment_method_data": { "card": { "last4": "1111", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "411111", "card_extended_bin": null, "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": null, "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "CA", "line1": null, "line2": "Fasdf", "line3": null, "zip": "560095", "state": "ab", "first_name": null, "last_name": null, "origin_zip": null }, "phone": null, "email": null }, "order_details": null, "email": null, "name": null, "phone": null, "return_url": null, "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "credit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": null, "manual_retry_allowed": null, "connector_transaction_id": "151c88db-9e8d-11f0-b47c-e0f5e6f853d2", "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_Za2p72f3BBR1hq7Y1RSc", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_r0WktD3si60vWLU2A0fP", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-01T06:22:43.490Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "13.232.74.226", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "color_depth": 24, "java_enabled": true, "screen_width": 1536, "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "screen_height": 723, "java_script_enabled": true }, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-01T06:08:43.141Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "request_extended_authorization": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null, "card_discovery": "manual", "force_3ds_challenge": false, "force_3ds_challenge_trigger": false, "issuer_error_code": null, "issuer_error_message": null, "is_iframe_redirection_enabled": null, "whole_connector_response": null, "enable_partial_authorization": null, "enable_overcapture": null, "is_overcapture_enabled": null, "network_details": null } ``` </details> <details> <summary>Manual Capture and Void </summary> ```sh curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_CK71LxQKH9Ca9ALpjDMLqTvPdsyUMWegZaSZl2GPErwxQffyESKr0PTWfRtBiHRL' \ --data-raw '{ "amount": 100, "currency": "USD", "confirm": true, "capture_method": "manual", "email": "hello@123.com", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "4111111111111111", "card_exp_month": "10", "card_exp_year": "25", "card_cvc": "1111" } }, "browser_info": { "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "language": "nl-NL", "color_depth": 24, "screen_height": 723, "screen_width": 1536, "time_zone": 0, "java_enabled": true, "java_script_enabled": true, "ip_address": "13.232.74.226" }, "billing": { "address": { "zip": "560095", "country": "CA", "state": "ab", "line2": "Fasdf", "city": "Fasdf" } } }' ``` Response ```json { "payment_id": "pay_pSZnmh27wWa0DL3kj6A6", "merchant_id": "postman_merchant_GHAction_9f0a82e1-b575-4a82-933e-2c7ac56d04a8", "status": "requires_capture", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 100, "amount_received": null, "connector": "tesouro", "client_secret": "pay_pSZnmh27wWa0DL3kj6A6_secret_lZpYQsWHUWSrZ9U6altL", "created": "2025-10-01T06:10:29.198Z", "currency": "USD", "customer_id": null, "customer": { "id": null, "name": null, "email": "hello@123.com", "phone": null, "phone_country_code": null }, "description": null, "refunds": null, "disputes": null, "mandate_id": null, "mandate_data": null, "setup_future_usage": null, "off_session": null, "capture_on": null, "capture_method": "manual", "payment_method": "card", "payment_method_data": { "card": { "last4": "1111", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "411111", "card_extended_bin": null, "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": null, "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "CA", "line1": null, "line2": "Fasdf", "line3": null, "zip": "560095", "state": "ab", "first_name": null, "last_name": null, "origin_zip": null }, "phone": null, "email": null }, "order_details": null, "email": null, "name": null, "phone": null, "return_url": null, "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "credit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": null, "manual_retry_allowed": null, "connector_transaction_id": "549579c0-9e8d-11f0-84dd-40baeaafcfb0", "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_Za2p72f3BBR1hq7Y1RSc", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_r0WktD3si60vWLU2A0fP", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-01T06:25:29.198Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "13.232.74.226", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "color_depth": 24, "java_enabled": true, "screen_width": 1536, "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "screen_height": 723, "java_script_enabled": true }, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-01T06:10:29.617Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "request_extended_authorization": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null, "card_discovery": "manual", "force_3ds_challenge": false, "force_3ds_challenge_trigger": false, "issuer_error_code": null, "issuer_error_message": null, "is_iframe_redirection_enabled": null, "whole_connector_response": null, "enable_partial_authorization": null, "enable_overcapture": null, "is_overcapture_enabled": null, "network_details": null } ``` Void ```sh curl --location 'http://localhost:8080/payments/pay_pSZnmh27wWa0DL3kj6A6/cancel' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_CK71LxQKH9Ca9ALpjDMLqTvPdsyUMWegZaSZl2GPErwxQffyESKr0PTWfRtBiHRL' \ --data '{"cancellation_reason":"requested_by_customer"}' ``` Response ```json { "payment_id": "pay_pSZnmh27wWa0DL3kj6A6", "merchant_id": "postman_merchant_GHAction_9f0a82e1-b575-4a82-933e-2c7ac56d04a8", "status": "processing", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": "tesouro", "client_secret": "pay_pSZnmh27wWa0DL3kj6A6_secret_lZpYQsWHUWSrZ9U6altL", "created": "2025-10-01T06:10:29.198Z", "currency": "USD", "customer_id": null, "customer": { "id": null, "name": null, "email": "hello@123.com", "phone": null, "phone_country_code": null }, "description": null, "refunds": null, "disputes": null, "mandate_id": null, "mandate_data": null, "setup_future_usage": null, "off_session": null, "capture_on": null, "capture_method": "manual", "payment_method": "card", "payment_method_data": { "card": { "last4": "1111", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "411111", "card_extended_bin": null, "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": null, "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "CA", "line1": null, "line2": "Fasdf", "line3": null, "zip": "560095", "state": "ab", "first_name": null, "last_name": null, "origin_zip": null }, "phone": null, "email": null }, "order_details": null, "email": null, "name": null, "phone": null, "return_url": null, "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": "requested_by_customer", "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "credit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": null, "manual_retry_allowed": null, "connector_transaction_id": "78a30d77-9e8d-11f0-83af-ca1c1383be41", "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_Za2p72f3BBR1hq7Y1RSc", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_r0WktD3si60vWLU2A0fP", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-01T06:25:29.198Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "13.232.74.226", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "color_depth": 24, "java_enabled": true, "screen_width": 1536, "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "screen_height": 723, "java_script_enabled": true }, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-01T06:11:30.100Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "request_extended_authorization": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null, "card_discovery": "manual", "force_3ds_challenge": false, "force_3ds_challenge_trigger": false, "issuer_error_code": null, "issuer_error_message": null, "is_iframe_redirection_enabled": null, "whole_connector_response": null, "enable_partial_authorization": null, "enable_overcapture": null, "is_overcapture_enabled": null, "network_details": null } ``` Psync ``` curl --location 'http://localhost:8080/payments/pay_pSZnmh27wWa0DL3kj6A6?force_sync=true' \ --header 'Accept: application/json' \ --header 'api-key: dev_CK71LxQKH9Ca9ALpjDMLqTvPdsyUMWegZaSZl2GPErwxQffyESKr0PTWfRtBiHRL' ``` Response ```json { "payment_id": "pay_pSZnmh27wWa0DL3kj6A6", "merchant_id": "postman_merchant_GHAction_9f0a82e1-b575-4a82-933e-2c7ac56d04a8", "status": "cancelled", "amount": 100, "net_amount": 100, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": "tesouro", "client_secret": "pay_pSZnmh27wWa0DL3kj6A6_secret_lZpYQsWHUWSrZ9U6altL", "created": "2025-10-01T06:10:29.198Z", "currency": "USD", "customer_id": null, "customer": { "id": null, "name": null, "email": "hello@123.com", "phone": null, "phone_country_code": null }, "description": null, "refunds": null, "disputes": null, "mandate_id": null, "mandate_data": null, "setup_future_usage": null, "off_session": null, "capture_on": null, "capture_method": "manual", "payment_method": "card", "payment_method_data": { "card": { "last4": "1111", "card_type": null, "card_network": null, "card_issuer": null, "card_issuing_country": null, "card_isin": "411111", "card_extended_bin": null, "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": null, "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": null, "billing": { "address": { "city": "Fasdf", "country": "CA", "line1": null, "line2": "Fasdf", "line3": null, "zip": "560095", "state": "ab", "first_name": null, "last_name": null, "origin_zip": null }, "phone": null, "email": null }, "order_details": null, "email": null, "name": null, "phone": null, "return_url": null, "authentication_type": "no_three_ds", "statement_descriptor_name": null, "statement_descriptor_suffix": null, "next_action": null, "cancellation_reason": "requested_by_customer", "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "credit", "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": null, "manual_retry_allowed": null, "connector_transaction_id": "78a30d77-9e8d-11f0-83af-ca1c1383be41", "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_Za2p72f3BBR1hq7Y1RSc", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_r0WktD3si60vWLU2A0fP", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-10-01T06:25:29.198Z", "fingerprint": null, "browser_info": { "language": "nl-NL", "time_zone": 0, "ip_address": "13.232.74.226", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36", "color_depth": 24, "java_enabled": true, "screen_width": 1536, "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "screen_height": 723, "java_script_enabled": true }, "payment_channel": null, "payment_method_id": null, "network_transaction_id": null, "payment_method_status": null, "updated": "2025-10-01T06:12:05.583Z", "split_payments": null, "frm_metadata": null, "extended_authorization_applied": null, "request_extended_authorization": null, "capture_before": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null, "card_discovery": "manual", "force_3ds_challenge": false, "force_3ds_challenge_trigger": false, "issuer_error_code": null, "issuer_error_message": null, "is_iframe_redirection_enabled": null, "whole_connector_response": null, "enable_partial_authorization": null, "enable_overcapture": null, "is_overcapture_enabled": null, "network_details": null } ``` </details> > Note: Due to fast execution of cypress testcases, connector randomly returns processing status - causing some Testcases to fail randomly. <img width="621" height="635" alt="Screenshot 2025-10-01 at 11 43 45 AM" src="https://github.com/user-attachments/assets/613be43b-d154-455a-8a95-b2bec65220ef" /> ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt --all` - [x] I addressed lints thrown by `cargo clippy` - [ ] I reviewed the submitted code - [ ] I added unit tests for my changes where possible
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/connector_validation.rs` **2. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/connector_configs/src/connector.rs` - `crates/connector_configs/toml/development.toml` - ... and 7 more files **3. Type Definitions** - `crates/router/src/types/api/feature_matrix.rs` **4. Tests** - `config/deployments/integration_test.toml` - `cypress-tests/cypress/e2e/configs/Payment/Tesouro.js` - `cypress-tests/cypress/e2e/configs/Payment/Utils.js` **5. Configuration Files** - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - `config/development.toml` - ... and 1 more files **6. Other** - `api-reference/v1/openapi_spec_v1.json` - `api-reference/v2/openapi_spec_v2.json` **Code Patterns Applied:** - Define new data structures (39 changes) - Implement new functions (38 changes) - Extend existing types with new fields (890 changes) - Add conditional logic for feature flags or filtering (12 changes) **Detailed Identifier Changes:** Commit fbd92fa1: 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/tesouro.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/tesouro/transformers.rs** Modify existing code **crates/payment_methods/src/configs/payment_connector_required_fields.rs** Modify existing code **crates/router/src/core/connector_validation.rs** Modify existing code **crates/router/src/types/api/connector_mapping.rs** Modify existing code **crates/router/src/types/api/feature_matrix.rs** Modify existing code **crates/router/src/types/connector_transformers.rs** Modify existing code
{"pr_number": 9632, "pr_title": "feat(connectors): [Tesouro] Integrate no-threeds cards", "merged_at": "2025-10-01T13:05:07Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/connector_validation.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/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", "crates/payment_methods/src/configs/payment_connector_required_fields.rs", "crates/router/src/types/api/connector_mapping.rs", "crates/router/src/types/connector_transformers.rs"], "types": ["crates/router/src/types/api/feature_matrix.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/configs/Payment/Tesouro.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js"], "config": ["config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json"]}, "change_types": {"structs_added": 39, "functions_added": 38, "enums_added": 12, "fields_added": 890, "imports_added": 5, "conditionals_added": 12}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> In this PR 1. A new next action is added ```json "next_action": { "type": "invoke_hidden_iframe", "iframe_data": { "method_key": "threeDSMethodData", "three_ds_method_url": "https://sis-d.redsys.es/sis-simulador-web/threeDsMethod.jsp", "three_ds_method_data_submission": true, "three_ds_method_data": "eyJ0aHJlZURTU2VydmVyVHJhbnNJRCI6Imh0dHBzOi8vc2lzLWQucmVkc3lzLmVzL3Npcy1zaW11bGFkb3Itd2ViL3RocmVlRHNNZXRob2QuanNwIiwidGhyZWVEU01ldGhvZE5vdGlmaWNhdGlvblVSTCI6Imh0dHA6Ly9sb2NhbGhvc3Q6ODA4MC93ZWJob29rcy9wb3N0bWFuX21lcmNoYW50X0dIQWN0aW9uX2VkMzczYmQzLTM4MGYtNDAyNi1hZGY3LTNiN2I2MzAwOGFhNy9tY2FfYUI2Tk9BdXk4cEpLV2ZPd1NUaUcifQ==", "directory_server_id": "e8a57182-7192-474f-8808-e651855c0dd7", "message_version": "2.1.0" } } ``` 2. Threeds Methods completion flag is added to the payments request and is used in the complete authorize router data 3. Card 3DS Implemeneted for Redsys Redsys 3DS has 4 Scenarios -> Threeds Invoke + Challenge (Card number to trigger - 4918019199883839) -> Threeds Invoke + Frictionless (Card number to trigger - 4918019160034602) -> Challenge (Card number to trigger - 4548817212493017) -> Frictionless (Card number to trigger - 4548814479727229) Redsys Connector Create ``` "connector_account_details": { "auth_type": "SignatureKey", "api_key": "merchant_id", "key1": "terminal_id", "api_secret": "sha256_pwd" } ``` ## Additional Fixes Modifications have been made to ensure: 1. Preprocessing for Xendit payments will only be triggered during the PaymentsAuthorize call. 2. If a payment method is supported by the connector and the payment_method_type for the transaction is unspecified (None), the payment method will be regarded as supported by the connector. 3. Signals feature is removed from `hyperswitch_connector` crate ## How is this next action different form ThreedsInvoke In ThreedsInvoke, after invoking an iframe. The front end, has to call two other APIs to complete the payment. This next action only requires calling complete_authorize API
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. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/router_request_types.rs` **3. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/operations/payment_approve.rs` - ... and 14 more files **4. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/connector_configs/src/connector.rs` - `crates/connector_configs/toml/development.toml` - ... and 9 more files **5. Type Definitions** - `crates/router/src/compatibility/stripe/payment_intents/types.rs` - `crates/router/src/compatibility/stripe/setup_intents/types.rs` - `crates/router/src/types/api.rs` - ... and 1 more files **6. Utils** - `crates/common_utils/Cargo.toml` - `crates/common_utils/src/crypto.rs` - `crates/common_utils/src/errors.rs` **7. Tests** - `config/deployments/integration_test.toml` - `cypress-tests/cypress/e2e/configs/Payment/Redsys.js` - `cypress-tests/cypress/e2e/configs/Payment/Utils.js` - ... and 4 more files **8. Configuration Files** - `config/config.example.toml` - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - ... and 2 more files **9. Other** - `Cargo.lock` - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` - ... and 5 more files **Code Patterns Applied:** - Define new data structures (18 changes) - Implement new functions (72 changes) - Extend existing types with new fields (827 changes) - Add conditional logic for feature flags or filtering (15 changes) **Detailed Identifier Changes:** Commit a1ecce8f: Files to modify: **crates/api_models/src/payments.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/crypto.rs** Modify existing code **crates/common_utils/src/errors.rs** Modify existing code **crates/connector_configs/src/connector.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/redsys.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types.rs** Modify existing code **crates/hyperswitch_interfaces/src/api.rs** Modify existing code **crates/openapi/src/openapi.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/router/src/compatibility/stripe/payment_intents/types.rs** Modify existing code **crates/router/src/compatibility/stripe/setup_intents/types.rs** Modify existing code **crates/router/src/configs/defaults/payment_connector_required_fields.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/operations/payment_approve.rs** Modify existing code **crates/router/src/core/payments/operations/payment_cancel.rs** Modify existing code **crates/router/src/core/payments/operations/payment_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/payments/transformers.rs** Modify existing code **crates/router/src/routes/payments.rs** Modify existing code **crates/router/src/types/api.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"pr_number": 7508, "pr_title": "feat(connectors): [Redsys] add 3D secure card payment support, including transaction capture, cancellation, and refunds", "merged_at": "2025-03-21T10:12:17Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/router_request_types.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/operations/payment_approve.rs", "crates/router/src/core/payments/operations/payment_cancel.rs", "crates/router/src/core/payments/operations/payment_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/payments/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/hyperswitch_connectors/Cargo.toml", "crates/hyperswitch_connectors/src/connectors/razorpay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/redsys.rs", "crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs"], "types": ["crates/router/src/compatibility/stripe/payment_intents/types.rs", "crates/router/src/compatibility/stripe/setup_intents/types.rs", "crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "utils": ["crates/common_utils/Cargo.toml", "crates/common_utils/src/crypto.rs", "crates/common_utils/src/errors.rs"], "tests": ["config/deployments/integration_test.toml", "cypress-tests/cypress/e2e/configs/Payment/Redsys.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js", "cypress-tests/cypress/support/commands.js", "cypress-tests/cypress/support/redirectionHandler.js", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml"], "other": ["Cargo.lock", "api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/hyperswitch_interfaces/src/api.rs", "crates/openapi/src/openapi.rs", "crates/openapi/src/openapi_v2.rs", "crates/router/src/routes/payments.rs"]}, "change_types": {"structs_added": 18, "functions_added": 72, "enums_added": 8, "fields_added": 827, "imports_added": 10, "conditionals_added": 15}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
https://github.com/juspay/hyperswitch/pull/9659 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 (1 changes) - Extend existing types with new fields (9 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit cd47f4bc: 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": 9690, "pr_title": "refactor(routing): update configs on updation of mca", "merged_at": "2025-10-08T08:05:17Z", "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": 1, "fields_added": 9, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
- Adyen sofort was failing in cypress automation as sofort payment method is deprecated from adyen, hence handled the error message - Fixed Variation case for iatapay
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Tests** - `cypress-tests/cypress/e2e/PaymentUtils/Adyen.js` - `cypress-tests/cypress/e2e/PaymentUtils/Iatapay.js` **Code Patterns Applied:** - Extend existing types with new fields (17 changes)
{"pr_number": 6984, "pr_title": "ci(cypress): fix adyen sofort in cypress", "merged_at": "2025-01-03T19:57:49Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"tests": ["cypress-tests/cypress/e2e/PaymentUtils/Adyen.js", "cypress-tests/cypress/e2e/PaymentUtils/Iatapay.js"]}, "change_types": {"fields_added": 17}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Moving connectors (NMI,Riskified,and payone) from `router` crate to `hyperswitch_connector` crate
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payments/flows.rs` **2. External Connector Integration** - `crates/hyperswitch_connectors/Cargo.toml` - `crates/hyperswitch_connectors/src/connectors.rs` - `crates/router/src/connector/nmi.rs` - ... and 13 more files **3. Configuration Files** - `crates/router/Cargo.toml` **4. Other** - `Cargo.lock` - `crates/router/src/macros.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (30 changes) - Extend existing types with new fields (242 changes) - Add conditional logic for feature flags or filtering (2 changes) - Modify database queries (1 changes) **Detailed Identifier Changes:** Commit b4610875: Files to modify: **crates/hyperswitch_connectors/src/connectors.rs** Modify existing code **crates/router/src/connector/nmi.rs** Modify existing code **crates/router/src/connector/nmi/transformers.rs** Modify existing code **crates/router/src/connector/payone.rs** Modify existing code **crates/router/src/connector/payone/transformers.rs** Modify existing code **crates/router/src/connector/riskified.rs** Modify existing code **crates/router/src/connector/riskified/transformers.rs** Modify existing code **crates/router/src/connector/riskified/transformers/api.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/riskified/transformers/auth.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations_v2.rs** Modify existing code **crates/hyperswitch_connectors/src/types.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/router/src/connector.rs** Modify existing code **crates/router/src/connector/riskified/transformers/auth.rs** Modify existing code **crates/router/src/core/payments/flows.rs** Modify existing code **crates/router/src/macros.rs** Modify existing code
{"pr_number": 7666, "pr_title": "refactor(connector): [NMI,PAYONE,RISKIFIED] moved to hyperswitch_connectors", "merged_at": "2025-04-24T10:35:43Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/flows.rs"], "connectors": ["crates/hyperswitch_connectors/Cargo.toml", "crates/hyperswitch_connectors/src/connectors.rs", "crates/router/src/connector/nmi.rs", "crates/router/src/connector/nmi/transformers.rs", "crates/router/src/connector/payone.rs", "crates/router/src/connector/payone/transformers.rs", "crates/router/src/connector/riskified.rs", "crates/router/src/connector/riskified/transformers.rs", "crates/router/src/connector/riskified/transformers/api.rs", "crates/hyperswitch_connectors/src/connectors/riskified/transformers/auth.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/hyperswitch_connectors/src/types.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector.rs", "crates/router/src/connector/riskified/transformers/auth.rs"], "config": ["crates/router/Cargo.toml"], "other": ["Cargo.lock", "crates/router/src/macros.rs"]}, "change_types": {"structs_added": 1, "functions_added": 30, "fields_added": 242, "imports_added": 54, "conditionals_added": 2, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
- Add support for user in tenants configs. - Handle email URLs for different tenancies
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/recon.rs` - `crates/router/src/core/user.rs` - `crates/router/src/core/user/dashboard_metadata.rs` **2. Type Definitions** - `crates/router/src/services/email/types.rs` **3. Tests** - `loadtest/config/development.toml` **4. Configuration Files** - `config/config.example.toml` - `config/deployments/env_specific.toml` - `config/development.toml` - ... and 2 more files **5. Other** - `crates/external_services/src/email.rs` - `crates/router/src/workflows/api_key_expiry.rs` **Code Patterns Applied:** - Define new data structures (2 changes) - Implement new functions (11 changes) - Extend existing types with new fields (7 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit 839e69df: Files to modify: **crates/external_services/src/email.rs** Modify existing code **crates/router/src/configs/settings.rs** Modify existing code **crates/router/src/core/recon.rs** Modify existing code **crates/router/src/core/user.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/workflows/api_key_expiry.rs** Modify existing code
{"pr_number": 6809, "pr_title": "feat(users): handle email url for users in different tenancies", "merged_at": "2024-12-19T08:50:07Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "token"]}, "hierarchy": {"core_business": ["crates/router/src/core/recon.rs", "crates/router/src/core/user.rs", "crates/router/src/core/user/dashboard_metadata.rs"], "types": ["crates/router/src/services/email/types.rs"], "tests": ["loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "config/development.toml", "config/docker_compose.toml", "crates/router/src/configs/settings.rs"], "other": ["crates/external_services/src/email.rs", "crates/router/src/workflows/api_key_expiry.rs"]}, "change_types": {"structs_added": 2, "functions_added": 11, "fields_added": 7, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> I have implemented a gRPC client that facilitates communication with the recovery-decider gRPC service. The client should be capable of initializing and managing the connection to the service, sending requests, and handling responses in accordance with the defined service contract (protobuf definitions).
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payments/operations/proxy_payments_intent.rs` - `crates/router/src/core/revenue_recovery/types.rs` **2. Type Definitions** - `crates/router/src/types/storage/revenue_recovery.rs` **3. Tests** - `config/deployments/integration_test.toml` **4. Configuration Files** - `config/config.example.toml` - `config/deployments/env_specific.toml` - `config/deployments/production.toml` - ... and 6 more files **5. Other** - `Cargo.lock` - `crates/external_services/build.rs` - `crates/external_services/src/grpc_client.rs` - ... and 6 more files **Code Patterns Applied:** - Define new data structures (4 changes) - Implement new functions (11 changes) - Extend existing types with new fields (97 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit 654c15ee: Files to modify: **crates/external_services/build.rs** Modify existing code **crates/external_services/src/grpc_client.rs** Modify existing code **crates/external_services/src/grpc_client/revenue_recovery.rs** Modify existing code **crates/external_services/src/grpc_client/revenue_recovery/recovery_decider_client.rs** Modify existing code **crates/external_services/src/lib.rs** Modify existing code **crates/router/src/configs/settings.rs** Modify existing code **crates/router/src/core/payments/operations/proxy_payments_intent.rs** Modify existing code **crates/router/src/core/revenue_recovery/types.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/types/storage/revenue_recovery.rs** Modify existing code **crates/router/src/workflows/revenue_recovery.rs** Modify existing code
{"pr_number": 8178, "pr_title": "feat(gRPC): build gRPC client interface to initiate communication with recovery-decider service", "merged_at": "2025-08-06T13:44:24Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/proxy_payments_intent.rs", "crates/router/src/core/revenue_recovery/types.rs"], "types": ["crates/router/src/types/storage/revenue_recovery.rs"], "tests": ["config/deployments/integration_test.toml"], "config": ["config/config.example.toml", "config/deployments/env_specific.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml", "crates/external_services/Cargo.toml", "crates/router/Cargo.toml", "crates/router/src/configs/settings.rs"], "other": ["Cargo.lock", "crates/external_services/build.rs", "crates/external_services/src/grpc_client.rs", "crates/external_services/src/grpc_client/revenue_recovery.rs", "crates/external_services/src/grpc_client/revenue_recovery/recovery_decider_client.rs", "crates/external_services/src/lib.rs", "crates/router/src/routes/app.rs", "crates/router/src/workflows/revenue_recovery.rs", "proto/recovery_decider.proto"]}, "change_types": {"structs_added": 4, "functions_added": 11, "enums_added": 2, "fields_added": 97, "imports_added": 21, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Error message from cashtocode is now populated in error reason along with error message as well.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/cashtocode.rs` - `crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs` **Code Patterns Applied:** - Extend existing types with new fields (4 changes)
{"pr_number": 7154, "pr_title": "fix(connector): [CASHTOCODE] Populate error reason", "merged_at": "2025-03-03T16:30:03Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/cashtocode.rs", "crates/hyperswitch_connectors/src/connectors/cashtocode/transformers.rs"]}, "change_types": {"fields_added": 4}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> This PR adds the elimination routing integration support with open router.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/open_router.rs` - `crates/api_models/src/routing.rs` **2. Core Business Logic** - `crates/router/src/core/payments/routing.rs` - `crates/router/src/core/routing/helpers.rs` - `crates/router/src/core/routing/transformers.rs` **Code Patterns Applied:** - Implement new functions (2 changes) - Extend existing types with new fields (21 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit 4745ce97: Files to modify: **crates/api_models/src/open_router.rs** Modify existing code **crates/api_models/src/routing.rs** Modify existing code **crates/router/src/core/payments/routing.rs** Modify existing code **crates/router/src/core/routing/helpers.rs** Modify existing code **crates/router/src/core/routing/transformers.rs** Modify existing code
{"pr_number": 7896, "pr_title": "feat(dynamic_routing): add open router integration for elimination routing", "merged_at": "2025-04-29T09:51:50Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/open_router.rs", "crates/api_models/src/routing.rs"], "core_business": ["crates/router/src/core/payments/routing.rs", "crates/router/src/core/routing/helpers.rs", "crates/router/src/core/routing/transformers.rs"]}, "change_types": {"functions_added": 2, "fields_added": 21, "imports_added": 4, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Template connector code for Nomupay payout
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/connector_enums.rs` **2. Core Business Logic** - `crates/router/src/core/payments/connector_integration_v2_impls.rs` - `crates/router/src/core/payments/flows.rs` **3. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/hyperswitch_connectors/src/connectors.rs` - `crates/hyperswitch_connectors/src/connectors/nomupay.rs` - ... and 9 more files **4. Type Definitions** - `crates/router/src/types/api.rs` - `crates/router/src/types/transformers.rs` **5. Tests** - `config/deployments/integration_test.toml` - `loadtest/config/development.toml` **6. Configuration Files** - `config/config.example.toml` - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - ... and 3 more files **Code Patterns Applied:** - Define new data structures (10 changes) - Implement new functions (78 changes) - Extend existing types with new fields (153 changes) **Detailed Identifier Changes:** Commit 20a3a1c2: Files to modify: **crates/api_models/src/connector_enums.rs** Modify existing code **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nomupay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations_v2.rs** Modify existing code **crates/hyperswitch_interfaces/src/configs.rs** Modify existing code **crates/router/src/connector.rs** Modify existing code **crates/router/src/core/payments/connector_integration_v2_impls.rs** Modify existing code **crates/router/src/core/payments/flows.rs** Modify existing code **crates/router/src/types/api.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code **crates/router/tests/connectors/main.rs** Modify existing code **crates/router/tests/connectors/nomupay.rs** Modify existing code **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 6382, "pr_title": "feat(connector): [NOMUPAY] Add template code", "merged_at": "2024-11-12T07:30:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/connector_enums.rs"], "core_business": ["crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/nomupay.rs", "crates/hyperswitch_connectors/src/connectors/nomupay/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/nomupay.rs", "crates/router/tests/connectors/sample_auth.toml", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml", "crates/hyperswitch_interfaces/src/configs.rs"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 153, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Payment via CartesBancaires were failing via Cybersource, since the card_type passed was wrong. It was previously "006" ,but should be "036" - this PR introduces this fix. source https://developer.cybersource.com/library/documentation/dev_guides/Retail_SO_API/html/Topics/app_card_types.htm
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs` - ... and 3 more files
{"pr_number": 8031, "pr_title": "fix(connector): [CYBERSOURCE] fix CartesBancaires card_type for Cybersource", "merged_at": "2025-05-15T12:54:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "user"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "crates/hyperswitch_connectors/src/connectors/multisafepay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/payeezy/transformers.rs", "crates/hyperswitch_connectors/src/connectors/payone/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
Hotfix for [PR](https://github.com/juspay/hyperswitch/pull/8455)
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/trustpay.rs` - `crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs` **Code Patterns Applied:** - Extend existing types with new fields (7 changes) **Detailed Identifier Changes:** Commit 4fe7cc28: Files to modify: **crates/hyperswitch_connectors/src/connectors/trustpay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs** Modify existing code
{"pr_number": 8480, "pr_title": "fix(connector): [TRUSTPAY] Consuming Amount in PSync Response", "merged_at": "2025-06-27T11:19:06Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/trustpay.rs", "crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs"]}, "change_types": {"fields_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Increased outgoing webhook timeout from 5 seconds to 30 seconds by replacing hardcoded `OUTGOING_WEBHOOK_TIMEOUT_SECS` with existing `REQUEST_TIME_OUT` constant for consistency.
To implement this **payment** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/webhooks/outgoing.rs` - `crates/router/src/core/webhooks/outgoing_v2.rs` - `crates/router/src/core/webhooks/types.rs`
{"pr_number": 8725, "pr_title": "refactor(core): remove hardcoded timeout limit of 5s for outgoing webhook requests", "merged_at": "2025-07-24T15:36:25Z", "intent": {"feature_type": "payment", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/webhooks/outgoing.rs", "crates/router/src/core/webhooks/outgoing_v2.rs", "crates/router/src/core/webhooks/types.rs"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> This will integrate elimination routing in our core flows for connectors to be filtered on basis of error codes received.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/routing.rs` **2. Core Business Logic** - `crates/router/src/core/errors.rs` - `crates/router/src/core/payments/operations/payment_response.rs` - `crates/router/src/core/payments/routing.rs` - ... and 1 more files **3. Configuration Files** - `config/development.toml` **4. Other** - `crates/common_enums/src/enums.rs` **Code Patterns Applied:** - Implement new functions (5 changes) - Extend existing types with new fields (55 changes) - Add conditional logic for feature flags or filtering (7 changes) **Detailed Identifier Changes:** Commit 82bc4616: Files to modify: **crates/api_models/src/routing.rs** Modify existing code **crates/common_enums/src/enums.rs** Modify existing code **crates/router/src/core/errors.rs** Modify existing code **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code **crates/router/src/core/payments/routing.rs** Modify existing code **crates/router/src/core/routing/helpers.rs** Modify existing code
{"pr_number": 6816, "pr_title": "feat(dynamic_routing): integration of elimination routing for core flows", "merged_at": "2025-04-22T07:38:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/routing.rs"], "core_business": ["crates/router/src/core/errors.rs", "crates/router/src/core/payments/operations/payment_response.rs", "crates/router/src/core/payments/routing.rs", "crates/router/src/core/routing/helpers.rs"], "config": ["config/development.toml"], "other": ["crates/common_enums/src/enums.rs"]}, "change_types": {"functions_added": 5, "fields_added": 55, "conditionals_added": 7}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> customer_id length validated and server-too-busy error fixed
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs` **Code Patterns Applied:** - Extend existing types with new fields (4 changes) - Add conditional logic for feature flags or filtering (3 changes) **Detailed Identifier Changes:** Commit 422724cf: Files to modify: **crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs** Modify existing code
{"pr_number": 8696, "pr_title": "feat(connector): [AUTHORIZEDOTNET] customer_id length validated and server-too-busy error handled", "merged_at": "2025-07-22T17:21:45Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/authorizedotnet/transformers.rs"]}, "change_types": {"fields_added": 4, "conditionals_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Added CIT and MIT flows examples for API Reference for Stripe Split Payments
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Other** - `api-reference/v1/openapi_spec_v1.json` - `crates/openapi/src/routes/payments.rs` **Detailed Identifier Changes:** Commit 0851c6ec: Files to modify: **crates/openapi/src/routes/payments.rs** Modify existing code
{"pr_number": 8311, "pr_title": "docs(connector): [STRIPE] Added CIT & MIT Examples for API Reference in Stripe Split Payments", "merged_at": "2025-06-20T14:01:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"other": ["api-reference/v1/openapi_spec_v1.json", "crates/openapi/src/routes/payments.rs"]}, "change_types": {}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This PR addresses panics and some bugs in customers v2 endpoints. This PR includes the following changes: - Fixes the customers v2 update and retrieve endpoints to use the correct HTTP methods (`PUT` and `GET` respectively). - Adds the `#[serde(deny_unknown_fields)]` to customer v2 request types. - Moves the `id` field to be at the beginning of the `CustomerResponse` and `CustomerDeleteResponse` structs, so that the JSON serialization also follows the same. - Introduces the `GlobalCustomerId` type and updates existing customer v2 (and other v2 modules like payment methods, payments, mandates) to use the `GlobalCustomerId` type instead of strings. - Removes some of the wrappers around the customer ID types (`CustomerId`, `GlobalId` and `UpdateCustomerId` defined in the `api_models` crate), and implements the methods / traits on the underlying ID types instead. - This was done since the underlying ID types and thus the field names differed, and it didn't make much difference as compared to implementing the methods / traits directly on the underlying ID type. - Removes the `customer_id` / `id` field from `CustomerUpdateRequest` type in both v1 and v2. This field was never expected to be passed in the request body, but only there for the purpose of API events. This PR introduces a `CustomerUpdateRequestInternal` type instead which wraps around the request and the ID type, and is used internally, not part of the public API interface. - Adds missing pieces of code to have the customers v2 create, retrieve, update, delete, list endpoints working.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/customers.rs` - `crates/api_models/src/ephemeral_key.rs` - `crates/api_models/src/events/customer.rs` - ... and 2 more files **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/customers.rs` - `crates/diesel_models/src/kv.rs` - `crates/diesel_models/src/payment_intent.rs` - ... and 4 more files **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/customer.rs` - `crates/hyperswitch_domain_models/src/payment_methods.rs` - `crates/hyperswitch_domain_models/src/payments.rs` **4. Core Business Logic** - `crates/router/src/core/customers.rs` - `crates/router/src/core/mandate.rs` - `crates/router/src/core/payment_methods.rs` - ... and 10 more files **5. Type Definitions** - `crates/router/src/types/api/customers.rs` **6. Utils** - `crates/common_utils/src/events.rs` - `crates/common_utils/src/id_type.rs` - `crates/common_utils/src/id_type/customer.rs` - ... and 3 more files **7. Other** - `api-reference-v2/api-reference/customers/customers--create.mdx` - `api-reference-v2/api-reference/customers/customers--delete.mdx` - `api-reference-v2/api-reference/customers/customers--list.mdx` - ... and 18 more files **Code Patterns Applied:** - Define new data structures (4 changes) - Implement new functions (28 changes) - Extend existing types with new fields (134 changes) - Add conditional logic for feature flags or filtering (3 changes) - Modify database queries (3 changes) **Detailed Identifier Changes:** Commit dfbfce4e: Files to modify: **crates/api_models/src/customers.rs** Modify existing code **crates/api_models/src/ephemeral_key.rs** Modify existing code **crates/api_models/src/events/customer.rs** Modify existing code **crates/api_models/src/payment_methods.rs** Modify existing code **crates/api_models/src/payments.rs** Modify existing code **crates/common_utils/src/events.rs** Modify existing code **crates/common_utils/src/id_type.rs** Modify existing code **crates/common_utils/src/id_type/customer.rs** Modify existing code **crates/common_utils/src/id_type/global_id.rs** Modify existing code **crates/common_utils/src/id_type/global_id/customer.rs** Modify existing code **crates/common_utils/src/id_type/global_id/payment.rs** Modify existing code **crates/diesel_models/src/customers.rs** Modify existing code **crates/diesel_models/src/kv.rs** Modify existing code **crates/diesel_models/src/payment_intent.rs** Modify existing code **crates/diesel_models/src/payment_method.rs** Modify existing code **crates/diesel_models/src/query/customers.rs** Modify existing code **crates/diesel_models/src/query/mandate.rs** Modify existing code **crates/diesel_models/src/query/payment_method.rs** Modify existing code **crates/hyperswitch_domain_models/src/customer.rs** Modify existing code **crates/hyperswitch_domain_models/src/payment_methods.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/openapi/src/openapi.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/openapi/src/routes/customers.rs** Modify existing code **crates/router/src/compatibility/stripe/customers.rs** Modify existing code **crates/router/src/core/customers.rs** Modify existing code **crates/router/src/core/mandate.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/network_tokenization.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_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_create_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_get.rs** Modify existing code **crates/router/src/core/payments/operations/payment_session_intent.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/core/payouts.rs** Modify existing code **crates/router/src/db/customers.rs** Modify existing code **crates/router/src/db/kafka_store.rs** Modify existing code **crates/router/src/db/mandate.rs** Modify existing code **crates/router/src/db/payment_method.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/customers.rs** Modify existing code **crates/router/src/routes/ephemeral_key.rs** Modify existing code **crates/router/src/routes/payment_methods.rs** Modify existing code **crates/router/src/routes/payments.rs** Modify existing code **crates/router/src/types/api/customers.rs** Modify existing code **crates/storage_impl/src/lib.rs** Modify existing code
{"pr_number": 6836, "pr_title": "refactor(customers_v2): address panics and some bugs in customers v2 endpoints", "merged_at": "2024-12-17T11:26:05Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/customers.rs", "crates/api_models/src/ephemeral_key.rs", "crates/api_models/src/events/customer.rs", "crates/api_models/src/payment_methods.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/customers.rs", "crates/diesel_models/src/kv.rs", "crates/diesel_models/src/payment_intent.rs", "crates/diesel_models/src/payment_method.rs", "crates/diesel_models/src/query/customers.rs", "crates/diesel_models/src/query/mandate.rs", "crates/diesel_models/src/query/payment_method.rs"], "domain": ["crates/hyperswitch_domain_models/src/customer.rs", "crates/hyperswitch_domain_models/src/payment_methods.rs", "crates/hyperswitch_domain_models/src/payments.rs"], "core_business": ["crates/router/src/core/customers.rs", "crates/router/src/core/mandate.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payment_methods/cards.rs", "crates/router/src/core/payment_methods/network_tokenization.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_confirm_intent.rs", "crates/router/src/core/payments/operations/payment_create_intent.rs", "crates/router/src/core/payments/operations/payment_get.rs", "crates/router/src/core/payments/operations/payment_session_intent.rs", "crates/router/src/core/payments/transformers.rs", "crates/router/src/core/payouts.rs"], "types": ["crates/router/src/types/api/customers.rs"], "utils": ["crates/common_utils/src/events.rs", "crates/common_utils/src/id_type.rs", "crates/common_utils/src/id_type/customer.rs", "crates/common_utils/src/id_type/global_id.rs", "crates/common_utils/src/id_type/global_id/customer.rs", "crates/common_utils/src/id_type/global_id/payment.rs"], "other": ["api-reference-v2/api-reference/customers/customers--create.mdx", "api-reference-v2/api-reference/customers/customers--delete.mdx", "api-reference-v2/api-reference/customers/customers--list.mdx", "api-reference-v2/api-reference/customers/customers--retrieve.mdx", "api-reference-v2/api-reference/customers/customers--update.mdx", "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/customers.rs", "crates/router/src/compatibility/stripe/customers.rs", "crates/router/src/db/customers.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/db/mandate.rs", "crates/router/src/db/payment_method.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/customers.rs", "crates/router/src/routes/ephemeral_key.rs", "crates/router/src/routes/payment_methods.rs", "crates/router/src/routes/payments.rs", "crates/storage_impl/src/lib.rs"]}, "change_types": {"structs_added": 4, "functions_added": 28, "fields_added": 134, "imports_added": 8, "conditionals_added": 3, "database_queries": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> As part of the modularity effort, we are introducing user support to enable dashboard interactions with v2 merchant accounts. This allows users to create, list, and switch between merchant accounts within their organization. This also allows users to list profiles and switch profiles when using v2 merchant accounts. ## Key Changes
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/events/user.rs` - `crates/api_models/src/user.rs` **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/merchant_account.rs` **3. Core Business Logic** - `crates/router/src/core/admin.rs` - `crates/router/src/core/user.rs` **4. Type Definitions** - `crates/router/src/types/domain/user.rs` **5. Utils** - `crates/router/src/utils/user.rs` **6. Other** - `crates/common_enums/src/enums/accounts.rs` - `crates/router/src/consts/user.rs` - `crates/router/src/lib.rs` - ... and 2 more files **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (4 changes) - Extend existing types with new fields (27 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit d1f53036: Files to modify: **crates/api_models/src/events/user.rs** Modify existing code **crates/api_models/src/user.rs** Modify existing code **crates/common_enums/src/enums/accounts.rs** Modify existing code **crates/hyperswitch_domain_models/src/merchant_account.rs** Modify existing code **crates/router/src/consts/user.rs** Modify existing code **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/user.rs** Modify existing code **crates/router/src/lib.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/services/authorization/permission_groups.rs** Modify existing code **crates/router/src/types/domain/user.rs** Modify existing code **crates/router/src/utils/user.rs** Modify existing code
{"pr_number": 7386, "pr_title": "feat(users): Add V2 User APIs to Support Modularity for Merchant Accounts", "merged_at": "2025-03-12T14:36:50Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "merchant", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/events/user.rs", "crates/api_models/src/user.rs"], "domain": ["crates/hyperswitch_domain_models/src/merchant_account.rs"], "core_business": ["crates/router/src/core/admin.rs", "crates/router/src/core/user.rs"], "types": ["crates/router/src/types/domain/user.rs"], "utils": ["crates/router/src/utils/user.rs"], "other": ["crates/common_enums/src/enums/accounts.rs", "crates/router/src/consts/user.rs", "crates/router/src/lib.rs", "crates/router/src/routes/app.rs", "crates/router/src/services/authorization/permission_groups.rs"]}, "change_types": {"structs_added": 1, "functions_added": 4, "fields_added": 27, "imports_added": 2, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "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": 7597, "pr_title": "refactor(connector): [BRAINTREE] Pass email in payment requests", "merged_at": "2025-03-21T16:28:45Z", "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 --> Return Network transaction if from connector Response - NOTE: we need to ask nuvei to return `external_scheme_transaction_id` during integration. <details> <summary> See returned NTID in the connector payment response</summary>
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs` **Code Patterns Applied:** - Extend existing types with new fields (1 changes)
{"pr_number": 9261, "pr_title": "feat(nuvei): Map NTID for nuvei payment responses", "merged_at": "2025-09-07T14:40:37Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs"]}, "change_types": {"fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Move stripe connector code form `router` crate to `hyperswitch_connectors` crate - issue : https://github.com/juspay/hyperswitch/issues/8008
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/flows.rs` **2. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors.rs` - `crates/router/src/connector/stripe.rs` - `crates/router/src/connector/stripe/transformers.rs` - ... and 8 more files **3. Type Definitions** - `crates/router/src/types.rs` **4. Other** - `crates/router/src/macros.rs` **Code Patterns Applied:** - Implement new functions (40 changes) - Extend existing types with new fields (343 changes) - Add conditional logic for feature flags or filtering (5 changes) **Detailed Identifier Changes:** Commit e5cf6698: Files to modify: **crates/hyperswitch_connectors/src/connectors.rs** Modify existing code **crates/router/src/connector/stripe.rs** Modify existing code **crates/router/src/connector/stripe/transformers.rs** Modify existing code **crates/router/src/connector/stripe/transformers/connect.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_connectors/src/types.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/router/src/connector.rs** Modify existing code **crates/router/src/connector/utils.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/macros.rs** Modify existing code **crates/router/src/types.rs** Modify existing code
{"pr_number": 8007, "pr_title": "refactor(connector): stripe migration from router to hyperswitch_connectors", "merged_at": "2025-05-16T14:21:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors.rs", "crates/router/src/connector/stripe.rs", "crates/router/src/connector/stripe/transformers.rs", "crates/router/src/connector/stripe/transformers/connect.rs", "crates/hyperswitch_connectors/src/constants.rs", "crates/hyperswitch_connectors/src/default_implementations.rs", "crates/hyperswitch_connectors/src/default_implementations_v2.rs", "crates/hyperswitch_connectors/src/types.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector.rs", "crates/router/src/connector/utils.rs"], "types": ["crates/router/src/types.rs"], "other": ["crates/router/src/macros.rs"]}, "change_types": {"functions_added": 40, "fields_added": 343, "imports_added": 22, "conditionals_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Added Integrity Checks for PSync and RSync flows in Trustpay. Why not for other flows as well? The reason being, Trustpay doesnt send `amount` field in their response. Without getting to know the `amount`, we cannot perform integrity check. But they do send an `amount` field in Webhooks, so it will be checked upon receiving the webhooks payload. Also added a function which converts f64 to StringMajorUnit directly because there wasn't any function already which does it. We needed this function to convert the amount being received in f64 from Webhooks into StringMajorUnit which is required for the integrity check function. Also added new enum variants in AttemptStatus and IntentStatus. In AttemptStatus added an enum variant "IntegrityFailure" and in IntentStatus added an enum variant "Conflicted".
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_data.rs` **2. Core Business Logic** - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/helpers.rs` - `crates/router/src/core/payments/operations/payment_attempt_record.rs` - ... and 11 more files **3. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs` - ... and 4 more files **4. Type Definitions** - `crates/router/src/compatibility/stripe/payment_intents/types.rs` - `crates/router/src/compatibility/stripe/setup_intents/types.rs` - `crates/router/src/types.rs` - ... and 1 more files **5. 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:** - Extend existing types with new fields (10 changes) - Add conditional logic for feature flags or filtering (2 changes) - Modify database queries (1 changes) **Detailed Identifier Changes:** Commit a76a9c15: Files to modify: **crates/common_enums/src/enums.rs** Modify existing code **crates/common_enums/src/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/trustpay.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data.rs** Modify existing code **crates/router/src/compatibility/stripe/payment_intents/types.rs** Modify existing code **crates/router/src/compatibility/stripe/setup_intents/types.rs** Modify existing code **crates/router/src/connector/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_attempt_record.rs** Modify existing code **crates/router/src/core/payments/operations/payment_capture_v2.rs** Modify existing code **crates/router/src/core/payments/operations/payment_confirm_intent.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/payment_session_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_update_intent.rs** Modify existing code **crates/router/src/core/payments/operations/proxy_payments_intent.rs** Modify existing code **crates/router/src/core/payments/payment_methods.rs** Modify existing code **crates/router/src/core/payments/retry.rs** Modify existing code **crates/router/src/core/revenue_recovery/transformers.rs** Modify existing code **crates/router/src/core/routing/helpers.rs** Modify existing code **crates/router/src/types.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"pr_number": 8096, "pr_title": "feat(connector): [TRUSTPAY] Added Integrity Checks for PSync & RSync flows & Added New Variants in AttemptStatus & IntentStatus", "merged_at": "2025-06-10T17:03:40Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_data.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/helpers.rs", "crates/router/src/core/payments/operations/payment_attempt_record.rs", "crates/router/src/core/payments/operations/payment_capture_v2.rs", "crates/router/src/core/payments/operations/payment_confirm_intent.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/payment_session_intent.rs", "crates/router/src/core/payments/operations/payment_update_intent.rs", "crates/router/src/core/payments/operations/proxy_payments_intent.rs", "crates/router/src/core/payments/payment_methods.rs", "crates/router/src/core/payments/retry.rs", "crates/router/src/core/revenue_recovery/transformers.rs", "crates/router/src/core/routing/helpers.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs", "crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs", "crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs", "crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs", "crates/hyperswitch_connectors/src/connectors/trustpay.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/connector/utils.rs"], "types": ["crates/router/src/compatibility/stripe/payment_intents/types.rs", "crates/router/src/compatibility/stripe/setup_intents/types.rs", "crates/router/src/types.rs", "crates/router/src/types/transformers.rs"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json", "crates/common_enums/src/enums.rs", "crates/common_enums/src/transformers.rs", "migrations/2025-05-21-194538_modify_attemptstatus_and_intentstatus/down.sql", "migrations/2025-05-21-194538_modify_attemptstatus_and_intentstatus/up.sql"]}, "change_types": {"fields_added": 10, "conditionals_added": 2, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
fix deserialization error for Paypal while canceling payment for Authorizedotnet
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/router/src/connector/authorizedotnet/transformers.rs` **Code Patterns Applied:** - Extend existing types with new fields (2 changes)
{"pr_number": 7141, "pr_title": "fix(connector): [Authorizedotnet] fix deserialization error for Paypal while canceling payment ", "merged_at": "2025-02-05T15:03:54Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/router/src/connector/authorizedotnet/transformers.rs"]}, "change_types": {"fields_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Added `Payments - List` endpoint for v2
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/events/payment.rs` - `crates/api_models/src/payments.rs` **2. Database Layer (Queries & Schema)** - `crates/diesel_models/src/query/payment_attempt.rs` **3. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` - `crates/hyperswitch_domain_models/src/payments/payment_intent.rs` **4. Core Business Logic** - `crates/router/src/core/payments.rs` - `crates/router/src/core/payments/transformers.rs` **5. Type Definitions** - `crates/router/src/types/api/payments.rs` **6. Other** - `api-reference-v2/api-reference/payments/payments--list.mdx` - `api-reference-v2/mint.json` - `api-reference-v2/openapi_spec.json` - ... and 9 more files **Code Patterns Applied:** - Define new data structures (5 changes) - Implement new functions (23 changes) - Extend existing types with new fields (245 changes) - Add conditional logic for feature flags or filtering (16 changes) - Modify database queries (68 changes) **Detailed Identifier Changes:** Commit d1f537e2: Files to modify: **crates/api_models/src/events/payment.rs** Modify existing code **crates/api_models/src/payments.rs** Modify existing code **crates/diesel_models/src/query/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/openapi/src/routes/payments.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/db/kafka_store.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/payments.rs** Modify existing code **crates/router/src/types/api/payments.rs** Modify existing code **crates/storage_impl/src/mock_db/payment_attempt.rs** Modify existing code **crates/storage_impl/src/mock_db/payment_intent.rs** Modify existing code **crates/storage_impl/src/payments/payment_attempt.rs** Modify existing code **crates/storage_impl/src/payments/payment_intent.rs** Modify existing code
{"pr_number": 7191, "pr_title": "feat(router): Add Payments - List endpoint for v2", "merged_at": "2025-02-20T12:28:49Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/events/payment.rs", "crates/api_models/src/payments.rs"], "database": ["crates/diesel_models/src/query/payment_attempt.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/payments/payment_intent.rs"], "core_business": ["crates/router/src/core/payments.rs", "crates/router/src/core/payments/transformers.rs"], "types": ["crates/router/src/types/api/payments.rs"], "other": ["api-reference-v2/api-reference/payments/payments--list.mdx", "api-reference-v2/mint.json", "api-reference-v2/openapi_spec.json", "crates/openapi/src/openapi_v2.rs", "crates/openapi/src/routes/payments.rs", "crates/router/src/db/kafka_store.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/payments.rs", "crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/mock_db/payment_intent.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "crates/storage_impl/src/payments/payment_intent.rs"]}, "change_types": {"structs_added": 5, "functions_added": 23, "enums_added": 1, "fields_added": 245, "imports_added": 4, "conditionals_added": 16, "database_queries": 68}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This PR integrates the get plan prices endpoint for chargebee, required to be called in the respective API handler for the same (not yet implemented)
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_data_v2/flow_common_types.rs` - `crates/hyperswitch_domain_models/src/router_flow_types.rs` - `crates/hyperswitch_domain_models/src/router_flow_types/subscriptions.rs` - ... and 3 more files **2. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/chargebee.rs` - `crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs` - `crates/hyperswitch_connectors/src/connectors/recurly.rs` - ... and 1 more files **3. Type Definitions** - `crates/hyperswitch_interfaces/src/types.rs` **4. Other** - `crates/hyperswitch_interfaces/src/api.rs` - `crates/hyperswitch_interfaces/src/api/subscriptions.rs` - `crates/hyperswitch_interfaces/src/api/subscriptions_v2.rs` - ... and 2 more files **Code Patterns Applied:** - Define new data structures (8 changes) - Implement new functions (9 changes) - Extend existing types with new fields (63 changes) - Add conditional logic for feature flags or filtering (2 changes) **Detailed Identifier Changes:** Commit e2f1a456: 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/connectors/recurly.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_flow_types.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_flow_types/subscriptions.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_response_types/subscriptions.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/api/subscriptions.rs** Modify existing code **crates/hyperswitch_interfaces/src/api/subscriptions_v2.rs** Modify existing code **crates/hyperswitch_interfaces/src/conversion_impls.rs** Modify existing code **crates/hyperswitch_interfaces/src/types.rs** Modify existing code **crates/router/src/services/api.rs** Modify existing code
{"pr_number": 9300, "pr_title": "feat(connector): Add support for get plan prices for Chargebee", "merged_at": "2025-09-19T08:20:28Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs", "crates/hyperswitch_domain_models/src/router_flow_types.rs", "crates/hyperswitch_domain_models/src/router_flow_types/subscriptions.rs", "crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs", "crates/hyperswitch_domain_models/src/router_response_types/subscriptions.rs", "crates/hyperswitch_domain_models/src/types.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/chargebee.rs", "crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs", "crates/hyperswitch_connectors/src/connectors/recurly.rs", "crates/hyperswitch_connectors/src/default_implementations.rs"], "types": ["crates/hyperswitch_interfaces/src/types.rs"], "other": ["crates/hyperswitch_interfaces/src/api.rs", "crates/hyperswitch_interfaces/src/api/subscriptions.rs", "crates/hyperswitch_interfaces/src/api/subscriptions_v2.rs", "crates/hyperswitch_interfaces/src/conversion_impls.rs", "crates/router/src/services/api.rs"]}, "change_types": {"structs_added": 8, "functions_added": 9, "enums_added": 4, "fields_added": 63, "imports_added": 1, "conditionals_added": 2}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Adding `connector_customer_id` for proxy flow
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs` **Code Patterns Applied:** - Extend existing types with new fields (4 changes)
{"pr_number": 9263, "pr_title": "fix(router): adding connector_customer_id for external vault proxy", "merged_at": "2025-09-11T12:38:28Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/payments/operations/external_vault_proxy_payment_intent.rs"]}, "change_types": {"fields_added": 4}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Template code added for new connector Amazon Pay https://developer.amazon.com/docs/amazon-pay-api-v2/introduction.html
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/connector_enums.rs` **2. Core Business Logic** - `crates/router/src/core/payments/connector_integration_v2_impls.rs` - `crates/router/src/core/payments/flows.rs` **3. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/hyperswitch_connectors/src/connectors.rs` - `crates/hyperswitch_connectors/src/connectors/amazonpay.rs` - ... and 9 more files **4. Type Definitions** - `crates/router/src/types/api.rs` - `crates/router/src/types/transformers.rs` **5. Tests** - `config/deployments/integration_test.toml` - `loadtest/config/development.toml` **6. Configuration Files** - `config/config.example.toml` - `config/deployments/production.toml` - `config/deployments/sandbox.toml` - ... and 3 more files **Code Patterns Applied:** - Define new data structures (10 changes) - Implement new functions (78 changes) - Extend existing types with new fields (153 changes) **Detailed Identifier Changes:** Commit fe4931a3: Files to modify: **crates/api_models/src/connector_enums.rs** Modify existing code **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/amazonpay.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/amazonpay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations_v2.rs** Modify existing code **crates/hyperswitch_interfaces/src/configs.rs** Modify existing code **crates/router/src/connector.rs** Modify existing code **crates/router/src/core/payments/connector_integration_v2_impls.rs** Modify existing code **crates/router/src/core/payments/flows.rs** Modify existing code **crates/router/src/types/api.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code **crates/router/tests/connectors/amazonpay.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": 6486, "pr_title": "Feat(connector): [AMAZON PAY] Added Template code", "merged_at": "2024-11-08T10:52:01Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["connector"]}, "hierarchy": {"api_models": ["crates/api_models/src/connector_enums.rs"], "core_business": ["crates/router/src/core/payments/connector_integration_v2_impls.rs", "crates/router/src/core/payments/flows.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/hyperswitch_connectors/src/connectors.rs", "crates/hyperswitch_connectors/src/connectors/amazonpay.rs", "crates/hyperswitch_connectors/src/connectors/amazonpay/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/amazonpay.rs", "crates/router/tests/connectors/main.rs", "crates/router/tests/connectors/sample_auth.toml", "crates/test_utils/src/connector_auth.rs", "scripts/add_connector.sh"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["config/deployments/integration_test.toml", "loadtest/config/development.toml"], "config": ["config/config.example.toml", "config/deployments/production.toml", "config/deployments/sandbox.toml", "config/development.toml", "config/docker_compose.toml", "crates/hyperswitch_interfaces/src/configs.rs"]}, "change_types": {"structs_added": 10, "functions_added": 78, "enums_added": 2, "fields_added": 153, "imports_added": 20}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> - Add sessionized metrics module and implement backwards compatibility. - Add the `sessionizer_dispute` table support for Sessionized metrics.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/analytics.rs` - `crates/api_models/src/analytics/disputes.rs` - `crates/api_models/src/events.rs` **2. Core Business Logic** - `crates/analytics/src/disputes/core.rs` **3. Type Definitions** - `crates/analytics/src/types.rs` **4. Other** - `crates/analytics/src/clickhouse.rs` - `crates/analytics/src/disputes/accumulators.rs` - `crates/analytics/src/disputes/metrics.rs` - ... and 5 more files **Code Patterns Applied:** - Define new data structures (3 changes) - Implement new functions (4 changes) - Extend existing types with new fields (72 changes) - Add conditional logic for feature flags or filtering (5 changes) **Detailed Identifier Changes:** Commit 8fbb7663: Files to modify: **crates/analytics/src/clickhouse.rs** Modify existing code **crates/analytics/src/disputes/accumulators.rs** Modify existing code **crates/analytics/src/disputes/core.rs** Modify existing code **crates/analytics/src/disputes/metrics.rs** Modify existing code **crates/analytics/src/disputes/metrics/sessionized_metrics/dispute_status_metric.rs** Modify existing code **crates/analytics/src/disputes/metrics/sessionized_metrics/mod.rs** Modify existing code **crates/analytics/src/disputes/metrics/sessionized_metrics/total_amount_disputed.rs** Modify existing code **crates/analytics/src/disputes/metrics/sessionized_metrics/total_dispute_lost_amount.rs** Modify existing code **crates/analytics/src/sqlx.rs** Modify existing code **crates/analytics/src/types.rs** Modify existing code **crates/api_models/src/analytics.rs** Modify existing code **crates/api_models/src/analytics/disputes.rs** Modify existing code **crates/api_models/src/events.rs** Modify existing code
{"pr_number": 6573, "pr_title": "feat(analytics): add `sessionized_metrics` for disputes analytics", "merged_at": "2024-11-26T13:58:33Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user", "order"]}, "hierarchy": {"api_models": ["crates/api_models/src/analytics.rs", "crates/api_models/src/analytics/disputes.rs", "crates/api_models/src/events.rs"], "core_business": ["crates/analytics/src/disputes/core.rs"], "types": ["crates/analytics/src/types.rs"], "other": ["crates/analytics/src/clickhouse.rs", "crates/analytics/src/disputes/accumulators.rs", "crates/analytics/src/disputes/metrics.rs", "crates/analytics/src/disputes/metrics/sessionized_metrics/dispute_status_metric.rs", "crates/analytics/src/disputes/metrics/sessionized_metrics/mod.rs", "crates/analytics/src/disputes/metrics/sessionized_metrics/total_amount_disputed.rs", "crates/analytics/src/disputes/metrics/sessionized_metrics/total_dispute_lost_amount.rs", "crates/analytics/src/sqlx.rs"]}, "change_types": {"structs_added": 3, "functions_added": 4, "fields_added": 72, "imports_added": 21, "conditionals_added": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
Add payments flows for connector Moneris - Payments (Cards) - Payment Sync - Capture - Void - Refund - Refund Sync - Add cypress test - Add wasm changes
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Core Business Logic** - `crates/router/src/core/admin.rs` **2. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/connector_configs/src/connector.rs` - `crates/connector_configs/toml/development.toml` - ... and 7 more files **3. Type Definitions** - `crates/router/src/types/api.rs` - `crates/router/src/types/transformers.rs` **4. Tests** - `cypress-tests/cypress/e2e/configs/Payment/Moneris.js` - `cypress-tests/cypress/e2e/configs/Payment/Utils.js` **5. Configuration Files** - `config/deployments/production.toml` **6. Other** - `api-reference-v2/openapi_spec.json` - `api-reference/openapi_spec.json` **Code Patterns Applied:** - Define new data structures (9 changes) - Implement new functions (20 changes) - Extend existing types with new fields (380 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit d18d98a1: 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/moneris.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs** Modify existing code **crates/router/src/configs/defaults/payment_connector_required_fields.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/moneris.rs** Modify existing code **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 7249, "pr_title": "feat(connector): [Moneris] Add payments flow", "merged_at": "2025-02-18T18:00:11Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/admin.rs"], "connectors": ["crates/common_enums/src/connector_enums.rs", "crates/connector_configs/src/connector.rs", "crates/connector_configs/toml/development.toml", "crates/connector_configs/toml/production.toml", "crates/connector_configs/toml/sandbox.toml", "crates/hyperswitch_connectors/src/connectors/moneris.rs", "crates/hyperswitch_connectors/src/connectors/moneris/transformers.rs", "crates/router/src/configs/defaults/payment_connector_required_fields.rs", "crates/router/tests/connectors/moneris.rs", "crates/test_utils/src/connector_auth.rs"], "types": ["crates/router/src/types/api.rs", "crates/router/src/types/transformers.rs"], "tests": ["cypress-tests/cypress/e2e/configs/Payment/Moneris.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js"], "config": ["config/deployments/production.toml"], "other": ["api-reference-v2/openapi_spec.json", "api-reference/openapi_spec.json"]}, "change_types": {"structs_added": 9, "functions_added": 20, "enums_added": 1, "fields_added": 380, "imports_added": 6, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Mask custom outgoing webhook headers in profile response. This changes is required to mask the custom outgoing webhook headers in the profile dashboard. This also requires control center changes, BE changes will only be merged and deployed after dashboard changes.
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. Type Definitions** - `crates/router/src/types/api/admin.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (2 changes) - Extend existing types with new fields (6 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit bc8a9902: Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/router/src/types/api/admin.rs** Modify existing code
{"pr_number": 6822, "pr_title": "fix(webhooks): mask custom outgoing webhook headers in profile response", "merged_at": "2024-12-12T08:42:48Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/admin.rs"], "types": ["crates/router/src/types/api/admin.rs"]}, "change_types": {"structs_added": 1, "functions_added": 2, "fields_added": 6, "imports_added": 1, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> add `challenge_request_key` in authentication response and add support for cardinal authentication processor
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/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/connector_endpoints.rs` - `crates/hyperswitch_domain_models/src/router_request_types/authentication.rs` **4. Core Business Logic** - `crates/router/src/core/authentication/utils.rs` - `crates/router/src/core/connector_validation.rs` - `crates/router/src/core/payments.rs` - ... and 2 more files **5. External Connector Integration** - `crates/common_enums/src/connector_enums.rs` - `crates/connector_configs/src/connector.rs` - `crates/connector_configs/toml/development.toml` - ... and 9 more files **6. Type Definitions** - `crates/router/src/types/api/authentication.rs` - `crates/router/src/types/api/feature_matrix.rs` **7. Other** - `api-reference/v1/openapi_spec_v1.json` - `api-reference/v2/openapi_spec_v2.json` - `crates/common_enums/src/enums.rs` - ... and 4 more files **Code Patterns Applied:** - Implement new functions (1 changes) - Extend existing types with new fields (34 changes) - Add conditional logic for feature flags or filtering (1 changes) **Detailed Identifier Changes:** Commit b23c28b0: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **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/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_connectors/src/connectors/gpayments/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs** Modify existing code **crates/hyperswitch_domain_models/src/connector_endpoints.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types/authentication.rs** Modify existing code **crates/router/src/consts.rs** Modify existing code **crates/router/src/core/authentication/utils.rs** Modify existing code **crates/router/src/core/connector_validation.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/unified_authentication_service.rs** Modify existing code **crates/router/src/core/unified_authentication_service/utils.rs** Modify existing code **crates/router/src/db/authentication.rs** Modify existing code **crates/router/src/types/api/authentication.rs** Modify existing code **crates/router/src/types/api/connector_mapping.rs** Modify existing code **crates/router/src/types/api/feature_matrix.rs** Modify existing code **crates/router/src/types/connector_transformers.rs** Modify existing code **crates/test_utils/src/connector_auth.rs** Modify existing code
{"pr_number": 9429, "pr_title": "feat(router): add `challenge_request_key` in authentication response and add support for cardinal authentication processor", "merged_at": "2025-09-18T15:40:57Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "card"]}, "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/connector_endpoints.rs", "crates/hyperswitch_domain_models/src/router_request_types/authentication.rs"], "core_business": ["crates/router/src/core/authentication/utils.rs", "crates/router/src/core/connector_validation.rs", "crates/router/src/core/payments.rs", "crates/router/src/core/unified_authentication_service.rs", "crates/router/src/core/unified_authentication_service/utils.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/gpayments/transformers.rs", "crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs", "crates/hyperswitch_connectors/src/connectors/threedsecureio/transformers.rs", "crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs", "crates/router/src/types/api/connector_mapping.rs", "crates/router/src/types/connector_transformers.rs", "crates/test_utils/src/connector_auth.rs"], "types": ["crates/router/src/types/api/authentication.rs", "crates/router/src/types/api/feature_matrix.rs"], "other": ["api-reference/v1/openapi_spec_v1.json", "api-reference/v2/openapi_spec_v2.json", "crates/common_enums/src/enums.rs", "crates/router/src/consts.rs", "crates/router/src/db/authentication.rs", "migrations/2025-09-15-065211_add-challenge-request-key-in-authentication/down.sql", "migrations/2025-09-15-065211_add-challenge-request-key-in-authentication/up.sql"]}, "change_types": {"functions_added": 1, "fields_added": 34, "conditionals_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> In revenue recovery flow, when process tracker picks task , it records internal attempt first and then triggers proxy payments. Previously only customer id and psp token is required to make payment. Since recovery ml model needs all othe parameter, This PR adds support for populating payment method data in internal and external attempts . Attempts are created in 3 scenarios 1) when external attempt is triggered by billing connectors(like chargebee,recurly) via webhooks 2) when external attempt is created by custom billing api 3) process trackers executes execute_workflow. These 3 scenarios are covered in this PR .
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/payments.rs` - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` **3. Core Business Logic** - `crates/router/src/core/payments/transformers.rs` - `crates/router/src/core/revenue_recovery.rs` - `crates/router/src/core/revenue_recovery/api.rs` - ... and 4 more files **4. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs` - `crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs` **5. Type Definitions** - `crates/router/src/types/storage/revenue_recovery.rs` - `crates/router/src/types/storage/revenue_recovery_redis_operation.rs` - `crates/router/src/types/transformers.rs` **6. Other** - `crates/router/src/workflows/revenue_recovery.rs` **Code Patterns Applied:** - Define new data structures (1 changes) - Implement new functions (8 changes) - Extend existing types with new fields (68 changes) - Add conditional logic for feature flags or filtering (1 changes) - Modify database queries (1 changes) **Detailed Identifier Changes:** Commit 594fae14: Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.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/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/core/revenue_recovery.rs** Modify existing code **crates/router/src/core/revenue_recovery/api.rs** Modify existing code **crates/router/src/core/revenue_recovery/transformers.rs** Modify existing code **crates/router/src/core/revenue_recovery/types.rs** Modify existing code **crates/router/src/core/utils.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Modify existing code **crates/router/src/types/storage/revenue_recovery.rs** Modify existing code **crates/router/src/types/storage/revenue_recovery_redis_operation.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code **crates/router/src/workflows/revenue_recovery.rs** Modify existing code
{"pr_number": 9061, "pr_title": "fix(revenue_recovery): Populate payment method data in record attempt flow for V2", "merged_at": "2025-08-28T17:25:22Z", "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/payments.rs", "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs"], "core_business": ["crates/router/src/core/payments/transformers.rs", "crates/router/src/core/revenue_recovery.rs", "crates/router/src/core/revenue_recovery/api.rs", "crates/router/src/core/revenue_recovery/transformers.rs", "crates/router/src/core/revenue_recovery/types.rs", "crates/router/src/core/utils.rs", "crates/router/src/core/webhooks/recovery_incoming.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/worldpayvantiv.rs", "crates/hyperswitch_connectors/src/connectors/worldpayvantiv/transformers.rs"], "types": ["crates/router/src/types/storage/revenue_recovery.rs", "crates/router/src/types/storage/revenue_recovery_redis_operation.rs", "crates/router/src/types/transformers.rs"], "other": ["crates/router/src/workflows/revenue_recovery.rs"]}, "change_types": {"structs_added": 1, "functions_added": 8, "fields_added": 68, "imports_added": 7, "conditionals_added": 1, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> This PR addresses 5xx that currently is being thrown when a user tries to cancel the PayPal transactions from the redirected page: <img width="372" alt="image" src="https://github.com/user-attachments/assets/4f920b8b-6ab4-4bcb-9705-dc4d15635c2d" /> This is addressed by introducing a new field `cancel_url` that is required for PayPal. This PR also removes unused structs and enums. In addition to that, `ActionType` has been replaced the previous `String` and now that it only accepts limited number of values.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs` - `crates/hyperswitch_connectors/src/connectors/globalpay/response.rs` - `crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs` - ... and 1 more files **Code Patterns Applied:** - Extend existing types with new fields (3 changes) **Detailed Identifier Changes:** Commit 8b0c1333: Files to modify: **crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/globalpay/response.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs** Modify existing code
{"pr_number": 7605, "pr_title": "fix(connector): [GlobalPay] Address `5xx` when cancelling a paypal transaction", "merged_at": "2025-03-26T10:26:02Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"connectors": ["crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs", "crates/hyperswitch_connectors/src/connectors/globalpay/response.rs", "crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs", "crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs"]}, "change_types": {"enums_added": 1, "fields_added": 3}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Add `peek_mut` function to PeekInterface to get mutable reference for the inner data. ## 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). --> To get the mutable reference for inner data in StrongSecret. ## 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)? --> ** THIS CANNOT BE TESTED IN ENVIRONMENTS ** ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt --all` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed the submitted code
To implement this **connector_integration** feature, you'll need to modify these architectural layers: **1. Other** - `crates/masking/src/abs.rs` - `crates/masking/src/bytes.rs` - `crates/masking/src/secret.rs` - ... and 1 more files **Code Patterns Applied:** - Implement new functions (4 changes)
{"pr_number": 7281, "pr_title": "chore(masking): add peek_mut to PeekInterface", "merged_at": "2025-02-22T08:40:07Z", "intent": {"feature_type": "connector_integration", "action": "add_feature", "entities": []}, "hierarchy": {"other": ["crates/masking/src/abs.rs", "crates/masking/src/bytes.rs", "crates/masking/src/secret.rs", "crates/masking/src/strong_secret.rs"]}, "change_types": {"functions_added": 4}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> If the business profile does not have a country set, we cannot perform debit routing, because the merchant_business_country will be treated as the acquirer_country, which is used to determine whether a transaction is local or global in the open router. For now, since debit routing is only implemented for USD, we can safely assume the acquirer_country is US if not provided by the merchant.
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:** - Add conditional logic for feature flags or filtering (2 changes)
{"pr_number": 8141, "pr_title": "refactor(debit_routing): Handle missing merchant_business_country by defaulting to US", "merged_at": "2025-05-28T06:51:44Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"core_business": ["crates/router/src/core/debit_routing.rs"]}, "change_types": {"conditionals_added": 2}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Add authorized_amount in payment_attempt to support partial authorization for manual_multiple capture. Add partial authorization support for Checkout connector
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Database Layer (Queries & Schema)** - `crates/diesel_models/src/payment_attempt.rs` - `crates/diesel_models/src/schema.rs` - `crates/diesel_models/src/schema_v2.rs` - ... and 1 more files **2. Domain Models (Business Logic Types)** - `crates/hyperswitch_domain_models/src/payments/payment_attempt.rs` - `crates/hyperswitch_domain_models/src/router_data.rs` **3. 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 **4. External Connector Integration** - `crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs` - `crates/hyperswitch_connectors/src/utils.rs` - `crates/router/src/types/api/verify_connector.rs` - ... and 1 more files **5. Type Definitions** - `crates/router/src/types.rs` - `crates/router/src/types/storage/payment_attempt.rs` **6. Utils** - `crates/router/src/utils/user/sample_data.rs` **7. Other** - `crates/hyperswitch_interfaces/src/conversion_impls.rs` - `crates/router/src/services/kafka/payment_attempt.rs` - `crates/router/src/services/kafka/payment_attempt_event.rs` - ... and 4 more files **Code Patterns Applied:** - Define new data structures (1 changes) - Extend existing types with new fields (101 changes) - Modify database queries (1 changes) **Detailed Identifier Changes:** Commit 8e62824b: Files to modify: **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/diesel_models/src/schema.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/user/sample_data.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/checkout/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_interfaces/src/conversion_impls.rs** Modify existing code **crates/router/src/core/authentication/transformers.rs** Modify existing code **crates/router/src/core/fraud_check/flows/checkout_flow.rs** Modify existing code **crates/router/src/core/fraud_check/flows/fulfillment_flow.rs** Modify existing code **crates/router/src/core/fraud_check/flows/record_return.rs** Modify existing code **crates/router/src/core/fraud_check/flows/sale_flow.rs** Modify existing code **crates/router/src/core/fraud_check/flows/transaction_flow.rs** Modify existing code **crates/router/src/core/mandate/utils.rs** Modify existing code **crates/router/src/core/payment_methods.rs** Modify existing code **crates/router/src/core/payments/helpers.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/core/relay/utils.rs** Modify existing code **crates/router/src/core/unified_authentication_service/utils.rs** Modify existing code **crates/router/src/core/utils.rs** Modify existing code **crates/router/src/core/webhooks/utils.rs** Modify existing code **crates/router/src/services/kafka/payment_attempt.rs** Modify existing code **crates/router/src/services/kafka/payment_attempt_event.rs** Modify existing code **crates/router/src/types.rs** Modify existing code **crates/router/src/types/api/verify_connector.rs** Modify existing code **crates/router/src/types/storage/payment_attempt.rs** Modify existing code **crates/router/src/utils/user/sample_data.rs** Modify existing code **crates/router/tests/connectors/utils.rs** Modify existing code **crates/storage_impl/src/mock_db/payment_attempt.rs** Modify existing code **crates/storage_impl/src/payments/payment_attempt.rs** Modify existing code
{"pr_number": 9594, "pr_title": "feat(core): Add authorized_amount in payment_attempt to support partial authorization for manual_multiple capture", "merged_at": "2025-10-01T10:16:39Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"database": ["crates/diesel_models/src/payment_attempt.rs", "crates/diesel_models/src/schema.rs", "crates/diesel_models/src/schema_v2.rs", "crates/diesel_models/src/user/sample_data.rs"], "domain": ["crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "crates/hyperswitch_domain_models/src/router_data.rs"], "core_business": ["crates/router/src/core/authentication/transformers.rs", "crates/router/src/core/fraud_check/flows/checkout_flow.rs", "crates/router/src/core/fraud_check/flows/fulfillment_flow.rs", "crates/router/src/core/fraud_check/flows/record_return.rs", "crates/router/src/core/fraud_check/flows/sale_flow.rs", "crates/router/src/core/fraud_check/flows/transaction_flow.rs", "crates/router/src/core/mandate/utils.rs", "crates/router/src/core/payment_methods.rs", "crates/router/src/core/payments/helpers.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", "crates/router/src/core/relay/utils.rs", "crates/router/src/core/unified_authentication_service/utils.rs", "crates/router/src/core/utils.rs", "crates/router/src/core/webhooks/utils.rs"], "connectors": ["crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs", "crates/hyperswitch_connectors/src/utils.rs", "crates/router/src/types/api/verify_connector.rs", "crates/router/tests/connectors/utils.rs"], "types": ["crates/router/src/types.rs", "crates/router/src/types/storage/payment_attempt.rs"], "utils": ["crates/router/src/utils/user/sample_data.rs"], "other": ["crates/hyperswitch_interfaces/src/conversion_impls.rs", "crates/router/src/services/kafka/payment_attempt.rs", "crates/router/src/services/kafka/payment_attempt_event.rs", "crates/storage_impl/src/mock_db/payment_attempt.rs", "crates/storage_impl/src/payments/payment_attempt.rs", "migrations/2025-09-29-074746_add_authorized_amount_to_payment_attempt/down.sql", "migrations/2025-09-29-074746_add_authorized_amount_to_payment_attempt/up.sql"]}, "change_types": {"structs_added": 1, "fields_added": 101, "database_queries": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
A new struct, UpdateScoreResponse, was introduced in the API models to represent responses from the Open Router. The payment routing logic was updated to parse responses directly into this struct, replacing the previous manual string conversion and error handling with structured deserialization.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/open_router.rs` **2. Core Business Logic** - `crates/router/src/core/payments/routing.rs` **3. Other** - `api-reference-v2/openapi_spec.json` **Code Patterns Applied:** - Define new data structures (1 changes) - Extend existing types with new fields (1 changes)
{"pr_number": 8308, "pr_title": "refactor(dynamic_routing): change the response type of update gateway score api in open router", "merged_at": "2025-06-11T10:07:49Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "user"]}, "hierarchy": {"api_models": ["crates/api_models/src/open_router.rs"], "core_business": ["crates/router/src/core/payments/routing.rs"], "other": ["api-reference-v2/openapi_spec.json"]}, "change_types": {"structs_added": 1, "fields_added": 1}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> Corrected the content of the tip.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. Other** - `api-reference/api-reference/payments/Introduction--to--payments.mdx`
{"pr_number": 7387, "pr_title": "docs(api-reference): fix the content of the tip", "merged_at": "2025-02-27T13:47:08Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": []}, "hierarchy": {"other": ["api-reference/api-reference/payments/Introduction--to--payments.mdx"]}, "change_types": {}, "has_identifier_data": false, "commits_matched": 0, "match_method": "none"}
<!-- Describe your changes in detail --> For each countries present in Europe, their states are converted to ISO Standard [Source for standard](https://github.com/juspay/hyperswitch-web/blob/main/src/States.json) Note: A bugfix is present as well for address_id used to fetch billing_address for external authentication Note: hotfix against https://github.com/juspay/hyperswitch/pull/7273
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/mandates.rs` **3. Core Business Logic** - `crates/router/src/core/payments.rs` **4. External Connector Integration** - `crates/hyperswitch_connectors/src/utils.rs` **5. Configuration Files** - `.typos.toml` **6. Other** - `crates/common_enums/src/enums.rs` **Code Patterns Applied:** - Implement new functions (33 changes) - Extend existing types with new fields (33 changes) **Detailed Identifier Changes:** Commit 170217a8: 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/utils.rs** Modify existing code **crates/hyperswitch_domain_models/src/mandates.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code
{"pr_number": 7302, "pr_title": "feat(utils): add iso representation for each state for european countries", "merged_at": "2025-02-18T17:45:24Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment"]}, "hierarchy": {"api_models": ["crates/api_models/src/payments.rs"], "domain": ["crates/hyperswitch_domain_models/src/mandates.rs"], "core_business": ["crates/router/src/core/payments.rs"], "connectors": ["crates/hyperswitch_connectors/src/utils.rs"], "config": [".typos.toml"], "other": ["crates/common_enums/src/enums.rs"]}, "change_types": {"functions_added": 33, "enums_added": 33, "fields_added": 33}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Make new APIs to replace - `/user/role/{{role_id}}` -> `/user/role/{{role_id}}/v2` - `/user/role` -> `/user/role/v2` - `/user/module/list` -> `/user/parent/list` The new APIs will have proper description and parent info which has entity level context unlike the previous APIs.
To implement this **search_filter** feature, you'll need to modify these architectural layers: **1. API Request/Response Models** - `crates/api_models/src/events/user_role.rs` - `crates/api_models/src/user_role/role.rs` **2. Core Business Logic** - `crates/router/src/core/user_role.rs` - `crates/router/src/core/user_role/role.rs` **3. Type Definitions** - `crates/router_env/src/logger/types.rs` **4. Utils** - `crates/router/src/routes/lock_utils.rs` **5. Other** - `crates/common_enums/src/enums.rs` - `crates/router/src/routes/app.rs` - `crates/router/src/routes/user_role.rs` - ... and 4 more files **Code Patterns Applied:** - Define new data structures (3 changes) - Implement new functions (16 changes) - Extend existing types with new fields (37 changes) - Add conditional logic for feature flags or filtering (1 changes) - Modify database queries (5 changes) **Detailed Identifier Changes:** Commit 7dcffccf: Files to modify: **crates/api_models/src/events/user_role.rs** Modify existing code **crates/api_models/src/user_role/role.rs** Modify existing code **crates/common_enums/src/enums.rs** Modify existing code **crates/router/src/core/user_role.rs** Modify existing code **crates/router/src/core/user_role/role.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/lock_utils.rs** Modify existing code **crates/router/src/routes/user_role.rs** Modify existing code **crates/router/src/services/authorization/info.rs** Modify existing code **crates/router/src/services/authorization/permission_groups.rs** Modify existing code **crates/router/src/services/authorization/permissions.rs** Modify existing code **crates/router/src/services/authorization/roles/predefined_roles.rs** Modify existing code **crates/router_env/src/logger/types.rs** Modify existing code
{"pr_number": 6440, "pr_title": "feat(authz): Make info APIs support `ParentGroup`", "merged_at": "2024-10-30T10:42:37Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["customer", "payment", "merchant"]}, "hierarchy": {"api_models": ["crates/api_models/src/events/user_role.rs", "crates/api_models/src/user_role/role.rs"], "core_business": ["crates/router/src/core/user_role.rs", "crates/router/src/core/user_role/role.rs"], "types": ["crates/router_env/src/logger/types.rs"], "utils": ["crates/router/src/routes/lock_utils.rs"], "other": ["crates/common_enums/src/enums.rs", "crates/router/src/routes/app.rs", "crates/router/src/routes/user_role.rs", "crates/router/src/services/authorization/info.rs", "crates/router/src/services/authorization/permission_groups.rs", "crates/router/src/services/authorization/permissions.rs", "crates/router/src/services/authorization/roles/predefined_roles.rs"]}, "change_types": {"structs_added": 3, "functions_added": 16, "fields_added": 37, "imports_added": 9, "conditionals_added": 1, "database_queries": 5}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> After passive churn recovery retries the payment, we will have to record back and update the invoice in billing process. This PR adds support for this by adding connector integration flow.
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_data_v2/flow_common_types.rs` - `crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs` - `crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs` - ... and 2 more files **2. Core Business Logic** - `crates/router/src/core/payments/flows.rs` **3. External Connector Integration** - `crates/hyperswitch_connectors/src/default_implementations.rs` **4. Type Definitions** - `crates/hyperswitch_interfaces/src/types.rs` - `crates/router/src/types.rs` - `crates/router/src/types/api.rs` **5. Other** - `crates/hyperswitch_interfaces/src/api/revenue_recovery.rs` - `crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs` - `crates/router/src/services/api.rs` **Code Patterns Applied:** - Define new data structures (4 changes) - Extend existing types with new fields (7 changes) **Detailed Identifier Changes:** Commit 13a27490: Files to modify: **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs** Modify existing code **crates/hyperswitch_domain_models/src/types.rs** Modify existing code **crates/hyperswitch_interfaces/src/api/revenue_recovery.rs** Modify existing code **crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs** Modify existing code **crates/hyperswitch_interfaces/src/types.rs** Modify existing code **crates/router/src/core/payments/flows.rs** Modify existing code **crates/router/src/services/api.rs** Modify existing code **crates/router/src/types.rs** Modify existing code **crates/router/src/types/api.rs** Modify existing code
{"pr_number": 7416, "pr_title": "feat(connector): Add record back connector integration flow ", "merged_at": "2025-03-12T12:38:36Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["payment", "connector"]}, "hierarchy": {"domain": ["crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs", "crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs", "crates/hyperswitch_domain_models/src/types.rs"], "core_business": ["crates/router/src/core/payments/flows.rs"], "connectors": ["crates/hyperswitch_connectors/src/default_implementations.rs"], "types": ["crates/hyperswitch_interfaces/src/types.rs", "crates/router/src/types.rs", "crates/router/src/types/api.rs"], "other": ["crates/hyperswitch_interfaces/src/api/revenue_recovery.rs", "crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs", "crates/router/src/services/api.rs"]}, "change_types": {"structs_added": 4, "fields_added": 7, "imports_added": 1}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}
<!-- Describe your changes in detail --> Integrate celero commerce connector Doc : https://sandbox.gotnpgateway.com/docs/api/transactions [x] Cards [x] Avs
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 3 more files **2. Tests** - `.github/workflows/cypress-tests-runner.yml` - `cypress-tests/README.md` - `cypress-tests/cypress/e2e/configs/Payment/Celero.js` - ... and 11 more files **Code Patterns Applied:** - Define new data structures (11 changes) - Implement new functions (30 changes) - Extend existing types with new fields (1267 changes) - Add conditional logic for feature flags or filtering (45 changes) **Detailed Identifier Changes:** Commit e1fc1413: Files to modify: **crates/hyperswitch_connectors/src/connectors/celero.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/celero/transformers.rs** Modify existing code **crates/payment_methods/src/configs/payment_connector_required_fields.rs** Modify existing code
{"pr_number": 8574, "pr_title": "feat(connector): [CELERO] Integrate Card Payments (Alpha)", "merged_at": "2025-08-20T12:33:18Z", "intent": {"feature_type": "search_filter", "action": "add_feature", "entities": ["user", "connector", "card"]}, "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/celero.rs", "crates/hyperswitch_connectors/src/connectors/celero/transformers.rs", "crates/payment_methods/src/configs/payment_connector_required_fields.rs"], "tests": [".github/workflows/cypress-tests-runner.yml", "cypress-tests/README.md", "cypress-tests/cypress/e2e/configs/Payment/Celero.js", "cypress-tests/cypress/e2e/configs/Payment/Utils.js", "cypress-tests/cypress/e2e/configs/mock-server/Connectors/Celero.ts", "cypress-tests/cypress/e2e/configs/mock-server/Connectors/Silverflow.ts", "cypress-tests/cypress/e2e/configs/mock-server/Creds.json", "cypress-tests/cypress/e2e/configs/mock-server/Silverflow.js", "cypress-tests/cypress/e2e/configs/mock-server/mockserver.ts", "cypress-tests/cypress/e2e/configs/mock-server/router.ts", "cypress-tests/eslint.config.js", "cypress-tests/package-lock.json", "cypress-tests/package.json", "cypress-tests/tsconfig.json"]}, "change_types": {"structs_added": 11, "functions_added": 30, "enums_added": 6, "fields_added": 1267, "imports_added": 6, "conditionals_added": 45}, "has_identifier_data": true, "commits_matched": 1, "match_method": "pr_number"}