prompt
stringlengths
24
70.5k
response
stringlengths
271
16.7k
metadata
stringlengths
145
152
feat(users): Introduce themes in user APIs Currently there is no themes context in the user and email related APIs where the themes should be reflected. We should change the APIs which would have the theme context.
<think> PR Context: - Title: feat(users): Incorporate themes in user APIs - Merged: 2024-12-16T09:20:21Z - Files changed: 27 files - Commits: 22 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - This PR will introduce theme context in user APIs and email related APIs. - The User APIs which are affected are 1. User Info 2. Invite 3. Resend Invite 4. Reset Password 5. Connect Account 6. Signup with mer </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(users): Incorporate themes in user APIs (#6772) Co-authored-by: hyperswitch-bot[bot] <148525504 Files to modify: **crates/api_models/src/user.rs** Remove: - struct: pub::AuthIdQueryParam Add: - struct: pub::AuthIdAndThemeIdQueryParam **crates/api_models/src/user/theme.rs** Modify existing code **crates/common_utils/src/types/theme.rs** Add: - function: pub::new **crates/diesel_models/src/query/user/theme.rs** Add: - function: pub::find_most_specific_theme_in_lineage **crates/diesel_models/src/schema.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/user/theme.rs** Add: - function: pub::new **crates/router/src/configs/secrets_transformers.rs** Modify existing code **crates/router/src/configs/settings.rs** Add: - struct: pub::ThemeSettings **crates/router/src/core/errors/user.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/core/user/theme.rs** Modify existing code **crates/router/src/db/kafka_store.rs** Add: - function: private::find_most_specific_theme_in_lineage **crates/router/src/db/user/theme.rs** Add: - function: private::find_most_specific_theme_in_lineage **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/user.rs** Modify existing code **crates/router/src/services/email/types.rs** Modify existing code **crates/router/src/utils/user/theme.rs** Add: - function: pub::get_most_specific_theme_using_token_and_min_entity - function: pub::get_most_specific_theme_using_lineage **crates/router/src/workflows/api_key_expiry.rs** Modify existing code
{"issue_number": 6780, "pr_number": 6772, "commits_count": 1, "files_changed": 27, "response_length": 2642, "file_count": 23, "needs_breakdown": true}
[BUG] GlobalPay throws 501 for mandates below function is the culprit: ```rs fn get_payment_method_data( item: &PaymentsAuthorizeRouterData, brand_reference: Option<String>, ) -> Result<PaymentMethodData, Error> { match &item.request.payment_method_data { payment_method_data::PaymentMethodData::Card(ccard) => { Ok(PaymentMethodData::Card(requests::Card { number: ccard.card_number.clone(), expiry_month: ccard.card_exp_month.clone(), expiry_year: ccard.get_card_expiry_year_2_digit()?, cvv: ccard.card_cvc.clone(), account_type: None, authcode: None, avs_address: None, avs_postal_code: None, brand_reference, chip_condition: None, funding: None, pin_block: None, tag: None, track: None, })) } payment_method_data::PaymentMethodData::Wallet(wallet_data) => get_wallet_data(wallet_data), payment_method_data::PaymentMethodData::BankRedirect(bank_redirect) => { PaymentMethodData::try_from(bank_redirect) } _ => Err(errors::ConnectorError::NotImplemented( "Payment methods".to_string(), ))?, } } ``` just because `MandatePayment` isn't covered, it falls back to the default case which throws `501`. relevant docs: - [Tokenization](https://developer.globalpay.com/api/payment-methods-tokenization#/Create/post-payment-method) - [MIT](https://developer.globalpay.com/docs/MIT) - [Recurring](https://developer.globalpay.com/docs/payments/recurring/credentials-on-file)
<think> PR Context: - Title: fix(connector): [globalpay] address 5xx in mandates by implementing tokenization flow - Merged: None - Files changed: 13 files - Commits: 5 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR address 5xx during MIT payments in GlobalPay. Previously, mandates through GlobalPay would throw a `501` just because the control flow would hit the default case during the `confirm` call: ```rs fn get_payment_method_data( </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8481, "pr_number": 8482, "commits_count": 0, "files_changed": 13, "response_length": 800, "file_count": 0, "needs_breakdown": false}
[REFACTOR] remove non mandatory fields for Adyen Platform payouts Hyperswitch mandates a few fields for AdyenPlatform connector which are not needed. These are needed to be made optional. List of fields - Billing address details
<think> PR Context: - Title: refactor(connector): make billing address line2 optional for Adyen Platform payouts - Merged: None - Files changed: 2 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Refactors the Adyen Platform connector to make the `billing.address.line2` field optional for payout operations, removing unnecessary validation that was causing friction for users. **Key Changes:** - Updated `AdyenAddress` struct to mak </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8973, "pr_number": 8982, "commits_count": 0, "files_changed": 2, "response_length": 797, "file_count": 1, "needs_breakdown": false}
refactor(authentication): moved cavv storing from table to temp locker ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Refactoring ## Description <!-- Describe your changes in detail --> https://github.com/juspay/hyperswitch/pull/7978 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## How did you test it? <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt --all` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed the submitted code - [ ] I added unit tests for my changes where possible
<think> PR Context: - Title: refactor(authentication): moved cavv storing from table to temp locker - Merged: 2025-05-14T07:50:11Z - Files changed: 21 files - Commits: 1 commits Implementation approach: Reverts [juspay/hyperswitch#8005](https://github.com/juspay/hyperswitch/pull/7978) </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(authentication): moved cavv storing from table to temp locker (#8021) Files to modify: **crates/diesel_models/src/authentication.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types/authentication.rs** Remove: - struct: pub::AuthenticationStore **crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_response_types.rs** Modify existing code **crates/hyperswitch_interfaces/src/authentication.rs** Modify existing code **crates/router/src/connector/gpayments/gpayments_types.rs** Modify existing code **crates/router/src/connector/netcetera/transformers.rs** Modify existing code **crates/router/src/connector/threedsecureio/transformers.rs** Modify existing code **crates/router/src/core/authentication.rs** Modify existing code **crates/router/src/core/authentication/utils.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/payments/operations/payment_confirm.rs** Modify existing code **crates/router/src/core/payments/operations/payment_response.rs** Modify existing code **crates/router/src/core/payments/operations/payment_status.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/core/payments/types.rs** Modify existing code **crates/router/src/core/unified_authentication_service/utils.rs** Modify existing code **crates/router/src/core/webhooks/incoming.rs** Modify existing code **crates/router/src/types/api/authentication.rs** Modify existing code **crates/router/src/types/domain.rs** Remove: - mod: pub::authentication **crates/router/src/types/transformers.rs** Modify existing code
{"issue_number": 8005, "pr_number": 8021, "commits_count": 1, "files_changed": 21, "response_length": 2236, "file_count": 23, "needs_breakdown": true}
Add audit events for PaymentCreate update Created from https://github.com/juspay/hyperswitch/issues/4525 This covers adding events for PaymentCreate operation This event should include the payment data similar to https://github.com/juspay/hyperswitch/pull/4166 It should also include any metadata for the event e.g reason for payment rejection, error codes, rejection source etc
<think> PR Context: - Title: feat(payments): Add audit events for PaymentCreate update - Merged: 2024-11-07T13:39:25Z - Files changed: 2 files - Commits: 4 commits Implementation approach: ## Type of Change - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds an Audit event for the PaymentCreate operation. ### Additional Changes - [x] This PR modifies the files below - `crates/router/src/core/payments/operations/payment_create.rs` - `crates/router/src/events/audit_events.rs` ## Motivation and Context This PR fixes #4672 ## How did you test it H </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(payments): Add audit events for PaymentCreate update (#6427) Files to modify: **crates/router/src/core/payments/operations/payment_create.rs** Modify existing code **crates/router/src/events/audit_events.rs** Modify existing code
{"issue_number": 4672, "pr_number": 6427, "commits_count": 1, "files_changed": 2, "response_length": 1031, "file_count": 4, "needs_breakdown": false}
FIX[Config]: Add VGS baseurl to deployment toml files Need to add baseurl for VGS in `config/deployments/{integration_test, production, sandbox}.toml`
<think> PR Context: - Title: fix(config): Add VGS baseurl to deployments toml files - Merged: 2025-05-16T13:03:19Z - Files changed: 3 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> Added baseurl for `VGS` connector in relevant deployment TOML files ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [x] This PR modifies application configuration/environment </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8058, "pr_number": 8059, "commits_count": 0, "files_changed": 3, "response_length": 784, "file_count": 0, "needs_breakdown": false}
Adding Deep health check for Hyperswitch Goal is to create a deep health check endpoint which will verify that the Hyperswitch application is up and running and the connections to all the necessary services are healthy - [x] Failure of health check should emit logs providing evidential data regarding the failure The deep health will verify the following services - [x] #3267 - [x] #3268 - [x] #3269 - [x] #3270 - [x] [Deep health check for Hyperswitch Control Center](https://github.com/juspay/hyperswitch-control-center/issues/374)
<think> PR Context: - Title: refactor(payment_methods): propagate empty wallet details for paypal … - Merged: 2025-03-04T13:41:10Z - Files changed: 1 files - Commits: 2 commits Implementation approach: …during MIT ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds support for propagating the wallet details during MIT txns for PayPal. This ensures PayPal is propagated with same wallet details during CIT and MIT which in turn ensures the return type for `payment_method_data` is same for CIT and MIT. **Notes** - `ad </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(payment_methods): propagate empty wallet details for paypal … (#7423) Files to modify: **crates/router/src/core/payments/operations/payment_create.rs** Modify existing code
{"issue_number": 3264, "pr_number": 7423, "commits_count": 1, "files_changed": 1, "response_length": 988, "file_count": 4, "needs_breakdown": false}
fix(router): change the retrieve's payload to query ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates ## Description Change the deserialisation method from Json to Query in the payments retrieve function <!-- Describe your changes in detail --> ### Additional Changes - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes --> ## Motivation and Context Based on the requirements for the payments retrieve API to accept parameters instead of fields in the body <!-- 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 its an obvious bug or documentation fix that will have little conversation). --> ## How did you test it? Tested the endpoint by sending proper query parameters & by sending no query params <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed submitted code - [ ] I added unit tests for my changes where possible - [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable
<think> PR Context: - Title: feat(themes): Create user APIs for managing themes - Merged: 2025-07-28T07:46:16Z - Files changed: 18 files - Commits: 30 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds user APIs to manage themes. Earlier themes was being managed using Admin apis. These are the following APIs 1. Create Theme 2. Delete Theme 3. Update Theme 4. Upload Asset 5. Find Theme by Theme ID 6. List themes by entity level 7. Get Theme by lineage - A </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(themes): Create user APIs for managing themes (#8387) Co-authored-by: hyperswitch-bot[bot] <148 Files to modify: **crates/api_models/src/events/user.rs** Modify existing code **crates/api_models/src/user/theme.rs** Add: - struct: pub::CreateUserThemeRequest - struct: pub::EntityTypeQueryParam **crates/common_enums/src/enums.rs** Modify existing code **crates/common_utils/src/id_type/profile.rs** Modify existing code **crates/common_utils/src/types/user/theme.rs** Modify existing code **crates/diesel_models/src/query/user/theme.rs** Add: - function: private::lineage_hierarchy_filter - function: pub::delete_by_theme_id - function: pub::find_all_by_lineage_hierarchy **crates/router/src/core/user/theme.rs** Add: - function: pub::delete_theme - function: pub::create_user_theme - function: pub::update_user_theme - function: pub::upload_file_to_user_theme_storage - function: pub::list_all_themes_in_lineage - function: pub::get_user_theme_using_theme_id - function: pub::get_user_theme_using_lineage **crates/router/src/db/kafka_store.rs** Modify existing code **crates/router/src/db/user/theme.rs** Add: - function: private::check_theme_belongs_to_lineage_hierarchy - function: private::delete_theme_by_theme_id **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/lock_utils.rs** Modify existing code **crates/router/src/routes/user/theme.rs** Add: - function: pub::create_user_theme - function: pub::get_user_theme_using_theme_id - function: pub::update_user_theme - function: pub::delete_user_theme - function: pub::upload_file_to_user_theme_storage - function: pub::list_all_themes_in_lineage - function: pub::get_user_theme_using_lineage **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/src/utils/user/theme.rs** Add: - function: pub::get_theme_lineage_from_user_token - function: pub::can_user_access_theme **crates/router_env/src/logger/types.rs** Modify existing code
{"issue_number": 2, "pr_number": 8387, "commits_count": 1, "files_changed": 18, "response_length": 3151, "file_count": 20, "needs_breakdown": true}
[BUG] recurring mandate through bancontact card bank redirect via stripe fails connector throws below error: ``` "The provided bancontact PaymentMethod cannot be used again. It was used in a previous PaymentIntent or SetupIntent to set up a sepa_debit PaymentMethod, which can be used for multiple payments. To find the ID of the sepa_debit PaymentMethod, list the sepa_debit PaymentMethods associated with the Customer used to set up this PaymentMethod." ``` this is because we're just passing bancontact card payment method id instead of sepa direct debit payment method id. check: - https://docs.stripe.com/payments/bancontact - https://docs.stripe.com/payments/bancontact/save-during-payment?platform=web#web-charge-sepa-pm
<think> PR Context: - Title: fix(connector): [stripe] fix bank redirect (`bancontact_card`) recurring mandate - Merged: 2025-05-13T07:07:45Z - Files changed: 1 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> this pr aims to fix the stripe bank redirect recurring mandate. for context, `bancontact` recurring mandates happen via `sepa direct debit` and hence, stripe sends 2 connector mandate ids as shown below: ```json { "payment_method": " </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(connector): [stripe] fix bank redirect (`bancontact_card`) recurring mandate (#7990) Files to modify: **crates/router/src/connector/stripe/transformers.rs** Add: - function: pub::get_payment_method_id
{"issue_number": 7989, "pr_number": 7990, "commits_count": 1, "files_changed": 1, "response_length": 1025, "file_count": 3, "needs_breakdown": false}
[REFACTOR] remove non mandatory fields for Adyen Platform payouts Hyperswitch mandates a few fields for AdyenPlatform connector which are not needed. These are needed to be made optional. List of fields - Billing address details
<think> PR Context: - Title: refactor(connector): make billing address line2 optional for Adyen Platform payouts - Merged: None - Files changed: 2 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Refactors the Adyen Platform connector to make the `billing.address.line2` field optional for payout operations, removing unnecessary validation that was causing friction for users. **Key Changes:** - Updated `AdyenAddress` struct to mak </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8973, "pr_number": 8981, "commits_count": 0, "files_changed": 2, "response_length": 797, "file_count": 1, "needs_breakdown": false}
ci(cypress): Fix Failed Test Cases for the below connectors The Failed Test Cases for the following connectors: - [x] [Deutschebank](https://github.com/juspay/hyperswitch/pull/8193) - [x] [Worldpayxml](https://github.com/juspay/hyperswitch/pull/8193) - [x] [Hipay](https://github.com/juspay/hyperswitch/pull/8563) - [ ] Getnet - [ ] Braintree - [ ] [Archipel](https://github.com/juspay/hyperswitch/pull/8189)
<think> PR Context: - Title: ci(cypress): fix `worldpayxml`, and `deutschebank` cypress test cases - Merged: 2025-07-04T14:47:44Z - Files changed: 6 files - Commits: 30 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> Addresses Failed Cypress Test Cases for `deutschebank` and `worldpayxml`. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/enviro </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8399, "pr_number": 8193, "commits_count": 0, "files_changed": 6, "response_length": 800, "file_count": 0, "needs_breakdown": false}
fix(router): Move Customer PML endpoint to OLAP (v2) [This PR](https://github.com/juspay/hyperswitch/pull/7241) added customer PML for v2, but the route was incorrectly added under OLTP instead of OLAP, need to fix
<think> PR Context: - Title: fix(router): Move Customer PML endpoint to OLAP (v2) - Merged: 2025-06-18T08:23:04Z - Files changed: 1 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Moved customer saved PML route to OLAP in v2 ### Additional Changes - [x] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Prov </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(router): Move Customer PML endpoint to OLAP (v2) (#8303) Files to modify: **crates/router/src/routes/app.rs** Modify existing code
{"issue_number": 8302, "pr_number": 8303, "commits_count": 1, "files_changed": 1, "response_length": 923, "file_count": 3, "needs_breakdown": false}
fix cybersource cypress redirection address ci inconsistency. cybersource cypress test in github has been failing randomly left right and center for no good reason.
<think> PR Context: - Title: fix(cypress): address cybersource redirection inconsistency - Merged: 2025-01-21T07:06:52Z - Files changed: 6 files - Commits: 24 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> - enabled video recording for tests that fail - cybersource connector in github ci, randomly goes through `frictionless` flow without challenge which results in certain expected elements to go missing resulting in respective tests to fail </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 7058, "pr_number": 7057, "commits_count": 0, "files_changed": 6, "response_length": 790, "file_count": 0, "needs_breakdown": false}
[BUG] payout routing for Sepa transactions result in a 4xx error ### Bug Description Creating payout transactions for SEPA are resulting in a 4xx error with below message. ``` { "error": { "type": "invalid_request", "message": "No eligible connector was found for the current payment method configuration", "code": "IR_39" } } ``` ### Expected Behavior Payout transactions for SEPA should be routed through eligible connectors. ### Actual Behavior Payout routing fails to get an eligible connector for SEPA bank transfers. ### Steps To Reproduce 1. Create Wise connector 2. Try creating a SEPA payout 3. It should throw below error response ``` { "error": { "type": "invalid_request", "message": "No eligible connector was found for the current payment method configuration", "code": "IR_39" } } ``` ### Context For The Bug This is happening due to a mismatch in what is configured for available payment methods during MCA creation - which stores `sepa` as payment method type in DB - vs what is used during payout routing - which uses `sepa_bank_transfer` for SEPA transactions. MCA creation on dashboard uses a wasm build which contains the info for enabling the right payment method types for payouts. It is configured to use `sepa` instead of `sepa_bank_transfer` (which is being used in the payout flow). There was an activity to rename `Sepa` to `SepaBankTransfer` recently. More details [here](https://github.com/juspay/hyperswitch/pull/7575). ### Have you spent some time checking if this bug has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: chore(wasm): update sepa to sepa_bank_transfer for payout MCAs - Merged: 2025-09-25T07:49:03Z - Files changed: 3 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR updates the payout MCA creation to use `sepa_bank_transfer` instead of `sepa`. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Prov </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8168, "pr_number": 9536, "commits_count": 0, "files_changed": 3, "response_length": 792, "file_count": 0, "needs_breakdown": false}
[REFACTOR] Worldpay payments integration ### Feature Description WorldPay payments integration currently makes use of modular APIs which gives more control over the integration. This approach is not best compatible with HyperSwitch due to WP's 3DS flows - which requires sending PAN (card numbers) in multiple places. For `on_session` transactions, this would contribute to the added complexity since data is not stored in such transactions (or stored for ~15mins in redis cache). Migrating to WP's standard payments API follows payment resource creation in an uniform way. ### Possible Implementation Migrate from modular APIs [[ref](https://developer.worldpay.com/products/access/card-payments)] to standard payment APIs [[ref](https://developer.worldpay.com/products/access/payments/openapi)]. ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: fix(connector): [Worldpay] use 4 digit expiry year - Merged: 2024-11-19T15:34:37Z - Files changed: 3 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6316 point # 7 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Fo </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(connector): [Worldpay] use 4 digit expiry year (#6543) Files to modify: **crates/hyperswitch_connectors/src/connectors/worldpay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Add: - function: private::get_expiry_year_as_4_digit_i32
{"issue_number": 6316, "pr_number": 6543, "commits_count": 1, "files_changed": 3, "response_length": 1068, "file_count": 4, "needs_breakdown": false}
[FEATURE] Use proxy exclusion instead of a separate proxied client ### Feature Description Currently we provide the option for proxying all external requests made to Connectors. We also use reqwest clients to make API calls to basilisk/locker or other utilities. Recently we started reusing the `reqwest::Client` (via once_cell) for performance reasons Our current approach involves maintaining 2 clients: - Proxied Client for any requests going outside our system - Non-Proxied client for internal services Currently we need to maintain a list of the services that should bypass proxy & choose a client accordingly. This adds a bit of a boilerplate whenever we try to make requests. ### Possible Implementation Expected behavior: Instead we want to push this behavior down to the reqwest library… we believe the [no_proxy](https://docs.rs/reqwest/latest/reqwest/struct.Proxy.html#method.no_proxy) function should help us avoid this maintenance. We would ideally accept a list of `proxy_bypass_urls` as part of our config which would then be used to create a single `reqwest::Client` which can be used for internal + external services ### Have you spent some time to check if this feature request has been raised before? - [X] I checked and didn't find similar issue ### Have you read the Contributing Guidelines? - [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? No, I don't have time to work on this right now
<think> PR Context: - Title: refactor(proxy): specify hosts for proxy exclusion instead of complete URLs - Merged: 2025-01-15T13:04:48Z - Files changed: 10 files - Commits: 3 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR refactors the logic for excluding specific HTTP / HTTPS traffic from being proxied via the outgoing proxy. Specifically, the changes included are: 1. We no longer need two clients (a proxied client and a non-proxied client), we ca </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(proxy): specify hosts for proxy exclusion instead of complete URLs (#6957) Files to modify: **crates/common_enums/src/enums.rs** Modify existing code **crates/router/src/bin/scheduler.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/lib.rs** Modify existing code **crates/router/src/services/api.rs** Modify existing code **crates/router/src/services/api/client.rs** Remove: - function: pub::proxy_bypass_urls **crates/router/src/services/openidconnect.rs** Modify existing code
{"issue_number": 1039, "pr_number": 6957, "commits_count": 1, "files_changed": 10, "response_length": 1448, "file_count": 10, "needs_breakdown": false}
fix(connector): [ARCHIPEL] Change connector fields that are currently implemented as required in the code to optional … implemented as required in the code to optional ## Type of Change <!-- Put an `x` in the boxes that apply --> - [X] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Change connector fields that are currently implemented as required in the code to optional - billing address and card holder name are optional fields ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 3. `crates/router/src/configs` 4. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## How did you test it? <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> ### After Changes make /payments without optional field billing.address `curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_T1HKwjm5U0WlfjAgmTAcoE2ejpTsm5J02qCBBqYTNVkHZ7KY5ZKkz2HLfR26Mz5r' \ --data '{ "amount": 600, "amount_to_capture": 600, "currency": "EUR", "confirm": true, "capture_method": "automatic", "authentication_type": "no_three_ds", "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_cvc": "123", "card_exp_month": "01", "card_exp_year": "50", "card_number": "4242424242424242" } } }'` <img width="1066" alt="Screenshot 2025-06-13 at 3 28 27 PM" src="https://github.com/user-attachments/assets/bdfd344c-60ee-411c-9c45-d8add742381b" /> ### Before Changes make /payments without optional field billing.address <img width="1066" alt="Screenshot 2025-06-13 at 3 32 54 PM" src="https://github.com/user-attachments/assets/6121dc6d-3dc3-41c0-a478-53e266f252cf" /> ## 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
<think> PR Context: - Title: fix(connector): [ARCHIPEL] Change connector fields that are currently implemented as required in the code to optional - Merged: 2025-06-17T09:29:52Z - Files changed: 1 files - Commits: 1 commits Implementation approach: … implemented as required in the code to optional (#8342) ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Hotfix for [8342](https://github.com/juspay/hyperswitch/pull/8342) ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application config </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(connector): [ARCHIPEL] Change connector fields that are currently implemented as required in the Files to modify: **crates/hyperswitch_connectors/src/connectors/archipel/transformers.rs** Add: - function: private::from
{"issue_number": 8342, "pr_number": 8364, "commits_count": 1, "files_changed": 1, "response_length": 1080, "file_count": 3, "needs_breakdown": false}
ci: add tests that make use of locker ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> This PR introduces necessary refactoring to add support for locker specific tests. This includes `addition of delete payment method` (which is restricted to work only on hosted environments and not local given `tartarus` is unavailable and is complicated to setup things) but not limited to: - fixes: - fix reports not being generated - fix multiple credential not picking proper api keys - refactoring: - move configs that makes use of response custom under `getCustomExchange` - misc: - clarify ntid files to make them meaningful - update dependencies - update cypress credential to support stripe multiple api keys - feat: - add multiple credential support for stripe - add ntid support for stripe with another api key - add recurring mit payment endpoint to ntid connector agnostic flows ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## 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)? --> delete payment method: |local|hosted| |-|-| |<img width="457" alt="image" src="https://github.com/user-attachments/assets/8b65aa07-3ee6-46f7-83ac-8850e3530aa2">|<img width="462" alt="image" src="https://github.com/user-attachments/assets/2712463c-a458-483c-9daf-d17b3f9b573b">| |`5xx` is expected since this requires locker to be set up locally which is not optimal|`2xx` is expected since locker is already setup| ntid with mit based on payment token: |cybersource|stripe| |-|-| |<img width="463" alt="image" src="https://github.com/user-attachments/assets/64686ac4-4b0f-4bbc-94c7-f60d0c5c4a7f" />|<img width="467" alt="image" src="https://github.com/user-attachments/assets/4059ac5c-2ad1-4bc0-b149-a2c867b465ed" />| |adyen|bluesnap|cybersource|stripe| |-|-|-|-| |<img width="467" alt="image" src="https://github.com/user-attachments/assets/0716b0bb-f34b-47bf-a27f-32bfe322935f" />|<img width="462" alt="image" src="https://github.com/user-attachments/assets/ca98cc84-cb72-4dc8-91c3-7654c628f347" />|<img width="554" alt="image" src="https://github.com/user-attachments/assets/4e01f0fe-acb0-4ecf-8873-be35a16c052c" />|<img width="555" alt="image" src="https://github.com/user-attachments/assets/86a052c2-3a51-4952-abf8-8f93826959e9" />| |adyen ntid failure has been addressed in #6851. #6735 has been soft cherry-picked and the tests have been run against local|||stripe with multiple credential support (ntid)| ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `prettier . --write` - [ ] I addressed lints thrown by `cargo clippy` - [x] I reviewed the submitted code - [ ] I added unit tests for my changes where possible
<think> PR Context: - Title: fix(connector): add expiry year conversion for adyen mit transactions - Merged: 2024-12-17T11:32:24Z - Files changed: 1 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR fixes MIT payments failing especially during NTID flow. We previously used to get below error message during MIT Confirm call: ```log "The provided Expiry Date is not valid.: Expiry year should be a 4 digit number greater than 2 </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(connector): add expiry year conversion for adyen mit transactions (#6851) Files to modify: **crates/router/src/connector/adyen/transformers.rs** Modify existing code
{"issue_number": 6735, "pr_number": 6851, "commits_count": 1, "files_changed": 1, "response_length": 975, "file_count": 3, "needs_breakdown": false}
Updating logo in API ref
<think> PR Context: - Title: docs: Updating logo for Api ref - Merged: 2024-12-05T11:09:38Z - Files changed: 4 files - Commits: 24 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> ### Additional Changes - [X] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding ch </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 6742, "pr_number": 6741, "commits_count": 0, "files_changed": 4, "response_length": 762, "file_count": 0, "needs_breakdown": false}
[CHORE] update Cypress creds update cypress creds. wise failing
<think> PR Context: - Title: chore: update creds - Merged: 2025-01-17T10:37:04Z - Files changed: 1 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> updates wise creds ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files w </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 7053, "pr_number": 7054, "commits_count": 0, "files_changed": 1, "response_length": 749, "file_count": 0, "needs_breakdown": false}
feat(vsaas): add processor_merchant_id and created_by column in payment_intents and payments_attempts for v1 Tracking issue #1: https://github.com/juspay/hyperswitch-control-center/issues/2544 Tracking issue #2: https://github.com/juspay/hyperswitch-control-center/issues/2546
<think> PR Context: - Title: feat(vsaas): add processor_merchant_id and created_by column in payment_intents and payments_attempts for v1 - Merged: 2025-04-22T08:56:56Z - Files changed: 30 files - Commits: 27 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - added `processor_merchant_id` and` created_by` column in `diesel_models` and `hyperswitch_domain_models` - added migrations - ~added backfilling `processor_merchant_id` column in migrations~ (Due to staggered release backfilling should be </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(vsaas): add processor_merchant_id and created_by column in payment_intents and payments_attempt Files to modify: **crates/common_utils/src/macros.rs** Add: - function: private::test_enum_from_str_ok - function: private::test_enum_from_str_failures_yield_invalid - function: private::test_enum_display_and_serialize - function: private::test_enum_deserialize - mod: private::tests **crates/common_utils/src/types.rs** Modify existing code **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/diesel_models/src/payment_intent.rs** Modify existing code **crates/diesel_models/src/schema.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/user/sample_data.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/router/src/core/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_capture_v2.rs** Modify existing code **crates/router/src/core/payments/operations/payment_create.rs** Modify existing code **crates/router/src/core/payments/operations/payment_get.rs** Modify existing code **crates/router/src/core/payments/operations/payment_get_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payment_reject.rs** Modify existing code **crates/router/src/core/payments/operations/payment_status.rs** Modify existing code **crates/router/src/core/payments/operations/payment_update_intent.rs** Modify existing code **crates/router/src/core/payments/operations/payments_incremental_authorization.rs** Modify existing code **crates/router/src/core/payments/retry.rs** Modify existing code **crates/router/src/core/utils.rs** Remove: - function: private::validate_platform_merchant - function: private::get_platform_merchant_id - trait: pub::ValidatePlatformMerchant - impl: impl ValidatePlatformMerchant for storage::PaymentIntent **crates/router/src/types/storage/payment_attempt.rs** Modify existing code **crates/router/src/utils/user/sample_data.rs** Modify existing code **crates/storage_impl/src/mock_db/payment_attempt.rs** Modify existing code **crates/storage_impl/src/payments/payment_attempt.rs** Modify existing code
{"issue_number": 7769, "pr_number": 7768, "commits_count": 1, "files_changed": 30, "response_length": 3643, "file_count": 30, "needs_breakdown": true}
[FEATURE]: Save Payment Method on Payments Confirm (V2) Add functionality to save a payment method after a successful payment
<think> PR Context: - Title: feat(router): Save payment method on payments confirm (V2) - Merged: 2025-06-06T15:55:49Z - Files changed: 26 files - Commits: 30 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Added a field `payment_token` to customer PML response - During `/confirm-intent`, in case of card, an inactive payment method method is created before `call_conector_service` - After the payment has completed, depending on its status the </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(router): Save payment method on payments confirm (V2) (#8090) Co-authored-by: hyperswitch-bot[b Files to modify: **crates/api_models/src/events/payment.rs** Modify existing code **crates/api_models/src/payment_methods.rs** Add: - struct: pub::PaymentMethodListResponseForSession **crates/api_models/src/payments.rs** Modify existing code **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payment_method_data.rs** Add: - function: private::from - function: private::from - impl: impl From<( payment_methods::CardDetail, Secret<String>, Option<Secret<String>>, )> for Card - impl: impl From<Card> for payment_methods::CardDetail **crates/hyperswitch_domain_models/src/payments.rs** Add: - function: pub::update_payment_method_data - function: pub::update_payment_method_and_pm_id **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/openapi/src/routes/payment_method.rs** Modify existing code **crates/router/src/core/payment_methods.rs** Add: - function: private::get_pm_list_token_data **crates/router/src/core/payment_methods/cards.rs** Modify existing code **crates/router/src/core/payment_methods/transformers.rs** Remove: - impl: impl transformers::ForeignTryFrom<domain::PaymentMethod> for api::CustomerPaymentMethod Add: - function: private::foreign_try_from - impl: impl transformers::ForeignTryFrom<(domain::PaymentMethod, String)> for api::CustomerPaymentMethodResponseItem - impl: impl transformers::ForeignTryFrom<domain::PaymentMethod> for PaymentMethodResponseItem **crates/router/src/core/payment_methods/utils.rs** Add: - function: pub::retrieve_payment_token_data - function: pub::delete_payment_token_data **crates/router/src/core/payment_methods/vault.rs** Add: - function: pub::retrieve_payment_method_from_vault_using_payment_token - function: pub::delete_payment_token **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.rs** Add: - function: private::create_or_fetch_payment_method **crates/router/src/core/payments/operations/payment_confirm_intent.rs** Add: - function: private::create_or_fetch_payment_method **crates/router/src/core/payments/operations/payment_response.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/routes/payment_methods.rs** Add: - function: pub::return_key_for_token **crates/router/src/types/api/payment_methods.rs** Modify existing code **crates/router/src/types/storage/payment_method.rs** Add: - function: pub::is_permanent_card - enum: pub::PaymentTokenData **crates/router/src/workflows/revenue_recovery.rs** Modify existing code
{"issue_number": 8089, "pr_number": 8090, "commits_count": 1, "files_changed": 26, "response_length": 3921, "file_count": 27, "needs_breakdown": true}
refactor(users): move roles schema to global storeage interface - We need to have roles schema in global schema. It should be global along with user, user_roles and user_key_store - We need to remove themes from global schema, since themes are not global and can depend on tenant, organization, merchant or profile.
<think> PR Context: - Title: refactor(users): move roles schema to global interface - Merged: 2024-12-19T13:36:13Z - Files changed: 7 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Refactor: - move roles to global schema - remove themes from global schema ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(users): move roles schema to global interface (#6862) Files to modify: **crates/router/src/core/user/theme.rs** Modify existing code **crates/router/src/core/user_role/role.rs** Modify existing code **crates/router/src/db.rs** Modify existing code **crates/router/src/services/authorization.rs** Modify existing code **crates/router/src/services/authorization/roles.rs** Modify existing code **crates/router/src/utils/user/theme.rs** Modify existing code **crates/router/src/utils/user_role.rs** Modify existing code
{"issue_number": 6861, "pr_number": 6862, "commits_count": 1, "files_changed": 7, "response_length": 1334, "file_count": 9, "needs_breakdown": false}
[REFACTOR] Worldpay payments integration ### Feature Description WorldPay payments integration currently makes use of modular APIs which gives more control over the integration. This approach is not best compatible with HyperSwitch due to WP's 3DS flows - which requires sending PAN (card numbers) in multiple places. For `on_session` transactions, this would contribute to the added complexity since data is not stored in such transactions (or stored for ~15mins in redis cache). Migrating to WP's standard payments API follows payment resource creation in an uniform way. ### Possible Implementation Migrate from modular APIs [[ref](https://developer.worldpay.com/products/access/card-payments)] to standard payment APIs [[ref](https://developer.worldpay.com/products/access/payments/openapi)]. ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: refactor(connector-configs): worldpay - update username / password mapping - Merged: 2024-12-05T14:02:43Z - Files changed: 3 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6316 point # 8 This PR includes WASM changes for Worldpay MCA creation on dashboard. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variable </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 6316, "pr_number": 6752, "commits_count": 0, "files_changed": 3, "response_length": 804, "file_count": 0, "needs_breakdown": false}
feat(connector): [payload] introduce no-3ds cards ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR introduces the below given flows for Payload connector: - [x] Cards (No 3DS) - [x] PSync - [x] Void - [x] Refunds - [x] AVS Checks - [x] Cypress Connector does not support 3DS transactions. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> New connector. Closes #8527 ## 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)? --> Running Cypress will be a pain as the connector marks automatic capture payments as `duplicate` eventually `failing` the payment if done within 15 second time span. Curls: <details> <summary>Authorize 3DS</summary> ```curl curl --location 'http://Localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Accept-Language: ja' \ --header 'api-key: dev_ojBKSaGCsEr3lo3NumPRA8oytAaoUkFZBfbdQ2XJyzFqzYzbQFOgQqgBCOVqeTCB' \ --data-raw '{ "amount": 10400, "currency": "USD", "confirm": false, "capture_method": "manual", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 10400, "customer_id": "customer", "email": "[email protected]", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "three_ds", "return_url": "https://duck.com", "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US" , "first_name": "PiX" , "last_name": "THE" } }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "PiX" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" }, "browser_info": { "color_depth": 24, "java_enabled": true, "java_script_enabled": true, "language": "en-GB", "screen_height": 720, "screen_width": 1280, "time_zone": -330, "ip_address": "208.127.127.193", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0" } }' ``` ```json { "payment_id": "pay_dBN3ZKKNj7sCIjt0qYRH", "merchant_id": "postman_merchant_GHAction_1751615211", "status": "requires_payment_method", "amount": 10400, "net_amount": 10400, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": null, "client_secret": "pay_dBN3ZKKNj7sCIjt0qYRH_secret_9e4dJN8io2oIY6qNiNf5", "created": "2025-07-04T08:38:12.557Z", "currency": "USD", "customer_id": "customer", "customer": { "id": "customer", "name": null, "email": "[email protected]", "phone": "999999999", "phone_country_code": "+1" }, "description": "Its my first payment request", "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": null, "payment_method_data": null, "payment_token": null, "shipping": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "THE" }, "phone": null, "email": null }, "order_details": null, "email": "[email protected]", "name": null, "phone": "999999999", "return_url": "https://duck.com/", "authentication_type": "three_ds", "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": null, "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": { "customer_id": "customer", "created_at": 1751618292, "expires": 1751621892, "secret": "epk_4f9fe3bf5dc94b57819620a7d3c0918a" }, "manual_retry_allowed": null, "connector_transaction_id": null, "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": null, "payment_link": null, "profile_id": "pro_GXv0G95IHPxJokca7ece", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": null, "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-07-04T08:53:12.557Z", "fingerprint": null, "browser_info": { "language": "en-GB", "time_zone": -330, "ip_address": "208.127.127.193", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0", "color_depth": 24, "java_enabled": true, "screen_width": 1280, "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "screen_height": 720, "java_script_enabled": true }, "payment_method_id": null, "payment_method_status": null, "updated": "2025-07-04T08:38:12.568Z", "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": null, "force_3ds_challenge": false, "force_3ds_challenge_trigger": false, "issuer_error_code": null, "issuer_error_message": null, "is_iframe_redirection_enabled": null, "whole_connector_response": null } ``` </details> <details> <summary>Confirm 3DS</summary> ```curl curl --location 'http://Localhost:8080/payments/pay_dBN3ZKKNj7sCIjt0qYRH/confirm' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: pk_dev_852ccab463694df1a50337317c37c05c' \ --data '{ "payment_method": "card", "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "Joseph Doe", "card_cvc": "123" } }, "client_secret": "pay_dBN3ZKKNj7sCIjt0qYRH_secret_9e4dJN8io2oIY6qNiNf5" }' ``` ```json { "error": { "type": "invalid_request", "message": "Payment method type not supported", "code": "IR_19", "reason": "Cards 3DS is not supported by Payload" } } ``` </details> <details> <summary>Authorize No 3DS</summary> ```curl curl --location 'http://Localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Accept-Language: ja' \ --header 'api-key: dev_ojBKSaGCsEr3lo3NumPRA8oytAaoUkFZBfbdQ2XJyzFqzYzbQFOgQqgBCOVqeTCB' \ --data-raw '{ "amount": 10400, "currency": "USD", "confirm": false, "capture_method": "manual", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 10400, "customer_id": "customer", "email": "[email protected]", "phone": "999999999", "phone_country_code": "+1", "description": "Its my first payment request", "authentication_type": "no_three_ds", "return_url": "https://duck.com", "billing": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US" , "first_name": "PiX" , "last_name": "THE" } }, "shipping": { "address": { "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "city": "San Fransico", "state": "California", "zip": "94122", "country": "US", "first_name": "PiX" } }, "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" }, "browser_info": { "color_depth": 24, "java_enabled": true, "java_script_enabled": true, "language": "en-GB", "screen_height": 720, "screen_width": 1280, "time_zone": -330, "ip_address": "208.127.127.193", "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0" } }' ``` ```json { "payment_id": "pay_oG45Z9ZE9KVNSlDE5kEU", "merchant_id": "postman_merchant_GHAction_1751615211", "status": "requires_payment_method", "amount": 10400, "net_amount": 10400, "shipping_cost": null, "amount_capturable": 0, "amount_received": null, "connector": null, "client_secret": "pay_oG45Z9ZE9KVNSlDE5kEU_secret_FEs1MMwoHyFsb8L8joG3", "created": "2025-07-04T08:39:58.524Z", "currency": "USD", "customer_id": "customer", "customer": { "id": "customer", "name": null, "email": "[email protected]", "phone": "999999999", "phone_country_code": "+1" }, "description": "Its my first payment request", "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": null, "payment_method_data": null, "payment_token": null, "shipping": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "THE" }, "phone": null, "email": null }, "order_details": null, "email": "[email protected]", "name": null, "phone": "999999999", "return_url": "https://duck.com/", "authentication_type": "no_three_ds", "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": null, "connector_label": null, "business_country": null, "business_label": "default", "business_sub_label": null, "allowed_payment_method_types": null, "ephemeral_key": { "customer_id": "customer", "created_at": 1751618398, "expires": 1751621998, "secret": "epk_0f9fd59624604cfcae9b1340ad176710" }, "manual_retry_allowed": null, "connector_transaction_id": null, "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": null, "payment_link": null, "profile_id": "pro_GXv0G95IHPxJokca7ece", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": null, "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-07-04T08:54:58.524Z", "fingerprint": null, "browser_info": { "language": "en-GB", "time_zone": -330, "ip_address": "208.127.127.193", "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 Edg/126.0.0.0", "color_depth": 24, "java_enabled": true, "screen_width": 1280, "accept_header": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8", "screen_height": 720, "java_script_enabled": true }, "payment_method_id": null, "payment_method_status": null, "updated": "2025-07-04T08:39:58.537Z", "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": null, "force_3ds_challenge": false, "force_3ds_challenge_trigger": false, "issuer_error_code": null, "issuer_error_message": null, "is_iframe_redirection_enabled": null, "whole_connector_response": null } ``` </details> <details> <summary>Confirm</summary> ```curl curl --location 'http://Localhost:8080/payments/pay_oG45Z9ZE9KVNSlDE5kEU/confirm' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: pk_dev_852ccab463694df1a50337317c37c05c' \ --data '{ "payment_method": "card", "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "Joseph Doe", "card_cvc": "123" } }, "client_secret": "pay_oG45Z9ZE9KVNSlDE5kEU_secret_FEs1MMwoHyFsb8L8joG3" }' ``` ```json { "payment_id": "pay_oG45Z9ZE9KVNSlDE5kEU", "merchant_id": "postman_merchant_GHAction_1751615211", "status": "requires_capture", "amount": 10400, "net_amount": 10400, "shipping_cost": null, "amount_capturable": 10400, "amount_received": null, "connector": "payload", "client_secret": "pay_oG45Z9ZE9KVNSlDE5kEU_secret_FEs1MMwoHyFsb8L8joG3", "created": "2025-07-04T08:39:58.524Z", "currency": "USD", "customer_id": "customer", "customer": { "id": "customer", "name": null, "email": "[email protected]", "phone": "999999999", "phone_country_code": "+1" }, "description": "Its my first payment request", "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": "CREDIT", "card_network": "Visa", "card_issuer": "STRIPE PAYMENTS UK LIMITED", "card_issuing_country": "UNITEDKINGDOM", "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "Joseph Doe", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "THE" }, "phone": null, "email": null }, "order_details": null, "email": "[email protected]", "name": null, "phone": "999999999", "return_url": "https://duck.com/", "authentication_type": "no_three_ds", "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "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": "txn_3epWFzMKsIMDjAdQApgOe", "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": "PL-LS0-6XQ-OCT", "payment_link": null, "profile_id": "pro_GXv0G95IHPxJokca7ece", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_QfDIuUKUfARzzR3l0Q4n", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-07-04T08:54:58.524Z", "fingerprint": null, "browser_info": { "os_type": null, "language": null, "time_zone": null, "ip_address": "::1", "os_version": null, "user_agent": null, "color_depth": null, "device_model": null, "java_enabled": null, "screen_width": null, "accept_header": null, "screen_height": null, "accept_language": "en", "java_script_enabled": null }, "payment_method_id": null, "payment_method_status": null, "updated": "2025-07-04T08:40:09.253Z", "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>Capture</summary> ```curl curl --location 'http://Localhost:8080/payments/pay_oG45Z9ZE9KVNSlDE5kEU/capture' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_ojBKSaGCsEr3lo3NumPRA8oytAaoUkFZBfbdQ2XJyzFqzYzbQFOgQqgBCOVqeTCB' \ --data '{ "amount_to_capture": 10400, "statement_descriptor_name": "Joseph", "statement_descriptor_suffix": "JS" }' ``` ```json { "payment_id": "pay_oG45Z9ZE9KVNSlDE5kEU", "merchant_id": "postman_merchant_GHAction_1751615211", "status": "succeeded", "amount": 10400, "net_amount": 10400, "shipping_cost": null, "amount_capturable": 0, "amount_received": 10400, "connector": "payload", "client_secret": "pay_oG45Z9ZE9KVNSlDE5kEU_secret_FEs1MMwoHyFsb8L8joG3", "created": "2025-07-04T08:39:58.524Z", "currency": "USD", "customer_id": "customer", "customer": { "id": "customer", "name": null, "email": "[email protected]", "phone": "999999999", "phone_country_code": "+1" }, "description": "Its my first payment request", "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": "CREDIT", "card_network": "Visa", "card_issuer": "STRIPE PAYMENTS UK LIMITED", "card_issuing_country": "UNITEDKINGDOM", "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "Joseph Doe", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "THE" }, "phone": null, "email": null }, "order_details": null, "email": "[email protected]", "name": null, "phone": "999999999", "return_url": "https://duck.com/", "authentication_type": "no_three_ds", "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "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": "txn_3epWFzMKsIMDjAdQApgOe", "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": "PL-LS0-6XQ-OCT", "payment_link": null, "profile_id": "pro_GXv0G95IHPxJokca7ece", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_QfDIuUKUfARzzR3l0Q4n", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-07-04T08:54:58.524Z", "fingerprint": null, "browser_info": { "os_type": null, "language": null, "time_zone": null, "ip_address": "::1", "os_version": null, "user_agent": null, "color_depth": null, "device_model": null, "java_enabled": null, "screen_width": null, "accept_header": null, "screen_height": null, "accept_language": "en", "java_script_enabled": null }, "payment_method_id": null, "payment_method_status": null, "updated": "2025-07-04T08:41:34.623Z", "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>PSync</summary> ```curl curl --location 'http://Localhost:8080/payments/pay_oG45Z9ZE9KVNSlDE5kEU?force_sync=true' \ --header 'Accept: application/json' \ --header 'api-key: dev_ojBKSaGCsEr3lo3NumPRA8oytAaoUkFZBfbdQ2XJyzFqzYzbQFOgQqgBCOVqeTCB' ``` ```json { "payment_id": "pay_oG45Z9ZE9KVNSlDE5kEU", "merchant_id": "postman_merchant_GHAction_1751615211", "status": "succeeded", "amount": 10400, "net_amount": 10400, "shipping_cost": null, "amount_capturable": 0, "amount_received": 10400, "connector": "payload", "client_secret": "pay_oG45Z9ZE9KVNSlDE5kEU_secret_FEs1MMwoHyFsb8L8joG3", "created": "2025-07-04T08:39:58.524Z", "currency": "USD", "customer_id": "customer", "customer": { "id": "customer", "name": null, "email": "[email protected]", "phone": "999999999", "phone_country_code": "+1" }, "description": "Its my first payment request", "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": "CREDIT", "card_network": "Visa", "card_issuer": "STRIPE PAYMENTS UK LIMITED", "card_issuing_country": "UNITEDKINGDOM", "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "10", "card_exp_year": "25", "card_holder_name": "Joseph Doe", "payment_checks": null, "authentication_data": null }, "billing": null }, "payment_token": null, "shipping": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": null }, "phone": null, "email": null }, "billing": { "address": { "city": "San Fransico", "country": "US", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "PiX", "last_name": "THE" }, "phone": null, "email": null }, "order_details": null, "email": "[email protected]", "name": null, "phone": "999999999", "return_url": "https://duck.com/", "authentication_type": "no_three_ds", "statement_descriptor_name": "joseph", "statement_descriptor_suffix": "JS", "next_action": null, "cancellation_reason": null, "error_code": null, "error_message": null, "unified_code": null, "unified_message": null, "payment_experience": null, "payment_method_type": "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": "txn_3epWFzMKsIMDjAdQApgOe", "frm_message": null, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": null, "feature_metadata": null, "reference_id": "PL-LS0-6XQ-OCT", "payment_link": null, "profile_id": "pro_GXv0G95IHPxJokca7ece", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_QfDIuUKUfARzzR3l0Q4n", "incremental_authorization_allowed": null, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2025-07-04T08:54:58.524Z", "fingerprint": null, "browser_info": { "os_type": null, "language": null, "time_zone": null, "ip_address": "::1", "os_version": null, "user_agent": null, "color_depth": null, "device_model": null, "java_enabled": null, "screen_width": null, "accept_header": null, "screen_height": null, "accept_language": "en", "java_script_enabled": null }, "payment_method_id": null, "payment_method_status": null, "updated": "2025-07-04T08:41:34.623Z", "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>Refund</summary> ```curl curl --location 'http://Localhost:8080/refunds' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_ojBKSaGCsEr3lo3NumPRA8oytAaoUkFZBfbdQ2XJyzFqzYzbQFOgQqgBCOVqeTCB' \ --data '{ "payment_id": "pay_oG45Z9ZE9KVNSlDE5kEU", "amount": 600, "reason": "Customer returned product", "refund_type": "instant", "metadata": { "udf1": "value1", "new_customer": "true", "login_date": "2019-09-10T10:11:12Z" } }' ``` ```json { "refund_id": "ref_zEyDe7aksCgcYsvZDivv", "payment_id": "pay_oG45Z9ZE9KVNSlDE5kEU", "amount": 600, "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-07-04T08:42:07.233Z", "updated_at": "2025-07-04T08:42:08.116Z", "connector": "payload", "profile_id": "pro_GXv0G95IHPxJokca7ece", "merchant_connector_id": "mca_QfDIuUKUfARzzR3l0Q4n", "split_refunds": null, "issuer_error_code": null, "issuer_error_message": null } ``` </details> <details> <summary>Retrieve</summary> ```curl curl --location 'http://Localhost:8080/refunds/ref_zEyDe7aksCgcYsvZDivv' \ --header 'Accept: application/json' \ --header 'api-key: dev_ojBKSaGCsEr3lo3NumPRA8oytAaoUkFZBfbdQ2XJyzFqzYzbQFOgQqgBCOVqeTCB' ``` ```json { "refund_id": "ref_zEyDe7aksCgcYsvZDivv", "payment_id": "pay_oG45Z9ZE9KVNSlDE5kEU", "amount": 600, "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-07-04T08:42:07.233Z", "updated_at": "2025-07-04T08:42:08.116Z", "connector": "payload", "profile_id": "pro_GXv0G95IHPxJokca7ece", "merchant_connector_id": "mca_QfDIuUKUfARzzR3l0Q4n", "split_refunds": null, "issuer_error_code": null, "issuer_error_message": null } ``` </details> <details> <summary>Merchant Payment Methods List</summary> ```curl curl --location 'http://Localhost:8080/account/payment_methods?client_secret=pay_sTHSF5DAnYQbkieTlWLf_secret_tsJjXuEgleLsBp0Ku8NH' \ --header 'Accept: application/json' \ --header 'api-key: pk_dev_987a41163e3044679cd16d6293365850' ``` ```json { "redirect_url": "https://duck.com/", "currency": "USD", "payment_methods": [ { "payment_method": "card", "payment_method_types": [ { "payment_method_type": "credit", "payment_experience": null, "card_networks": [ { "card_network": "Mastercard", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "DinersClub", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "Interac", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "AmericanExpress", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "Discover", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "UnionPay", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "Visa", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "JCB", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "RuPay", "surcharge_details": null, "eligible_connectors": [ "payload" ] } ], "bank_names": null, "bank_debits": null, "bank_transfers": null, "required_fields": { "email": { "required_field": "email", "display_name": "email", "field_type": "user_email_address", "value": "[email protected]" }, "payment_method_data.card.card_cvc": { "required_field": "payment_method_data.card.card_cvc", "display_name": "card_cvc", "field_type": "user_card_cvc", "value": null }, "billing.address.last_name": { "required_field": "payment_method_data.billing.address.last_name", "display_name": "card_holder_name", "field_type": "user_full_name", "value": "THE" }, "payment_method_data.card.card_exp_year": { "required_field": "payment_method_data.card.card_exp_year", "display_name": "card_exp_year", "field_type": "user_card_expiry_year", "value": null }, "billing.address.line1": { "required_field": "payment_method_data.billing.address.line1", "display_name": "line1", "field_type": "user_address_line1", "value": "1467" }, "billing.address.city": { "required_field": "payment_method_data.billing.address.city", "display_name": "city", "field_type": "user_address_city", "value": "San Fransico" }, "payment_method_data.card.card_exp_month": { "required_field": "payment_method_data.card.card_exp_month", "display_name": "card_exp_month", "field_type": "user_card_expiry_month", "value": null }, "payment_method_data.card.card_number": { "required_field": "payment_method_data.card.card_number", "display_name": "card_number", "field_type": "user_card_number", "value": null }, "billing.address.zip": { "required_field": "payment_method_data.billing.address.zip", "display_name": "zip", "field_type": "user_address_pincode", "value": "94122" }, "billing.address.first_name": { "required_field": "payment_method_data.billing.address.first_name", "display_name": "card_holder_name", "field_type": "user_full_name", "value": "PiX" }, "billing.address.country": { "required_field": "payment_method_data.billing.address.country", "display_name": "country", "field_type": { "user_address_country": { "options": [ "ALL" ] } }, "value": "US" }, "billing.address.state": { "required_field": "payment_method_data.billing.address.state", "display_name": "state", "field_type": "user_address_state", "value": "California" } }, "surcharge_details": null, "pm_auth_connector": null }, { "payment_method_type": "debit", "payment_experience": null, "card_networks": [ { "card_network": "UnionPay", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "DinersClub", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "Interac", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "AmericanExpress", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "RuPay", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "Visa", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "Mastercard", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "JCB", "surcharge_details": null, "eligible_connectors": [ "payload" ] }, { "card_network": "Discover", "surcharge_details": null, "eligible_connectors": [ "payload" ] } ], "bank_names": null, "bank_debits": null, "bank_transfers": null, "required_fields": { "email": { "required_field": "email", "display_name": "email", "field_type": "user_email_address", "value": "[email protected]" }, "payment_method_data.card.card_cvc": { "required_field": "payment_method_data.card.card_cvc", "display_name": "card_cvc", "field_type": "user_card_cvc", "value": null }, "billing.address.last_name": { "required_field": "payment_method_data.billing.address.last_name", "display_name": "card_holder_name", "field_type": "user_full_name", "value": "THE" }, "payment_method_data.card.card_exp_year": { "required_field": "payment_method_data.card.card_exp_year", "display_name": "card_exp_year", "field_type": "user_card_expiry_year", "value": null }, "billing.address.line1": { "required_field": "payment_method_data.billing.address.line1", "display_name": "line1", "field_type": "user_address_line1", "value": "1467" }, "billing.address.city": { "required_field": "payment_method_data.billing.address.city", "display_name": "city", "field_type": "user_address_city", "value": "San Fransico" }, "payment_method_data.card.card_exp_month": { "required_field": "payment_method_data.card.card_exp_month", "display_name": "card_exp_month", "field_type": "user_card_expiry_month", "value": null }, "payment_method_data.card.card_number": { "required_field": "payment_method_data.card.card_number", "display_name": "card_number", "field_type": "user_card_number", "value": null }, "billing.address.zip": { "required_field": "payment_method_data.billing.address.zip", "display_name": "zip", "field_type": "user_address_pincode", "value": "94122" }, "billing.address.first_name": { "required_field": "payment_method_data.billing.address.first_name", "display_name": "card_holder_name", "field_type": "user_full_name", "value": "PiX" }, "billing.address.country": { "required_field": "payment_method_data.billing.address.country", "display_name": "country", "field_type": { "user_address_country": { "options": [ "ALL" ] } }, "value": "US" }, "billing.address.state": { "required_field": "payment_method_data.billing.address.state", "display_name": "state", "field_type": "user_address_state", "value": "California" } }, "surcharge_details": null, "pm_auth_connector": null } ] } ], "mandate_payment": null, "merchant_name": "NewAge Retailer", "show_surcharge_breakup_screen": false, "payment_type": "normal", "request_external_three_ds_authentication": false, "collect_shipping_details_from_wallets": false, "collect_billing_details_from_wallets": false, "is_tax_calculation_enabled": false } ``` </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 `just clippy && just clippy_v2` - [x] I reviewed the submitted code - [ ] I added unit tests for my changes where possible <!-- @coderabbitai ignore -->
<think> PR Context: - Title: feat(connector): [payload] add webhook support - Merged: 2025-07-11T12:58:37Z - Files changed: 8 files - Commits: 10 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [x] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> This PR: - Adds support for webhooks to Payload connector. The connector does not support source verification. - Address Cypress comments that was asked in #8545. - Fixes setup mandate not throwing `501` ### Additional Changes - [ </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): [payload] add webhook support (#8558) Files to modify: **crates/api_models/src/webhooks.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/payload.rs** Remove: - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Payload Add: - function: private::build_request - function: private::verify_webhook_source - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Payload **crates/hyperswitch_connectors/src/connectors/payload/responses.rs** Add: - struct: pub::PayloadWebhookEvent - struct: pub::PayloadEventDetails - enum: pub::PayloadWebhooksTrigger **crates/hyperswitch_connectors/src/connectors/payload/transformers.rs** Modify existing code
{"issue_number": 8545, "pr_number": 8558, "commits_count": 1, "files_changed": 8, "response_length": 1593, "file_count": 6, "needs_breakdown": false}
feat(users): Send welcome to community email in magic link signup Send [this](https://www.figma.com/design/lhmTvW2vuc2p5B4ZvsEOTw/Email-Tempalte-Design?node-id=0-1&t=OKWmXqVOsidKUk7y-1) email when user signs up with magic link.
<think> PR Context: - Title: feat(users): Send welcome to community email in magic link signup - Merged: 2024-11-26T09:10:41Z - Files changed: 4 files - Commits: 4 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Magic link will send one more email along with magic link email if user is signing up. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configu </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(users): Send welcome to community email in magic link signup (#6639) Co-authored-by: hyperswitc Files to modify: **crates/router/src/consts/user.rs** Modify existing code **crates/router/src/core/user.rs** Modify existing code **crates/router/src/services/email/types.rs** Add: - function: private::get_email_data - struct: private::WelcomeToCommunity - impl: impl EmailData for WelcomeToCommunity
{"issue_number": 6638, "pr_number": 6639, "commits_count": 1, "files_changed": 4, "response_length": 1222, "file_count": 5, "needs_breakdown": false}
DB changes for split payments (v2) The following DB changes need to be made to support split payments: In PaymentIntent: - Add `active_attempts_group_id` column - Add `active_attempt_id_type` column In PaymentAttempt: - Add `attempts_group_id` column While currently a `payment_intent` can have only a single `active_attempt`, For split payments case, a `payment_intent` will have a group of active attempts. These attempts will be linked together by the `attempts_group_id`. This `attempts_group_id` will be stored in the payment intent as the `active_attempts_group_id`. The `active_attempt_id` will be ignored in split payments case.
<think> PR Context: - Title: feat(router): Add attempts_group DB changes for split payments (v2) - Merged: 2025-09-24T08:41:25Z - Files changed: 13 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added DB changes for split payments In PaymentIntent: - Add `active_attempts_group_id` column - Add `active_attempt_id_type` column In PaymentAttempt: - Add `attempts_group_id` column While currently a payment_intent can have only </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(router): Add attempts_group DB changes for split payments (v2) (#9466) Files to modify: **crates/common_enums/src/enums.rs** Add: - enum: pub::ActiveAttemptIDType **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/diesel_models/src/payment_intent.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_intent.rs** Modify existing code **crates/router/src/services/kafka/payment_attempt.rs** Modify existing code **crates/router/src/services/kafka/payment_attempt_event.rs** Modify existing code **crates/router/src/services/kafka/payment_intent.rs** Modify existing code **crates/router/src/services/kafka/payment_intent_event.rs** Modify existing code
{"issue_number": 9465, "pr_number": 9466, "commits_count": 1, "files_changed": 13, "response_length": 1777, "file_count": 13, "needs_breakdown": false}
FEATURE(connector): [Facilitapay] Add support for Pix Bank transfer Documentation: https://sandbox-portal.facilitapay.com/#/docs
<think> PR Context: - Title: feat(connector): [Facilitapay] Add support for Pix Bank Transfers - Merged: 2025-04-23T08:48:37Z - Files changed: 30 files - Commits: 30 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> This PR does the following: - Adds Facilitapay Connector configs - Enables Facilitapay Connector in Core - Feature Matrix - Pix Bank Transfer (QRCode flow) - Does not support `Manual` capture - AccessToken flow - Requires </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): [Facilitapay] Add support for Pix Bank Transfers (#7704) Co-authored-by: hyperswitc Files to modify: **crates/api_models/src/enums.rs** Modify existing code **crates/api_models/src/payments.rs** Modify existing code **crates/api_models/src/payments/additional_info.rs** Modify existing code **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/common_enums/src/enums.rs** Add: - enum: pub::BrazilStatesAbbreviation **crates/connector_configs/src/connector.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/facilitapay.rs** Add: - function: private::build_error_response - function: private::get_headers - function: private::get_url - function: private::get_request_body - function: private::build_request - impl: impl api::ConnectorCustomer for Facilitapay - mod: private::requests - mod: private::responses **crates/hyperswitch_connectors/src/connectors/facilitapay/requests.rs** Add: - struct: pub::FacilitapayRouterData - struct: pub::FacilitapayAuthRequest - struct: pub::FacilitapayCredentials - struct: pub::FacilitapayCardDetails - struct: pub::CardTransactionRequest - struct: pub::PixTransactionRequest - struct: pub::FacilitapayPaymentsRequest - struct: pub::FacilitapayRefundRequest - struct: pub::FacilitapayCustomerRequest - struct: pub::FacilitapayPerson - enum: pub::FacilitapayTransactionRequest - enum: pub::DocumentType **crates/hyperswitch_connectors/src/connectors/facilitapay/responses.rs** Add: - struct: pub::FacilitapayAuthResponse - struct: pub::FacilitapaySubject - struct: pub::FacilitapayCustomerResponse - struct: pub::PixInfo - struct: pub::CreditCardResponseInfo - struct: pub::FacilitapayPaymentsResponse - struct: pub::OwnerCompany - struct: pub::BankInfo - struct: pub::BankAccountDetail - struct: pub::TransactionData - struct: pub::RefundData - struct: pub::FacilitapayRefundResponse - enum: pub::SubjectKycStatus - enum: pub::FacilitapayPaymentStatus **crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs** Remove: - struct: pub::FacilitapayRouterData - struct: pub::FacilitapayPaymentsRequest - struct: pub::FacilitapayCard - impl: impl TryFrom<&FacilitapayRouterData<&PaymentsAuthorizeRouterData>> for PaymentMethodData::Card(req_card) Add: - function: private::from_auth_type - impl: impl TryFrom<&FacilitapayRouterData<&types::PaymentsAuthorizeRouterData>> for bank_transfer_data - impl: impl FacilitapayAuthRequest **crates/hyperswitch_connectors/src/connectors/itaubank/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_connectors/src/default_implementations_v2.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Add: - function: private::foreign_try_from - impl: impl ForeignTryFrom<String> for BrazilStatesAbbreviation **crates/hyperswitch_domain_models/src/payment_method_data.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/core/payments.rs** Add: - function: private::get_connector_customer_id **crates/router/src/types/api.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"issue_number": 7732, "pr_number": 7704, "commits_count": 1, "files_changed": 30, "response_length": 4360, "file_count": 22, "needs_breakdown": true}
feat(connector): Add recovery support for stripebilling ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description 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. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 3. `crates/router/src/configs` 4. `loadtest/config` --> ## Motivation and Context ## Testing 1. Go to stripe create a new webhook endpoint with a dummy url to get webhook secret key. 2. create a payment processor stripe ``` curl --location 'http://localhost:8080/v2/connector-accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-merchant-id: cloth_seller_mQRYaJduFokPeZ54W6bN' \ --header 'x-profile-id: pro_me6dnNKlhwuq32xhfjCA' \ --header 'Authorization: admin-api-key=test_admin' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "payment_processor", "connector_name": "stripe", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "api-key }, "payment_methods_enabled": [ { "payment_method_type": "card_redirect", "payment_method_subtypes": [ { "payment_method_subtype": "card_redirect", "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_type": "card", "payment_method_subtypes": [ { "payment_method_subtype": "credit", "payment_experience": null, "card_networks": [ "Visa", "Mastercard" ], "accepted_currencies": null, "accepted_countries": null, "minimum_amount": -1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true }, { "payment_method_subtype": "debit", "payment_experience": null, "card_networks": [ "Visa", "Mastercard" ], "accepted_currencies": null, "accepted_countries": null, "minimum_amount": -1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] }, { "payment_method_type": "wallet", "payment_method_subtypes": [ { "payment_method_subtype": "google_pay", "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_subtype": "apple_pay", "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_subtype": "we_chat_pay", "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_subtype": "ali_pay", "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_subtype": "paypal", "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_subtype": "mb_way", "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": "pay_later", "payment_method_subtypes": [ { "payment_method_subtype": "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_subtype": "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_subtype": "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_subtype": "walley", "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_type": "bank_redirect", "payment_method_subtypes": [ { "payment_method_subtype": "giropay", "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_subtype": "ideal", "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_subtype": "eps", "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_subtype": "bancontact_card", "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_subtype": "przelewy24", "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_subtype": "sofort", "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_subtype": "blik", "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_subtype": "trustly", "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_subtype": "online_banking_finland", "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_subtype": "online_banking_poland", "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_type": "bank_transfer", "payment_method_subtypes": [ { "payment_method_subtype": "ach", "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_subtype": "sepa", "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_subtype": "bacs", "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_type": "bank_debit", "payment_method_subtypes": [ { "payment_method_subtype": "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_subtype": "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_subtype": "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_subtype": "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 } ] } ], "metadata": { "status_url": "https://2753-2401-4900-1cb8-2ff9-24dd-1ccf-ed12-b464.in.ngrok.io/webhooks/merchant_1678699058/globalpay", "account_name": "transaction_processing", "pricing_type": "fixed_price", "acquirer_bin": "438309", "acquirer_merchant_id": "00002000000" }, "frm_configs": null, "connector_webhook_details": { "merchant_secret": "" }, "profile_id": "pro_me6dnNKlhwuq32xhfjCA" }' ``` change the profile id and other feilds while creating you own one 3. copy the mca id of stripe and paste it in the billing mca curl in feature metadata ``` curl --location 'http://localhost:8080/v2/connector-accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-merchant-id: cloth_seller_mQRYaJduFokPeZ54W6bN' \ --header 'x-profile-id: pro_me6dnNKlhwuq32xhfjCA' \ --header 'Authorization: admin-api-key=test_admin' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "billing_processor", "connector_name": "stripebilling", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "{your api key}" }, "payment_methods_enabled": [ { "payment_method_type": "card", "payment_method_subtypes": [ { "payment_method_subtype": "credit", "payment_experience": null, "card_networks": [ "Visa", "Mastercard" ], "accepted_currencies": null, "accepted_countries": null, "minimum_amount": -1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true }, { "payment_method_subtype": "debit", "payment_experience": null, "card_networks": [ "Visa", "Mastercard" ], "accepted_currencies": null, "accepted_countries": null, "minimum_amount": -1, "maximum_amount": 68607706, "recurring_enabled": true, "installment_payment_enabled": true } ] } ], "metadata": { "status_url": "https://2753-2401-4900-1cb8-2ff9-24dd-1ccf-ed12-b464.in.ngrok.io/webhooks/merchant_1678699058/globalpay", "account_name": "transaction_processing", "pricing_type": "fixed_price", "acquirer_bin": "438309", "acquirer_merchant_id": "00002000000" }, "frm_configs": null, "feature_metadata" : { "revenue_recovery":{ "max_retry_count" : 16, "billing_connector_retry_threshold": 2, "billing_account_reference": { "{your stripe mca id here}": "stripebilling" } } }, "connector_webhook_details": { "merchant_secret": "{webhook secret you have copied here}" }, "profile_id": "pro_me6dnNKlhwuq32xhfjCA" }' ``` 4. copy the mca id, profile id and merchant id to construct the endpoint of the webhook. 5. install ngrok and run the service it will give you a https url for your local host port. 6. copy the https url of ngrok 7. construct the webhook endpoint : url/v2/webhooks/merchant_id/profile_id/billing_mca_id 8. paste this endpoint in the place of dummy url you have used to create endpoint in stripe dashboard 9. now create a test subscription use this card "4000 0000 0000 0341" while creating a test subscription and the billing day should start from the next day. If you are creating a test subscription today billing date should start from tommorow. 10. now move the clock past one month. 11. no observe the payment intent table and payment attempt table in db and verify those details with ones we are getting. Images of the logs: <img width="1728" alt="Screenshot 2025-03-11 at 5 52 53 PM" src="https://github.com/user-attachments/assets/0a97b656-2417-4812-b9cd-a808183411ea" /> <img width="1728" alt="Screenshot 2025-03-11 at 5 53 10 PM" src="https://github.com/user-attachments/assets/5a9872f1-45a3-4bf5-978c-6e477df36c9f" /> <img width="1728" alt="Screenshot 2025-03-11 at 5 53 21 PM" src="https://github.com/user-attachments/assets/5cbac559-09d8-4939-b2a6-04bc8f50a1bc" /> <img width="1728" alt="Screenshot 2025-03-11 at 5 54 32 PM" src="https://github.com/user-attachments/assets/3eb3fb41-afd4-4a05-8c8b-715310a79d7d" /> <img width="1710" alt="Screenshot 2025-03-10 at 4 52 08 PM" src="https://github.com/user-attachments/assets/05477fdc-656b-42cd-ba27-880d5748cc19" /> <img width="1190" alt="Screenshot 2025-03-10 at 4 52 20 PM" src="https://github.com/user-attachments/assets/d9900f24-2b8f-45c5-b6c5-bd5dcd62357d" /> ## 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
<think> PR Context: - Title: feat(recovery-events): add revenue recovery topic and vector config to push these events to s3 - Merged: 2025-07-25T12:00:14Z - Files changed: 22 files - Commits: 30 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This new Kafka Event consume the revenue recovery related events which will be constructed from both `RecoveryPaymentIntent` and `RecoveryPaymentAttempt` in revenue recovery flow. The events form Kafka will be picked up by vector and this be eventually batched and pushed to s3 based o </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(recovery-events): add revenue recovery topic and vector config to push these events to s3 (#828 Files to modify: **crates/api_models/src/payments.rs** Add: - function: pub::get_billing_connector_card_info - impl: impl BillingConnectorPaymentMethodDetails **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/payments/payment_attempt.rs** Add: - function: private::from - impl: impl From<ErrorDetails> for api_models::payments::RecordAttemptErrorDetails **crates/hyperswitch_domain_models/src/revenue_recovery.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/core/revenue_recovery/types.rs** Modify existing code **crates/router/src/core/webhooks/recovery_incoming.rs** Add: - function: pub::new - function: pub::publish_revenue_recovery_event_to_kafka - impl: impl RecoveryPaymentTuple **crates/router/src/events.rs** Modify existing code **crates/router/src/services/kafka.rs** Add: - mod: pub::revenue_recovery **crates/router/src/services/kafka/revenue_recovery.rs** Add: - function: private::key - function: private::event_type - struct: pub::RevenueRecovery - impl: impl super::KafkaMessage for RevenueRecovery<'_> **crates/storage_impl/src/errors.rs** Modify existing code
{"issue_number": 7461, "pr_number": 8285, "commits_count": 1, "files_changed": 22, "response_length": 2621, "file_count": 18, "needs_breakdown": true}
[FEATURE] Add support for payout connector integrations for connectors crate ### Feature Description To be able to support connector integrations in router and the new hyperswitch_connectors crate. ### Possible Implementation Move payout API traits to a common place - in hyperswitch_interfaces crate. ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: refactor: move Payout traits to hyperswitch_interfaces for connectors crate - Merged: 2024-11-12T11:24:53Z - Files changed: 7 files - Commits: 10 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6508 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor: move Payout traits to hyperswitch_interfaces for connectors crate (#6481) Co-authored-by: Files to modify: **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_interfaces/src/api.rs** Add: - trait: pub::Payouts **crates/hyperswitch_interfaces/src/api/payouts.rs** Add: - trait: pub::Payouts **crates/hyperswitch_interfaces/src/api/payouts_v2.rs** Add: - trait: pub::PayoutsV2 - trait: pub::PayoutsV2 **crates/router/src/core/payments/flows.rs** Remove: - impl: impl api::Payouts for $connector - impl: impl api::Payouts for connector::DummyConnector<T> Add: - impl: impl Payouts for $connector - impl: impl Payouts for connector::DummyConnector<T> **crates/router/src/types/api.rs** Remove: - trait: pub::Payouts - trait: pub::Payouts - trait: pub::PayoutsV2 **crates/router/src/types/api/payouts.rs** Modify existing code
{"issue_number": 6508, "pr_number": 6481, "commits_count": 1, "files_changed": 7, "response_length": 1764, "file_count": 9, "needs_breakdown": false}
fix(middleware): include `x-request-id` header in `access-control-expose-headers` header value ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR fixes a bug where `x-request-id` was not being included in the `access-control-expose-headers` header. The solution is to register the request ID middleware before the CORS middleware. ## 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 its an obvious bug or documentation fix that will have little conversation). --> Bugfix. ## 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)? --> Before: ```shell $ curl -i http://localhost:8080/health [...] access-control-expose-headers: via, strict-transport-security [...] ``` After: ```shell $ curl -i http://localhost:8080/health [...] access-control-expose-headers: x-request-id, via, strict-transport-security [...] ``` ## 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 submitted code - [ ] I added unit tests for my changes where possible - [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable
<think> PR Context: - Title: fix(cors): expose all headers set by application in `access-control-expose-headers` header value - Merged: 2024-12-24T07:04:04Z - Files changed: 1 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR exposes all headers set by the application in the `access-control-expose-headers` header value. This should thus allow our headers like `x-request-id` to be accessed by the browser. ## Motivation and Context <!-- Why is this cha </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(cors): expose all headers set by application in `access-control-expose-headers` header value (#6 Files to modify: **crates/router/src/cors.rs** Modify existing code
{"issue_number": 1673, "pr_number": 6877, "commits_count": 1, "files_changed": 1, "response_length": 1001, "file_count": 3, "needs_breakdown": false}
Update broken readme icon Updating broken readme icon along with reposition of the hero image
<think> PR Context: - Title: docs(README): Updated the icon and repositioned the hero image - Merged: 2024-11-03T14:12:33Z - Files changed: 1 files - Commits: 2 commits Implementation approach: TOC icon and reposition of the hero image in readme ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Updated the icon of CI Push and repositioned the hero image closes #6449 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 6449, "pr_number": 6445, "commits_count": 0, "files_changed": 1, "response_length": 792, "file_count": 0, "needs_breakdown": false}
refactor(router): add revenue_recovery_metadata to payment intent in diesel and api model for v2 flow Add the following fields to the api and diesel models Feature meta data retry_count: Total number of billing connector + recovery retries for a payment intent. payment_connector_transmission: It's supposed to tell if the payment_connector has been called or not. billing_connector_id: To update the invoice at billing connector. active_attempt_payment_connector_id : Process tracker needs payment merchant connector account id to schedule the retry attempt. billing_connector_mit_token_details : MIT related information given by billing connector contains two fields. 1. customer_id : Customer Id of the customer in billing connector 2. payment_processor_token : The token used by the payment processor to retry the payment. payment_method_type: This represents payment Method type like Card,Crypto,Mandate etc.. payment_method_subtype : This represents the subtype of the payment method like Credit, CryptoCurrency etc..
<think> PR Context: - Title: refactor(router): add revenue_recovery_metadata to payment intent in diesel and api model for v2 flow - Merged: 2025-02-14T11:41:35Z - Files changed: 6 files - Commits: 23 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Adds the following fields to the api and diesel models Feature meta data retry_count: Total number of billing connector + recovery retries for a payment intent. payment_connector_transmission: It's supposed to tell if the payment_connector has been called or not. billing_con </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(router): add revenue_recovery_metadata to payment intent in diesel and api model for v2 fl Files to modify: **crates/api_models/src/payments.rs** Add: - struct: pub::FeatureMetadata - struct: pub::PaymentRevenueRecoveryMetadata - struct: pub::BillingConnectorPaymentDetails **crates/common_enums/src/enums.rs** Add: - enum: pub::PaymentConnectorTransmission **crates/diesel_models/src/types.rs** Add: - struct: pub::FeatureMetadata - struct: pub::PaymentRevenueRecoveryMetadata - struct: pub::BillingConnectorPaymentDetails **crates/hyperswitch_domain_models/src/lib.rs** Add: - function: private::convert_from - function: private::convert_back - function: private::convert_from - function: private::convert_back - function: private::convert_from - function: private::convert_back - impl: impl ApiModelToDieselModelConvertor<ApiFeatureMetadata> for FeatureMetadata - impl: impl ApiModelToDieselModelConvertor<ApiRevenueRecoveryMetadata> for PaymentRevenueRecoveryMetadata - impl: impl ApiModelToDieselModelConvertor<ApiBillingConnectorPaymentDetails> for BillingConnectorPaymentDetails **crates/openapi/src/openapi_v2.rs** Modify existing code
{"issue_number": 7177, "pr_number": 7176, "commits_count": 1, "files_changed": 6, "response_length": 2069, "file_count": 7, "needs_breakdown": false}
Propage request id to chat service Send request id to chat service in headers.
<think> PR Context: - Title: fix(chat): append request id to headers for chat request - Merged: 2025-07-25T07:27:38Z - Files changed: 4 files - Commits: 7 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Propagation request-id to chat service for consistency. Propagate chat session id as well in request Add count metric for chat api ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application c </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(chat): append request id to headers for chat request (#8680) Files to modify: **crates/common_utils/src/consts.rs** Modify existing code **crates/router/src/core/chat.rs** Modify existing code **crates/router/src/routes/chat.rs** Modify existing code **crates/router/src/routes/metrics.rs** Modify existing code
{"issue_number": 8679, "pr_number": 8680, "commits_count": 1, "files_changed": 4, "response_length": 1117, "file_count": 6, "needs_breakdown": false}
[REFACTOR]: [RAPYD] Add amount conversion framework to Rapyd ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the flow of amounts across the application. This type will now be used by all the connector flows. Rather than handling conversions in each connector, we will centralize the conversion logic in one place within the core of the application. ### :hammer: Possible Implementation - For each connector, we need to create an amount conversion function. Connectors will specify the format they require, and the core framework will handle the conversion accordingly. - Connectors should invoke the `convert` function to receive the amount in their required format. - Refer to the [connector documentation](https://docs.rapyd.net/en/create-refund.html) to determine the required amount format for each connector. - You can refer [this PR](https://github.com/juspay/hyperswitch/pull/4825) for more context. 🔖 Note: All the changes needed should be contained within `hyperswitch/crates/router/src/connector/` , `crates/router/src/types/api.rs` , `crates/router/tests/connectors/` ### :package: Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue ### :package: Have you read the Contributing Guidelines? - [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### :package: Submission Process: - Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself. - Once assigned, submit a pull request (PR). - Maintainers will review and provide feedback, if any. - Maintainers can unassign issues due to inactivity, [read more here](https://github.com/juspay/hyperswitch/wiki/Hacktoberfest-Contribution-Rules). Refer [here](https://github.com/juspay/hyperswitch/blob/main/docs/TERMS_OF_CONTEST.md) for Terms and conditions for the contest. ### :sparkles: Are you willing to submit a PR?
<think> PR Context: - Title: refactor(connector): add amount conversion framework to rapyd - Merged: 2024-10-30T14:47:44Z - Files changed: 4 files - Commits: 5 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR adds amount conversion framework to rapyd. rapyd accepts amount in MinorUnit ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configur </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(connector): add amount conversion framework to rapyd (#6414) Files to modify: **crates/router/src/connector/rapyd.rs** Remove: - struct: pub::Rapyd Add: - function: pub::new - struct: pub::Rapyd - impl: impl Rapyd **crates/router/src/connector/rapyd/transformers.rs** Modify existing code **crates/router/src/types/api.rs** Modify existing code **crates/router/tests/connectors/rapyd.rs** Modify existing code
{"issue_number": 6020, "pr_number": 6414, "commits_count": 1, "files_changed": 4, "response_length": 1243, "file_count": 6, "needs_breakdown": false}
chore: Update apple pay currency filter configs Update apple pay currency filter configs as a temporary fix for failing PR #7921
<think> PR Context: - Title: chore: Update apple pay currency filter configs - Merged: 2025-06-09T07:57:15Z - Files changed: 1 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Apple pay payments for noon were failing due to PR#7921. Adding AED to the currency list for apple pay is a temporary fix for this failure. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the databa </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8216, "pr_number": 8217, "commits_count": 0, "files_changed": 1, "response_length": 777, "file_count": 0, "needs_breakdown": false}
Add endpoints to support ai chat interactions - Add endpoints to talk to different ai services. - Add config for URLS - make feature flag for ai chat service that will help to manage feature across different environments.
<think> PR Context: - Title: feat(ai): add endpoints to chat with ai service - Merged: 2025-07-16T20:33:11Z - Files changed: 26 files - Commits: 23 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description The PR does the following actions - Adds endpoints to talk to ai services, particularly to n8n flow and embedded flow - Introduces a feature flag to manage chat features across different envs ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifie </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(ai): add endpoints to chat with ai service (#8585) Co-authored-by: Riddhiagrawal001 <riddhi.agr Files to modify: **crates/api_models/src/chat.rs** Add: - struct: pub::ChatRequest - struct: pub::ChatResponse **crates/api_models/src/events.rs** Add: - mod: pub::chat **crates/api_models/src/events/chat.rs** Modify existing code **crates/api_models/src/lib.rs** Add: - mod: pub::chat **crates/common_utils/src/consts.rs** Modify existing code **crates/common_utils/src/events.rs** Modify existing code **crates/hyperswitch_domain_models/src/chat.rs** Add: - struct: pub::GetDataMessage - struct: pub::HyperswitchAiDataRequest **crates/hyperswitch_domain_models/src/lib.rs** Add: - mod: pub::chat **crates/router/src/configs/secrets_transformers.rs** Modify existing code **crates/router/src/configs/settings.rs** Add: - struct: pub::ChatSettings **crates/router/src/configs/validations.rs** Add: - function: pub::validate - impl: impl super::settings::ChatSettings **crates/router/src/core.rs** Add: - mod: pub::chat **crates/router/src/core/chat.rs** Add: - function: pub::get_data_from_hyperswitch_ai_workflow **crates/router/src/core/errors.rs** Add: - mod: pub::chat **crates/router/src/core/errors/chat.rs** Add: - function: private::switch - function: pub::get_error_message - enum: pub::ChatErrors - impl: impl common_utils::errors::ErrorSwitch<api_models::errors::types::ApiErrorResponse> for ChatErrors - impl: impl ChatErrors **crates/router/src/lib.rs** Modify existing code **crates/router/src/routes.rs** Add: - mod: pub::chat **crates/router/src/routes/app.rs** Add: - function: pub::server - struct: pub::Chat - impl: impl Chat **crates/router/src/routes/chat.rs** Add: - function: pub::get_data_from_hyperswitch_ai_workflow **crates/router/src/routes/lock_utils.rs** Modify existing code **crates/router_env/src/logger/types.rs** Modify existing code
{"issue_number": 8584, "pr_number": 8585, "commits_count": 1, "files_changed": 26, "response_length": 2807, "file_count": 23, "needs_breakdown": true}
Adding events for Payment Reject Created from #4525 This covers adding events for Payment Reject operation This event should include the payment data similar to [PaymentCancel](https://github.com/juspay/hyperswitch/pull/4166) It should also include any metadata for the event e.g reason for payment rejection, error codes, rejection source etc
<think> PR Context: - Title: feat(events): Add payment reject audit events - Merged: 2024-11-12T07:18:54Z - Files changed: 2 files - Commits: 3 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [X] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Pass along request_state to payment_core Modify the UpdateTracker trait to accept request state Modify the PaymentReject implementation of UpdateTracker to generate an event ### Additional Changes - [ ] This PR modifies the API contr </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(events): Add payment reject audit events (#6465) Co-authored-by: Anish Kacham <f2010091@hyderab Files to modify: **crates/router/src/core/payments/operations/payment_reject.rs** Modify existing code **crates/router/src/events/audit_events.rs** Modify existing code
{"issue_number": 4669, "pr_number": 6465, "commits_count": 1, "files_changed": 2, "response_length": 1054, "file_count": 4, "needs_breakdown": false}
[FEAT] Add mandates for Payload - Add MIT payments to Payload connector - Add connector customer - Fix amount conversion Relevant docs: - https://docs.payload.com/apis/payments/ - https://docs.payload.com/apis/payments/charging-a-customer/ - https://docs.payload.com/apis/automatic-payments/ - https://docs.payload.com/apis/customers/ - https://docs.payload.com/apis/object-reference/customers/ - https://docs.payload.com/apis/object-reference/transactions/ - https://docs.payload.com/apis/api-design/
<think> PR Context: - Title: feat(connector): [payload] add recurring payments - Merged: 2025-07-31T07:04:50Z - Files changed: 23 files - Commits: 29 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> This PR targets Payload connector and has multiple fixes and a new feature introduced: - Add support for mandates (PMID and MandateID) - Add filters - Enable connector customer - Enable mandates - Add currency filter - Change A </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): [payload] add recurring payments (#8597) Files to modify: **crates/hyperswitch_connectors/src/connectors/payload.rs** Remove: - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Payload Add: - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Payload **crates/hyperswitch_connectors/src/connectors/payload/requests.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/payload/responses.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/payload/transformers.rs** Remove: - struct: pub::PayloadAuthType Add: - function: private::try_from - function: private::try_from - struct: pub::PayloadAuth - struct: pub::PayloadAuthType - impl: impl TryFrom<(&ConnectorAuthType, enums::Currency)> for PayloadAuth - impl: impl TryFrom<&ConnectorAuthType> for PayloadAuthType **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Add: - function: private::is_mandate_payment **crates/hyperswitch_domain_models/src/router_request_types.rs** Modify existing code **crates/router/tests/connectors/utils.rs** Modify existing code **crates/test_utils/src/connector_auth.rs** Add: - function: private::from - impl: impl From<CurrencyAuthKey> for ConnectorAuthType
{"issue_number": 8610, "pr_number": 8597, "commits_count": 1, "files_changed": 23, "response_length": 2221, "file_count": 11, "needs_breakdown": false}
feat(router): Support `card` in `payment_method_subtype` [V2] `payment_method_subtype` field needs to be made mandatory and `card` needs to be added as a supported enum variant. This is needed for parity with industry standard analytics hierarchy
<think> PR Context: - Title: feat(router): Support `card` in `payment_method_subtype` [V2] - Merged: 2025-04-08T10:20:11Z - Files changed: 30 files - Commits: 8 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Made `payment_method_subtype` mandatory in API endpoints and `payment_attempt` table - Added `card` as an enum variant to `payment_method_subtype` ### Additional Changes - [x] This PR modifies the API contract - [x] This PR modifies </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(router): Support `card` in `payment_method_subtype` [V2] (#7662) Files to modify: **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/common_enums/src/transformers.rs** Modify existing code **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/types.rs** Modify existing code **crates/euclid/src/frontend/dir/enums.rs** Modify existing code **crates/euclid/src/frontend/dir/lowering.rs** Modify existing code **crates/euclid/src/frontend/dir/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/adyen.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/klarna.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/paypal/transformers.rs** Modify existing code **crates/hyperswitch_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/revenue_recovery.rs** Modify existing code **crates/kgraph_utils/src/mca.rs** Modify existing code **crates/kgraph_utils/src/transformers.rs** Modify existing code **crates/router/src/connector/stripe/transformers.rs** Modify existing code **crates/router/src/core/payment_methods.rs** Modify existing code **crates/router/src/core/payments/routing.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/core/revenue_recovery/types.rs** Modify existing code **crates/router/src/types/api/payment_methods.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"issue_number": 7661, "pr_number": 7662, "commits_count": 1, "files_changed": 30, "response_length": 2814, "file_count": 28, "needs_breakdown": true}
fix(users): Only use lowercase letters in emails Currently uppercase letters in emails are being using at it is. Ideally we should convert them to lowercase before performing any DB operations with it.
<think> PR Context: - Title: feat(users): Convert emails to lowercase from requests - Merged: 2024-11-20T13:41:03Z - Files changed: 1 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR changes will convert emails from request to lowercase before performing any DB operations. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies applica </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(users): Convert emails to lowercase from requests (#6601) Files to modify: **crates/router/src/types/domain/user.rs** Modify existing code
{"issue_number": 6600, "pr_number": 6601, "commits_count": 1, "files_changed": 1, "response_length": 934, "file_count": 3, "needs_breakdown": false}
Removing mailhog container from the docker setup Removing mailhog container from the docker setup
<think> PR Context: - Title: fix: fixes the docker setup to clean up the scarf data - Merged: 2025-05-12T16:21:53Z - Files changed: 6 files - Commits: 12 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [X] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Corrected the docker setup, for demo app, control-center, and removed mailhog. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/e </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 7962, "pr_number": 7963, "commits_count": 0, "files_changed": 6, "response_length": 785, "file_count": 0, "needs_breakdown": false}
feat(connector): add template code for recurly add a template code for recurly connector
<think> PR Context: - Title: feat(connector): add template code for recurly - Merged: 2025-03-05T10:40:40Z - Files changed: 24 files - Commits: 13 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> connector integration template code for recurly. Issue: This PR closes the issue #7283 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application conf </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): add template code for recurly (#7284) Co-authored-by: Aniket Burman <aniket.burman@ Files to modify: **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors.rs** Add: - mod: pub::recurly **crates/hyperswitch_connectors/src/connectors/recurly.rs** Add: - function: pub::new - function: private::build_headers - function: private::id - function: private::get_currency_unit - function: private::common_get_content_type - function: private::base_url - function: private::get_auth_header - function: private::build_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_webhook_object_reference_id - function: private::get_webhook_event_type - function: private::get_webhook_resource_object - struct: pub::Recurly - impl: impl Recurly - impl: impl api::Payment for Recurly - impl: impl api::PaymentSession for Recurly - impl: impl api::ConnectorAccessToken for Recurly - impl: impl api::MandateSetup for Recurly - impl: impl api::PaymentAuthorize for Recurly - impl: impl api::PaymentSync for Recurly - impl: impl api::PaymentCapture for Recurly - impl: impl api::PaymentVoid for Recurly - impl: impl api::Refund for Recurly - impl: impl api::RefundExecute for Recurly - impl: impl api::RefundSync for Recurly - impl: impl api::PaymentToken for Recurly - impl: impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Recurly - impl: impl ConnectorCommonExt<Flow, Request, Response> for Recurly - impl: impl ConnectorCommon for Recurly - impl: impl ConnectorValidation for Recurly - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Recurly - impl: impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Recurly - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Recurly - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Recurly - impl: impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Recurly - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Recurly - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Recurly - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Recurly - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Recurly - impl: impl webhooks::IncomingWebhook for Recurly - impl: impl ConnectorSpecifications for Recurly - mod: pub::transformers **crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs** Add: - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - function: private::from - function: private::try_from - function: private::try_from - struct: pub::RecurlyRouterData - struct: pub::RecurlyPaymentsRequest - struct: pub::RecurlyCard - struct: pub::RecurlyAuthType - struct: pub::RecurlyPaymentsResponse - struct: pub::RecurlyRefundRequest - struct: pub::RefundResponse - struct: pub::RecurlyErrorResponse - enum: pub::RecurlyPaymentStatus - enum: pub::RefundStatus - impl: impl From<(StringMinorUnit, T)> for RecurlyRouterData<T> - impl: impl TryFrom<&RecurlyRouterData<&PaymentsAuthorizeRouterData>> for RecurlyPaymentsRequest - impl: impl TryFrom<&ConnectorAuthType> for RecurlyAuthType - impl: impl From<RecurlyPaymentStatus> for common_enums::AttemptStatus - impl: impl TryFrom<ResponseRouterData<F, RecurlyPaymentsResponse, T, PaymentsResponseData>> for RouterData<F, T, PaymentsResponseData> - impl: impl TryFrom<&RecurlyRouterData<&RefundsRouterData<F>>> for RecurlyRefundRequest - impl: impl From<RefundStatus> for enums::RefundStatus - impl: impl TryFrom<RefundsResponseRouterData<Execute, RefundResponse>> for RefundsRouterData<Execute> - impl: impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouterData<RSync> **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** Add: - mod: private::recurly **crates/router/tests/connectors/recurly.rs** Add: - function: private::get_data - function: private::get_auth_token - function: private::get_name - function: private::get_default_payment_info - function: private::payment_method_details - function: private::should_only_authorize_payment - function: private::should_capture_authorized_payment - function: private::should_partially_capture_authorized_payment - function: private::should_sync_authorized_payment - function: private::should_void_authorized_payment - function: private::should_refund_manually_captured_payment - function: private::should_partially_refund_manually_captured_payment - function: private::should_sync_manually_captured_refund - function: private::should_make_payment - function: private::should_sync_auto_captured_payment - function: private::should_refund_auto_captured_payment - function: private::should_partially_refund_succeeded_payment - function: private::should_refund_succeeded_payment_multiple_times - function: private::should_sync_refund - function: private::should_fail_payment_for_incorrect_cvc - function: private::should_fail_payment_for_invalid_exp_month - function: private::should_fail_payment_for_incorrect_expiry_year - function: private::should_fail_void_payment_for_auto_capture - function: private::should_fail_capture_for_invalid_payment - function: private::should_fail_for_refund_amount_higher_than_payment_amount - struct: private::RecurlyTest - impl: impl ConnectorActions for RecurlyTest - impl: impl utils::Connector for RecurlyTest **crates/test_utils/src/connector_auth.rs** Modify existing code
{"issue_number": 7283, "pr_number": 7284, "commits_count": 1, "files_changed": 24, "response_length": 8808, "file_count": 17, "needs_breakdown": true}
refactor(permissions): Give access to connector view group in operation groups Currently `connector_label` is not visible in payments page of control-center. This is because, the payment retrieve API doesn't send the `connector_label`. As it is a big change in the payments flow, we are providing access to connector list API, so that control-center can fetch the data from there.
<think> PR Context: - Title: refactor(authz): Make connector list accessible by operation groups - Merged: 2024-12-16T09:22:57Z - Files changed: 2 files - Commits: 3 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR will make connector_view group accessible by operation groups. This PR will also change the permission of connector_retrieve API from connector_read to connector_write as it contains sensitive data. ### Additional Changes </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(authz): Make connector list accessible by operation groups (#6792) Files to modify: **crates/router/src/routes/admin.rs** Modify existing code **crates/router/src/services/authorization/permission_groups.rs** Modify existing code
{"issue_number": 6788, "pr_number": 6792, "commits_count": 1, "files_changed": 2, "response_length": 1045, "file_count": 4, "needs_breakdown": false}
[FEATURE] integrate 3DS for Worldpay connector ### Feature Description WorldPay offers 3DS capabilities for a card txn. Same needs to be integrated in HyperSwitch. Flow - https://developer.worldpay.com/products/access/3ds/web ### Possible Implementation Implementing 3DS for WorldPay requires one additional step of running DDC flows. Flow can be looked at in WorldPay's dev docs 1. Redirect to Worldpay's DDC 2. Redirect to Wordlpay's 3DS redirection form 3. Capture details in HyperSwitch's `/redirect/complete` flow 4. Perform a PSync (optional) Reference https://developer.worldpay.com/products/access/3ds/web ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? None
<think> PR Context: - Title: feat(connector): add 3DS flow for Worldpay - Merged: 2024-10-21T14:14:20Z - Files changed: 8 files - Commits: 30 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6177 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): add 3DS flow for Worldpay (#6374) Co-authored-by: hyperswitch-bot[bot] <148525504+h Files to modify: **crates/diesel_models/src/query/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_response_types.rs** Modify existing code **crates/router/src/connector/worldpay.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_flow_type - impl: impl api::PaymentsCompleteAuthorize for Worldpay - impl: impl ConnectorIntegration< api::CompleteAuthorize, types::CompleteAuthorizeData, types::PaymentsResponseData, > for Worldpay - impl: impl services::ConnectorRedirectResponse for Worldpay **crates/router/src/connector/worldpay/requests.rs** Add: - struct: pub::ThreeDSRequest - struct: pub::ThreeDSRequestDeviceData - struct: pub::ThreeDSRequestChallenge - struct: pub::WorldpayCompleteAuthorizationRequest - enum: pub::ThreeDSRequestChannel **crates/router/src/connector/worldpay/response.rs** Remove: - function: pub::new - impl: impl PaymentsResPaymentInstrument Add: - function: private::fmt - struct: pub::ThreeDsChallengedResponse - struct: pub::AuthenticationResponse - struct: pub::ThreeDsChallenge - struct: pub::CompleteThreeDsActionLink **crates/router/src/connector/worldpay/transformers.rs** Modify existing code **crates/router/src/core/payments/flows.rs** Modify existing code **crates/router/src/services/api.rs** Modify existing code
{"issue_number": 6177, "pr_number": 6374, "commits_count": 1, "files_changed": 8, "response_length": 2551, "file_count": 10, "needs_breakdown": false}
feat(connector): [paypal, trustpay] add in feature matrix ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added paypal, trustpay, nomupay connectors in feature matrix ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## 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)? --> ``` curl --location 'http://localhost:8080/feature_matrix' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_jQNBYCfN5R0473yldj23Yl7HsGbCctexthWkELSAMAGpjCxKAspb2fcQDP1KmMJz' ``` Response: ``` { "connector_count": 2, "connectors": [ { "name": "PAYPAL", "display_name": "Paypal", "description": "PayPal is a Slovakia-based company specializing in secure e-commerce payments, particularly within the EEA area.", "category": "payment_gateway", "supported_payment_methods": [ { "payment_method": "card", "payment_method_type": "credit", "payment_method_type_display_name": "Credit Card", "mandates": "supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "three_ds": "supported", "no_three_ds": "supported", "supported_card_networks": [ "Visa", "Mastercard", "AmericanExpress", "DinersClub", "Discover", "Interac", "JCB", "CartesBancaires" ], "supported_countries": [ "TTO", "HND", "TWN", "DEU", "MCO", "BDI", "SLV", "LCA", "ESP", "GUF", "MUS", "FRO", "FIN", "MKD", "SPM", "ETH", "DNK", "NGA", "GMB", "VCT", "ROU", "QAT", "PER", "MYT", "TGO", "NOR", "TCD", "KNA", "DMA", "FJI", "POL", "KOR", "SLE", "KIR", "LAO", "BFA", "KWT", "CRI", "WSM", "ABW", "GBR", "MWI", "BHR", "ZWE", "BRB", "MSR", "BIH", "SYC", "TZA", "NIU", "COD", "SMR", "KAZ", "NAM", "BMU", "CHL", "ISL", "LKA", "NRU", "BLZ", "GTM", "ZMB", "SGP", "ARE", "GIB", "LSO", "SUR", "GAB", "JPN", "PAN", "CHE", "NCL", "USA", "SVK", "GRD", "DOM", "SAU", "TKM", "UGA", "BLR", "VNM", "MDV", "CYP", "LTU", "LIE", "MAR", "SWZ", "MHL", "ERI", "NER", "MLT", "PNG", "UKR", "SVN", "REU", "NPL", "PYF", "FRA", "NFK", "SHN", "CIV", "ISR", "COG", "SJM", "HKG", "BWA", "URY", "SLB", "BRA", "CPV", "SOM", "GEO", "AGO", "KEN", "MNE", "MOZ", "NIC", "IND", "AUS", "IRL", "CMR", "GRL", "GLP", "LUX", "MEX", "NLD", "THA", "CAN", "HUN", "PCN", "PHL", "TUV", "AIA", "VGB", "PRY", "KHM", "DZA", "GUY", "MNG", "BEL", "TON", "JAM", "TCA", "GNB", "OMN", "ZAF", "COM", "NZL", "MDG", "BRN", "SRB", "IDN", "MLI", "KGZ", "AZE", "VEN", "RWA", "ECU", "GRC", "COK", "DJI", "PRT", "BHS", "EGY", "BTN", "AUT", "RUS", "TUN", "BOL", "MYS", "COL", "SEN", "JOR", "STP", "HRV", "ARG", "FSM", "GIN", "ATG", "MDA", "SWE", "ITA", "LVA", "EST", "BEN", "BGR", "MRT", "CZE", "CYM", "TJK" ], "supported_currencies": [ "PLN", "SEK", "SGD", "BRL", "NZD", "ILS", "CHF", "THB", "PHP", "USD", "CZK", "JPY", "CAD", "CNY", "MXN", "GBP", "HUF", "HKD", "EUR", "MYR", "NOK", "AUD", "DKK", "TWD" ] }, { "payment_method": "card", "payment_method_type": "debit", "payment_method_type_display_name": "Debit Card", "mandates": "supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "three_ds": "supported", "no_three_ds": "supported", "supported_card_networks": [ "Visa", "Mastercard", "AmericanExpress", "DinersClub", "Discover", "Interac", "JCB", "CartesBancaires" ], "supported_countries": [ "NFK", "URY", "FIN", "NER", "CAN", "GMB", "COM", "SMR", "MCO", "GUF", "DOM", "ECU", "DNK", "CMR", "CRI", "GEO", "BGR", "FRA", "TUN", "GTM", "NLD", "NAM", "PAN", "TCA", "GNB", "SEN", "SVK", "BLZ", "NZL", "AGO", "ATG", "ISR", "MRT", "TON", "OMN", "RUS", "LIE", "BEN", "FJI", "GAB", "SHN", "MLT", "UKR", "TUV", "LTU", "GIN", "RWA", "KHM", "MYS", "VNM", "NGA", "USA", "TWN", "DZA", "MEX", "AUS", "MDV", "SLB", "CHL", "MWI", "ZMB", "BRA", "ZWE", "PCN", "NIU", "GRD", "NOR", "GUY", "BTN", "NRU", "SAU", "SJM", "AZE", "LAO", "GBR", "BHR", "MDG", "IND", "ARG", "EGY", "SGP", "WSM", "HRV", "KAZ", "GIB", "SPM", "GLP", "MDA", "TKM", "STP", "BFA", "BWA", "BEL", "MNE", "ITA", "DJI", "CYP", "KOR", "GRC", "NCL", "KEN", "PER", "VCT", "CHE", "FRO", "KGZ", "AIA", "MYT", "PYF", "CYM", "BRB", "AUT", "ISL", "HKG", "BOL", "PRY", "REU", "IRL", "JPN", "COD", "VGB", "PHL", "SWZ", "EST", "MAR", "JOR", "NIC", "TZA", "ETH", "IDN", "BMU", "SUR", "FSM", "SLE", "ROU", "MNG", "BHS", "PNG", "SOM", "BRN", "NPL", "BDI", "HND", "ARE", "LKA", "MUS", "SLV", "BLR", "POL", "CPV", "JAM", "SYC", "TTO", "MLI", "ZAF", "BIH", "QAT", "LVA", "CZE", "SVN", "KNA", "DEU", "MKD", "DMA", "LUX", "HUN", "ERI", "COG", "COK", "PRT", "THA", "SRB", "GRL", "ABW", "MHL", "SWE", "MOZ", "COL", "TGO", "VEN", "LSO", "TCD", "MSR", "KWT", "KIR", "LCA", "CIV", "UGA", "ESP", "TJK" ], "supported_currencies": [ "CNY", "PHP", "TWD", "HKD", "JPY", "SEK", "MXN", "ILS", "BRL", "PLN", "EUR", "USD", "DKK", "HUF", "AUD", "CAD", "CZK", "NZD", "MYR", "NOK", "GBP", "SGD", "CHF", "THB" ] }, { "payment_method": "wallet", "payment_method_type": "paypal", "payment_method_type_display_name": "PayPal", "mandates": "supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "NCL", "MRT", "DMA", "MYS", "GIN", "STP", "MKD", "CAN", "SLV", "ISR", "TTO", "KOR", "KIR", "SMR", "COG", "MLT", "MSR", "KWT", "ITA", "COK", "SLE", "MNG", "MOZ", "FRO", "GRL", "TCD", "DNK", "MWI", "URY", "CPV", "CMR", "MDA", "ESP", "HND", "UKR", "MLI", "AUT", "SGP", "TJK", "DEU", "POL", "SWE", "GUY", "SRB", "KNA", "ETH", "THA", "NPL", "MUS", "PAN", "NIU", "LKA", "VEN", "GLP", "BRB", "OMN", "SWZ", "MDV", "PRT", "LIE", "SUR", "ISL", "LTU", "AZE", "TGO", "FIN", "LSO", "HRV", "PYF", "CHL", "NGA", "BRN", "NZL", "FSM", "LAO", "MYT", "LCA", "BFA", "BTN", "ATG", "CYM", "HKG", "ZMB", "CYP", "SYC", "COL", "AGO", "HUN", "MAR", "CIV", "DOM", "BHR", "SJM", "KGZ", "SOM", "DZA", "EST", "MHL", "PNG", "MCO", "TZA", "GNB", "WSM", "KAZ", "MNE", "QAT", "NAM", "KEN", "COD", "TON", "AIA", "PHL", "TCA", "SEN", "ERI", "JAM", "SHN", "BEN", "GIB", "RUS", "EGY", "BOL", "REU", "ABW", "GMB", "ARG", "VNM", "IND", "LVA", "NOR", "MDG", "GUF", "TUV", "GEO", "TKM", "ARE", "JPN", "VCT", "SAU", "FRA", "GTM", "SVN", "TWN", "LUX", "NRU", "KHM", "BGR", "BMU", "BHS", "ZAF", "NER", "TUN", "PER", "NIC", "UGA", "AUS", "SPM", "BIH", "SLB", "IRL", "COM", "NFK", "BDI", "GRD", "VGB", "GBR", "BLR", "BRA", "PCN", "MEX", "FJI", "GRC", "CHE", "BLZ", "BEL", "IDN", "GAB", "PRY", "ROU", "JOR", "SVK", "NLD", "USA", "DJI", "CRI", "CZE", "BWA", "RWA", "ZWE", "ECU" ], "supported_currencies": [ "GBP", "USD", "ILS", "MYR", "DKK", "CZK", "MXN", "HUF", "SEK", "JPY", "EUR", "HKD", "TWD", "PLN", "SGD", "AUD", "BRL", "PHP", "NOK", "NZD", "CAD", "CHF", "THB", "CNY" ] }, { "payment_method": "bank_redirect", "payment_method_type": "eps", "payment_method_type_display_name": "EPS", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "MDV", "VGB", "COG", "SUR", "LTU", "KGZ", "USA", "BOL", "SRB", "MLI", "GMB", "CAN", "PAN", "GRD", "CYP", "PNG", "RUS", "KWT", "PHL", "CYM", "BTN", "GAB", "TKM", "SVN", "GIN", "AGO", "GUF", "NGA", "COK", "LAO", "BHR", "SJM", "TJK", "BRB", "BEL", "FRO", "SHN", "TCA", "TON", "BLR", "NIU", "MNG", "AIA", "NAM", "KNA", "DOM", "HND", "KOR", "KIR", "MYT", "JAM", "TZA", "ABW", "CRI", "DMA", "PCN", "CZE", "DJI", "IDN", "HRV", "DNK", "IRL", "AUS", "GTM", "ISL", "NPL", "GRC", "THA", "GIB", "LCA", "CHL", "SLV", "AUT", "VEN", "NOR", "MKD", "ZWE", "ECU", "MDA", "GNB", "SWE", "KAZ", "CIV", "FSM", "FRA", "NER", "GLP", "TTO", "ETH", "VCT", "EGY", "NRU", "SWZ", "HUN", "GUY", "NLD", "GRL", "MWI", "JPN", "BGR", "OMN", "BRN", "HKG", "JOR", "NCL", "PER", "DZA", "CMR", "PRY", "MRT", "SYC", "BIH", "BWA", "ITA", "ISR", "SGP", "TWN", "COM", "LIE", "MLT", "MAR", "MEX", "SLB", "MOZ", "NFK", "NZL", "MDG", "FJI", "DEU", "ESP", "KHM", "MSR", "CHE", "GEO", "ARG", "SLE", "ATG", "EST", "PYF", "BRA", "ERI", "SOM", "UGA", "LSO", "SMR", "LKA", "TUN", "GBR", "BHS", "STP", "BEN", "PRT", "IND", "FIN", "MCO", "TGO", "BDI", "MNE", "VNM", "TUV", "TCD", "NIC", "UKR", "URY", "LVA", "QAT", "POL", "SEN", "BMU", "SVK", "MYS", "COD", "RWA", "MHL", "MUS", "ARE", "ZAF", "WSM", "ZMB", "AZE", "BLZ", "KEN", "BFA", "ROU", "SPM", "SAU", "REU", "CPV", "COL", "LUX" ], "supported_currencies": [ "PHP", "SEK", "CAD", "EUR", "BRL", "SGD", "CNY", "NOK", "NZD", "THB", "TWD", "CZK", "GBP", "CHF", "MYR", "JPY", "ILS", "AUD", "MXN", "HUF", "PLN", "USD", "DKK", "HKD" ] }, { "payment_method": "bank_redirect", "payment_method_type": "giropay", "payment_method_type_display_name": "Giropay", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "STP", "GRC", "ZMB", "MUS", "CHE", "BRB", "KGZ", "BFA", "TCA", "GMB", "SUR", "MSR", "COL", "DJI", "JOR", "NFK", "WSM", "GAB", "PRY", "GNB", "IND", "MAR", "KEN", "TON", "MLI", "GBR", "LCA", "SGP", "MHL", "MKD", "COG", "BTN", "MDG", "SMR", "AUT", "LIE", "LAO", "FRA", "OMN", "THA", "BGR", "KOR", "REU", "GLP", "CMR", "ABW", "BOL", "MOZ", "HUN", "SPM", "CHL", "TJK", "BRA", "NPL", "COD", "ETH", "TCD", "SVK", "PHL", "AUS", "MDV", "VGB", "CRI", "MDA", "PER", "COK", "CYP", "MEX", "KAZ", "MNG", "RWA", "SWE", "GUF", "BRN", "ISL", "SLE", "TZA", "NIC", "SRB", "RUS", "BLR", "MNE", "MCO", "GUY", "TGO", "NZL", "TKM", "QAT", "SLV", "FJI", "NER", "BIH", "SAU", "TTO", "NOR", "VEN", "TUN", "BEN", "LVA", "EGY", "MRT", "USA", "NCL", "FRO", "IDN", "TWN", "GEO", "SYC", "SVN", "ESP", "VCT", "CAN", "BMU", "ZWE", "EST", "SEN", "ZAF", "MYT", "PAN", "BHR", "PRT", "SJM", "SHN", "CIV", "CYM", "GIN", "KNA", "UGA", "VNM", "BEL", "AGO", "AZE", "LKA", "UKR", "PYF", "GTM", "COM", "JAM", "DEU", "ITA", "MYS", "DOM", "HKG", "ARG", "ECU", "CZE", "DNK", "KHM", "ARE", "GRD", "IRL", "SOM", "CPV", "MLT", "TUV", "MWI", "ROU", "BDI", "ISR", "NIU", "ATG", "FSM", "NAM", "BLZ", "LSO", "NLD", "URY", "BWA", "PNG", "NRU", "KIR", "SLB", "ERI", "FIN", "KWT", "POL", "NGA", "BHS", "AIA", "HRV", "DZA", "DMA", "GIB", "GRL", "HND", "SWZ", "JPN", "LTU", "LUX", "PCN" ], "supported_currencies": [ "PHP", "NZD", "CNY", "GBP", "CHF", "SGD", "USD", "ILS", "BRL", "AUD", "TWD", "PLN", "CZK", "DKK", "EUR", "MYR", "MXN", "CAD", "THB", "NOK", "HKD", "HUF", "JPY", "SEK" ] }, { "payment_method": "bank_redirect", "payment_method_type": "ideal", "payment_method_type_display_name": "iDEAL", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "HRV", "BTN", "MDA", "ESP", "SWE", "NAM", "FRA", "ARG", "PCN", "MNE", "PHL", "LCA", "CMR", "MNG", "ISL", "SAU", "CHE", "FIN", "KIR", "BMU", "GUF", "EGY", "UGA", "SLV", "DJI", "HUN", "GNB", "AZE", "JOR", "BRB", "LKA", "SGP", "THA", "CIV", "TUV", "COK", "SWZ", "SPM", "VNM", "NPL", "CRI", "LVA", "ECU", "GTM", "CPV", "BIH", "COL", "ITA", "HND", "ATG", "RUS", "ZWE", "IRL", "BLR", "NIU", "IND", "MRT", "SEN", "BHS", "TZA", "MSR", "DZA", "PNG", "BWA", "GLP", "ISR", "DNK", "SVK", "TON", "MUS", "CYP", "MEX", "KHM", "KOR", "ERI", "ZAF", "QAT", "BRA", "LUX", "COG", "GBR", "NCL", "TKM", "JPN", "KWT", "FSM", "KEN", "MCO", "PRT", "GRL", "TJK", "BRN", "NOR", "DEU", "LSO", "STP", "GEO", "GIN", "SVN", "VCT", "VGB", "NER", "GRC", "OMN", "KGZ", "COD", "FRO", "KAZ", "FJI", "KNA", "BHR", "EST", "NLD", "TGO", "LAO", "NFK", "REU", "NIC", "UKR", "SJM", "JAM", "GIB", "TTO", "PYF", "BEL", "IDN", "CYM", "BFA", "PRY", "ARE", "BLZ", "COM", "ZMB", "MOZ", "RWA", "SMR", "BDI", "TWN", "CZE", "SYC", "TUN", "MLI", "MYS", "TCA", "MAR", "CAN", "AGO", "SOM", "URY", "ETH", "SHN", "MHL", "GMB", "AUS", "MDG", "GRD", "LTU", "AUT", "NRU", "SLE", "GUY", "NGA", "ROU", "SRB", "MYT", "WSM", "PAN", "NZL", "BOL", "GAB", "DMA", "ABW", "LIE", "TCD", "AIA", "CHL", "SUR", "PER", "BEN", "SLB", "MWI", "MDV", "MKD", "BGR", "VEN", "USA", "MLT", "DOM", "HKG", "POL" ], "supported_currencies": [ "TWD", "USD", "DKK", "MYR", "NOK", "CNY", "MXN", "CZK", "ILS", "CAD", "NZD", "SEK", "CHF", "SGD", "PLN", "PHP", "GBP", "HUF", "EUR", "HKD", "THB", "AUD", "JPY", "BRL" ] }, { "payment_method": "bank_redirect", "payment_method_type": "sofort", "payment_method_type_display_name": "Sofort", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "IRL", "NGA", "MDA", "BRN", "GUY", "RUS", "IND", "BLR", "BMU", "NCL", "MUS", "NOR", "MYT", "KOR", "GNB", "GLP", "GIB", "NIC", "PCN", "SLE", "GBR", "SMR", "COK", "GIN", "THA", "LTU", "TCA", "ESP", "VNM", "TZA", "AIA", "BGR", "COD", "TUN", "TJK", "PYF", "PAN", "NFK", "CHE", "TWN", "BRA", "ISL", "AUS", "PRY", "MWI", "ARE", "KWT", "TUV", "ATG", "SLB", "SLV", "MNE", "FRA", "COM", "CYP", "LVA", "KNA", "HKG", "HUN", "EST", "KGZ", "NPL", "PER", "CYM", "JOR", "URY", "MEX", "SWZ", "TCD", "WSM", "BFA", "MKD", "SOM", "MAR", "SWE", "CZE", "BDI", "GAB", "BIH", "SJM", "DJI", "LUX", "CAN", "GTM", "UKR", "FJI", "KEN", "SUR", "MRT", "REU", "PNG", "ZAF", "NAM", "GUF", "BWA", "GMB", "SVK", "BHR", "GRC", "MNG", "BOL", "JPN", "ECU", "POL", "IDN", "CHL", "SPM", "USA", "TTO", "MHL", "NER", "QAT", "TKM", "VGB", "BEL", "CRI", "KAZ", "MYS", "ABW", "MSR", "LCA", "OMN", "ERI", "SGP", "KIR", "MDG", "VCT", "AGO", "MCO", "NIU", "AUT", "UGA", "MLI", "SYC", "NZL", "DOM", "TON", "DEU", "COG", "ISR", "ZMB", "FSM", "DNK", "STP", "RWA", "LIE", "SAU", "SVN", "ROU", "LSO", "BHS", "VEN", "COL", "TGO", "KHM", "BEN", "NLD", "LAO", "GEO", "AZE", "NRU", "SRB", "CPV", "GRL", "FRO", "SHN", "HND", "EGY", "ZWE", "PRT", "BLZ", "BTN", "HRV", "MLT", "JAM", "ITA", "DZA", "MOZ", "FIN", "CMR", "DMA", "PHL", "MDV", "LKA", "SEN", "ETH", "BRB", "GRD", "CIV", "ARG" ], "supported_currencies": [ "BRL", "ILS", "PHP", "THB", "SGD", "TWD", "CZK", "MXN", "NZD", "NOK", "MYR", "AUD", "GBP", "SEK", "CHF", "HUF", "USD", "DKK", "CNY", "PLN", "HKD", "CAD", "EUR", "JPY" ] } ], "supported_webhook_flows": [ "payments", "refunds", "disputes" ] }, { "name": "TRUSTPAY", "display_name": "Trustpay", "description": "TrustPay is a Slovakia-based company specializing in secure e-commerce payments, particularly within the EEA area.", "category": "payment_gateway", "supported_payment_methods": [ { "payment_method": "card", "payment_method_type": "credit", "payment_method_type_display_name": "Credit Card", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "three_ds": "not_supported", "no_three_ds": "supported", "supported_card_networks": [ "Visa", "Mastercard", "AmericanExpress", "DinersClub", "Discover", "Interac", "JCB", "CartesBancaires", "UnionPay" ], "supported_countries": null, "supported_currencies": [ "DKK", "GBP", "NOK", "HUF", "CHF", "USD", "CZK", "AUD", "SEK", "EUR", "CAD", "PLN", "NZD", "RON" ] }, { "payment_method": "card", "payment_method_type": "debit", "payment_method_type_display_name": "Debit Card", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "three_ds": "not_supported", "no_three_ds": "supported", "supported_card_networks": [ "Visa", "Mastercard", "AmericanExpress", "DinersClub", "Discover", "Interac", "JCB", "CartesBancaires", "UnionPay" ], "supported_countries": null, "supported_currencies": [ "NOK", "HUF", "NZD", "CHF", "GBP", "RON", "AUD", "USD", "SEK", "PLN", "EUR", "CAD", "DKK", "CZK" ] }, { "payment_method": "bank_transfer", "payment_method_type": "instant_bank_transfer", "payment_method_type_display_name": "Instant Bank Transfer", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "SVK", "AUT", "DEU", "GBR", "ITA", "CZE" ], "supported_currencies": [ "GBP", "EUR", "CZK" ] }, { "payment_method": "bank_transfer", "payment_method_type": "sepa_bank_transfer", "payment_method_type_display_name": "SEPA Bank Transfer", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": null, "supported_currencies": null }, { "payment_method": "bank_redirect", "payment_method_type": "giropay", "payment_method_type_display_name": "Giropay", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": null, "supported_currencies": null }, { "payment_method": "bank_redirect", "payment_method_type": "sofort", "payment_method_type_display_name": "Sofort", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "NLD" ], "supported_currencies": [ "EUR" ] }, { "payment_method": "bank_redirect", "payment_method_type": "eps", "payment_method_type_display_name": "EPS", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "AUT" ], "supported_currencies": [ "EUR" ] }, { "payment_method": "bank_redirect", "payment_method_type": "ideal", "payment_method_type_display_name": "iDEAL", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "AUT" ], "supported_currencies": [ "EUR" ] }, { "payment_method": "bank_redirect", "payment_method_type": "blik", "payment_method_type_display_name": "BLIK", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "POL" ], "supported_currencies": [ "PLN" ] } ], "supported_webhook_flows": [ "payments", "refunds", "disputes" ] }, ] } ``` ## 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
<think> PR Context: - Title: feat(connector): revert [paypal, trustpay] add in feature matrix - Merged: 2025-05-15T13:19:51Z - Files changed: 9 files - Commits: 1 commits Implementation approach: Reverts juspay/hyperswitch#7911 </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): revert [paypal, trustpay] add in feature matrix (#8042) Files to modify: **crates/hyperswitch_connectors/src/connectors/paypal.rs** Remove: - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - impl: impl ConnectorSpecifications for Paypal Add: - function: private::validate_connector_against_payment_request - impl: impl ConnectorSpecifications for Paypal **crates/hyperswitch_connectors/src/connectors/trustpay.rs** Remove: - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - impl: impl ConnectorSpecifications for Trustpay Add: - impl: impl ConnectorSpecifications for Trustpay
{"issue_number": 7911, "pr_number": 8042, "commits_count": 1, "files_changed": 9, "response_length": 1160, "file_count": 4, "needs_breakdown": false}
feat(single_use): add extra fields in `Mandate` table and `MandateData` [Blocked on #61] ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates ## Description This PR adds single use mandate support and a 2 new fields to the mandate table (i.e. singe_use_amount, single_use_currency) <!-- Describe your changes in detail --> ### Additional Changes - [x] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> The change includes the following files. - migrations/2022-12-05-090521_single_use_mandate_fields/up.sql - migrations/2022-12-05-090521_single_use_mandate_fields/down.sql ## Motivation and Context Here, the intension is adding a new Validation feature in PaymentsCore, for that reason following are the steps that the change is broken down to. 1. Create new types for the change #45 2. Introduce the Flow and Connector Integration #47 3. Add Stripe POC #50 4. Introduce the new operation and all the related components in the payments core #53 + #61 5. Changing the `MandateData` type 6. Move the mandate related behaviour to domain <!-- 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 its an obvious bug or documentation fix that will have little conversation). --> ## How did you test it? <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed submitted code - [ ] I added unit tests for my changes where possible - [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable
<think> PR Context: - Title: fix(payout): use get_string_repr for formatting payout IDs - Merged: 2025-07-05T15:11:29Z - Files changed: 10 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR fixes the bug report - https://github.com/juspay/hyperswitch/issues/8392#issuecomment-3032692625 Introduces below changes - Use `get_string_repr` for formatting payoutIDs which were using default formatter - Update connector configs for `adyenplatform` (WASM) - Update pa </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(payout): use get_string_repr for formatting payout IDs (#8547) Co-authored-by: hyperswitch-bot[b Files to modify: **crates/router/src/core/payouts.rs** Modify existing code
{"issue_number": 66, "pr_number": 8547, "commits_count": 1, "files_changed": 10, "response_length": 972, "file_count": 3, "needs_breakdown": false}
feat(connector): [ZSL] add connector template code ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Zsl only supports automatic payment create and payment status gets updated through webhooks ## 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 - [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable
<think> PR Context: - Title: refactor(core): add cache redaction for cgraph - Merged: 2025-10-01T11:30:08Z - Files changed: 2 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> https://github.com/juspay/hyperswitch/pull/9629 This pull request enhances cache management for connector creation by introducing a new mechanism to invalidate related cache entries whenever a new connector is added. The main change is the ad </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(core): add cache redaction for cgraph (#9639) Co-authored-by: hyperswitch-bot[bot] <1485255 Files to modify: **crates/router/src/core/admin.rs** Modify existing code **crates/router/src/core/routing/helpers.rs** Add: - function: pub::redact_cgraph_cache
{"issue_number": 4285, "pr_number": 9639, "commits_count": 1, "files_changed": 2, "response_length": 1052, "file_count": 4, "needs_breakdown": false}
feat(connector): [paypal, trustpay] add in feature matrix ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added paypal, trustpay, nomupay connectors in feature matrix ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## 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)? --> ``` curl --location 'http://localhost:8080/feature_matrix' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_jQNBYCfN5R0473yldj23Yl7HsGbCctexthWkELSAMAGpjCxKAspb2fcQDP1KmMJz' ``` Response: ``` { "connector_count": 2, "connectors": [ { "name": "PAYPAL", "display_name": "Paypal", "description": "PayPal is a Slovakia-based company specializing in secure e-commerce payments, particularly within the EEA area.", "category": "payment_gateway", "supported_payment_methods": [ { "payment_method": "card", "payment_method_type": "credit", "payment_method_type_display_name": "Credit Card", "mandates": "supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "three_ds": "supported", "no_three_ds": "supported", "supported_card_networks": [ "Visa", "Mastercard", "AmericanExpress", "DinersClub", "Discover", "Interac", "JCB", "CartesBancaires" ], "supported_countries": [ "TTO", "HND", "TWN", "DEU", "MCO", "BDI", "SLV", "LCA", "ESP", "GUF", "MUS", "FRO", "FIN", "MKD", "SPM", "ETH", "DNK", "NGA", "GMB", "VCT", "ROU", "QAT", "PER", "MYT", "TGO", "NOR", "TCD", "KNA", "DMA", "FJI", "POL", "KOR", "SLE", "KIR", "LAO", "BFA", "KWT", "CRI", "WSM", "ABW", "GBR", "MWI", "BHR", "ZWE", "BRB", "MSR", "BIH", "SYC", "TZA", "NIU", "COD", "SMR", "KAZ", "NAM", "BMU", "CHL", "ISL", "LKA", "NRU", "BLZ", "GTM", "ZMB", "SGP", "ARE", "GIB", "LSO", "SUR", "GAB", "JPN", "PAN", "CHE", "NCL", "USA", "SVK", "GRD", "DOM", "SAU", "TKM", "UGA", "BLR", "VNM", "MDV", "CYP", "LTU", "LIE", "MAR", "SWZ", "MHL", "ERI", "NER", "MLT", "PNG", "UKR", "SVN", "REU", "NPL", "PYF", "FRA", "NFK", "SHN", "CIV", "ISR", "COG", "SJM", "HKG", "BWA", "URY", "SLB", "BRA", "CPV", "SOM", "GEO", "AGO", "KEN", "MNE", "MOZ", "NIC", "IND", "AUS", "IRL", "CMR", "GRL", "GLP", "LUX", "MEX", "NLD", "THA", "CAN", "HUN", "PCN", "PHL", "TUV", "AIA", "VGB", "PRY", "KHM", "DZA", "GUY", "MNG", "BEL", "TON", "JAM", "TCA", "GNB", "OMN", "ZAF", "COM", "NZL", "MDG", "BRN", "SRB", "IDN", "MLI", "KGZ", "AZE", "VEN", "RWA", "ECU", "GRC", "COK", "DJI", "PRT", "BHS", "EGY", "BTN", "AUT", "RUS", "TUN", "BOL", "MYS", "COL", "SEN", "JOR", "STP", "HRV", "ARG", "FSM", "GIN", "ATG", "MDA", "SWE", "ITA", "LVA", "EST", "BEN", "BGR", "MRT", "CZE", "CYM", "TJK" ], "supported_currencies": [ "PLN", "SEK", "SGD", "BRL", "NZD", "ILS", "CHF", "THB", "PHP", "USD", "CZK", "JPY", "CAD", "CNY", "MXN", "GBP", "HUF", "HKD", "EUR", "MYR", "NOK", "AUD", "DKK", "TWD" ] }, { "payment_method": "card", "payment_method_type": "debit", "payment_method_type_display_name": "Debit Card", "mandates": "supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "three_ds": "supported", "no_three_ds": "supported", "supported_card_networks": [ "Visa", "Mastercard", "AmericanExpress", "DinersClub", "Discover", "Interac", "JCB", "CartesBancaires" ], "supported_countries": [ "NFK", "URY", "FIN", "NER", "CAN", "GMB", "COM", "SMR", "MCO", "GUF", "DOM", "ECU", "DNK", "CMR", "CRI", "GEO", "BGR", "FRA", "TUN", "GTM", "NLD", "NAM", "PAN", "TCA", "GNB", "SEN", "SVK", "BLZ", "NZL", "AGO", "ATG", "ISR", "MRT", "TON", "OMN", "RUS", "LIE", "BEN", "FJI", "GAB", "SHN", "MLT", "UKR", "TUV", "LTU", "GIN", "RWA", "KHM", "MYS", "VNM", "NGA", "USA", "TWN", "DZA", "MEX", "AUS", "MDV", "SLB", "CHL", "MWI", "ZMB", "BRA", "ZWE", "PCN", "NIU", "GRD", "NOR", "GUY", "BTN", "NRU", "SAU", "SJM", "AZE", "LAO", "GBR", "BHR", "MDG", "IND", "ARG", "EGY", "SGP", "WSM", "HRV", "KAZ", "GIB", "SPM", "GLP", "MDA", "TKM", "STP", "BFA", "BWA", "BEL", "MNE", "ITA", "DJI", "CYP", "KOR", "GRC", "NCL", "KEN", "PER", "VCT", "CHE", "FRO", "KGZ", "AIA", "MYT", "PYF", "CYM", "BRB", "AUT", "ISL", "HKG", "BOL", "PRY", "REU", "IRL", "JPN", "COD", "VGB", "PHL", "SWZ", "EST", "MAR", "JOR", "NIC", "TZA", "ETH", "IDN", "BMU", "SUR", "FSM", "SLE", "ROU", "MNG", "BHS", "PNG", "SOM", "BRN", "NPL", "BDI", "HND", "ARE", "LKA", "MUS", "SLV", "BLR", "POL", "CPV", "JAM", "SYC", "TTO", "MLI", "ZAF", "BIH", "QAT", "LVA", "CZE", "SVN", "KNA", "DEU", "MKD", "DMA", "LUX", "HUN", "ERI", "COG", "COK", "PRT", "THA", "SRB", "GRL", "ABW", "MHL", "SWE", "MOZ", "COL", "TGO", "VEN", "LSO", "TCD", "MSR", "KWT", "KIR", "LCA", "CIV", "UGA", "ESP", "TJK" ], "supported_currencies": [ "CNY", "PHP", "TWD", "HKD", "JPY", "SEK", "MXN", "ILS", "BRL", "PLN", "EUR", "USD", "DKK", "HUF", "AUD", "CAD", "CZK", "NZD", "MYR", "NOK", "GBP", "SGD", "CHF", "THB" ] }, { "payment_method": "wallet", "payment_method_type": "paypal", "payment_method_type_display_name": "PayPal", "mandates": "supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "NCL", "MRT", "DMA", "MYS", "GIN", "STP", "MKD", "CAN", "SLV", "ISR", "TTO", "KOR", "KIR", "SMR", "COG", "MLT", "MSR", "KWT", "ITA", "COK", "SLE", "MNG", "MOZ", "FRO", "GRL", "TCD", "DNK", "MWI", "URY", "CPV", "CMR", "MDA", "ESP", "HND", "UKR", "MLI", "AUT", "SGP", "TJK", "DEU", "POL", "SWE", "GUY", "SRB", "KNA", "ETH", "THA", "NPL", "MUS", "PAN", "NIU", "LKA", "VEN", "GLP", "BRB", "OMN", "SWZ", "MDV", "PRT", "LIE", "SUR", "ISL", "LTU", "AZE", "TGO", "FIN", "LSO", "HRV", "PYF", "CHL", "NGA", "BRN", "NZL", "FSM", "LAO", "MYT", "LCA", "BFA", "BTN", "ATG", "CYM", "HKG", "ZMB", "CYP", "SYC", "COL", "AGO", "HUN", "MAR", "CIV", "DOM", "BHR", "SJM", "KGZ", "SOM", "DZA", "EST", "MHL", "PNG", "MCO", "TZA", "GNB", "WSM", "KAZ", "MNE", "QAT", "NAM", "KEN", "COD", "TON", "AIA", "PHL", "TCA", "SEN", "ERI", "JAM", "SHN", "BEN", "GIB", "RUS", "EGY", "BOL", "REU", "ABW", "GMB", "ARG", "VNM", "IND", "LVA", "NOR", "MDG", "GUF", "TUV", "GEO", "TKM", "ARE", "JPN", "VCT", "SAU", "FRA", "GTM", "SVN", "TWN", "LUX", "NRU", "KHM", "BGR", "BMU", "BHS", "ZAF", "NER", "TUN", "PER", "NIC", "UGA", "AUS", "SPM", "BIH", "SLB", "IRL", "COM", "NFK", "BDI", "GRD", "VGB", "GBR", "BLR", "BRA", "PCN", "MEX", "FJI", "GRC", "CHE", "BLZ", "BEL", "IDN", "GAB", "PRY", "ROU", "JOR", "SVK", "NLD", "USA", "DJI", "CRI", "CZE", "BWA", "RWA", "ZWE", "ECU" ], "supported_currencies": [ "GBP", "USD", "ILS", "MYR", "DKK", "CZK", "MXN", "HUF", "SEK", "JPY", "EUR", "HKD", "TWD", "PLN", "SGD", "AUD", "BRL", "PHP", "NOK", "NZD", "CAD", "CHF", "THB", "CNY" ] }, { "payment_method": "bank_redirect", "payment_method_type": "eps", "payment_method_type_display_name": "EPS", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "MDV", "VGB", "COG", "SUR", "LTU", "KGZ", "USA", "BOL", "SRB", "MLI", "GMB", "CAN", "PAN", "GRD", "CYP", "PNG", "RUS", "KWT", "PHL", "CYM", "BTN", "GAB", "TKM", "SVN", "GIN", "AGO", "GUF", "NGA", "COK", "LAO", "BHR", "SJM", "TJK", "BRB", "BEL", "FRO", "SHN", "TCA", "TON", "BLR", "NIU", "MNG", "AIA", "NAM", "KNA", "DOM", "HND", "KOR", "KIR", "MYT", "JAM", "TZA", "ABW", "CRI", "DMA", "PCN", "CZE", "DJI", "IDN", "HRV", "DNK", "IRL", "AUS", "GTM", "ISL", "NPL", "GRC", "THA", "GIB", "LCA", "CHL", "SLV", "AUT", "VEN", "NOR", "MKD", "ZWE", "ECU", "MDA", "GNB", "SWE", "KAZ", "CIV", "FSM", "FRA", "NER", "GLP", "TTO", "ETH", "VCT", "EGY", "NRU", "SWZ", "HUN", "GUY", "NLD", "GRL", "MWI", "JPN", "BGR", "OMN", "BRN", "HKG", "JOR", "NCL", "PER", "DZA", "CMR", "PRY", "MRT", "SYC", "BIH", "BWA", "ITA", "ISR", "SGP", "TWN", "COM", "LIE", "MLT", "MAR", "MEX", "SLB", "MOZ", "NFK", "NZL", "MDG", "FJI", "DEU", "ESP", "KHM", "MSR", "CHE", "GEO", "ARG", "SLE", "ATG", "EST", "PYF", "BRA", "ERI", "SOM", "UGA", "LSO", "SMR", "LKA", "TUN", "GBR", "BHS", "STP", "BEN", "PRT", "IND", "FIN", "MCO", "TGO", "BDI", "MNE", "VNM", "TUV", "TCD", "NIC", "UKR", "URY", "LVA", "QAT", "POL", "SEN", "BMU", "SVK", "MYS", "COD", "RWA", "MHL", "MUS", "ARE", "ZAF", "WSM", "ZMB", "AZE", "BLZ", "KEN", "BFA", "ROU", "SPM", "SAU", "REU", "CPV", "COL", "LUX" ], "supported_currencies": [ "PHP", "SEK", "CAD", "EUR", "BRL", "SGD", "CNY", "NOK", "NZD", "THB", "TWD", "CZK", "GBP", "CHF", "MYR", "JPY", "ILS", "AUD", "MXN", "HUF", "PLN", "USD", "DKK", "HKD" ] }, { "payment_method": "bank_redirect", "payment_method_type": "giropay", "payment_method_type_display_name": "Giropay", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "STP", "GRC", "ZMB", "MUS", "CHE", "BRB", "KGZ", "BFA", "TCA", "GMB", "SUR", "MSR", "COL", "DJI", "JOR", "NFK", "WSM", "GAB", "PRY", "GNB", "IND", "MAR", "KEN", "TON", "MLI", "GBR", "LCA", "SGP", "MHL", "MKD", "COG", "BTN", "MDG", "SMR", "AUT", "LIE", "LAO", "FRA", "OMN", "THA", "BGR", "KOR", "REU", "GLP", "CMR", "ABW", "BOL", "MOZ", "HUN", "SPM", "CHL", "TJK", "BRA", "NPL", "COD", "ETH", "TCD", "SVK", "PHL", "AUS", "MDV", "VGB", "CRI", "MDA", "PER", "COK", "CYP", "MEX", "KAZ", "MNG", "RWA", "SWE", "GUF", "BRN", "ISL", "SLE", "TZA", "NIC", "SRB", "RUS", "BLR", "MNE", "MCO", "GUY", "TGO", "NZL", "TKM", "QAT", "SLV", "FJI", "NER", "BIH", "SAU", "TTO", "NOR", "VEN", "TUN", "BEN", "LVA", "EGY", "MRT", "USA", "NCL", "FRO", "IDN", "TWN", "GEO", "SYC", "SVN", "ESP", "VCT", "CAN", "BMU", "ZWE", "EST", "SEN", "ZAF", "MYT", "PAN", "BHR", "PRT", "SJM", "SHN", "CIV", "CYM", "GIN", "KNA", "UGA", "VNM", "BEL", "AGO", "AZE", "LKA", "UKR", "PYF", "GTM", "COM", "JAM", "DEU", "ITA", "MYS", "DOM", "HKG", "ARG", "ECU", "CZE", "DNK", "KHM", "ARE", "GRD", "IRL", "SOM", "CPV", "MLT", "TUV", "MWI", "ROU", "BDI", "ISR", "NIU", "ATG", "FSM", "NAM", "BLZ", "LSO", "NLD", "URY", "BWA", "PNG", "NRU", "KIR", "SLB", "ERI", "FIN", "KWT", "POL", "NGA", "BHS", "AIA", "HRV", "DZA", "DMA", "GIB", "GRL", "HND", "SWZ", "JPN", "LTU", "LUX", "PCN" ], "supported_currencies": [ "PHP", "NZD", "CNY", "GBP", "CHF", "SGD", "USD", "ILS", "BRL", "AUD", "TWD", "PLN", "CZK", "DKK", "EUR", "MYR", "MXN", "CAD", "THB", "NOK", "HKD", "HUF", "JPY", "SEK" ] }, { "payment_method": "bank_redirect", "payment_method_type": "ideal", "payment_method_type_display_name": "iDEAL", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "HRV", "BTN", "MDA", "ESP", "SWE", "NAM", "FRA", "ARG", "PCN", "MNE", "PHL", "LCA", "CMR", "MNG", "ISL", "SAU", "CHE", "FIN", "KIR", "BMU", "GUF", "EGY", "UGA", "SLV", "DJI", "HUN", "GNB", "AZE", "JOR", "BRB", "LKA", "SGP", "THA", "CIV", "TUV", "COK", "SWZ", "SPM", "VNM", "NPL", "CRI", "LVA", "ECU", "GTM", "CPV", "BIH", "COL", "ITA", "HND", "ATG", "RUS", "ZWE", "IRL", "BLR", "NIU", "IND", "MRT", "SEN", "BHS", "TZA", "MSR", "DZA", "PNG", "BWA", "GLP", "ISR", "DNK", "SVK", "TON", "MUS", "CYP", "MEX", "KHM", "KOR", "ERI", "ZAF", "QAT", "BRA", "LUX", "COG", "GBR", "NCL", "TKM", "JPN", "KWT", "FSM", "KEN", "MCO", "PRT", "GRL", "TJK", "BRN", "NOR", "DEU", "LSO", "STP", "GEO", "GIN", "SVN", "VCT", "VGB", "NER", "GRC", "OMN", "KGZ", "COD", "FRO", "KAZ", "FJI", "KNA", "BHR", "EST", "NLD", "TGO", "LAO", "NFK", "REU", "NIC", "UKR", "SJM", "JAM", "GIB", "TTO", "PYF", "BEL", "IDN", "CYM", "BFA", "PRY", "ARE", "BLZ", "COM", "ZMB", "MOZ", "RWA", "SMR", "BDI", "TWN", "CZE", "SYC", "TUN", "MLI", "MYS", "TCA", "MAR", "CAN", "AGO", "SOM", "URY", "ETH", "SHN", "MHL", "GMB", "AUS", "MDG", "GRD", "LTU", "AUT", "NRU", "SLE", "GUY", "NGA", "ROU", "SRB", "MYT", "WSM", "PAN", "NZL", "BOL", "GAB", "DMA", "ABW", "LIE", "TCD", "AIA", "CHL", "SUR", "PER", "BEN", "SLB", "MWI", "MDV", "MKD", "BGR", "VEN", "USA", "MLT", "DOM", "HKG", "POL" ], "supported_currencies": [ "TWD", "USD", "DKK", "MYR", "NOK", "CNY", "MXN", "CZK", "ILS", "CAD", "NZD", "SEK", "CHF", "SGD", "PLN", "PHP", "GBP", "HUF", "EUR", "HKD", "THB", "AUD", "JPY", "BRL" ] }, { "payment_method": "bank_redirect", "payment_method_type": "sofort", "payment_method_type_display_name": "Sofort", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [ "automatic", "manual", "sequential_automatic" ], "supported_countries": [ "IRL", "NGA", "MDA", "BRN", "GUY", "RUS", "IND", "BLR", "BMU", "NCL", "MUS", "NOR", "MYT", "KOR", "GNB", "GLP", "GIB", "NIC", "PCN", "SLE", "GBR", "SMR", "COK", "GIN", "THA", "LTU", "TCA", "ESP", "VNM", "TZA", "AIA", "BGR", "COD", "TUN", "TJK", "PYF", "PAN", "NFK", "CHE", "TWN", "BRA", "ISL", "AUS", "PRY", "MWI", "ARE", "KWT", "TUV", "ATG", "SLB", "SLV", "MNE", "FRA", "COM", "CYP", "LVA", "KNA", "HKG", "HUN", "EST", "KGZ", "NPL", "PER", "CYM", "JOR", "URY", "MEX", "SWZ", "TCD", "WSM", "BFA", "MKD", "SOM", "MAR", "SWE", "CZE", "BDI", "GAB", "BIH", "SJM", "DJI", "LUX", "CAN", "GTM", "UKR", "FJI", "KEN", "SUR", "MRT", "REU", "PNG", "ZAF", "NAM", "GUF", "BWA", "GMB", "SVK", "BHR", "GRC", "MNG", "BOL", "JPN", "ECU", "POL", "IDN", "CHL", "SPM", "USA", "TTO", "MHL", "NER", "QAT", "TKM", "VGB", "BEL", "CRI", "KAZ", "MYS", "ABW", "MSR", "LCA", "OMN", "ERI", "SGP", "KIR", "MDG", "VCT", "AGO", "MCO", "NIU", "AUT", "UGA", "MLI", "SYC", "NZL", "DOM", "TON", "DEU", "COG", "ISR", "ZMB", "FSM", "DNK", "STP", "RWA", "LIE", "SAU", "SVN", "ROU", "LSO", "BHS", "VEN", "COL", "TGO", "KHM", "BEN", "NLD", "LAO", "GEO", "AZE", "NRU", "SRB", "CPV", "GRL", "FRO", "SHN", "HND", "EGY", "ZWE", "PRT", "BLZ", "BTN", "HRV", "MLT", "JAM", "ITA", "DZA", "MOZ", "FIN", "CMR", "DMA", "PHL", "MDV", "LKA", "SEN", "ETH", "BRB", "GRD", "CIV", "ARG" ], "supported_currencies": [ "BRL", "ILS", "PHP", "THB", "SGD", "TWD", "CZK", "MXN", "NZD", "NOK", "MYR", "AUD", "GBP", "SEK", "CHF", "HUF", "USD", "DKK", "CNY", "PLN", "HKD", "CAD", "EUR", "JPY" ] } ], "supported_webhook_flows": [ "payments", "refunds", "disputes" ] }, { "name": "TRUSTPAY", "display_name": "Trustpay", "description": "TrustPay is a Slovakia-based company specializing in secure e-commerce payments, particularly within the EEA area.", "category": "payment_gateway", "supported_payment_methods": [ { "payment_method": "card", "payment_method_type": "credit", "payment_method_type_display_name": "Credit Card", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "three_ds": "not_supported", "no_three_ds": "supported", "supported_card_networks": [ "Visa", "Mastercard", "AmericanExpress", "DinersClub", "Discover", "Interac", "JCB", "CartesBancaires", "UnionPay" ], "supported_countries": null, "supported_currencies": [ "DKK", "GBP", "NOK", "HUF", "CHF", "USD", "CZK", "AUD", "SEK", "EUR", "CAD", "PLN", "NZD", "RON" ] }, { "payment_method": "card", "payment_method_type": "debit", "payment_method_type_display_name": "Debit Card", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "three_ds": "not_supported", "no_three_ds": "supported", "supported_card_networks": [ "Visa", "Mastercard", "AmericanExpress", "DinersClub", "Discover", "Interac", "JCB", "CartesBancaires", "UnionPay" ], "supported_countries": null, "supported_currencies": [ "NOK", "HUF", "NZD", "CHF", "GBP", "RON", "AUD", "USD", "SEK", "PLN", "EUR", "CAD", "DKK", "CZK" ] }, { "payment_method": "bank_transfer", "payment_method_type": "instant_bank_transfer", "payment_method_type_display_name": "Instant Bank Transfer", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "SVK", "AUT", "DEU", "GBR", "ITA", "CZE" ], "supported_currencies": [ "GBP", "EUR", "CZK" ] }, { "payment_method": "bank_transfer", "payment_method_type": "sepa_bank_transfer", "payment_method_type_display_name": "SEPA Bank Transfer", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": null, "supported_currencies": null }, { "payment_method": "bank_redirect", "payment_method_type": "giropay", "payment_method_type_display_name": "Giropay", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": null, "supported_currencies": null }, { "payment_method": "bank_redirect", "payment_method_type": "sofort", "payment_method_type_display_name": "Sofort", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "NLD" ], "supported_currencies": [ "EUR" ] }, { "payment_method": "bank_redirect", "payment_method_type": "eps", "payment_method_type_display_name": "EPS", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "AUT" ], "supported_currencies": [ "EUR" ] }, { "payment_method": "bank_redirect", "payment_method_type": "ideal", "payment_method_type_display_name": "iDEAL", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "AUT" ], "supported_currencies": [ "EUR" ] }, { "payment_method": "bank_redirect", "payment_method_type": "blik", "payment_method_type_display_name": "BLIK", "mandates": "not_supported", "refunds": "supported", "supported_capture_methods": [], "supported_countries": [ "POL" ], "supported_currencies": [ "PLN" ] } ], "supported_webhook_flows": [ "payments", "refunds", "disputes" ] }, ] } ``` ## 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
<think> PR Context: - Title: feat(connector): revert [paypal, trustpay] add in feature matrix - Merged: 2025-05-15T14:22:25Z - Files changed: 9 files - Commits: 1 commits Implementation approach: ORIGINAL PR: https://github.com/juspay/hyperswitch/pull/8042 Reverts juspay/hyperswitch#7911 </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): revert [paypal, trustpay] add in feature matrix (#8046) Files to modify: **crates/hyperswitch_connectors/src/connectors/paypal.rs** Remove: - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - impl: impl ConnectorSpecifications for Paypal Add: - function: private::validate_connector_against_payment_request - impl: impl ConnectorSpecifications for Paypal **crates/hyperswitch_connectors/src/connectors/trustpay.rs** Remove: - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - impl: impl ConnectorSpecifications for Trustpay Add: - impl: impl ConnectorSpecifications for Trustpay
{"issue_number": 7911, "pr_number": 8046, "commits_count": 1, "files_changed": 9, "response_length": 1222, "file_count": 4, "needs_breakdown": false}
[BUG] 5xx in PayPal when cancelling the Payment we're getting 5xx when you try to cancel the payment express checkout page. and this is not intended.
<think> PR Context: - Title: fix(connector): [GlobalPay] Address `5xx` when cancelling a paypal transaction - Merged: 2025-03-26T10:26:02Z - Files changed: 4 files - Commits: 7 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- 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-dc4d15 </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(connector): [GlobalPay] Address `5xx` when cancelling a paypal transaction (#7605) Files to modify: **crates/hyperswitch_connectors/src/connectors/globalpay/requests.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/globalpay/response.rs** Remove: - struct: pub::GlobalpayPaymentsWebhookResponse - struct: pub::GlobalpayRedirectResponse - enum: pub::FingerprintPresenceIndicator Add: - enum: pub::ActionType **crates/hyperswitch_connectors/src/connectors/globalpay/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs** Modify existing code
{"issue_number": 7607, "pr_number": 7605, "commits_count": 1, "files_changed": 4, "response_length": 1466, "file_count": 6, "needs_breakdown": false}
[REFACTOR] facilitapay destination bank account number should be merchant facing destination bank account number should be added by merchant, not customer. this is a design flaw that needs to be fixed.
<think> PR Context: - Title: refactor(connector): [facilitapay] move destination bank account number to connector metadata - Merged: 2025-07-25T12:44:09Z - Files changed: 11 files - Commits: 7 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Destination bank account id should be merchant facing, not customer. This PR removes any references to destination bank account id and moves it to connector metadata instead. ### Additional Changes - [ ] This PR modifies the API contra </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(connector): [facilitapay] move destination bank account number to connector metadata (#8704 Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/api_models/src/payments/additional_info.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs** Remove: - function: private::from_auth_type - function: private::try_from - function: private::try_from - struct: pub::FacilitapayAuthType - impl: impl FacilitapayAuthRequest - impl: impl TryFrom<&ConnectorAuthType> for FacilitapayAuthType - impl: impl TryFrom<&RefreshTokenRouterData> for FacilitapayAuthRequest Add: - function: private::from_auth_type - function: private::try_from - function: private::try_from - function: private::try_from - struct: pub::FacilitapayAuthType - struct: pub::FacilitapayConnectorMetadataObject - impl: impl FacilitapayAuthRequest - impl: impl TryFrom<&ConnectorAuthType> for FacilitapayAuthType - impl: impl TryFrom<&RefreshTokenRouterData> for FacilitapayAuthRequest - impl: impl TryFrom<&Option<pii::SecretSerdeValue>> for FacilitapayConnectorMetadataObject **crates/payment_methods/src/configs/payment_connector_required_fields.rs** Modify existing code **crates/router/src/core/connector_validation.rs** Modify existing code
{"issue_number": 8703, "pr_number": 8704, "commits_count": 1, "files_changed": 11, "response_length": 2205, "file_count": 7, "needs_breakdown": false}
feat(users): handle email URLs for users in different tenancies We will be sending emails to users in different tenancies, on clicking the email they should land on that particular tenant URL. For that we need tenant level user configs. And 'll be using it to generate emails.
<think> PR Context: - Title: feat(users): handle email url for users in different tenancies - Merged: 2024-12-19T08:50:07Z - Files changed: 12 files - Commits: 9 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Add support for user in tenants configs. - Handle email URLs for different tenancies ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- P </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(users): handle email url for users in different tenancies (#6809) Files to modify: **crates/external_services/src/email.rs** Modify existing code **crates/router/src/configs/settings.rs** Add: - struct: pub::TenantUserConfig **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** Add: - function: pub::get_base_url **crates/router/src/workflows/api_key_expiry.rs** Modify existing code
{"issue_number": 6808, "pr_number": 6809, "commits_count": 1, "files_changed": 12, "response_length": 1395, "file_count": 9, "needs_breakdown": false}
fix(connector): [Peach Payments] fix connector metadata deserialization ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> fix connector metadata deserialization Currently we deserialize to camelCase. but dashboard always sends in snake_case. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## How did you test it? <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> <img width="836" height="924" alt="Screenshot 2025-10-14 at 2 13 20 PM" src="https://github.com/user-attachments/assets/15635e0c-128d-4bb6-80bb-6bfa38bcc424" /> <img width="938" height="935" alt="Screenshot 2025-10-14 at 2 13 38 PM" src="https://github.com/user-attachments/assets/20d7197f-f5e6-4adf-911b-67e80663ca7f" /> ## 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
<think> PR Context: - Title: fix(connector): [Peach Payments] fix connector metadata deserialization - Merged: 2025-10-14T11:48:24Z - Files changed: 1 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> fix connector metadata deserialization Currently we deserialize to camelCase. but dashboard always sends in snake_case. main pr - #9826 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the dat </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(connector): [Peach Payments] fix connector metadata deserialization (#9827) Co-authored-by: Gna Files to modify: **crates/hyperswitch_connectors/src/connectors/peachpayments/transformers.rs** Modify existing code
{"issue_number": 9826, "pr_number": 9827, "commits_count": 1, "files_changed": 1, "response_length": 1026, "file_count": 3, "needs_breakdown": false}
[FEATURE] Automatic connector_payment_id hashing in v2 if length > 128 in v2 ### Feature Description Automatically hash connector_payment_id longer than 128 chars and store the original in connector_payment_data. ### Possible Implementation Implement hashing in PaymentAttemptUpdate conversion by using ConnectorTransactionId::form_id_and_data, setting connector_payment_id to the hash and preserving the original in connector_payment_data. ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: fix(payments): automatic connector_payment_id hashing in v2 if length > 128 - Merged: 2025-09-01T14:34:13Z - Files changed: 2 files - Commits: 6 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Implement hashing in PaymentAttemptUpdate conversion by using ConnectorTransactionId::form_id_and_data, setting connector_payment_id to the hash and preserving the original in connector_payment_data.For worldpay connector_payment_id should be </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(payments): automatic connector_payment_id hashing in v2 if length > 128 (#9017) Files to modify: **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/hyperswitch_domain_models/src/payments/payment_attempt.rs** Modify existing code
{"issue_number": 9016, "pr_number": 9017, "commits_count": 1, "files_changed": 2, "response_length": 1074, "file_count": 4, "needs_breakdown": false}
feat(single_use): add extra fields in `Mandate` table and `MandateData` [Blocked on #61] ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates ## Description This PR adds single use mandate support and a 2 new fields to the mandate table (i.e. singe_use_amount, single_use_currency) <!-- Describe your changes in detail --> ### Additional Changes - [x] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> The change includes the following files. - migrations/2022-12-05-090521_single_use_mandate_fields/up.sql - migrations/2022-12-05-090521_single_use_mandate_fields/down.sql ## Motivation and Context Here, the intension is adding a new Validation feature in PaymentsCore, for that reason following are the steps that the change is broken down to. 1. Create new types for the change #45 2. Introduce the Flow and Connector Integration #47 3. Add Stripe POC #50 4. Introduce the new operation and all the related components in the payments core #53 + #61 5. Changing the `MandateData` type 6. Move the mandate related behaviour to domain <!-- 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 its an obvious bug or documentation fix that will have little conversation). --> ## How did you test it? <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed submitted code - [ ] I added unit tests for my changes where possible - [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable
<think> PR Context: - Title: fix(core): language consumption from locale in payment and payout links - Merged: 2025-05-12T15:38:24Z - Files changed: 4 files - Commits: 3 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Fix the locale handling in the payment and payout links translation functionality to properly support language-location combinations like `es-ES`. Currently, the system is using the full locale value from the `Accept-Language` header without parsing it, causing translations for such loc </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(core): language consumption from locale in payment and payout links (#7993) Co-authored-by: hype Files to modify: **crates/router/src/services/api/generic_link_response/context.rs** Add: - function: private::get_language
{"issue_number": 66, "pr_number": 7993, "commits_count": 1, "files_changed": 4, "response_length": 1036, "file_count": 3, "needs_breakdown": false}
Adding Deep health check for Hyperswitch Goal is to create a deep health check endpoint which will verify that the Hyperswitch application is up and running and the connections to all the necessary services are healthy - [x] Failure of health check should emit logs providing evidential data regarding the failure The deep health will verify the following services - [x] #3267 - [x] #3268 - [x] #3269 - [x] #3270 - [x] [Deep health check for Hyperswitch Control Center](https://github.com/juspay/hyperswitch-control-center/issues/374)
<think> PR Context: - Title: fix(ui): hide visible scrollbar from checkout widget for windows - Merged: 2025-10-01T13:15:54Z - Files changed: 1 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR hides the visible scrollbars on payment link's checkout widget. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to th </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 3264, "pr_number": 9541, "commits_count": 0, "files_changed": 1, "response_length": 794, "file_count": 0, "needs_breakdown": false}
Adding Deep health check for Hyperswitch Goal is to create a deep health check endpoint which will verify that the Hyperswitch application is up and running and the connections to all the necessary services are healthy - [x] Failure of health check should emit logs providing evidential data regarding the failure The deep health will verify the following services - [x] #3267 - [x] #3268 - [x] #3269 - [x] #3270 - [x] [Deep health check for Hyperswitch Control Center](https://github.com/juspay/hyperswitch-control-center/issues/374)
<think> PR Context: - Title: feat(payment-link): add config for enabling form button only when form is complete - Merged: 2025-03-17T15:05:30Z - Files changed: 16 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds a payment link config for controlling the behavior or Submit button on payment links (`enable_button_only_on_form_ready`) - If `enable_button_only_on_form_ready` is true - disallow incomplete form submission - [DEFAULT and CURRENT] If false - allow incomplete form sub </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(payment-link): add config for enabling form button only when form is complete (#7517) Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/api_models/src/payments.rs** Modify existing code **crates/diesel_models/src/business_profile.rs** Modify existing code **crates/diesel_models/src/payment_intent.rs** Modify existing code **crates/hyperswitch_domain_models/src/lib.rs** Modify existing code **crates/router/src/consts.rs** Modify existing code **crates/router/src/core/payment_link.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/types/transformers.rs** Modify existing code
{"issue_number": 3264, "pr_number": 7517, "commits_count": 1, "files_changed": 16, "response_length": 1528, "file_count": 11, "needs_breakdown": false}
feat(single_use): add extra fields in `Mandate` table and `MandateData` [Blocked on #61] ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates ## Description This PR adds single use mandate support and a 2 new fields to the mandate table (i.e. singe_use_amount, single_use_currency) <!-- Describe your changes in detail --> ### Additional Changes - [x] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> The change includes the following files. - migrations/2022-12-05-090521_single_use_mandate_fields/up.sql - migrations/2022-12-05-090521_single_use_mandate_fields/down.sql ## Motivation and Context Here, the intension is adding a new Validation feature in PaymentsCore, for that reason following are the steps that the change is broken down to. 1. Create new types for the change #45 2. Introduce the Flow and Connector Integration #47 3. Add Stripe POC #50 4. Introduce the new operation and all the related components in the payments core #53 + #61 5. Changing the `MandateData` type 6. Move the mandate related behaviour to domain <!-- 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 its an obvious bug or documentation fix that will have little conversation). --> ## How did you test it? <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed submitted code - [ ] I added unit tests for my changes where possible - [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable
<think> PR Context: - Title: feat(connector): [ADYENPLATFORM] add card payouts - Merged: 2025-07-01T11:43:42Z - Files changed: 2 files - Commits: 4 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR enables card payouts through AdyenPlatform connector. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files wi </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): [ADYENPLATFORM] add card payouts (#8504) Co-authored-by: hyperswitch-bot[bot] <1485 Files to modify: **crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs** Add: - function: private::try_from - function: private::try_from - struct: pub::AdyenCardDetails - struct: pub::AdyenCardIdentification - struct: pub::AdyenCardTokenDetails - struct: pub::AdyenCardTokenIdentification - enum: pub::AdyenPayoutMethodDetails - impl: impl TryFrom<&hyperswitch_domain_models::address::AddressDetails> for AdyenAddress - impl: impl TryFrom<(&types::PayoutsRouterData<F>, enums::PayoutType)> for AdyenAccountHolder **crates/router/src/configs/defaults/payout_required_fields.rs** Modify existing code
{"issue_number": 66, "pr_number": 8504, "commits_count": 1, "files_changed": 2, "response_length": 1556, "file_count": 4, "needs_breakdown": false}
feat(users): Add email domain based restriction for dashboard entry APIs Currently Zurich uses okta and they use a specific `auth_id` to see the okta login method. If any user doesn't use `auth_id`, then the user will see the default auth methods that Hyperswitch has and they will be use them to login, which we should restrict for zurich users.
<think> PR Context: - Title: feat(users): Add email domain based restriction for dashboard entry APIs - Merged: 2024-12-30T07:37:08Z - Files changed: 14 files - Commits: 8 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> There will be a mapping of email domain and auth methods. This PR will restrict users to enter into the dashboard based on the email domain. ### Additional Changes - [x] This PR modifies the API contract - [x] This PR modifies the da </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(users): Add email domain based restriction for dashboard entry APIs (#6940) Files to modify: **crates/api_models/src/user.rs** Remove: - struct: pub::UpdateUserAuthenticationMethodRequest Add: - enum: pub::UpdateUserAuthenticationMethodRequest **crates/diesel_models/src/query/user_authentication_method.rs** Add: - function: pub::list_user_authentication_methods_for_email_domain **crates/diesel_models/src/schema.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/user_authentication_method.rs** Modify existing code **crates/router/src/core/errors/user.rs** Modify existing code **crates/router/src/core/user.rs** Modify existing code **crates/router/src/db/kafka_store.rs** Add: - function: private::list_user_authentication_methods_for_email_domain **crates/router/src/db/user_authentication_method.rs** Add: - function: private::list_user_authentication_methods_for_email_domain - function: private::list_user_authentication_methods_for_email_domain **crates/router/src/types/domain/user.rs** Add: - function: pub::extract_domain **crates/router/src/types/domain/user/user_authentication_method.rs** Modify existing code **crates/router/src/utils/user.rs** Add: - function: pub::validate_email_domain_auth_type_using_db
{"issue_number": 6939, "pr_number": 6940, "commits_count": 1, "files_changed": 14, "response_length": 2172, "file_count": 14, "needs_breakdown": false}
Fix UCS address precedence order for payment method billing addresses ## Problem The current implementation in the UCS (Unified Connector Service) transformers has incorrect precedence order when handling addresses. The unified payment method billing address should take priority over the shipping/billing addresses from the payment request. ## Current Behavior - Shipping address: `shipping.or(unified_payment_method_billing.clone())` - Billing address: `billing.or(unified_payment_method_billing)` This means the payment request addresses take precedence over the unified payment method billing address. ## Expected Behavior The unified payment method billing address should take precedence: - Shipping address: `unified_payment_method_billing.clone().or(shipping)` - Billing address: `unified_payment_method_billing.or(billing)` ## Impact This affects address data consistency in UCS transformations and could lead to incorrect address information being sent to connectors. ## Files Affected - `crates/router/src/core/unified_connector_service/transformers.rs`
<think> PR Context: - Title: fix: change precedence order in address that we send to ucs - Merged: 2025-09-03T17:28:26Z - Files changed: 1 files - Commits: 3 commits Implementation approach: ## Summary This PR fixes the billing address precedence order in the UCS (Unified Connector Service) transformers to ensure that unified payment method billing addresses take priority over billing addresses from payment requests. ## Changes - Changed billing address precedence: `unified_payment_method_billing.or(billing)` instead of `billing.or(unified_payment_method_billing)` - Shipping address logic remains unchanged: `shipping` ## Related Issues - Closes #9268: Fix UCS address </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix: change precedence order in address that we send to ucs (#9269) Files to modify: **crates/router/src/core/unified_connector_service/transformers.rs** Modify existing code
{"issue_number": 9268, "pr_number": 9269, "commits_count": 1, "files_changed": 1, "response_length": 970, "file_count": 3, "needs_breakdown": false}
[FEATURE]: Add support for updating elimination config ### Feature Description Add a new route for updating elimination config in the database when it is toggled. ### Possible Implementation Add a new route for updating elimination config in the database when it is toggled. ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: feat(routing): Add support to update config for elimination routing - Merged: 2025-05-12T16:26:29Z - Files changed: 5 files - Commits: 8 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add a new route for updating the elimination routing config when it is toggled ### Additional Changes - [x] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/e </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(routing): Add support to update config for elimination routing (#7938) Co-authored-by: Spriti A Files to modify: **crates/api_models/src/events/routing.rs** Add: - function: private::get_api_event_type - impl: impl ApiEventMetric for EliminationRoutingPayloadWrapper **crates/api_models/src/routing.rs** Add: - function: pub::update - function: pub::update - struct: pub::EliminationRoutingPayloadWrapper - impl: impl EliminationAnalyserConfig - impl: impl EliminationRoutingConfig **crates/router/src/core/routing.rs** Modify existing code **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/routing.rs** Add: - function: pub::elimination_routing_update_configs
{"issue_number": 7939, "pr_number": 7938, "commits_count": 1, "files_changed": 5, "response_length": 1547, "file_count": 7, "needs_breakdown": false}
[FEAT] [CONNECTOR: NORDEA] Implement SEPA Bank Debit ## Relevant Docs - [Access Authorization API](https://developer.nordeaopenbanking.com/documentation?api=Access%20Authorization%20API) (To get Access Token) - [Payments API SEPA Credit Transfer](https://developer.nordeaopenbanking.com/documentation?api=Payments%20API%20SEPA%20Credit%20Transfer) - [Payment Common API](https://developer.nordeaopenbanking.com/documentation?api=Payments%20Common%20API) (I assume this doc gets updated first often) - [Nordea developer FAQ](https://support.nordeaopenbanking.com/hc/en-us) ### Digest and Signature creation Docs - [Digest creation and calculation FAQ](https://support.nordeaopenbanking.com/hc/en-us/articles/7951756726044-Digest-creation-calculation-FAQ) - [eIDAS certificate](https://developer.nordeaopenbanking.com/documentation?api=Access%20Authorization%20API#authentication_with_eidas_certificate) - [Generation of Signature](https://developer.nordeaopenbanking.com/documentation?api=Access%20Authorization%20API#testing_eidas_signature) (postman JavaScript code) ## Testing - Nordea Playground (Try API Console): https://developer.nordeaopenbanking.com/console/ - [Personal API Postman collection v5](https://raw.githubusercontent.com/NordeaOB/swaggers/master/Nordea%20Open%20Banking%20v5%20Personal%20API.postman_collection.json) - [Personal API Postman collection v4](https://raw.githubusercontent.com/NordeaOB/swaggers/master/Nordea%20Open%20Banking%20v4%20Personal%20API%20Example%20FI%2CDK%2CNO%20and%20SE.postman_collection.json)
<think> PR Context: - Title: feat(core/connector): introduce authentication token flow and add sepa bankdebit for nordea - Merged: 2025-08-11T07:26:26Z - Files changed: 30 files - Commits: 30 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> ### Summary This PR introduces Nordea as a new payment connector with support for SEPA bank debit payments. It also implements a new **Authentication Token Flow** mechanism that enables two-step OAuth authentication, which is required by </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(core/connector): introduce authentication token flow and add sepa bankdebit for nordea (#8133) Files to modify: **crates/api_models/src/admin.rs** Modify existing code **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/common_utils/src/lib.rs** Add: - function: pub::now_rfc7231_http_date **crates/connector_configs/src/connector.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/nordea.rs** Remove: - function: private::get_auth_header Add: - function: pub::generate_digest_from_request - function: private::format_private_key - function: private::generate_signature - function: private::get_form_urlencoded_payload - function: private::build_request - function: private::get_http_method - function: private::get_http_method - function: private::build_request - function: private::build_request - function: private::build_request - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - function: private::authentication_token_for_token_creation - struct: private::SignatureParams - impl: impl api::ConnectorAuthenticationToken for Nordea - impl: impl api::PaymentsPreProcessing for Nordea - impl: impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Nordea - impl: impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Nordea - impl: impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Nordea - impl: impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Nordea - impl: impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Nordea - impl: impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Nordea - impl: impl ConnectorSpecifications for Nordea - mod: private::requests - mod: private::responses **crates/hyperswitch_connectors/src/connectors/nordea/requests.rs** Add: - struct: pub::NordeaRouterData - struct: pub::NordeaOAuthRequest - struct: pub::NordeaOAuthExchangeRequest - struct: pub::AccountNumber - struct: pub::CreditorAccountReference - struct: pub::NordeaAddress - struct: pub::CreditorBank - struct: pub::CreditorAccount - struct: pub::DebitorAccount - struct: pub::InstructedAmount - struct: pub::RecurringInformation - struct: pub::ThirdPartyMessages - struct: pub::NordeaPaymentsRequest - struct: pub::NordeaPaymentsConfirmRequest - enum: pub::GrantType - enum: pub::AccessScope - enum: pub::AccountType - enum: pub::RecurrenceType - enum: pub::FundsAvailabilityRequest - enum: pub::PaymentsUrgency - enum: pub::TppCategory - enum: pub::TppCode - enum: pub::NordeaAuthenticationMethod - enum: pub::NordeaConfirmLanguage **crates/hyperswitch_connectors/src/connectors/nordea/responses.rs** Add: - struct: pub::NordeaOAuthExchangeResponse - struct: pub::NordeaGroupHeader - struct: pub::NordeaResponseLinks - struct: pub::TransactionFee - struct: pub::BankFee - struct: pub::ExchangeRate - struct: pub::MessagePagination - struct: pub::NordeaPaymentsInitiateResponseData - struct: pub::NordeaPaymentsInitiateResponse - struct: pub::NordeaPaymentsConfirmErrorObject - struct: pub::NordeaPaymentsResponseWrapper - struct: pub::NordeaPaymentsConfirmResponse - struct: pub::NordeaOriginalRequest - struct: pub::NordeaFailures - struct: pub::NordeaErrorBody - struct: pub::NordeaErrorResponse - enum: pub::NordeaPaymentStatus - enum: pub::FeesType - enum: pub::ChargeBearer **crates/hyperswitch_connectors/src/connectors/nordea/transformers.rs** Remove: - function: private::try_from - struct: pub::NordeaRouterData - struct: pub::NordeaPaymentsRequest - struct: pub::NordeaCard - impl: impl TryFrom<&NordeaRouterData<&PaymentsAuthorizeRouterData>> for NordeaPaymentsRequest **crates/hyperswitch_connectors/src/default_implementations.rs** Add: - impl: impl ConnectorAuthenticationToken for connectors::DummyConnector<T> - impl: impl ConnectorIntegration< AccessTokenAuthentication, AccessTokenAuthenticationRequestData, AccessTokenAuthenticationResponse, > for connectors::DummyConnector<T> **crates/hyperswitch_connectors/src/default_implementations_v2.rs** Modify existing code **crates/hyperswitch_connectors/src/utils.rs** Add: - function: private::get_ip_address **crates/hyperswitch_domain_models/src/router_data.rs** Add: - struct: pub::AccessTokenAuthenticationResponse **crates/hyperswitch_domain_models/src/router_data_v2.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs** Add: - struct: pub::AuthenticationTokenFlowData **crates/hyperswitch_domain_models/src/router_flow_types/access_token_auth.rs** Add: - struct: pub::AccessTokenAuthentication **crates/hyperswitch_domain_models/src/router_request_types.rs** Add: - function: private::try_from - function: private::try_from - struct: pub::AccessTokenAuthenticationRequestData - impl: impl TryFrom<router_data::ConnectorAuthType> for AccessTokenAuthenticationRequestData - impl: impl TryFrom<( router_data::ConnectorAuthType, Option<AccessTokenAuthenticationResponse>, )> for AccessTokenRequestData **crates/hyperswitch_domain_models/src/types.rs** Modify existing code **crates/hyperswitch_interfaces/src/api.rs** Add: - trait: pub::ConnectorAuthenticationTokenV2 **crates/hyperswitch_interfaces/src/connector_integration_interface.rs** Add: - function: private::authentication_token_for_token_creation **crates/hyperswitch_interfaces/src/connector_integration_v2.rs** Modify existing code **crates/hyperswitch_interfaces/src/conversion_impls.rs** Add: - function: private::from_old_router_data - function: private::to_old_router_data - impl: impl RouterDataConversion<T, Req, Resp> for AuthenticationTokenFlowData **crates/hyperswitch_interfaces/src/types.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/core/payments.rs** Modify existing code **crates/router/src/core/payments/access_token.rs** Add: - function: pub::execute_authentication_token **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/cancel_post_capture_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/refunds.rs** Modify existing code **crates/router/src/core/refunds_v2.rs** Modify existing code **crates/router/src/services/api.rs** Modify existing code **crates/router/src/types.rs** Remove: - function: private::foreign_try_from - impl: impl ForeignTryFrom<ConnectorAuthType> for AccessTokenRequestData **crates/router/src/types/api.rs** Modify existing code **crates/router/src/types/api/connector_mapping.rs** Modify existing code **crates/router/src/types/connector_transformers.rs** Modify existing code **crates/test_utils/src/connector_auth.rs** Modify existing code
{"issue_number": 8134, "pr_number": 8133, "commits_count": 1, "files_changed": 30, "response_length": 9320, "file_count": 51, "needs_breakdown": true}
ci: run cybersource along with stripe ci: run cybersource along with stripe
<think> PR Context: - Title: ci: introduce `cybersource` cypress test to run in parallel - Merged: 2024-11-14T11:52:04Z - Files changed: 1 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> Run Cybersource in parallel along with Stripe. closes #6542 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment var </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 6542, "pr_number": 6541, "commits_count": 0, "files_changed": 1, "response_length": 789, "file_count": 0, "needs_breakdown": false}
[bug] abrupt cypress failures fix CI abrupt failures when running in parallel
<think> PR Context: - Title: fix(ci): abrupt exit upon ci failure - Merged: None - Files changed: 1 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> When CI checks are run in parallel, it would result in abrupt exit when one of the connector failed. This PR aims to fix that. closes #6890 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 6890, "pr_number": 6891, "commits_count": 0, "files_changed": 1, "response_length": 750, "file_count": 0, "needs_breakdown": false}
[FEATURE] feat(router): verify service for applepay merchant registration v2 ### Feature Description verify service for applepay merchant registration in v2 ### Possible Implementation Add POST /v2/verify/apple-pay/{merchant_id} endpoint for verify domains with Apple ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: feat(router): verify service for applepay merchant registration v2 - Merged: 2025-08-22T13:36:37Z - Files changed: 5 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add Apple Pay merchant registration and verified domains retrieval for v2 ### Additional Changes - [X] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/enviro </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(router): verify service for applepay merchant registration v2 (#8999) Files to modify: **crates/router/src/core/verification.rs** Modify existing code **crates/router/src/core/verification/utils.rs** Modify existing code **crates/router/src/lib.rs** Modify existing code **crates/router/src/routes/app.rs** Add: - function: pub::server - impl: impl Verify **crates/router/src/routes/verification.rs** Add: - function: pub::apple_pay_merchant_registration
{"issue_number": 8998, "pr_number": 8999, "commits_count": 1, "files_changed": 5, "response_length": 1286, "file_count": 7, "needs_breakdown": false}
fix(deployment-config): remove invalid currencies from worldpay filters ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description Includes below changes - - Fixes Worldpay's payment method filters - Makes `payment_method_type` non-mandatatory for Cards ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [x] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## How did you test it? Locally through payment links. Things to test 1. Payments through SDK <details> <summary>1. Payments through SDK</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_sMl3D9efytjSoXznSOKCv5PHyql50M1BMhU8e7qsa5m6mXxHvyROVg7cER7AWue9' \ --data-raw '{"authentication_type":"three_ds","customer_id":"cus_5A3VgopTFe8q83EEHgTq","profile_id":"pro_OodaMoJ1Y9nlnegU4soR","amount":100,"currency":"USD","payment_link":true,"capture_method":"automatic","setup_future_usage":"on_session","connector":["worldpay"],"billing":{"address":{"line1":"1467","line2":"Harrison Street","line3":"Harrison Street","city":"San Fransico","state":"CA","zip":"94122","country":"US","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"}},"email":"[email protected]","session_expiry":10000,"return_url":"https://example.com","payment_link_config":{"theme":"#14356f","logo":"https://hyperswitch.io/favicon.ico","seller_name":"HyperSwitch Inc."}}' Response {"payment_id":"pay_kjjXmgjTxSxUI598uRJ6","merchant_id":"merchant_1728979001","status":"requires_payment_method","amount":100,"net_amount":100,"shipping_cost":null,"amount_capturable":100,"amount_received":null,"connector":null,"client_secret":"pay_kjjXmgjTxSxUI598uRJ6_secret_LeagJMq1vWdgjvPC1dHG","created":"2024-10-23T12:54:25.970Z","currency":"USD","customer_id":"cus_5A3VgopTFe8q83EEHgTq","customer":{"id":"cus_5A3VgopTFe8q83EEHgTq","name":"John Doe","email":"[email protected]","phone":"999999999","phone_country_code":"+65"},"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":null,"payment_method_data":null,"payment_token":null,"shipping":null,"billing":{"address":{"city":"San Fransico","country":"US","line1":"1467","line2":"Harrison Street","line3":"Harrison Street","zip":"94122","state":"CA","first_name":"John","last_name":"Doe"},"phone":{"number":"8056594427","country_code":"+91"},"email":null},"order_details":null,"email":"[email protected]","name":"John Doe","phone":"999999999","return_url":"https://example.com/","authentication_type":"three_ds","statement_descriptor_name":null,"statement_descriptor_suffix":null,"next_action":null,"cancellation_reason":null,"error_code":null,"error_message":null,"unified_code":null,"unified_message":null,"payment_experience":null,"payment_method_type":null,"connector_label":null,"business_country":null,"business_label":"default","business_sub_label":null,"allowed_payment_method_types":null,"ephemeral_key":{"customer_id":"cus_5A3VgopTFe8q83EEHgTq","created_at":1729688065,"expires":1729691665,"secret":"epk_dacf70917d6c42149373e4864df4f59b"},"manual_retry_allowed":null,"connector_transaction_id":null,"frm_message":null,"metadata":null,"connector_metadata":null,"feature_metadata":null,"reference_id":null,"payment_link":{"link":"http://localhost:8080/payment_link/merchant_1728979001/pay_kjjXmgjTxSxUI598uRJ6?locale=en","secure_link":null,"payment_link_id":"plink_pk7a6Jn1WEtnN0CF47ue"},"profile_id":"pro_OodaMoJ1Y9nlnegU4soR","surcharge_details":null,"attempt_count":1,"merchant_decision":null,"merchant_connector_id":null,"incremental_authorization_allowed":null,"authorization_count":null,"incremental_authorizations":null,"external_authentication_details":null,"external_3ds_authentication_attempted":false,"expires_on":"2024-10-23T15:41:05.969Z","fingerprint":null,"browser_info":null,"payment_method_id":null,"payment_method_status":null,"updated":"2024-10-23T12:54:25.979Z","charges":null,"frm_metadata":null,"merchant_order_reference_id":null,"order_tax_amount":null,"connector_mandate_id":null} Open payment link and complete the txn https://github.com/user-attachments/assets/0160ec30-c991-4f86-a5d0-539958e8b8f8 </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
<think> PR Context: - Title: fix(deployment-config): remove invalid currencies from worldpay filters - Merged: None - Files changed: 1 files - Commits: 1 commits Implementation approach: (cherry picked from commit aee11c560e427195a0d321dff19c0d33ec60ba64) ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Hotfix PR for #6400 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <! </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 6400, "pr_number": 6422, "commits_count": 0, "files_changed": 1, "response_length": 785, "file_count": 0, "needs_breakdown": false}
chore(docker): prefix Hyperswitch Docker image URIs with `docker.juspay.io` ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR updates Hyperswitch Docker images to be prefixed by `docker.juspay.io`. I've just done a global search-replace to be honest. ## 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)? --> Tried the Docker Compose setup locally, didn't "test" out any of the other changes though. ## 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
<think> PR Context: - Title: chore(docker): prefix Hyperswitch Docker image URIs with `docker.juspay.io` - Merged: 2025-03-21T11:37:07Z - Files changed: 4 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- 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 i </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 7368, "pr_number": 7592, "commits_count": 0, "files_changed": 4, "response_length": 805, "file_count": 0, "needs_breakdown": false}
[CHORE] Bump Cypress Dependencies Current versions are outdated. <img width="469" height="327" alt="Image" src="https://github.com/user-attachments/assets/507dfa9e-754c-4cb5-9f86-41558769f513" />
<think> PR Context: - Title: chore: update devDependencies for cypress - Merged: 2025-07-28T07:44:58Z - Files changed: 3 files - Commits: 6 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [x] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR bumps Cypress and its dependencies to its latest versions. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8736, "pr_number": 8735, "commits_count": 0, "files_changed": 3, "response_length": 771, "file_count": 0, "needs_breakdown": false}
fix(connector): [Cybersource] remove newline in billing address with space ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Newline in billing address failing the payment in production (speculated). This pr removes the newline (if present) in billing address with space. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## 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)? --> Tested through postman: - Create a MCA for cybersource: - Create a Payment with Cybersource: ``` { "amount": 499, "currency": "USD", "confirm": true, "capture_method": "automatic", "customer_id": "test_rec7", "email": "[email protected]", "request_external_three_ds_authentication": true, "customer_acceptance": { "acceptance_type": "online" }, "payment_method": "card", "payment_method_type": "credit", "payment_method_data": { "card": { "card_number": "4242424242424242", "card_exp_month": "03", "card_exp_year": "2030", "card_holder_name": "Test Holder", "card_cvc": "737" } }, "billing": { "address": { "city": "test", "country": "US", "line1": "here is some \n there is some \n none is some? \n ", "line2": "there", "line3": "anywhere", "zip": "560095", "state": "Washington", "first_name": "One", "last_name": "Two" }, "phone": { "number": "1234567890", "country_code": "+1" }, "email": "[email protected]" }, "authentication_type": "no_three_ds" } ``` - The payment should be succeeded ``` { "payment_id": "pay_LGt7Tbil8tLko2OpVHqJ", "merchant_id": "merchant_1730121122", "status": "succeeded", "amount": 499, "net_amount": 499, "shipping_cost": null, "amount_capturable": 0, "amount_received": 499, "connector": "cybersource", "client_secret": "pay_LGt7Tbil8tLko2OpVHqJ_secret_dycae051HVaAJYXSCdCH", "created": "2024-10-28T13:12:22.609Z", "currency": "USD", "customer_id": "test_rec7", "customer": { "id": "test_rec7", "name": null, "email": "[email protected]", "phone": null, "phone_country_code": null }, "description": null, "refunds": null, "disputes": null, "mandate_id": null, "mandate_data": null, "setup_future_usage": null, "off_session": null, "capture_on": null, "capture_method": "automatic", "payment_method": "card", "payment_method_data": { "card": { "last4": "4242", "card_type": null, "card_network": "Visa", "card_issuer": null, "card_issuing_country": null, "card_isin": "424242", "card_extended_bin": null, "card_exp_month": "03", "card_exp_year": "2030", "card_holder_name": null, "payment_checks": { "avs_response": { "code": "Y", "codeRaw": "Y" }, "card_verification": { "resultCode": "M", "resultCodeRaw": "M" } }, "authentication_data": null }, "billing": null }, "payment_token": "token_LyziBYSQnkubuQbE91YF", "shipping": null, "billing": { "address": { "city": "test", "country": "US", "line1": "here is some \n there is some \n none is some? \n ", "line2": "there", "line3": "anywhere", "zip": "560095", "state": "Washington", "first_name": "One", "last_name": "Two" }, "phone": { "number": "1234567890", "country_code": "+1" }, "email": "[email protected]" }, "order_details": null, "email": "[email protected]", "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": "test_rec7", "created_at": 1730121142, "expires": 1730124742, "secret": "epk_bb3a50134caa4214ad2ea7b534184d26" }, "manual_retry_allowed": false, "connector_transaction_id": "7301211437366791304951", "frm_message": null, "metadata": null, "connector_metadata": null, "feature_metadata": null, "reference_id": "pay_LGt7Tbil8tLko2OpVHqJ_1", "payment_link": null, "profile_id": "pro_2pDEf41cwojHtrM9xItk", "surcharge_details": null, "attempt_count": 1, "merchant_decision": null, "merchant_connector_id": "mca_AFVVYXejTDoWa4IgaPnw", "incremental_authorization_allowed": false, "authorization_count": null, "incremental_authorizations": null, "external_authentication_details": null, "external_3ds_authentication_attempted": false, "expires_on": "2024-10-28T13:27:22.609Z", "fingerprint": null, "browser_info": null, "payment_method_id": null, "payment_method_status": null, "updated": "2024-10-28T13:12:24.692Z", "charges": null, "frm_metadata": null, "merchant_order_reference_id": null, "order_tax_amount": null, "connector_mandate_id": null } ``` ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt --all` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed the submitted code - [ ] I added unit tests for my changes where possible
<think> PR Context: - Title: fix(connector): [Cybersource] remove newline in billing address with space - Merged: 2024-11-05T10:52:11Z - Files changed: 1 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Newline in billing address failing the payment in production (speculated). This pr removes the newline (if present) in billing address with space. Corresponding hotfix PR to #6478 ### Additional Changes - [ ] This PR modifies the API </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(connector): [Cybersource] remove newline in billing address with space (#6480) Files to modify: **crates/router/src/connector/cybersource/transformers.rs** Add: - function: private::remove_new_line - function: private::remove_new_line - trait: pub::RemoveNewLine - impl: impl RemoveNewLine for Option<Secret<String>> - impl: impl RemoveNewLine for Option<String>
{"issue_number": 6478, "pr_number": 6480, "commits_count": 1, "files_changed": 1, "response_length": 1197, "file_count": 3, "needs_breakdown": false}
[BUG] DB constraints for events table ### Bug Description `idempotent_event_id` column is a combination of `payment_id` and the `event_type`. Length of this field in DB can be a maximum of 64 characters. However, since `payment_id` can also be 64 characters, the resulting `idempotent_event_id` can easily exceed 64 characters leading to inconsistent behavior in the flows. Currently, this is breaking outgoing webhooks flow. ### Expected Behavior Outgoing webhooks flow should succeed. ### Actual Behavior Outgoing webhooks flow breaks due to DB constraints. ``` { "message": "[INCOMING_WEBHOOKS_CORE - EVENT] Incoming webhook flow failed", "extra": { "error": "{\"error\":{\"type\":\"router_error\",\"code\":\"WE_03\",\"message\":\"There was some issue processing the webhook\"}}\\n├╴at crates/router/src/core/webhooks/outgoing.rs:196:18\\n├╴Failed to insert event in events table\\n├╴Incoming webhook flow for payments failed\\n│\\n╰─▶ DatabaseError: An unknown error occurred\\n ├╴at /router/crates/diesel_models/src/query/generics.rs:89:36\\n ├╴Error while inserting EventNew { event_id: \"evt_01979b2125017d93bb4d846d42979839\", event_type: PaymentAuthorized, event_class: Payments, is_webhook_notified: false, primary_object_id: \"AFR_202506237e491a4f-1bd8-4d97-a9a6-a2f86832bc79\", primary_object_type: PaymentDetails, created_at: 2025-06-23 4:52:10.113410262, merchant_id: Some(MerchantId(\"merchant_1741787326\")), business_profile_id: Some(ProfileId(\"pro_r3uCseg4NT35RBFpmUPA\")), primary_object_created_at: Some(2025-06-23 4:51:14.154239), idempotent_event_id: Some(\"AFR_202506237e491a4f-1bd8-4d97-a9a6-a2f86832bc79_payment_authorized\"), initial_attempt_id: Some(\"evt_01979b2125017d93bb4d846d42979839\"), request: Some(Encryption { inner: *** Encrypted data of length 7223 bytes *** }), response: None, delivery_attempt: Some(InitialAttempt), metadata: Some(Payment { payment_id: PaymentId(\"AFR_202506237e491a4f-1bd8-4d97-a9a6-a2f86832bc79\") }), is_overall_delivery_successful: Some(false) }\\n │\\n ╰─▶ value too long for type character varying(64)\\n ╰╴at /router/crates/diesel_models/src/query/generics.rs:89:22\\n ╰╴at crates/router/src/db/events.rs:129:30" } } ``` ### Steps To Reproduce -- ### Context For The Bug -- ### Environment -- ### Have you spent some time checking if this bug has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? None
<think> PR Context: - Title: fix(webhooks): add idempotent_event_id generation using URL-safe Base64 (no padding) and SHA256 digest - Merged: 2025-09-22T08:30:21Z - Files changed: 7 files - Commits: 7 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This change updates the idempotent_event_id generation to first hash the base string with SHA256 and then encode it using URL-safe Base64 without padding. By doing this, the generated IDs are guaranteed to be short and deterministic, ensuring </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(webhooks): add idempotent_event_id generation using URL-safe Base64 (no padding) and SHA256 dige Files to modify: **crates/common_utils/src/consts.rs** Modify existing code **crates/router/src/core/errors.rs** Modify existing code **crates/router/src/core/webhooks/outgoing.rs** Modify existing code **crates/router/src/core/webhooks/outgoing_v2.rs** Modify existing code **crates/router/src/core/webhooks/utils.rs** Modify existing code **crates/router/src/core/webhooks/webhook_events.rs** Modify existing code **crates/router/src/workflows/outgoing_webhook_retry.rs** Modify existing code
{"issue_number": 8460, "pr_number": 9405, "commits_count": 1, "files_changed": 7, "response_length": 1452, "file_count": 9, "needs_breakdown": false}
Add audit events for PaymentStatus update Created from #4525 This covers adding events for PaymentStatus operation This event should include the payment data similar to [PaymentCancel](https://github.com/juspay/hyperswitch/pull/4166) It should also include any metadata for the event e.g reason for payment rejection, error codes, rejection source etc ### Submission Process: - Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself. - Once assigned, submit a pull request (PR). - Maintainers will review and provide feedback, if any. - Maintainers can unassign issues due to inactivity, [read more here](https://github.com/juspay/hyperswitch/wiki/Hacktoberfest-Contribution-Rules). Refer [here](https://github.com/juspay/hyperswitch/blob/main/docs/TERMS_OF_CONTEST.md) for Terms and conditions for the contest.
<think> PR Context: - Title: feat(payments): Add audit events for PaymentStatus update - Merged: 2024-12-16T12:08:46Z - Files changed: 2 files - Commits: 8 commits Implementation approach: ## Type of Change - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds an Audit event for the PaymentStatus operation. ### Additional Changes - [x] This PR modifies the files below - `crates/router/src/core/payments/operations/payment_status.rs` - `crates/router/src/events/audit_events.rs` ## Motivation and Context This PR fixes #4677 ## How did you test it - </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(payments): Add audit events for PaymentStatus update (#6520) Files to modify: **crates/router/src/core/payments/operations/payment_status.rs** Modify existing code **crates/router/src/events/audit_events.rs** Modify existing code
{"issue_number": 4677, "pr_number": 6520, "commits_count": 1, "files_changed": 2, "response_length": 1031, "file_count": 4, "needs_breakdown": false}
[BUG]: [TSYS] Payments Failing Across All Flows ### Feature Description/Summary TSYS (Total System Services) is a global payment processing platform that provides payment gateway services for merchants, payment facilitators, and acquirers. It enables businesses to accept credit and debit card payments securely across multiple channels (e-commerce, in-store, mobile, etc.). The gateway facilitates authorization, capture, settlement, and reporting while ensuring compliance with industry security standards such as PCI DSS. ### Context While attempting to process payments across all available flows using the TSYS gateway, we are consistently running into the following error response from their API in our current Hyperswitch integration: ``` SaleResponse(ErrorResponse(TsysErrorResponse { status: Fail, response_code: "F9901", response_message: "Invalid content was found starting with element 'orderNumber'. One of '{paymentFacilitatorIdentifier, paymentFacilitatorName, subMerchantIdentifier, subMerchantName, subMerchantCountryCode, subMerchantStateCode, subMerchantCity, subMerchantPostalCode, subMerchantEmailID, subMerchantPhone, isRecurring, isoIdentifier, registeredUserIndicator, laneID, authorizationIndicator, splitTenderPayment, splitTenderID, customerDetails, industryType, merchantCategoryCode, customFieldDetails, IVRMid, IVRVnumber, recipientDetails, acquirerInternalReferenceNumber, acceptorStreetAddress, serviceLocationCity, serviceLocationGeoCoordinates, skipDuplicateCheck}' is expected., " })) ``` ### Starter Tasks - Go ahead to the connector documentation and attempt to hit the connector's direct cURLs and make a happy case. - Identify the current integration issue in Hyperswitch by comparing the connector's request body and make relevant changes in the Hyperswitch codebase. ### Implementation Hints - You can go to `crates/hyperswitch_connectors/src/connectors/tsys.rs` and `crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs` and make relevant changes according to what's gone in the current integration. - Head to this documentation to get some clarity about the request and response schemas : [URL](https://www.google.com/url?q=https://developerportal.transit-pass.com/developerportal/resources/dist/%23/api-specs/.%252Fassets%252Fbuild%252Fapi%252FAPI3.0%252FCreditServices%252FAuth%252Findex.html%2523auth&sa=D&source=editors&ust=1757917256458963&usg=AOvVaw0Yt5vvn4-D6Z0T09ock1aK) ### Acceptance Criteria - [ ] Request and Response body added for each of the flows where integrity check is applied. - [ ] All the required GitHub checks passing - [ ] Formatted the code using `cargo +nightly fmt --all` ### How to Test it - Create a Merchant Account in local - Create an API Key - Add the connector - Tsys - Test out the flows ### Mentor Contact - Tag @bsayak03 [Sayak Bhattacharya] in the comments if you have any doubts/queries ### Resources Here is the connector documentation link : [URL](https://www.google.com/url?q=https://developerportal.transit-pass.com/developerportal/resources/dist/%23/api-specs/.%252Fassets%252Fbuild%252Fapi%252FAPI3.0%252FCreditServices%252FAuth%252Findex.html%2523auth&sa=D&source=editors&ust=1757917256458963&usg=AOvVaw0Yt5vvn4-D6Z0T09ock1aK) ### Pre-Flight #### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue #### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Submission Process: - Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself. - Once assigned, submit a pull request (PR). - Maintainers will review and provide feedback, if any. - Maintainers can unassign issues due to inactivity, [read more here](https://github.com/juspay/hyperswitch/wiki/Hacktoberfest-Contribution-Rules). Refer [here](https://github.com/juspay/hyperswitch/blob/main/docs/TERMS_OF_CONTEST.md) for Terms and conditions for the contest.
<think> PR Context: - Title: fix(connectors): [TSYS] change order of order_number in tsys auth request body - Merged: 2025-10-08T15:39:41Z - Files changed: 1 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR fixes the request body order of the TSYS contract for the auth request ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide li </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(connectors): [TSYS] change order of order_number in tsys auth request body (#9579) Files to modify: **crates/hyperswitch_connectors/src/connectors/tsys/transformers.rs** Modify existing code
{"issue_number": 9375, "pr_number": 9579, "commits_count": 1, "files_changed": 1, "response_length": 1009, "file_count": 3, "needs_breakdown": false}
Pre-configuring an account in the local setup using docker Pre-configuring an account in the local setup using docker
<think> PR Context: - Title: fix: updated the docker setup - Merged: 2025-05-21T09:51:53Z - Files changed: 2 files - Commits: 3 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- 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. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifi </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8091, "pr_number": 8093, "commits_count": 0, "files_changed": 2, "response_length": 759, "file_count": 0, "needs_breakdown": false}
One click docker setup A script is needed to ensure one click docker setup, to minimise issues faced by users. > Run the whole setup with simple command > Show output with localhost links for different setups
<think> PR Context: - Title: docs: update the setup docs - Merged: 2025-04-24T07:56:02Z - Files changed: 2 files - Commits: 5 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [X] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Updated the readme and local setup guide to add the new script ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment varia </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 7761, "pr_number": 7839, "commits_count": 0, "files_changed": 2, "response_length": 757, "file_count": 0, "needs_breakdown": false}
[FEATURE] : [CONNECTOR] Add Billwerk, Fiservemea, Tsys supported payment methods, currencies and countries in feature matrix ### Feature Description Add Billwerk, Fiservemea, Tsys supported payment methods, currencies and countries in feature matrix ### Possible Implementation Add Billwerk, Fiservemea, Tsys supported payment methods, currencies and countries in feature matrix ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: feat(connector): [BILLWERK, FISERVEMEA, TSYS] add in feature matrix api - Merged: 2025-03-11T13:56:43Z - Files changed: 9 files - Commits: 3 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add Billwerk, Fiservemea, Tsys supported payment methods, currencies and countries in feature matrix ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies appli </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): [BILLWERK, FISERVEMEA, TSYS] add in feature matrix api (#7165) Co-authored-by: Anur Files to modify: **crates/hyperswitch_connectors/src/connectors/billwerk.rs** Remove: - function: private::validate_connector_against_payment_request - impl: impl ConnectorValidation for Billwerk - impl: impl ConnectorSpecifications for Billwerk Add: - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - impl: impl ConnectorValidation for Billwerk - impl: impl ConnectorSpecifications for Billwerk **crates/hyperswitch_connectors/src/connectors/fiservemea.rs** Remove: - function: private::validate_connector_against_payment_request - impl: impl ConnectorValidation for Fiservemea - impl: impl ConnectorSpecifications for Fiservemea Add: - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - impl: impl ConnectorValidation for Fiservemea - impl: impl ConnectorSpecifications for Fiservemea **crates/hyperswitch_connectors/src/connectors/tsys.rs** Remove: - function: private::validate_connector_against_payment_request - impl: impl ConnectorValidation for Tsys - impl: impl ConnectorSpecifications for Tsys Add: - function: private::get_connector_about - function: private::get_supported_payment_methods - function: private::get_supported_webhook_flows - impl: impl ConnectorValidation for Tsys - impl: impl ConnectorSpecifications for Tsys
{"issue_number": 7164, "pr_number": 7165, "commits_count": 1, "files_changed": 9, "response_length": 2436, "file_count": 5, "needs_breakdown": false}
Updating Errors in the API-ref Docs Updating Errors in the API-ref Docs
<think> PR Context: - Title: docs: Added desc. for wallets other than AP, GP - Merged: 2024-10-29T07:56:09Z - Files changed: 3 files - Commits: 5 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [X] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Closes #5305 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with cor </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** docs: Added desc. for wallets other than AP, GP (#6452) Co-authored-by: hyperswitch-bot[bot] <148525 Files to modify: **crates/api_models/src/payments.rs** Modify existing code
{"issue_number": 5305, "pr_number": 6452, "commits_count": 1, "files_changed": 3, "response_length": 960, "file_count": 3, "needs_breakdown": false}
[BUG]: Decryption failure in chat prevents retrieval of conversation history Internal users are unable to view their past chat conversations through the chat/ai/list endpoint, which is meant to be used for internal users. When attempting to retrieve the chat history, the system fails to decrypt the stored messages, resulting in error.
<think> PR Context: - Title: fix(chat): alter encryption logic for ai service - Merged: 2025-10-01T13:05:25Z - Files changed: 1 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR addresses an issue where chat conversation history could not be decrypted in the `chat/ai/list` endpoint. The root cause was an inconsistency between the encryption method used when storing chat interactions (`chat/ai/data`) and the decryption method used when retrieving them </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(chat): alter encryption logic for ai service (#9562) Files to modify: **crates/router/src/utils/chat.rs** Modify existing code
{"issue_number": 9561, "pr_number": 9562, "commits_count": 1, "files_changed": 1, "response_length": 915, "file_count": 3, "needs_breakdown": false}
feat(users): support tenant level users - Add api to create tenant_admin - Create org by tenant level user - Support tenant entity: tenant level roles/permission
<think> PR Context: - Title: feat(users): add support for tenant level users - Merged: 2024-12-06T13:19:57Z - Files changed: 22 files - Commits: 15 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Add api to create tenant users - Add api to create orgs - Support tenant level entity for the user hierarchy A tenant level user should see dashboard as seen by the org admin. He will be pinned to one org, merchant and profile. And he can switch between any org in the given ten </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(users): add support for tenant level users (#6708) Co-authored-by: hyperswitch-bot[bot] <148525 Files to modify: **crates/api_models/src/events/user.rs** Modify existing code **crates/api_models/src/user.rs** Add: - struct: pub::CreateTenantUserRequest - struct: pub::UserOrgMerchantCreateRequest **crates/common_enums/src/enums.rs** Modify existing code **crates/common_utils/src/consts.rs** Modify existing code **crates/diesel_models/src/query/merchant_account.rs** Add: - function: pub::list_all_merchant_accounts **crates/router/src/analytics.rs** Modify existing code **crates/router/src/consts/user.rs** Modify existing code **crates/router/src/core/user.rs** Add: - function: pub::create_tenant_user - function: pub::create_org_merchant_for_user **crates/router/src/core/user_role.rs** Modify existing code **crates/router/src/core/user_role/role.rs** Modify existing code **crates/router/src/db/kafka_store.rs** Add: - function: private::list_merchant_and_org_ids **crates/router/src/db/merchant_account.rs** Add: - function: private::list_merchant_and_org_ids - function: private::list_merchant_and_org_ids **crates/router/src/routes/app.rs** Modify existing code **crates/router/src/routes/lock_utils.rs** Modify existing code **crates/router/src/routes/user.rs** Add: - function: pub::create_tenant_user - function: pub::user_org_create **crates/router/src/services/authorization/permissions.rs** Modify existing code **crates/router/src/services/authorization/roles/predefined_roles.rs** Modify existing code **crates/router/src/types/domain/user.rs** Add: - function: private::from - function: private::foreign_from - function: private::from - function: private::try_from - function: private::from - struct: pub::MerchantAccountIdentifier - struct: pub::TenantLevel - impl: impl From<(user_api::CreateTenantUserRequest, MerchantAccountIdentifier)> for NewUserOrganization - impl: impl ForeignFrom<api_models::user::UserOrgMerchantCreateRequest> for diesel_models::organization::OrganizationNew - impl: impl From<(user_api::CreateTenantUserRequest, MerchantAccountIdentifier)> for NewUserMerchant - impl: impl TryFrom<(user_api::CreateTenantUserRequest, MerchantAccountIdentifier)> for NewUser - impl: impl From<TenantLevel> for EntityInfo **crates/router/src/types/domain/user/decision_manager.rs** Modify existing code **crates/router/src/utils/user.rs** Add: - function: pub::create_merchant_account_request_for_org **crates/router/src/utils/user_role.rs** Add: - function: pub::get_single_org_id **crates/router_env/src/logger/types.rs** Modify existing code
{"issue_number": 6707, "pr_number": 6708, "commits_count": 1, "files_changed": 22, "response_length": 3525, "file_count": 24, "needs_breakdown": true}
Fix: populating the docker related changes from main to stable release Replicating https://github.com/juspay/hyperswitch/issues/8091 https://github.com/juspay/hyperswitch/pull/8092 to stable release
<think> PR Context: - Title: fix: updated the docker setup - Merged: 2025-05-22T09:46:58Z - Files changed: 2 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [X] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Enhanced the script to pre-configure a user and a dummy connector in the control center for the local setup. replica of https://github.com/juspay/hyperswitch/pull/8093 on the main ### Additional Changes - [ ] This PR modifies the API </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8094, "pr_number": 8092, "commits_count": 0, "files_changed": 2, "response_length": 759, "file_count": 0, "needs_breakdown": false}
feat(core): Add record attempt operation for revenue recovery webhooks ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> **Revenue record operation** In revenue recovery webhook flow, we mainly consume 3 types of events 1) PaymentFailure 2) PaymentSuccess 3) InvoiceCancel For PaymentFailure or PaymentSuccess scenario we need to record the attempt and update the payment intent fields. This PR adds support for this operations. **Why do we need to record the payment attempts ?** To predict the next schedule time of mit transaction we need previous attempts information like error message, code and billing info, mandate details etc. So we store this info in payment_attempt against intent(invoice). **Why do we need to update payment intent ?** Intent Status should be altered based on attempt status. Apart from this info like no of retries, payment method token details needs to be update in update trackers of record attempt operation. ### Additional Changes - [x] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## 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)? --> Testcase 1: create payment connector mca : ``` curl --location 'http://localhost:8080/v2/connector-accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-merchant-id: cloth_seller_FFzEuYGiJhp3SfL7AXoZ' \ --header 'x-profile-id: pro_gj36mgkfbJuFw2ZVvzX8' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "payment_processor", "connector_name": "stripe", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "stripe apikey" }, "connector_webhook_details": { "merchant_secret": "" }, "profile_id": "pro_gj36mgkfbJuFw2ZVvzX8" }' ``` response : ``` { "connector_type": "payment_processor", "connector_name": "stripe", "connector_label": "stripe_business", "id": "mca_oAXqVf3BZs7bOS0iNhV7", "profile_id": "pro_gj36mgkfbJuFw2ZVvzX8", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "sk*******************************************************************************************************5b" }, "payment_methods_enabled": null, "connector_webhook_details": { "merchant_secret": "", "additional_secret": null }, "metadata": null, "disabled": false, "frm_configs": null, "applepay_verified_domains": null, "pm_auth_config": null, "status": "active", "additional_merchant_data": null, "connector_wallets_details": null, "feature_metadata": null } ``` get the payment connector mca and create billing connector mca Create billing connector mca ``` curl --location 'http://localhost:8080/v2/connector-accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-merchant-id: cloth_seller_FFzEuYGiJhp3SfL7AXoZ' \ --header 'x-profile-id: pro_gj36mgkfbJuFw2ZVvzX8' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "billing_processor", "connector_name": "chargebee", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "chargebee apikey" }, "connector_webhook_details": { "merchant_secret": "chargebee", "additional_secret" : "password" }, "feature_metadata" : { "revenue_recovery" : { "max_retry_count" : 27, "billing_connector_retry_threshold" : 16, "billing_account_reference" :{ "mca_oAXqVf3BZs7bOS0iNhV7" : "gw_16BlyOUaPA0eq12MZ" } } }, "profile_id": "pro_gj36mgkfbJuFw2ZVvzX8" }' ``` response : ``` { "connector_type": "payment_processor", "connector_name": "chargebee", "connector_label": "chargebee_business", "id": "mca_1WvloGjsk5KcxOZ6fBPd", "profile_id": "pro_gj36mgkfbJuFw2ZVvzX8", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "sk*******************************************************************************************************5b" }, "payment_methods_enabled": null, "connector_webhook_details": { "merchant_secret": "chargebee", "additional_secret": "password" }, "metadata": null, "disabled": false, "frm_configs": null, "applepay_verified_domains": null, "pm_auth_config": null, "status": "active", "additional_merchant_data": null, "connector_wallets_details": null, "feature_metadata": { "revenue_recovery": { "max_retry_count": 27, "billing_connector_retry_threshold": 16, "billing_account_reference": { "mca_oAXqVf3BZs7bOS0iNhV7": "gw_16BlyOUaPA0eq12MZ" } } } } ``` Send chargebee simulated webhook either from dashboard or postman request : ``` curl --location 'http://localhost:8080/v2/webhooks/cloth_seller_FFzEuYGiJhp3SfL7AXoZ/pro_gj36mgkfbJuFw2ZVvzX8/mca_1WvloGjsk5KcxOZ6fBPd' \ --header 'Content-Type: application/json' \ --header 'Authorization: ••••••' \ --data-raw '{ "id": "ev_169vy3UaPFn4L4mf", "occurred_at": 1737361021, "source": "admin_console", "user": "[email protected]", "object": "event", "api_version": "v2", "content": { "transaction": { "id": "txn_169vy3UaPFmC44me", "customer_id": "Azq8o5UaLqWWvyGd", "subscription_id": "Azq8o5UaLr2WnyHG", "gateway_account_id": "gw_16BlyOUaPA0eq12MZ", "payment_source_id": "pm_169vy3UaPDo0t4hL", "payment_method": "card", "gateway": "stripe", "type": "payment", "date": 1737361019, "exchange_rate": 1, "amount": 5, "id_at_gateway": "ch_3QjGAJSHworDX2hs0B120C0A", "status": "failure", "updated_at": 1737361021, "fraud_reason": "Payment complete.", "resource_version": 1737361021397, "deleted": false, "object": "transaction", "masked_card_number": "************4242", "currency_code": "INR", "base_currency_code": "INR", "amount_unused": 0, "linked_invoices": [ { "invoice_id": "9", "applied_amount": 500000, "applied_at": 1737361021, "invoice_date": 1737361018, "invoice_total": 500000, "invoice_status": "paid" } ], "linked_refunds": [], "initiator_type": "merchant", "three_d_secure": false, "payment_method_details": "{\"card\":{\"first_name\":\"test2\",\"last_name\":\"name2\",\"iin\":\"424242\",\"last4\":\"4242\",\"funding_type\":\"credit\",\"expiry_month\":12,\"expiry_year\":2026,\"billing_addr1\":\"asdf\",\"billing_addr2\":\"asd\",\"billing_city\":\"asdf\",\"billing_state\":\"asdfaf\",\"billing_country\":\"AF\",\"billing_zip\":\"12345\",\"masked_number\":\"************4242\",\"object\":\"card\",\"brand\":\"visa\"}}" }, "invoice": { "id": "invoice_1234", "customer_id": "Azq8o5UaLqWWvyGd", "subscription_id": "Azq8o5UaLr2WnyHG", "recurring": false, "status": "paid", "price_type": "tax_exclusive", "date": 1737361018, "due_date": 1737361018, "net_term_days": 0, "exchange_rate": 1, "total": 5, "amount_paid": 0, "amount_adjusted": 0, "write_off_amount": 0, "credits_applied": 0, "amount_due": 0, "paid_at": 1737361019, "updated_at": 1737361021, "resource_version": 1737361021401, "deleted": false, "object": "invoice", "first_invoice": false, "amount_to_collect": 0, "round_off_amount": 0, "has_advance_charges": false, "currency_code": "INR", "base_currency_code": "INR", "generated_at": 1737361018, "is_gifted": false, "term_finalized": true, "channel": "web", "tax": 0, "line_items": [ { "id": "li_169vy3UaPFmBR4md", "date_from": 1737361004, "date_to": 1737361004, "unit_amount": 500000, "quantity": 1, "amount": 500000, "pricing_model": "flat_fee", "is_taxed": false, "tax_amount": 0, "object": "line_item", "subscription_id": "Azq8o5UaLr2WnyHG", "customer_id": "Azq8o5UaLqWWvyGd", "description": "Implementation Charge", "entity_type": "charge_item_price", "entity_id": "cbdemo_implementation-charge-INR", "tax_exempt_reason": "tax_not_configured", "discount_amount": 0, "item_level_discount_amount": 0 } ], "sub_total": 500000, "linked_payments": [ { "txn_id": "txn_169vy3UaPFmC44me", "applied_amount": 500000, "applied_at": 1737361021, "txn_status": "success", "txn_date": 1737361019, "txn_amount": 500000 } ], "applied_credits": [], "adjustment_credit_notes": [], "issued_credit_notes": [], "linked_orders": [], "dunning_attempts": [], "billing_address": { "first_name": "test1", "last_name": "name", "email": "[email protected]", "company": "johndoe", "phone": "+91 83 17 575848", "line1": "asdf", "line2": "asd", "line3": "ahjkd", "city": "asdf", "state_code": "TG", "state": "Telangana", "country": "IN", "zip": "561432", "validation_status": "not_validated", "object": "billing_address" }, "site_details_at_creation": { "timezone": "Asia/Calcutta" } }, "customer": { "id": "Azq8o5UaLqWWvyGd", "first_name": "john", "last_name": "doe", "email": "[email protected]", "phone": "831 757 5848", "company": "johndoe", "auto_collection": "on", "net_term_days": 0, "allow_direct_debit": false, "created_at": 1737310670, "created_from_ip": "205.254.163.189", "taxability": "taxable", "updated_at": 1737360899, "pii_cleared": "active", "channel": "web", "resource_version": 1737360899990, "deleted": false, "object": "customer", "billing_address": { "first_name": "test1", "last_name": "name", "email": "[email protected]", "company": "johndoe", "phone": "+91 83 17 575848", "line1": "asdf", "line2": "asd", "line3": "ahjkd", "city": "asdf", "state_code": "TG", "state": "Telangana", "country": "IN", "zip": "561432", "validation_status": "not_validated", "object": "billing_address" }, "card_status": "valid", "promotional_credits": 0, "refundable_credits": 0, "excess_payments": 0, "unbilled_charges": 0, "preferred_currency_code": "INR", "mrr": 0, "primary_payment_source_id": "pm_169vy3UaPDo0t4hL", "payment_method": { "object": "payment_method", "type": "card", "reference_id": "cus_RcUo8xTwe0sHP7/card_1QjG2dSHworDX2hs6YIjKdML", "gateway": "stripe", "gateway_account_id": "gw_16BlyOUaPA0eq12MZ", "status": "valid" } }, "subscription": { "id": "Azq8o5UaLr2WnyHG", "billing_period": 1, "billing_period_unit": "month", "customer_id": "Azq8o5UaLqWWvyGd", "status": "active", "current_term_start": 1737310793, "current_term_end": 1739989193, "next_billing_at": 1739989193, "created_at": 1737310793, "started_at": 1737310793, "activated_at": 1737310793, "created_from_ip": "205.254.163.189", "updated_at": 1737310799, "has_scheduled_changes": false, "channel": "web", "resource_version": 1737310799688, "deleted": false, "object": "subscription", "currency_code": "INR", "subscription_items": [ { "item_price_id": "cbdemo_premium-INR-monthly", "item_type": "plan", "quantity": 1, "unit_price": 100000, "amount": 0, "free_quantity": 3, "object": "subscription_item" } ], "shipping_address": { "first_name": "test1", "last_name": "name", "email": "[email protected]", "company": "johndoe", "phone": "+91 83 17 575848", "line1": "asdf", "line2": "asd", "line3": "ahjkd", "city": "asdf", "state_code": "TG", "state": "Telangana", "country": "IN", "zip": "561432", "validation_status": "not_validated", "object": "shipping_address" }, "due_invoices_count": 0, "mrr": 0, "exchange_rate": 1, "base_currency_code": "INR", "has_scheduled_advance_invoices": false } }, "event_type": "payment_failed", "webhook_status": "scheduled", "webhooks": [ { "id": "whv2_6oZfZUaLmtchA5Bl", "webhook_status": "scheduled", "object": "webhook" } ] }' ``` This should create Payment intent, payment attempt in our system with right values in DB Payment intent details in DB ![Screenshot 2025-03-05 at 12 43 36 PM](https://github.com/user-attachments/assets/a584e694-3c44-48ed-862f-eea8d756ecc3) Payment attempt details in DB ![Screenshot 2025-03-05 at 12 41 02 PM](https://github.com/user-attachments/assets/3b9762b2-9c60-43c5-be93-646f74cacd38) Test case 2 : change the transaction id in above simulated webhooks and hit the request again, it should create new payment attempt but update the payment intent feature metadata. ![Screenshot 2025-03-05 at 1 20 35 PM](https://github.com/user-attachments/assets/f1926c83-d670-4c52-ae38-01cd39fb43e6) Test case 3 : After passing succeded transaction, we should not allow to record further transactions ![Screenshot 2025-03-05 at 1 25 47 PM](https://github.com/user-attachments/assets/dd9b3540-9289-497d-8b8d-014b7b93b82d) Note: This above webhook will still not recieve api response it will only create objects in our system . ## 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
<think> PR Context: - Title: feat(connector): Add support for chargebee recovery webhooks - Merged: 2025-02-27T13:32:06Z - Files changed: 16 files - Commits: 30 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add support for chargebee passive churn recovery webhooks. This Pr also adds billing_processor as connector type. ### Additional Changes - [x] This PR modifies the API contract - [x] This PR modifies the database schema - [ ] This PR m </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(connector): Add support for chargebee recovery webhooks (#7110) Co-authored-by: Chikke Srujan < Files to modify: **crates/api_models/src/enums.rs** Add: - function: pub::convert_billing_connector - enum: pub::BillingConnectors **crates/common_enums/src/connector_enums.rs** Modify existing code **crates/common_enums/src/enums.rs** Modify existing code **crates/common_utils/src/id_type/payment.rs** Add: - function: private::from_str - impl: impl std::str::FromStr for PaymentReferenceId **crates/connector_configs/src/connector.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/chargebee.rs** Add: - function: private::get_webhook_source_verification_signature - function: private::verify_webhook_source - function: private::get_webhook_object_reference_id - function: private::get_webhook_event_type - function: private::get_revenue_recovery_attempt_details **crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs** Add: - function: pub::get_webhook_object_from_body - function: pub::get_invoice_webhook_data_from_body - function: pub::find_connector_ids - function: private::try_from - function: private::from - function: private::from - function: private::from - function: private::from - function: private::try_from - struct: pub::ChargebeeWebhookBody - struct: pub::ChargebeeInvoiceBody - struct: pub::ChargebeeInvoiceContent - struct: pub::ChargebeeWebhookContent - struct: pub::ChargebeeInvoiceData - struct: pub::ChargebeeTransactionData - struct: pub::ChargebeePaymentMethodDetails - struct: pub::ChargebeeCardDetails - struct: pub::ChargebeeCustomer - struct: pub::ChargebeePaymentMethod - enum: pub::ChargebeeEventType - enum: pub::ChargebeeTransactionPaymentMethod - enum: pub::ChargebeeFundingType - enum: pub::ChargebeeTranasactionStatus - enum: pub::ChargebeeGateway - impl: impl ChargebeeWebhookBody - impl: impl ChargebeeInvoiceBody - impl: impl ChargebeeCustomer - impl: impl TryFrom<ChargebeeWebhookBody> for revenue_recovery::RevenueRecoveryAttemptData - impl: impl From<ChargebeeTranasactionStatus> for enums::AttemptStatus - impl: impl From<ChargebeeTransactionPaymentMethod> for enums::PaymentMethod - impl: impl From<ChargebeeFundingType> for enums::PaymentMethodType - impl: impl From<ChargebeeEventType> for api_models::webhooks::IncomingWebhookEvent - impl: impl TryFrom<ChargebeeInvoiceBody> for revenue_recovery::RevenueRecoveryInvoiceData **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
{"issue_number": 7236, "pr_number": 7110, "commits_count": 1, "files_changed": 16, "response_length": 3587, "file_count": 12, "needs_breakdown": false}
[FEATURE] : [PAYTM] Add Integrity Check Support for Authorize, PSync, Refund and RSync Flows ### Feature Description/Summary Integrity check is a scenario where there is a discrepancy between the amount sent in the request and the amount received from the connector, which is checked during response handling. ### Context Integrity checks in a payments flow are critical for ensuring data consistency, correctness, and security when dealing with amounts between Hyperswitch and connectors like Adyen, Stripe, Razorpay, etc. ### Starter Tasks - In the `handle_response` function of Authorize/PSync/Refund/RSync, you will have to call the respective functions - `get_authorise_integrity_object` for Authorize, `get_sync_integrity_object` for Payments Sync, `get_refund_integrity_object` for Refund and RSync and `get_capture_integrity_object` for Capture. - You would have to call these functions from `crates/hyperswitch_connectors/src/utils.rs`. - These functions expect `amount_convertor`, `amount` and `currency`. - You can take a look at this [PR](https://github.com/juspay/hyperswitch/pull/8075) for reference. ### Implementation Hints - You can go to `crates/hyperswitch_connectors/src/connectors/paytm.rs` and call the respective integrity check function as stated above in the `handle_response` function ### Acceptance Criteria - [ ] Request and Response body added for each of the flows where integrity check is applied. - [ ] All the required GitHub checks passing - [ ] Formatted the code using `cargo +nightly fmt --all` ### How to Test it - Hardcode the amount or currency field that is being passed to the connector different from the one you are passing in the request body - This way you would be able to reproduce the integrity checks error message while testing. ### Mentor Contact - Tag @bsayak03 [Sayak Bhattacharya] in the comments if you have any doubts/queries ### Resources Here are a few sample PRs : - https://github.com/juspay/hyperswitch/pull/8075 - https://github.com/juspay/hyperswitch/pull/8049 ### Pre-Flight #### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue #### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Submission Process: - Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself. - Once assigned, submit a pull request (PR). - Maintainers will review and provide feedback, if any. - Maintainers can unassign issues due to inactivity, [read more here](https://github.com/juspay/hyperswitch/wiki/Hacktoberfest-Contribution-Rules). Refer [here](https://github.com/juspay/hyperswitch/blob/main/docs/TERMS_OF_CONTEST.md) for Terms and conditions for the contest.
<think> PR Context: - Title: feat(connector): [PAYTM] Add Integrity Check Support for Authorize, PSync,Refund and RSync Flows - Merged: None - Files changed: 1 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> [FEATURE] : [PAYTM] Add Integrity Check Support for Authorize, PSync, Refund and RSync Flows #9211 Resolves Issue #9211 - Added integrity check functions to the paytm connector ### Additional Changes - [ ] This PR modifies the API </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 9211, "pr_number": 9246, "commits_count": 0, "files_changed": 1, "response_length": 810, "file_count": 0, "needs_breakdown": false}
feat(users): add tenant_id in user roles - Use global interface for user roles - Add column tenant_id in user_roles - Handle insertion of tenant_id - Hadle token validation, a token issued in one tenant should not work in other tenancy
<think> PR Context: - Title: feat(users): add global support in user roles - Merged: 2024-11-13T07:24:13Z - Files changed: 18 files - Commits: 9 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR includes - Use of global interface for user roles table - Add tenant_id column in user_roles table - Handle user_role insertions with correct value for tenant_id - Auth Changes: Token validation, token issued in one tenancy should not be valid in other ### Additional Ch </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(users): add global support in user roles (#6458) Files to modify: **crates/diesel_models/src/schema.rs** Modify existing code **crates/diesel_models/src/schema_v2.rs** Modify existing code **crates/diesel_models/src/user_role.rs** Modify existing code **crates/router/src/analytics.rs** Modify existing code **crates/router/src/core/errors/user.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_role.rs** Modify existing code **crates/router/src/db.rs** Modify existing code **crates/router/src/db/user_role.rs** Modify existing code **crates/router/src/services/authentication.rs** Modify existing code **crates/router/src/services/authorization.rs** Add: - function: pub::check_tenant **crates/router/src/types/domain/user.rs** Modify existing code **crates/router/src/types/domain/user/decision_manager.rs** Modify existing code **crates/router/src/utils/user.rs** Modify existing code **crates/router/src/utils/user_role.rs** Modify existing code
{"issue_number": 6457, "pr_number": 6458, "commits_count": 1, "files_changed": 18, "response_length": 1906, "file_count": 18, "needs_breakdown": true}
Connector changes for 3ds in v2 In v2, the `PreProcessing` and `CompleteAuthorize` flows will not be present. We will introduce new flows `PreAuthenticate`, `Authenticate` and `PostAuthenticate` to better represent the domain.
<think> PR Context: - Title: feat(router): Add Connector changes for 3ds (v2) - Merged: 2025-09-11T14:33:57Z - Files changed: 8 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Add `PreAuthenticate`, `Authenticate` and `PostAuthenticate` connector integration and implement them for cybersource ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] T </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(router): Add Connector changes for 3ds (v2) (#9117) Files to modify: **crates/hyperswitch_connectors/src/connectors/cybersource.rs** Add: - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_headers - function: private::get_content_type - function: private::get_url - function: private::get_request_body - function: private::build_request - function: private::handle_response - function: private::get_error_response - function: private::get_5xx_error_response - impl: impl api::PaymentsPreAuthenticate for Cybersource - impl: impl api::PaymentsPostAuthenticate for Cybersource - impl: impl api::PaymentsAuthenticate for Cybersource - impl: impl ConnectorIntegration<PreAuthenticate, PaymentsPreAuthenticateData, PaymentsResponseData> for Cybersource - impl: impl ConnectorIntegration<Authenticate, PaymentsAuthenticateData, PaymentsResponseData> for Cybersource - impl: impl ConnectorIntegration<PostAuthenticate, PaymentsPostAuthenticateData, PaymentsResponseData> for Cybersource - impl: impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Cybersource **crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs** Remove: - struct: pub::CybersourceConsumerAuthValidateResponse - struct: pub::CybersourceThreeDSMetadata - struct: pub::CybersourceConsumerAuthInformationEnrollmentResponse - struct: pub::ClientAuthCheckInfoResponse - enum: pub::CybersourceAuthEnrollmentStatus - enum: pub::CybersourcePreProcessingResponse - impl: impl TryFrom<&CybersourceRouterData<&PaymentsCompleteAuthorizeRouterData>> for [serde(rename_all = "SCREAMING_SNAKE_CASE")] Add: - function: private::from - function: private::try_from - impl: impl From<&CybersourceRouterData<&PaymentsPreAuthenticateRouterData>> for ClientReferenceInformation - impl: impl TryFrom<&CybersourceRouterData<&PaymentsPreAuthenticateRouterData>> for CybersourceAuthSetupRequest - impl: impl TryFrom<&CybersourceRouterData<&PaymentsAuthenticateRouterData>> for (item.router_data.connector_request_reference_id.clone()) - impl: impl TryFrom<&CybersourceRouterData<&PaymentsPostAuthenticateRouterData>> for (item.router_data.connector_request_reference_id.clone()) **crates/hyperswitch_connectors/src/default_implementations.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types.rs** Add: - function: private::try_from - function: private::try_from - function: private::try_from - struct: pub::PaymentsPreAuthenticateData - struct: pub::PaymentsAuthenticateData - struct: pub::PaymentsPostAuthenticateData - impl: impl TryFrom<PaymentsAuthorizeData> for PaymentsPreAuthenticateData - impl: impl TryFrom<PaymentsAuthorizeData> for PaymentsAuthenticateData - impl: impl TryFrom<PaymentsAuthorizeData> for PaymentsPostAuthenticateData **crates/hyperswitch_domain_models/src/types.rs** Modify existing code **crates/hyperswitch_interfaces/src/api/payments.rs** Add: - trait: pub::PaymentsPreAuthenticate - trait: pub::PaymentsAuthenticate - trait: pub::PaymentsPostAuthenticate **crates/hyperswitch_interfaces/src/api/payments_v2.rs** Add: - trait: pub::PaymentsPreAuthenticateV2 - trait: pub::PaymentsAuthenticateV2 - trait: pub::PaymentsPostAuthenticateV2 **crates/hyperswitch_interfaces/src/types.rs** Modify existing code
{"issue_number": 9116, "pr_number": 9117, "commits_count": 1, "files_changed": 8, "response_length": 5050, "file_count": 10, "needs_breakdown": true}
feat(connector): add template code for stripebilling add a template code for stripe billing connector
<think> PR Context: - Title: feat(connector): add template code for stripebilling - Merged: None - Files changed: 30 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description connector integration template code for stripe billing. Issue: This PR closes the issue #7212 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 7212, "pr_number": 7214, "commits_count": 0, "files_changed": 30, "response_length": 767, "file_count": 0, "needs_breakdown": false}
fix(eps_bank_name): send eps supported bank names inside the structs for sdk. ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Previously the bank names were hard coded but we needed to read form `{config}.toml` files to send the supported banks inside `user_bank_options` ## Depricating bank list on top level of `ResponsePaymentMethodTypes` as we need to send it inside particular required fields . ```rust pub struct ResponsePaymentMethodTypes { /// The payment method type enabled #[schema(example = "klarna", value_type = PaymentMethodType)] pub payment_method_type: api_enums::PaymentMethodType, /// The list of payment experiences enabled, if applicable for a payment method type pub payment_experience: Option<Vec<PaymentExperienceTypes>>, /// The list of card networks enabled, if applicable for a payment method type pub card_networks: Option<Vec<CardNetworkTypes>>, #[schema(deprecated)] // --------------------DEPRICATED-------------------------- // /// The list of banks enabled, if applicable for a payment method type pub bank_names: Option<Vec<BankCodeResponse>>, /// The Bank debit payment method information, if applicable for a payment method type. pub bank_debits: Option<BankDebitTypes>, /// The Bank transfer payment method information, if applicable for a payment method type. pub bank_transfers: Option<BankTransferTypes>, /// Required fields for the payment_method_type. pub required_fields: Option<HashMap<String, RequiredFieldInfo>>, /// surcharge details for this payment method type if exists pub surcharge_details: Option<SurchargeDetailsResponse>, /// auth service connector label for this payment method type, if exists pub pm_auth_connector: Option<String>, } ``` ## payment method types response <details> <summary>Payment Request</summary> ```json { "payment_id": "pay_6W7NAlavGWBsNle4fjCm", "merchant_id": "merchant_1751973151", "status": "requires_payment_method", "amount": 6500, "net_amount": 6500, "amount_capturable": 0, "client_secret": "pay_6W7NAlavGWBsNle4fjCm_secret_cGp7blq0k5NBezW6gCmH", "created": "2025-07-08T11:49:13.894Z", "currency": "EUR", "customer_id": "hyperswitch_sdk_demo_id", "customer": { "id": "hyperswitch_sdk_demo_id", "email": "[email protected]" }, "description": "Hello this is description", "setup_future_usage": "on_session", "capture_method": "automatic", "shipping": { "address": { "city": "Banglore", "country": "AT", "line1": "sdsdfsdf", "line2": "hsgdbhd", "line3": "alsksoe", "zip": "571201", "state": "California", "first_name": "John", "last_name": "Doe" }, "phone": { "number": "123456789", "country_code": "+1" } }, "billing": { "address": { "city": "San Fransico", "country": "AT", "line1": "1467", "line2": "Harrison Street", "line3": "Harrison Street", "zip": "94122", "state": "California", "first_name": "joseph", "last_name": "Doe" }, "phone": { "number": "8056594427", "country_code": "+91" } }, "order_details": [ { "amount": 6500, "quantity": 1, "product_name": "Apple iphone 15" } ], "email": "[email protected]", "business_label": "default", "ephemeral_key": { "customer_id": "hyperswitch_sdk_demo_id", "created_at": 1751975353, "expires": 1751978953, "secret": "epk_78740ac9b3a7426e9ed57c14c801fb4f" }, "metadata": { "udf1": "value1", "login_date": "2019-09-10T10:11:12Z", "new_customer": "true" }, "connector_metadata": { "noon": { "order_category": "applepay" } }, "profile_id": "pro_2UxGWjdVxvRMEw6zBI2V", "attempt_count": 1, "external_3ds_authentication_attempted": false, "expires_on": "2025-07-08T12:04:13.894Z", "updated": "2025-07-08T11:49:13.908Z", "force_3ds_challenge": false, "force_3ds_challenge_trigger": false } ``` </details> ### GET http://localhost:8080/account/payment_methods?client_secret=pay_gvSgEeG6HZU6PnwbHhno_secret_gTL5Uke9uC8r3XGUs3Kx ```json { "redirect_url": "https://google.com/success", "currency": "EUR", "payment_methods": [ { "payment_method": "bank_redirect", "payment_method_types": [ { "payment_method_type": "eps", "payment_experience": null, "card_networks": null, "bank_names": [ { "bank_name": [ "hypo_tirol_bank_ag", "brull_kallmus_bank_ag", "volkskreditbank_ag", "capital_bank_grawe_gruppe_ag", "btv_vier_lander_bank", "marchfelder_bank", "easybank_ag", "hypo_vorarlberg_bank_ag", "hypo_alpeadriabank_international_ag", "oberbank_ag", "hypo_noe_lb_fur_niederosterreich_u_wien", "volksbank_gruppe", "hypo_oberosterreich_salzburg_steiermark", "hypo_bank_burgenland_aktiengesellschaft", "dolomitenbank", "austrian_anadi_bank_ag", "raiffeisen_bankengruppe_osterreich", "sparda_bank_wien", "arzte_und_apotheker_bank", "bankhaus_schelhammer_und_schattera_ag", "bank_austria", "bawag_psk_ag", "schoellerbank_ag", "vr_bank_braunau", "erste_bank_und_sparkassen", "bankhaus_carl_spangler", "bks_bank_ag" ], "eligible_connectors": ["stripe"] } ], "bank_debits": null, "bank_transfers": null, "required_fields": { "billing.address.first_name": { "required_field": "payment_method_data.billing.address.first_name", "display_name": "billing_name", "field_type": "user_full_name", "value": "joseph" }, "payment_method_data.bank_redirect.eps.bank_name": { "required_field": "payment_method_data.bank_redirect.eps.bank_name", "display_name": "bank_name", "field_type": { "user_bank_options": { "options": [ "hypo_tirol_bank_ag", "brull_kallmus_bank_ag", "volkskreditbank_ag", "capital_bank_grawe_gruppe_ag", "btv_vier_lander_bank", "marchfelder_bank", "easybank_ag", "hypo_vorarlberg_bank_ag", "hypo_alpeadriabank_international_ag", "oberbank_ag", "hypo_noe_lb_fur_niederosterreich_u_wien", "volksbank_gruppe", "hypo_oberosterreich_salzburg_steiermark", "hypo_bank_burgenland_aktiengesellschaft", "dolomitenbank", "austrian_anadi_bank_ag", "raiffeisen_bankengruppe_osterreich", "sparda_bank_wien", "arzte_und_apotheker_bank", "bankhaus_schelhammer_und_schattera_ag", "bank_austria", "bawag_psk_ag", "schoellerbank_ag", "vr_bank_braunau", "erste_bank_und_sparkassen", "bankhaus_carl_spangler", "bks_bank_ag" ] } }, "value": null }, "billing.address.last_name": { "required_field": "payment_method_data.billing.address.last_name", "display_name": "billing_name", "field_type": "user_full_name", "value": "Doe" } }, "surcharge_details": null, "pm_auth_connector": null } ] } ], "mandate_payment": null, "merchant_name": "NewAge Retailer", "show_surcharge_breakup_screen": false, "payment_type": "normal", "request_external_three_ds_authentication": false, "collect_shipping_details_from_wallets": false, "collect_billing_details_from_wallets": false, "is_tax_calculation_enabled": false } ``` Related Pr: https://github.com/juspay/hyperswitch/pull/8577 ### Additional Changes - [x] This PR modifies the API contract - [x] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the issue here. If you don't have an issue, we'd recommend starting with one first so the PR can focus on the implementation (unless it is an obvious bug or documentation fix that will have little conversation). --> ## How did you test it? <!-- Did you write an integration/unit/API test to verify the code changes? Or did you test this change manually (provide relevant screenshots)? --> ## 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
<think> PR Context: - Title: fix(airwallex_bank_name): send ideal supported bank names inside the structs for sdk - Merged: None - Files changed: 9 files - Commits: 10 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Previously the bank names were hard coded but we needed to read form {config}.toml files to send the supported banks inside user_bank_options. Reference PR: #8779 <img width="1258" height="706" alt="Screenshot 2025-08-14 at 4 36 21 PM" sr </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 8779, "pr_number": 8960, "commits_count": 0, "files_changed": 9, "response_length": 799, "file_count": 0, "needs_breakdown": false}
docs: enhance cypress testing documentation with troubleshooting and … Fixes #9657 - Add comprehensive table of contents for better navigation - Include detailed environment configuration section with examples - Add extensive troubleshooting section with common issues and solutions - Include best practices for writing maintainable tests - Improve folder structure documentation with clear explanations - Add step-by-step guides for adding new connectors and test scenarios - Include multiple ways to run tests (interactive, headless, specific suites) - Add debug mode instructions and help resources - Enhance credentials file documentation with auth type explanations - Overall improvement in readability and organization for contributors ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [ ] CI/CD ## Description Enhanced the Cypress testing documentation (cypress-tests-v2/README.md) to improve the contributor experience and make it easier for new developers to set up and run tests. **Key improvements:** - Added comprehensive table of contents for better navigation - Included detailed environment configuration section with multiple setup options - Added extensive troubleshooting section covering 6 common issues with solutions - Included best practices guide for writing maintainable tests - Improved folder structure documentation with clear explanations - Added step-by-step guides for adding new connectors and test scenarios - Documented multiple ways to run tests (interactive mode, headless, specific suites) - Added debug mode instructions and help resources - Enhanced credentials file documentation with auth type explanations - Overall improvement in readability and organization ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes. Following are the paths where you can find config files: 1. `config` 2. `crates/router/src/configs` 3. `loadtest/config` --> ## Motivation and Context This documentation improvement addresses the need for better onboarding of new contributors to the Cypress testing suite. The previous README was functional but lacked: - Troubleshooting guidance for common setup issues - Best practices for writing tests - Clear examples for adding new connectors - Comprehensive environment setup instructions ## How did you test it? - Reviewed the documentation for clarity and completeness - Verified all code examples use correct syntax - Ensured all links and references are accurate - Confirmed the markdown renders properly - Validated that the troubleshooting steps address real issues developers encounter ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt --all` (N/A - documentation only) - [x] I addressed lints thrown by `cargo clippy` (N/A - documentation only) - [x] I reviewed the submitted code - [ ] I added unit tests for my changes where possible (N/A - documentation only)
<think> PR Context: - Title: docs: enhance cypress testing documentation with troubleshooting and … - Merged: None - Files changed: 2 files - Commits: 2 commits Implementation approach: Fixes #9657 - Add comprehensive table of contents for better navigation - Include detailed environment configuration section with examples - Add extensive troubleshooting section with common issues and solutions - Include best practices for writing maintainable tests - Improve folder structure documentation with clear explanations - Add step-by-step guides for adding new connectors and test scenarios - Include multiple ways to run tests (interactive, headless, specific suites) - Add de </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 9657, "pr_number": 9657, "commits_count": 0, "files_changed": 2, "response_length": 784, "file_count": 0, "needs_breakdown": false}
[FEATURE] Kv Redis feature for V2 models ### Feature Description Extend kv support for v2 models ### Possible Implementation Use existing construct to extend to v2 models ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: feat: Kv changes for V2 feature - Merged: 2025-06-26T14:22:59Z - Files changed: 15 files - Commits: 26 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description #8389 - Added Kv Redis support to - payment_intent V2, payment_attempt V2 models - Added enable Kv route for v2 merchant-account added enable kv api for v2 merchant account ` curl --location 'https://<host>/v2/merchant-accounts/:mid/kv' \ --header 'Authorization: admin-api </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat: Kv changes for V2 feature (#8198) Co-authored-by: Akshay S <[email protected]> Co-authored-by Files to modify: **crates/diesel_models/src/kv.rs** Add: - struct: pub::PaymentAttemptUpdateMems **crates/diesel_models/src/payment_attempt.rs** Add: - function: pub::apply_changeset - impl: impl PaymentAttemptUpdateInternal **crates/diesel_models/src/payment_intent.rs** Add: - function: pub::apply_changeset - impl: impl PaymentIntentUpdateInternal **crates/router/src/lib.rs** Modify existing code **crates/router/src/routes/admin.rs** Add: - function: pub::merchant_account_toggle_kv - function: pub::merchant_account_kv_status **crates/router/src/routes/app.rs** Add: - function: pub::server - impl: impl DummyConnector **crates/router/src/routes/dummy_connector.rs** Modify existing code **crates/router/src/routes/dummy_connector/core.rs** Modify existing code **crates/storage_impl/src/customers.rs** Add: - function: pub::get_global_id_label - function: pub::get_merchant_scoped_id_label - mod: private::label **crates/storage_impl/src/lib.rs** Add: - function: private::unique_constraints - function: private::table_name - impl: impl UniqueConstraints for diesel_models::PaymentAttempt **crates/storage_impl/src/payments/payment_attempt.rs** Add: - function: pub::get_profile_id_connector_transaction_label - function: pub::get_global_id_label - mod: private::label **crates/storage_impl/src/payments/payment_intent.rs** Modify existing code **crates/storage_impl/src/redis/kv_store.rs** Modify existing code
{"issue_number": 8389, "pr_number": 8198, "commits_count": 1, "files_changed": 15, "response_length": 2397, "file_count": 15, "needs_breakdown": false}
docs: API-ref revamp for better user experience API-ref revamp for better user experience
<think> PR Context: - Title: docs: changes for api ref - Merged: 2025-02-25T19:02:34Z - Files changed: 4 files - Commits: 8 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [X] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> We have changes the Intro page of the API-ref to make it more informative and navigable. Also, The API sidebar is now re-organised basis of different use-cases to improve the dev experience. Added an introduction page to payments API expla </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 7323, "pr_number": 7324, "commits_count": 0, "files_changed": 4, "response_length": 755, "file_count": 0, "needs_breakdown": false}
One click docker setup A script is needed to ensure one click docker setup, to minimise issues faced by users. > Run the whole setup with simple command > Show output with localhost links for different setups
<think> PR Context: - Title: fix: script for one click docker setup - Merged: 2025-04-13T18:11:03Z - Files changed: 2 files - Commits: 6 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [X] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added the script for showing output of ```docker compose up -d``` command, along with links to access individual components. ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 7761, "pr_number": 7806, "commits_count": 0, "files_changed": 2, "response_length": 768, "file_count": 0, "needs_breakdown": false}
refactor(permissions): Deprecate permissions from permission info API response The permissions in the permission info API are not being used and should be removed.
<think> PR Context: - Title: refactor(permissions): Remove permissions field from permission info API response - Merged: 2024-10-22T10:15:42Z - Files changed: 4 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> The permissions in the permission info API are not being used and this PR will remove them. This will help the future PRs which will introduce new kind of Permissions. ### Additional Changes - [x] This PR modifies the API contract - </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** refactor(permissions): Remove permissions field from permission info API response (#6376) Files to modify: **crates/api_models/src/user_role.rs** Remove: - struct: pub::PermissionInfo - enum: pub::Permission **crates/router/src/services/authorization/info.rs** Remove: - function: pub::get_permission_info_from_permissions **crates/router/src/services/authorization/permissions.rs** Remove: - function: pub::get_permission_description - impl: impl Permission **crates/router/src/utils/user_role.rs** Remove: - function: private::from - impl: impl From<Permission> for user_role_api::Permission
{"issue_number": 6375, "pr_number": 6376, "commits_count": 1, "files_changed": 4, "response_length": 1448, "file_count": 6, "needs_breakdown": false}
[BUG] There is a bug when the webhook response comes from ucs ### Bug Description There is a bug when the webhook response comes from ucs, the code was not able to deserialize the response ### Expected Behavior webhook response form ucs should be handle using ucs logic ### Actual Behavior a webhook failed ### Steps To Reproduce Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant. 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' ### Context For The Bug _No response_ ### Environment Are you using hyperswitch hosted version? Yes/No If yes, please provide the value of the `x-request-id` response header to help us debug your issue. If not (or if building/running locally), please provide the following details: 1. Operating System or Linux distribution: 2. Rust version (output of `rustc --version`): `` 3. App version (output of `cargo r --features vergen -- --version`): `` ### Have you spent some time checking if this bug has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? None
<think> PR Context: - Title: fix: Resolved issue of webhooks response from ucs - Merged: 2025-08-29T15:11:29Z - Files changed: 6 files - Commits: 14 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description while handling the response of UCS for webhooks Hyperswitch used to use the existing connector code (Psync's Handle Respnse) which gave error for UCS response so fixed this issue. Closes #9027 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifi </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix: Resolved issue of webhooks response from ucs (#9021) Files to modify: **crates/api_models/src/webhooks.rs** Add: - function: pub::from_ucs_event_type - impl: impl IncomingWebhookEvent **crates/common_enums/src/enums.rs** Modify existing code **crates/router/src/core/payments.rs** Modify existing code **crates/router/src/core/unified_connector_service/transformers.rs** Modify existing code **crates/router/src/core/webhooks/incoming.rs** Modify existing code **crates/router/src/services/api.rs** Add: - function: private::handle_ucs_response
{"issue_number": 9027, "pr_number": 9021, "commits_count": 1, "files_changed": 6, "response_length": 1363, "file_count": 8, "needs_breakdown": false}
Required fields absent in PML in case of Gift Card for OnSession (v2) In case of `Adyen` connector and `Givex` payment method subtype, required fields are absent in PML output when `setup_future_usage` is `OnSession` Need to move givex required fields to common in the required fields TOML
<think> PR Context: - Title: fix(config): Set common required fields for Givex (v2) - Merged: 2025-09-18T08:51:00Z - Files changed: 1 files - Commits: 1 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Moved required fields for `givex` gift card for `Adyen` from `non-mandate` to `common` ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application confi </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 9413, "pr_number": 9414, "commits_count": 0, "files_changed": 1, "response_length": 784, "file_count": 0, "needs_breakdown": false}
chore(codeowners): add codeowners data for PR reviews ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates ## Description Adding a CODEOWNERS file for facilitating PR reviews for teams ### Additional Changes - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes --> ## 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 its an obvious bug or documentation fix that will have little conversation). --> This leads to better ownership boundaries & increased efficiency for reviewers ## 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)? --> Doesn't need to be tested ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed submitted code - [ ] I added unit tests for my changes where possible - [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable
<think> PR Context: - Title: refactor: explicitly specify top redirections for secure payment and payout links - Merged: 2024-11-11T08:07:30Z - Files changed: 2 files - Commits: 2 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in https://github.com/juspay/hyperswitch-web/issues/773 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the fi </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 1, "pr_number": 6494, "commits_count": 0, "files_changed": 2, "response_length": 811, "file_count": 0, "needs_breakdown": false}
feat(router): Make `payment_method_subtype` optional We can have situations where we don't know the `payment_method_subtype`. e.g. Frontend doesn't know whether a `card` is `credit` or `debit`. To support such scenarios we need to make `payment_method_subtype` nullable
<think> PR Context: - Title: feat(router): Make payment_method_subtype optional in payment_attempt [V2] - Merged: 2025-03-24T07:53:07Z - Files changed: 16 files - Commits: 3 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Added diesel migration to make `payment_method_subtype` Nullable in `payment_attempt` table - Made `payment_method_subtype` an `Option` in request and response structs ### Additional Changes - [x] This PR modifies the API contract - </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(router): Make payment_method_subtype optional in payment_attempt [V2] (#7568) Files to modify: **crates/api_models/src/payment_methods.rs** Modify existing code **crates/api_models/src/payments.rs** Modify existing code **crates/diesel_models/src/payment_attempt.rs** Modify existing code **crates/diesel_models/src/schema_v2.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_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/revenue_recovery.rs** Modify existing code **crates/router/src/core/payment_methods.rs** Modify existing code **crates/router/src/core/payments/routing.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/types/api/payment_methods.rs** Modify existing code
{"issue_number": 7567, "pr_number": 7568, "commits_count": 1, "files_changed": 16, "response_length": 1885, "file_count": 15, "needs_breakdown": false}
feat(authz): Make permissions entity and scope aware Currently the permissions we use doesn't have any entity level context. But some of our APIs need that context. For example, 1. `payment/list` - This can only be accessible by merchant level users or higher. Profile level users should not be able to access it. 2. `payment/profile/list` - This can be accessible by all level of users. With current setup, this is not directly possible by the permissions. We had to introduce `min_entity_level` to solve this, but this is very separated from the permissions. To solve this, we need to have entity level context at permissions level itself. ### Scope for permissions The write permissions currently doesn't have access to read APIs, but since write is a superset of read, they should be able to access read APIs as well. So, this PR also introduces scope context in permissions.
<think> PR Context: - Title: feat(authz): Create a permission generator - Merged: 2024-10-24T14:36:07Z - Files changed: 30 files - Commits: 11 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> ### Entity level context in Permissions Currently the permissions we use doesn't have any entity level context. But some of our APIs need that context. For example, 1. `payment/list` - This can only be accessible by merchant level users o </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(authz): Create a permission generator (#6394) Co-authored-by: hyperswitch-bot[bot] <148525504+h Files to modify: **crates/api_models/src/user_role.rs** Remove: - enum: pub::ParentGroup **crates/common_enums/src/enums.rs** Add: - enum: pub::ParentGroup - enum: pub::Resource - enum: pub::PermissionScope **crates/router/src/analytics.rs** Modify existing code **crates/router/src/core/user_role.rs** Modify existing code **crates/router/src/routes/admin.rs** Modify existing code **crates/router/src/routes/api_keys.rs** Modify existing code **crates/router/src/routes/blocklist.rs** Modify existing code **crates/router/src/routes/connector_onboarding.rs** Modify existing code **crates/router/src/routes/customers.rs** Modify existing code **crates/router/src/routes/disputes.rs** Modify existing code **crates/router/src/routes/mandates.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/routes/payouts.rs** Modify existing code **crates/router/src/routes/profiles.rs** Modify existing code **crates/router/src/routes/recon.rs** Modify existing code **crates/router/src/routes/refunds.rs** Modify existing code **crates/router/src/routes/routing.rs** Modify existing code **crates/router/src/routes/user.rs** Modify existing code **crates/router/src/routes/user_role.rs** Modify existing code **crates/router/src/routes/verification.rs** Modify existing code **crates/router/src/routes/verify_connector.rs** Modify existing code **crates/router/src/routes/webhook_events.rs** Modify existing code **crates/router/src/services/authentication.rs** Modify existing code **crates/router/src/services/authorization.rs** Remove: - function: pub::check_entity **crates/router/src/services/authorization/info.rs** Modify existing code **crates/router/src/services/authorization/permission_groups.rs** Add: - function: private::scope - function: private::parent - function: private::resources - function: private::accessible_groups - function: private::resources - trait: pub::PermissionGroupExt - trait: pub::ParentGroupExt - impl: impl PermissionGroupExt for PermissionGroup - impl: impl ParentGroupExt for ParentGroup **crates/router/src/services/authorization/permissions.rs** Remove: - enum: pub::Permission **crates/router/src/services/authorization/roles.rs** Modify existing code **crates/router_derive/src/lib.rs** Add: - function: pub::generate_permissions **crates/router_derive/src/macros.rs** Add: - mod: pub::generate_permissions **crates/router_derive/src/macros/generate_permissions.rs** Add: - function: private::parse - function: private::parse - function: private::parse_label_with_punctuated_data - function: pub::generate_permissions_inner - struct: private::ResourceInput - struct: private::Input - impl: impl Parse for Input - impl: impl Parse for ResourceInput
{"issue_number": 6391, "pr_number": 6394, "commits_count": 1, "files_changed": 30, "response_length": 3882, "file_count": 34, "needs_breakdown": true}
[CHORE] FIX TYPOS IN THE REPO Its been months since the typos in the repo being unaddressed. This has resulted in negligence leading to even more typos being introduced.
<think> PR Context: - Title: chore: fix typos in the repo - Merged: 2025-05-23T07:52:09Z - Files changed: 29 files - Commits: 9 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR updates all the typos in the repository. For reference, check: https://github.com/juspay/hyperswitch/actions/runs/15082629873/job/42401247676?pr=8056 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** chore: fix typos in the repo (#8063) Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/common_types/src/payment_methods.rs** Modify existing code **crates/common_utils/src/macros.rs** Modify existing code **crates/common_utils/src/types.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs** Remove: - struct: pub::FiuuWebhookSignauture Add: - struct: pub::FiuuWebhookSignature **crates/hyperswitch_connectors/src/connectors/recurly.rs** Modify existing code **crates/hyperswitch_connectors/src/connectors/worldpay/response.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.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/retry.rs** Modify existing code **crates/router/src/core/revenue_recovery.rs** Modify existing code **crates/router/src/core/unified_authentication_service.rs** Modify existing code **crates/router/src/utils/currency.rs** Modify existing code
{"issue_number": 8064, "pr_number": 8063, "commits_count": 1, "files_changed": 29, "response_length": 2124, "file_count": 17, "needs_breakdown": true}
chore(codeowners): add codeowners data for PR reviews ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates ## Description Adding a CODEOWNERS file for facilitating PR reviews for teams ### Additional Changes - [ ] This PR modifies the database schema - [ ] This PR modifies application configuration/environment variables <!-- Provide links to the files with corresponding changes --> ## 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 its an obvious bug or documentation fix that will have little conversation). --> This leads to better ownership boundaries & increased efficiency for reviewers ## 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)? --> Doesn't need to be tested ## Checklist <!-- Put an `x` in the boxes that apply --> - [x] I formatted the code `cargo +nightly fmt` - [x] I addressed lints thrown by `cargo clippy` - [x] I reviewed submitted code - [ ] I added unit tests for my changes where possible - [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable
<think> PR Context: - Title: feat(core): payment links - add support for custom background image and layout in details section - Merged: 2024-12-12T15:48:18Z - Files changed: 19 files - Commits: 17 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR introduces UI revamps to the payment links by including below changes - (described in #6711) - Introduce `branding_visibility` in business profile's payment link config - Introduce `details_layout` and `background_image` in both business profile and payments create API - Co </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** feat(core): payment links - add support for custom background image and layout in details section (# Files to modify: **crates/api_models/src/admin.rs** Add: - struct: pub::PaymentLinkBackgroundImageConfig **crates/api_models/src/payments.rs** Modify existing code **crates/common_enums/src/enums.rs** Add: - mod: private::ui **crates/common_enums/src/enums/ui.rs** Add: - function: private::deserialize - function: private::expecting - function: private::visit_str - function: private::serialize - struct: private::ElementSizeVisitor - enum: pub::ElementPosition - enum: pub::ElementSize - enum: pub::SizeVariants - enum: pub::PaymentLinkDetailsLayout - impl: impl Deserialize<'de> for ElementSize - impl: impl Visitor<'_> for ElementSizeVisitor - impl: impl Serialize for ElementSize **crates/diesel_models/src/business_profile.rs** Add: - struct: pub::PaymentLinkBackgroundImageConfig **crates/diesel_models/src/payment_intent.rs** Modify existing code **crates/hyperswitch_domain_models/src/lib.rs** Add: - function: private::convert_from - function: private::convert_back - impl: impl ApiModelToDieselModelConvertor<api_models::admin::PaymentLinkBackgroundImageConfig> for diesel_models::business_profile::PaymentLinkBackgroundImageConfig **crates/openapi/src/openapi.rs** Modify existing code **crates/openapi/src/openapi_v2.rs** Modify existing code **crates/router/src/core/payment_link.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code **crates/router/src/types/transformers.rs** Add: - function: private::foreign_from - impl: impl ForeignFrom<diesel_models::business_profile::PaymentLinkBackgroundImageConfig> for api_models::admin::PaymentLinkBackgroundImageConfig
{"issue_number": 1, "pr_number": 6725, "commits_count": 1, "files_changed": 19, "response_length": 2673, "file_count": 14, "needs_breakdown": false}
[BUG] fix(payments): add connector error details in response when payment void fails ### Bug Description When a payment void fails at the connector level, the error was not being propagated back in the API response. This change ensures connector error details are included in the response, so clients can handle failures appropriately. ### Expected Behavior When a payment void fails at the connector level, the error was not being propagated back in the API response. This change ensures connector error details are included in the response, so clients can handle failures appropriately. ### Actual Behavior Currently error is not coming in payment void if failed at connector level. ### Steps To Reproduce Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant. 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' ### Context For The Bug _No response_ ### Environment Are you using hyperswitch hosted version? Yes/No If yes, please provide the value of the `x-request-id` response header to help us debug your issue. If not (or if building/running locally), please provide the following details: 1. Operating System or Linux distribution: 2. Rust version (output of `rustc --version`): `` 3. App version (output of `cargo r --features vergen -- --version`): `` ### Have you spent some time checking if this bug has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [x] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) ### Are you willing to submit a PR? Yes, I am willing to submit a PR!
<think> PR Context: - Title: fix(payments): update error handling for payment void v2 - Merged: 2025-10-07T08:22:58Z - Files changed: 6 files - Commits: 17 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add error details when payment void is failed at connector level and update the status accordingly. ### Additional Changes - [x] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies applic </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(payments): update error handling for payment void v2 (#9595) Co-authored-by: hyperswitch-bot[bot Files to modify: **crates/api_models/src/payments.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data.rs** Modify existing code **crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs** Modify existing code **crates/hyperswitch_interfaces/src/conversion_impls.rs** Modify existing code **crates/router/src/core/payments/transformers.rs** Modify existing code
{"issue_number": 9616, "pr_number": 9595, "commits_count": 1, "files_changed": 6, "response_length": 1309, "file_count": 7, "needs_breakdown": false}
One click docker setup A script is needed to ensure one click docker setup, to minimise issues faced by users. > Run the whole setup with simple command > Show output with localhost links for different setups
<think> PR Context: - Title: feat(deploy): Add one-click Docker setup script - Merged: 2025-05-02T12:35:09Z - Files changed: 4 files - Commits: 15 commits Implementation approach: Implements a comprehensive bash script that simplifies the Hyperswitch Docker setup process with the following features: - Prerequisites checking for Docker and Docker Compose - Port availability validation - Multiple deployment profiles (Minimal, Standard, Full, Development) - Automatic configuration setup - Service health monitoring - Detailed documentation in README.md and docs/one_click_setup.md Resolves issue #7761 ## Type of Change <!-- Put an `x` in the boxes that apply --> </think> To implement this, you'll need to modify: (No detailed commit information available)
{"issue_number": 7761, "pr_number": 7804, "commits_count": 0, "files_changed": 4, "response_length": 778, "file_count": 0, "needs_breakdown": false}
fix(diesel_models, api_models): mask `poc_email` and `data_value` for DashboardMetadata ## Current behaviour - `poc_email` isn't masked for `DashboardMetadata` which leads to it being logged both at API and diesel query level. Example: <img width="1114" alt="Image" src="https://github.com/user-attachments/assets/8aa98114-b492-40bf-bddf-68323f86ffc0" /> ## Proposed Changes - (api_models): change the `poc_email` type to `Secret<String>` - Add some `pii::Email` validation to check for input validity - (diesel_models): change `data_value` to `Secret<serde_json::Value>`
<think> PR Context: - Title: fix(dashboard_metadata): mask `poc_email` and `data_value` for DashboardMetadata - Merged: 2025-02-06T15:16:20Z - Files changed: 5 files - Commits: 8 commits Implementation approach: ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - (api_models): change the `poc_email` type to `Secret<String>` - Add some `pii::Email` validation to check for input validity - (diesel_models): change `data_value` to `Secret<serde_json::Value>` ## Fixes #7128 ### Additional Change </think> To implement this, you'll need to modify: **Detailed Implementation:** **Commit 1:** fix(dashboard_metadata): mask `poc_email` and `data_value` for DashboardMetadata (#7130) Files to modify: **crates/api_models/src/user/dashboard_metadata.rs** Modify existing code **crates/diesel_models/src/user/dashboard_metadata.rs** Modify existing code **crates/router/src/core/user/dashboard_metadata.rs** Modify existing code **crates/router/src/services/email/types.rs** Modify existing code **crates/router/src/utils/user/dashboard_metadata.rs** Modify existing code
{"issue_number": 7128, "pr_number": 7130, "commits_count": 1, "files_changed": 5, "response_length": 1303, "file_count": 7, "needs_breakdown": false}