repo
stringclasses
1 value
instance_id
stringlengths
22
24
problem_statement
stringlengths
24
24.1k
patch
stringlengths
0
1.9M
test_patch
stringclasses
1 value
created_at
stringdate
2022-11-25 05:12:07
2025-10-09 08:44:51
hints_text
stringlengths
11
235k
base_commit
stringlengths
40
40
test_instructions
stringlengths
0
232k
patch_line_additions
listlengths
0
217
patch_line_deletions
listlengths
0
218
file_extensions
listlengths
0
7
total_file_changes
int64
0
293
juspay/hyperswitch
juspay__hyperswitch-7010
Bug: [FEATURE] [Authorizedotnet]: Add metadata information to connector request ### Feature Description [Authorizedotnet]: Add metadata information to connector request ### Possible Implementation [Authorizedotnet]: Add metadata information to connector request ### Have you spent some time checking if this featu...
diff --git a/crates/router/src/connector/authorizedotnet/transformers.rs b/crates/router/src/connector/authorizedotnet/transformers.rs index d2b212e3ea0..8e0af603a3d 100644 --- a/crates/router/src/connector/authorizedotnet/transformers.rs +++ b/crates/router/src/connector/authorizedotnet/transformers.rs @@ -1,3 +1,5 @@...
2025-01-08T08:42:03Z
## 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 --> This PR is for code changes which sends the metadata passed i...
ad5491f15bd8f61b2a918f584fe85132986176ad
**Postman Tests** **1. Authorize (Manual)** - Request ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_0vV4HvaBn68pmZTvXLzU9V7hR79lgEjiarEG2IDxveccjZ6ypKjpPaRrdeQRHhKu' \ --data-raw '{ ...
[ { "file_path": "crates/router/src/connector/authorizedotnet/transformers.rs", "lines": [ "use std::collections::BTreeMap;\n", "\n", "use serde_json::Value;\n", " user_fields: Option<UserFields>,\n", " #[serde(skip_serializing_if = \"Option::is_none\")]\n", "#[derive...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-7042
Bug: [FIX] add a fallback to key without prefix for redis To keep the tenant data isolated from each other, We are using a prefix for Redis keys i.e A key which would be saved as card123 without multitenancy would be saved as public:card123 with Multitenancy. If the user makes a payment on the older pod where Mul...
diff --git a/crates/drainer/src/health_check.rs b/crates/drainer/src/health_check.rs index 2ca2c1cc79c..aaf455663f5 100644 --- a/crates/drainer/src/health_check.rs +++ b/crates/drainer/src/health_check.rs @@ -165,21 +165,21 @@ impl HealthCheckInterface for Store { let redis_conn = self.redis_conn.clone(); ...
2025-01-16T10:01:49Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Enhancement ## Description <!-- Describe your changes in detail --> - Add a fallback for Redis gets with prefix - Add a Domain type for Redis for the correctness of adding a prefix ## Motivation and Context <!-- Why is this change required...
3fdc41e6c946609461db6b5459e10e6351694d4c
** THIS CANNOT BE TESTED ON HIGHER ENVIRONMENTS **
[ { "file_path": "crates/drainer/src/health_check.rs", "lines": [ " .serialize_and_set_key_with_expiry(&\"test_key\".into(), \"test_value\", 30)\n", " .get_key::<()>(&\"test_key\".into())\n", " .delete_key(&\"test_key\".into())\n", " &TES...
[ { "file_path": "crates/drainer/src/health_check.rs", "lines": [ " .serialize_and_set_key_with_expiry(\"test_key\", \"test_value\", 30)\n", " .get_key::<()>(\"test_key\")\n", " .delete_key(\"test_key\")\n", " TEST_STREAM_NAME,\n", ...
[ "toml", "rs" ]
34
juspay/hyperswitch
juspay__hyperswitch-7014
Bug: [REFACTOR] modify dynamic fields path This PR modifies dynamic fields path of Adyen and Stripe for Klarna. Also klarnaCheckout is renamed to klarnaRedirect.
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 892931256bc..25f0be8594a 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -12387,17 +12387,6 @@ } } }, - { - "type": "object", ...
2025-01-09T10:40:38Z
## 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 --> 1. Dynamic fields path for `Adyen` and `Stripe` is changed whic...
3fdc41e6c946609461db6b5459e10e6351694d4c
1. Dynamic fields path for `Adyen` and `Stripe` is changed which is a frontend requirement to show the input boxes, so no testing required. 2. `WASM` for `klarnaCheckout` added in `Klarna` which is a dashboard requirement to list out the Payment Methods for `Klarna`, so no testing required. 3. Have removed `Kla...
[ { "file_path": "crates/connector_configs/src/transformer.rs", "lines": [ " (Connector::Klarna, Klarna) => payment_experience,\n", " (Connector::Braintree, Paypal) => {\n" ] }, { "file_path": "crates/connector_configs/toml/development.toml", "lines": ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " {\n", " \"type\": \"object\",\n", " \"required\": [\n", " \"klarna_checkout\"\n", " ],\n", " \"properties\": {\n", " \"kl...
[ "toml", "json", "rs" ]
19
juspay/hyperswitch
juspay__hyperswitch-7005
Bug: feat(analytics): Add currency as dimension and filter for disputes Should add currency as dimension and filter for disputes, required for Analytics V2 Dashboard.
diff --git a/crates/analytics/src/disputes/core.rs b/crates/analytics/src/disputes/core.rs index 540a14104c1..c1dcbaf2b2f 100644 --- a/crates/analytics/src/disputes/core.rs +++ b/crates/analytics/src/disputes/core.rs @@ -204,6 +204,7 @@ pub async fn get_filters( .filter_map(|fil: DisputeFilterRow| match dim { ...
2025-01-08T05:53:25Z
## 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 currency as dimension and filter for disputes, required f...
ed8ef2466b7f059ed0f534aa1f3fca9b5ecbeefd
Hit the curl: ```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/disputes' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'Origin: http://localhost:9000' \ --header 'QueryType...
[ { "file_path": "crates/analytics/src/disputes/core.rs", "lines": [ " DisputeDimensions::Currency => fil.currency.map(|i| i.as_ref().to_string()),\n" ] }, { "file_path": "crates/analytics/src/disputes/filters.rs", "lines": [ "use diesel_models::enums::Currency;\n", ...
[ { "file_path": "crates/analytics/src/disputes/filters.rs", "lines": [ " types::{AnalyticsCollection, AnalyticsDataSource, FiltersError, FiltersResult, LoadRow},\n" ] }, { "file_path": "crates/api_models/src/analytics/disputes.rs", "lines": [ "use crate::enums::DisputeStage;\n"...
[ "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-7020
Bug: chore: address Rust 1.84.0 clippy lints Address the clippy lints occurring due to new rust version 1.84.0 See https://github.com/juspay/hyperswitch/issues/3391 for more information.
diff --git a/Cargo.lock b/Cargo.lock index e34c80bd927..2007f4f88a0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9266,9 +9266,9 @@ checksum = "b8dad83b4f25e74f184f64c43b150b91efe7647395b42289f38e50566d82855b" [[package]] name = "wasm-bindgen" -version = "0.2.93" +version = "0.2.99" source = "registry+https://githu...
2025-01-10T09:59:26Z
## 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 addresses the clippy lints occurring due to new rust ve...
dbe0cd4d2c368293bec22e2e83571a90b8ce3ee3
CI checks should pass as this PR addresses clippy lints. 1. ran `just clippy` with new rust version (1.84.0) ![image](https://github.com/user-attachments/assets/e723951b-e99b-41d3-b677-c15063d84aaf) 2. ran `just clippy_v2` with new rust version (1.84.0) ![image](https://github.com/user-attachments/assets/...
[ { "file_path": "Cargo.lock", "lines": [ "version = \"0.2.99\"\n", "checksum = \"a474f6281d1d70c17ae7aa6a613c87fce69a127e2624002df63dcb39d6cf6396\"\n", "version = \"0.2.99\"\n", "checksum = \"5f89bb38646b4f81674e8f5c3fb81b562be1fd936d84320f3264486418519c79\"\n", "version = \"0.2...
[ { "file_path": "Cargo.lock", "lines": [ "version = \"0.2.93\"\n", "checksum = \"a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5\"\n", "version = \"0.2.93\"\n", "checksum = \"9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b\"\n", " \"once_cell\",...
[ "toml", "rs", "lock" ]
36
juspay/hyperswitch
juspay__hyperswitch-7003
Bug: [FIX] consider status of payment method before filtering wallets in list pm
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index 164c0e9557a..deae78b5540 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -3470,12 +3470,14 @@ pub async fn list_payment_methods( ...
2025-01-07T13:44:49Z
## 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 --> https://github.com/juspay/hyperswitch/pull/3953 We were not ...
c4d36b506e159f39acff17e13f72b5c53edec184
1. Create merchant_account, api_key, mca (with any wallet) 2. Create a payment with wallet as payment method with authentication_type as three_ds. Retain the status of payment as processing ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: appl...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " .find_payment_method_by_customer_id_merchant_id_status(\n", " &customer.customer_id,\n", " merchant_account.get_id(),\n", " ...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " .find_payment_method_by_customer_id_merchant_id_list(\n", " &customer.customer_id,\n", " merchant_account.get_id(),\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-7009
Bug: [fix]: dummy connector on multitenancy
diff --git a/crates/hyperswitch_domain_models/src/router_data.rs b/crates/hyperswitch_domain_models/src/router_data.rs index 2970ac127ed..8e4c79a965e 100644 --- a/crates/hyperswitch_domain_models/src/router_data.rs +++ b/crates/hyperswitch_domain_models/src/router_data.rs @@ -22,6 +22,7 @@ pub struct RouterData<Flow, R...
2025-01-08T08:03:12Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix ## Description <!-- Describe your changes in detail --> Add tenant id in dummy connector requests ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link to the ...
d594173de2aefaedce0c808f5d4903d0ad7eb447
1. Create `stripe_test` PaymentsConnector ```bash curl --location 'http://localhost:8080/account/1736322673/connectors' \ --header 'cache-control: no-cache' \ --header 'content-type: application/json' \ --header 'x-tenant-id: public' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "payment_...
[ { "file_path": "crates/hyperswitch_domain_models/src/router_data.rs", "lines": [ " pub tenant_id: id_type::TenantId,\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/router_data_v2.rs", "lines": [ "use common_utils::id_type;\n", " pub tenant_id: id_type::T...
[ { "file_path": "crates/router/src/connector/dummyconnector.rs", "lines": [ "use common_utils::request::RequestContent;\n", " let mut header = vec![(\n", " headers::CONTENT_TYPE.to_string(),\n", " types::PaymentsAuthorizeType::get_content_type(self)\n", ...
[ "rs" ]
28
juspay/hyperswitch
juspay__hyperswitch-7018
Bug: [BUG] connector's txn ID exceeding 512 characters are not being stored in DB ### Bug Description Worldpay's payment flows generate a txn identifier which is quite long - as it's a JWE. This is stored in DB for querying or performing any other processor related operation on the payment. DB schema for storing ...
diff --git a/crates/common_utils/src/types.rs b/crates/common_utils/src/types.rs index 4e88d5c0fde..0377a3e8183 100644 --- a/crates/common_utils/src/types.rs +++ b/crates/common_utils/src/types.rs @@ -1420,7 +1420,7 @@ crate::impl_to_sql_from_sql_json!(BrowserInformation); /// In case connector's use an identifier who...
2025-01-09T14:03:34Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR introduces below changes around Worldpay connector ### Core changes - add new columns (TEXT) ...
bfcaf003427caf9580a2520b3f2efc8773818905
<details> <summary>1. Route a payment through Worldpay</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_Wc9lMS2KJ6l35ehmlSsR3dwwiOvGZaWLmkk3B...
[ { "file_path": "crates/common_utils/src/types.rs", "lines": [ "/// processor_transaction_data or something with a similar name.\n", " /// Implementation for forming ConnectorTransactionId and an optional string to be used for connector_transaction_id and processor_transaction_data\n", "...
[ { "file_path": "crates/common_utils/src/types.rs", "lines": [ "/// connector_transaction_data or something with a similar name.\n", " /// Implementation for forming ConnectorTransactionId and an optional string to be used for connector_transaction_id and connector_transaction_data\n", "...
[ "sql", "rs" ]
27
juspay/hyperswitch
juspay__hyperswitch-7000
Bug: test(cypress): add a test for in memory cache
2024-12-30T11:36:48Z
## 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 --> Add Test Cases for testing In Memory Cache ### Additional Ch...
c4d36b506e159f39acff17e13f72b5c53edec184
<img width="1025" alt="Screenshot 2024-12-30 at 3 28 02 PM" src="https://github.com/user-attachments/assets/8059ee3c-f695-452f-ac74-3909849559d3" /> <img width="1028" alt="Screenshot 2024-12-30 at 3 28 10 PM" src="https://github.com/user-attachments/assets/d6d12ca8-3802-4a3a-94d8-0382bf8e1fb2" />
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6987
Bug: [FEATURE] Integrate global SR ### Feature Description In dynamic routing, we need to keep track of global success rates as well. We need to support the integration for tracking global SR ### Possible Implementation The dynamic routing modules and corresponding proto file would need to be changed ### Have y...
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index 2e570816ab4..8e502767575 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -779,6 +779,7 @@ impl Default for SuccessBasedRoutingConfig { duration_in_mins: Some(5), ...
2024-12-26T13:46:40Z
## 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 --> Integrate global Success rates for dynamic routing ### Add...
72904842ed0092e16e2d9980e1d4968df03cafb6
1. toggle success based routing with dynamic connector selection enabled ``` curl --location --request POST 'http://localhost:8080/account/sarthak2/business_profile/pro_F5mC1GGXHPLTtfcBnZEP/dynamic_routing/success_based/toggle?enable=dynamic_connector_selection' \ --header 'api-key: dev_RQxKf8JqHb5tTfTp13JMnI7TyWg...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " specificity_level: SuccessRateSpecificityLevel::default(),\n", " #[serde(default)]\n", " pub specificity_level: SuccessRateSpecificityLevel,\n", "#[derive(serde::Serialize, serde::Deserialize, Debug,...
[ { "file_path": "crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs", "lines": [ " SuccessBasedRoutingConfig, SuccessBasedRoutingConfigBody,\n", " success_rate_calculator_client::SuccessRateCalculatorClient, CalSuccessRateConfig,\n", " InvalidateWindows...
[ "sql", "rs", "proto" ]
10
juspay/hyperswitch
juspay__hyperswitch-6999
Bug: feat(roles): edge cases for multi-tenancy - I Add tenant_id in custom roles Add generic query to search across all tenants Close https://github.com/juspay/hyperswitch-cloud/issues/7998 Close https://github.com/juspay/hyperswitch-cloud/issues/7998 Close https://github.com/juspay/hyperswitch-cloud/issues/8026
diff --git a/crates/diesel_models/src/query/role.rs b/crates/diesel_models/src/query/role.rs index 6f6a1404ee2..2ab58ec2382 100644 --- a/crates/diesel_models/src/query/role.rs +++ b/crates/diesel_models/src/query/role.rs @@ -32,14 +32,18 @@ impl Role { role_id: &str, merchant_id: &id_type::MerchantId,...
2025-01-05T20:12:09Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR - add tenant_id in roles table - add support for genenric query to serach user across all tenan...
79013024ff371efc6062310564b8b56e9bb22701
Tenant admin able to create custom org level role ``` curl --location 'http://localhost:8080/user/role' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer JWT' \ --data '{ "role_name": "custom_role_7", "groups": ["users_view"], "role_scope": "organization" }' ``` Response ``...
[ { "file_path": "crates/diesel_models/src/query/role.rs", "lines": [ " tenant_id: &id_type::TenantId,\n", " dsl::role_id\n", " .eq(role_id.to_owned())\n", " .and(dsl::tenant_id.eq(tenant_id.to_owned()))\n", " .and(\n...
[ { "file_path": "crates/diesel_models/src/query/role.rs", "lines": [ " dsl::role_id.eq(role_id.to_owned()).and(\n", " dsl::merchant_id.eq(merchant_id.to_owned()).or(dsl::org_id\n", " .eq(org_id.to_owned())\n", " .and(dsl:...
[ "sql", "rs" ]
18
juspay/hyperswitch
juspay__hyperswitch-6983
Bug: [CHORE] remove redundant variants from PermissionGroup ### Feature Description Few variants in `PermissionGroup` enum were kept in the application code for backwards compatibility. These variants are directly stored as TEXT in DB which forces the application to ensure backwards compatibility during staggered r...
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index 0234fbea6d5..1faa3b90aa8 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -2936,8 +2936,6 @@ pub enum PermissionGroup { ReconReportsManage, ReconOpsView, ReconOpsManage, - // T...
2025-01-03T10:45:05Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This removes the redundant `ReconOps` variant from `PermissionGroup` enum which is stored in DB. This was...
22072fd750940ac7fec6ea971737409518600891
Locally by running migrations and viewing permission view in dashboard.
[ { "file_path": "crates/router/src/services/authorization/info.rs", "lines": [ " PermissionGroup::ReconReportsView => \"View reconciliation reports and analytics\",\n", " PermissionGroup::ReconOpsView => \"View and access all reconciliation operations including reports and analytics...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " // TODO: To be deprecated, make sure DB is migrated before removing\n", " ReconOps,\n" ] }, { "file_path": "crates/router/src/services/authorization/info.rs", "lines": [ " PermissionGroup::ReconRep...
[ "sql", "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-6986
Bug: refactor(currency_conversion): re-frame the crate to make api calls on background thread
diff --git a/config/config.example.toml b/config/config.example.toml index c860420da38..ecc2d2127ce 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -74,13 +74,10 @@ max_feed_count = 200 # The maximum number of frames that will be fe # This section provides configs for currenc...
2024-12-20T06:29:50Z
## 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 --> Due to redis lock being held for a long time, which made the fo...
3fdc41e6c946609461db6b5459e10e6351694d4c
1. Testing for first call when there is no data present in cache as well as redis: ![Screenshot 2025-01-03 at 4 35 53 PM](https://github.com/user-attachments/assets/d60ddc98-59c1-43e7-b99c-3eca9117ad60) ``` curl --location 'http://127.0.0.1:8080/forex/rates' \ --header 'api-key: xxxxxxx' \ --data '' ``` <img w...
[ { "file_path": "config/config.example.toml", "lines": [ "call_delay = 21600 # Expiration time for data in cache as well as redis in seconds\n", "api_key = \"\" # Api key for making request to foreign exchange Api\n", "fallback_api_key = \"\" ...
[ { "file_path": "config/config.example.toml", "lines": [ "call_delay = 21600 # Api calls are made after every 6 hrs\n", "local_fetch_retry_count = 5 # Fetch from Local cache has retry count as 5\n", "local_fetch_retry_delay = 1000 # Retry delay for checking write con...
[ "md", "toml", "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-6993
Bug: [REFACTOR] reduce duplicate code in config in cypress - too much chaos and confusion - boiler plate and duplicate code - move memory cache test out of payments and make it a separate service
2025-01-06T09:12:46Z
## 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 --> This PR aims at refactoring: - `cypress-tests` folder struct...
cf82861e855bbd055fcbfc2367b23eaa58d8f842
```sh
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6977
Bug: [BUG - Cypress] Cookie not passed in user APIs we need to pass cookies in user apis
2025-01-02T15:58:49Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> this pr fixes the issue where cookies are not being set when ...
7d00583a8076ef2f996345549b5e81c7f90361dc
<img width="540" alt="image" src="https://github.com/user-attachments/assets/5d1f0463-e9a2-4ee7-9597-65151c85539e" /> every failure here is related to assertion and `globalState` where `connectorId` and `mcaId` not getting updated. This can be picked up a separate PR since the fix done in this PR is `P0`
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6973
Bug: refactor(redis_interface): make the redis command for using scripts to write into redis Generic make the redis command for using scripts to write into redis as Generic
diff --git a/crates/redis_interface/src/commands.rs b/crates/redis_interface/src/commands.rs index 3c7ffa16ada..56e9ab98104 100644 --- a/crates/redis_interface/src/commands.rs +++ b/crates/redis_interface/src/commands.rs @@ -849,20 +849,23 @@ impl super::RedisConnectionPool { } #[instrument(level = "DEBUG",...
2025-01-02T08:33:31Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description make the redis command for using scripts to write into redis Generic, for allowing the flexibility to up...
638e1f230a543a1ff2b7712d04b937a9a9db1969
wrote a unit test for it
[ { "file_path": "crates/redis_interface/src/commands.rs", "lines": [ " pub async fn evaluate_redis_script<V, T>(\n", " ) -> CustomResult<T, errors::RedisError>\n", " T: serde::de::DeserializeOwned + FromRedis,\n", " let val: T = self\n", " .pool\n"...
[ { "file_path": "crates/redis_interface/src/commands.rs", "lines": [ " pub async fn incr_keys_using_script<V>(\n", " ) -> CustomResult<(), errors::RedisError>\n", " self.pool\n", " .change_context(errors::RedisError::IncrementHashFieldFailed)\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6975
Bug: add support for relay refund incoming webhooks Some connectors, like Adyen, do not support a refund sync API, so we need to rely on refund webhooks for the status. To address this, support for relay refund webhooks needs to be added. To support this use case, a new webhook endpoint needs to be introduced for...
diff --git a/crates/api_models/src/webhooks.rs b/crates/api_models/src/webhooks.rs index e6f4065eb7a..f99e3a450b2 100644 --- a/crates/api_models/src/webhooks.rs +++ b/crates/api_models/src/webhooks.rs @@ -120,6 +120,10 @@ pub enum WebhookResponseTracker { status: common_enums::MandateStatus, }, NoEff...
2025-01-02T13:49:11Z
## 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 --> Some connectors, like Adyen, do not support a refund sync API, ...
c4d36b506e159f39acff17e13f72b5c53edec184
-> Create a merchant connector account for stripe -> Setup the webhook url in the stripe dashboard -> Relay webhook testing -> Make payment through stripe connector. As this relay webhooks can only handle relay refunds webhooks, we need to return 200 OK for the payments webhooks that we received. ``` curl --loca...
[ { "file_path": "crates/api_models/src/webhooks.rs", "lines": [ " Relay {\n", " relay_id: common_utils::id_type::RelayId,\n", " status: common_enums::RelayStatus,\n", " },\n", " Self::Relay { .. } => None,\n", " Self::Relay { .. } ...
[ { "file_path": "crates/diesel_models/src/query/relay.rs", "lines": [ "use diesel::{associations::HasTable, ExpressionMethods};\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/relay.rs", "lines": [ " error_message: error.message,\n" ] }, { "...
[ "sql", "rs" ]
16
juspay/hyperswitch
juspay__hyperswitch-6972
Bug: [feat] add multitenancy support to keymanager
diff --git a/config/config.example.toml b/config/config.example.toml index 99926632114..eb30435d5f8 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -762,7 +762,7 @@ sdk_eligible_payment_methods = "card" [multitenancy] enabled = false -global_tenant = { schema = "public", redis_key_prefix...
2025-01-02T09:46:41Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Enhancement ## Description <!-- Describe your changes in detail --> Adds tenant-id for every requests to keymanager ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please l...
7d00583a8076ef2f996345549b5e81c7f90361dc
- Create Merchant Account with x-tenant-id as `public` ```bash curl --location 'http://localhost:8080/accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-feature: integ-custom' \ --header 'x-tenant-id: public' \ --header 'api-key: test_admin' \ --data-raw ...
[ { "file_path": "config/config.example.toml", "lines": [ "global_tenant = { tenant_id = \"global\", schema = \"public\", redis_key_prefix = \"\", clickhouse_database = \"default\"}\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "global_tenant = { tenant_...
[ { "file_path": "config/config.example.toml", "lines": [ "global_tenant = { schema = \"public\", redis_key_prefix = \"\", clickhouse_database = \"default\"}\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "global_tenant = { schema = \"public\", redis_key_...
[ "toml", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-6979
Bug: [CHORE] extend Currency TYPE in DB with more variants ### Feature Description Below currencies to be added to the Currency type in DB AFN BTN CDF ERN IRR ISK KPW SDG SYP TJS TMT ZMW ZWL ### Possible Implementation Add diesel migrations ### Have you spent some time checking if this feature req...
diff --git a/migrations/2025-01-03-084904_add_currencies/down.sql b/migrations/2025-01-03-084904_add_currencies/down.sql new file mode 100644 index 00000000000..e0ac49d1ecf --- /dev/null +++ b/migrations/2025-01-03-084904_add_currencies/down.sql @@ -0,0 +1 @@ +SELECT 1; diff --git a/migrations/2025-01-03-084904_add_cur...
2025-01-03T08:54:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds a diesel migration for including below variants in Currency ENUM in database ```AFN BTN ...
2aa14e7fec19b31d84745b524cbf835ff16b8ce8
Ran migrations locally.
[ { "file_path": "migrations/2025-01-03-084904_add_currencies/down.sql", "lines": [ "SELECT 1;\n" ] }, { "file_path": "migrations/2025-01-03-084904_add_currencies/up.sql", "lines": [ "DO $$\n", " DECLARE currency TEXT;\n", " BEGIN\n", " FOR currency IN\n", ...
[]
[ "sql" ]
2
juspay/hyperswitch
juspay__hyperswitch-6960
Bug: [REFACTOR] add info logs to log the grpc request and response
diff --git a/crates/external_services/src/grpc_client.rs b/crates/external_services/src/grpc_client.rs index 404685025ed..7a627d3ab27 100644 --- a/crates/external_services/src/grpc_client.rs +++ b/crates/external_services/src/grpc_client.rs @@ -128,3 +128,13 @@ impl<T> AddHeaders for tonic::Request<T> { }); ...
2024-12-30T16:03:02Z
## 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 the info logs to log the dynamic routing grpc requ...
4664d4bc4b7e685ab6dfb9176a3309026d3032e9
1. Create merchant_account, api_key and mca (any connector) 2. Toggle dynamic routing ``` curl --location --request POST 'http://localhost:8080/account/merchant_1734609410/business_profile/pro_gPTjn9jLm0CxI8ZD1omL/dynamic_routing/success_based/toggle?enable=metrics' \ --header 'Content-Type: application/json'...
[ { "file_path": "crates/external_services/src/grpc_client.rs", "lines": [ "\n", "#[cfg(feature = \"dynamic_routing\")]\n", "pub(crate) fn create_grpc_request<T: Debug>(message: T, headers: GrpcHeaders) -> tonic::Request<T> {\n", " let mut request = tonic::Request::new(message);\n",...
[ { "file_path": "crates/external_services/src/grpc_client/dynamic_routing/elimination_rate_client.rs", "lines": [ "use crate::grpc_client::{AddHeaders, GrpcHeaders};\n", " let mut request = tonic::Request::new(EliminationRequest {\n", " id,\n", " params,\n...
[ "rs", "proto" ]
5
juspay/hyperswitch
juspay__hyperswitch-6958
Bug: refactor(dynamic_routing): add non_deterministic value in SuccessBasedRoutingConclusiveState type ## Description <!-- Describe your changes in detail --> This will add a value `non_deterministic` in `SuccessBasedRoutingConclusiveState` type.
diff --git a/migrations/2024-12-18-124527_add_new_value_in_success_based_routing_conclusive_state/down.sql b/migrations/2024-12-18-124527_add_new_value_in_success_based_routing_conclusive_state/down.sql new file mode 100644 index 00000000000..2a3866c86d4 --- /dev/null +++ b/migrations/2024-12-18-124527_add_new_value_in...
2024-12-18T13:01:15Z
## 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 will add a value `non_deterministic` in `SuccessBasedRouti...
db51ec43bc629dc20ceaa2bb57ede888d2d2fc2c
1. Toggle Success Based routing for the merchant. ``` curl --location --request POST 'http://localhost:8080/account/xxxxxx/business_profile/xxxxxxx/dynamic_routing/success_based/toggle?enable=metrics' \ --header 'api-key: xxxxxxx' ``` 2. Create a payment that goes in processing state or any non terminal state....
[ { "file_path": "migrations/2024-12-18-124527_add_new_value_in_success_based_routing_conclusive_state/down.sql", "lines": [ "-- This file should undo anything in `up.sql`\n", "SELECT 1;\n" ] }, { "file_path": "migrations/2024-12-18-124527_add_new_value_in_success_based_routing_conclus...
[]
[ "sql" ]
2
juspay/hyperswitch
juspay__hyperswitch-6951
Bug: refactor(payment_methods): update connector_mandate_details for card metadata changes Allow update of connector_mandate_details for card in case of metadata changes(in case of expiry changes). First the value is set as inactive and if a successful payment has been made then set it back to active
diff --git a/crates/router/src/core/payments/operations/payment_response.rs b/crates/router/src/core/payments/operations/payment_response.rs index 01a4e086091..e7101742676 100644 --- a/crates/router/src/core/payments/operations/payment_response.rs +++ b/crates/router/src/core/payments/operations/payment_response.rs @@ ...
2024-12-16T10:09:23Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Allow update of `connector_mandate_details` for card in case of metadata changes(in case of expiry change...
ed276ecc0017f7f98b6f8fa3841e6b8971f609f1
- Nothreeds > - Create a MA and a MCA > - Make a off_Session save card payment > - Make a off_Session payment again with the same card just and changes expiry > - After a successful payment the Connector Mandate Details would be overriden <img width="1725" alt="Screenshot 2024-12-16 at 4 21 51 PM" src="https://...
[ { "file_path": "crates/router/src/core/payments/operations/payment_response.rs", "lines": [ " merchant_connector_id.clone(),\n", " merchant_connector_id.clone(),\n", " merchant_connector_id.clone(),\n" ] }, { "file_path": "crates/rou...
[ { "file_path": "crates/router/src/core/payments/tokenization.rs", "lines": [ " Ok(pm) => Ok(pm),\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6948
Bug: rename `management_url` to `management_u_r_l` in the apple pay session response Parent issue describing the feature (https://github.com/juspay/hyperswitch/issues/6841) We need to rename `management_url` to `management_u_r_l` in the apple pay session response as our sdk converts the apple pay session request ...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 636723d808a..f1caede89cc 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3438,7 +3438,7 @@ "required": [ "payment_description", "regular_billing", - ...
2024-12-26T10:17:29Z
## 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 --> Parent issue describing the feature (https://github.com/juspa...
b6249f226116a7cc96e602a8910e8b186eecda5b
-> create a merchant connector account with apple pay enabled -> create a payment with recurring details passed in the `feature_metadata` ``` { "amount": 6500, "currency": "USD", "confirm": false, "amount_to_capture": 6500, "customer_id": "test_fb", "capture_method": "automatic", ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"management_u_r_l\"\n", " \"management_u_r_l\": {\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " pub management_u_r_l: common_utils::types::Url,\n" ] }, ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"management_url\"\n", " \"management_url\": {\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " pub management_url: common_utils::types::Url,\n" ] }, { ...
[ "json", "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6947
Bug: [BUG] Connector Required Fields for Mandates not present ### Bug Description Connector Required Fields for Mandates not present ### Expected Behavior Connector Required Fields for Mandates present ### Actual Behavior Connector Required Fields for Mandates not present ### Steps To Reproduce Provide an una...
diff --git a/crates/router/src/configs/defaults/payment_connector_required_fields.rs b/crates/router/src/configs/defaults/payment_connector_required_fields.rs index 3eda9c2a91f..0a4d58c8ded 100644 --- a/crates/router/src/configs/defaults/payment_connector_required_fields.rs +++ b/crates/router/src/configs/defaults/paym...
2024-12-24T08:58:02Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description The required fields were not added for mandates for some connectors. Those fields have been configured ...
2b70c945406b1cf80831452b75e0c488eb60c86c
**1. Worldpay** - **A) Create Payment** - Request ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_MA7DHjl9k4izCsQ42Vh7VJEKQeNy78RkGjIISOOrAbu78sRnpwuuuJmmipITEyae' \ --data-raw '{ "amou...
[ { "file_path": "crates/router/src/configs/defaults/payment_connector_required_fields.rs", "lines": [ " non_mandate: HashMap::new(),\n", " common: HashMap::from(\n", " non_mandate: H...
[ { "file_path": "crates/router/src/configs/defaults/payment_connector_required_fields.rs", "lines": [ " non_mandate: HashMap::from(\n", " common: HashMap::new(),\n", " non_mandate: H...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6955
Bug: [DOC] update cypress docs current docs are pretty much outdated
2024-12-28T17:24:37Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> Existing [docs](https://github.com/juspay/hyperswitch/tree/ma...
e393a036fbde109d367e488807a53e919a12db90
Nah!
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6944
Bug: [REFACTOR] remove `tenant_id` prefix from `id` field in dynamic routing grpc requests
diff --git a/crates/router/src/core/payments/routing.rs b/crates/router/src/core/payments/routing.rs index 0a57819816f..8f3f40edf06 100644 --- a/crates/router/src/core/payments/routing.rs +++ b/crates/router/src/core/payments/routing.rs @@ -1347,14 +1347,9 @@ pub async fn perform_success_based_routing( ...
2024-12-26T12:53:24Z
## 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 --> Since hyperswitch started sending tenant-id in headers of dynam...
295d3dde7749e7576dbdee4675528bb6dd6ffb70
1. Create merchant_account, api_key and mca (any connector) 2. Toggle dynamic routing ``` curl --location --request POST 'http://localhost:8080/account/merchant_1734609410/business_profile/pro_gPTjn9jLm0CxI8ZD1omL/dynamic_routing/success_based/toggle?enable=metrics' \ --header 'Content-Type: application/json' \...
[ { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ " business_profile.get_id().get_string_repr().into(),\n" ] }, { "file_path": "crates/router/src/core/routing.rs", "lines": [ " profile_id.get_string_repr().into(),\n" ] ...
[ { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ " let tenant_business_profile_id = routing::helpers::generate_tenant_business_profile_id(\n", " &state.tenant.redis_key_prefix,\n", " business_profile.get_id().get_string_repr(),\n", ...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6943
Bug: Update open-api spec of /relay request to make the data untagged enum Update open-api spec of /relay request to make the data untagged enum
diff --git a/crates/openapi/src/routes/relay.rs b/crates/openapi/src/routes/relay.rs index 9100bf47f75..180fed66492 100644 --- a/crates/openapi/src/routes/relay.rs +++ b/crates/openapi/src/routes/relay.rs @@ -13,8 +13,10 @@ "connector_id": "mca_5apGeP94tMts6rg3U3kR", "type": "r...
2024-12-26T08:18:28Z
## 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 --> Update open-api spec of /relay request to make the data untagge...
b6249f226116a7cc96e602a8910e8b186eecda5b
<img width="1616" alt="image" src="https://github.com/user-attachments/assets/4ba7d3d6-9fcd-4a29-a7ff-62f0a5abda22" />
[ { "file_path": "crates/openapi/src/routes/relay.rs", "lines": [ " \"refund\": {\n", " \"amount\": 6540,\n", " \"currency\": \"USD\"\n", " }\n" ] } ]
[ { "file_path": "crates/openapi/src/routes/relay.rs", "lines": [ " \"amount\": 6540,\n", " \"currency\": \"USD\"\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6939
Bug: 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 w...
diff --git a/crates/api_models/src/user.rs b/crates/api_models/src/user.rs index 7b5911cf1a8..ea979bfe735 100644 --- a/crates/api_models/src/user.rs +++ b/crates/api_models/src/user.rs @@ -305,18 +305,26 @@ pub struct CreateUserAuthenticationMethodRequest { pub owner_type: common_enums::Owner, pub auth_method...
2024-12-26T07:59:40Z
## 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...
b6249f226116a7cc96e602a8910e8b186eecda5b
1. Create user auth method with email domain ```bash curl --location 'http://localhost:8080/user/auth' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMjAxYTJlZWQtNGE0ZC00MjZlLTg1N2ItMjNhM2ZjZTk5NTMzIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNjk3NjIzMjI0Iiwicm9sZV9pZCI6I...
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ " pub email_domain: Option<String>,\n", "#[serde(rename_all = \"snake_case\")]\n", "pub enum UpdateUserAuthenticationMethodRequest {\n", " AuthMethod {\n", " id: String,\n", " auth_config: Auth...
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ "pub struct UpdateUserAuthenticationMethodRequest {\n", " pub id: String,\n", " // TODO: When adding more fields make config and new fields option\n", " pub auth_method: AuthConfig,\n", " pub auth_id: String...
[ "sql", "rs" ]
14
juspay/hyperswitch
juspay__hyperswitch-6937
Bug: populate `profile_id` in for the HeaderAuth of v1 populate `profile_id` in for the HeaderAuth of v1
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml index dd4938d8d6f..6283382258a 100644 --- a/config/deployments/integration_test.toml +++ b/config/deployments/integration_test.toml @@ -419,7 +419,7 @@ outgoing_enabled = true connectors_with_webhook_source_verification_ca...
2024-12-24T12:56:35Z
## 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 --> populate `profile_id` in for the HeaderAuth of v1 And also thi...
b6249f226116a7cc96e602a8910e8b186eecda5b
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "keys = \"accept-language,user-agent,x-profile-id\"\n" ] }, { "file_path": "config/deployments/production.toml", "lines": [ "keys = \"accept-language,user-agent,x-profile-id\"\n" ] }, { "file_path":...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "keys = \"accept-language,user-agent\"\n" ] }, { "file_path": "config/deployments/production.toml", "lines": [ "keys = \"accept-language,user-agent\"\n" ] }, { "file_path": "config/deployments/sandb...
[ "toml", "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6929
Bug: disable partial auth feature for relay disable partial auth feature for relay
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml index a74ababdd26..f10ffac3e2e 100644 --- a/config/deployments/integration_test.toml +++ b/config/deployments/integration_test.toml @@ -411,7 +411,7 @@ outgoing_enabled = true connectors_with_webhook_source_verification_ca...
2024-12-24T08:23:40Z
## 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 --> disable partial auth feature for relay ### Additional Change...
912091976859628ac9fbfe86475814bf8cca3edf
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "keys = \"accept-language,user-agent,x-profile-id\"\n" ] }, { "file_path": "config/deployments/production.toml", "lines": [ "keys = \"accept-language,user-agent,x-profile-id\"\n" ] }, { "file_path":...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "keys = \"accept-language,user-agent\"\n" ] }, { "file_path": "config/deployments/production.toml", "lines": [ "keys = \"accept-language,user-agent\"\n" ] }, { "file_path": "config/deployments/sandb...
[ "toml", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6969
Bug: [FEATURE] expose tokenize endpoints ### Feature Description HS backend to expose endpoints to help with tokenization of customer's cards. HyperSwitch makes use of an external service which helps tokenize the card and makes it usable within HS ecosystem. Once tokenized, these cards can be used in a PG agnostic ...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 2e0d57d977e..45ff3e1f567 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -6974,6 +6974,90 @@ "Maestro" ] }, + "CardNetworkTokenizeRequest": { + "a...
2025-01-20T02:15:44Z
## 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 introduces below changes - Exposes two endpoints for - Single card tokenization ...
b71571d16ca4553e1c7eca17f00df24945479638
<details> <summary>1. Tokenize using raw card details</summary> cURL curl --location --request POST 'http://localhost:8080/payment_methods/tokenize-card' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "card": { ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"CardNetworkTokenizeRequest\": {\n", " \"allOf\": [\n", " {\n", " \"$ref\": \"#/components/schemas/TokenizeDataRequest\"\n", " },\n", " {\n", " ...
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ "#[cfg(all(feature = \"v2\", feature = \"payment_methods_v2\"))]\n", "#[derive(Debug, serde::Serialize, ToSchema, Clone)]\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/network_tokenization.rs", "...
[ "json", "rs" ]
25
juspay/hyperswitch
juspay__hyperswitch-6919
Bug: add retrieve api support for relay /relay is a api that will be used to just forward the request sent by merchant without performing any application logic on it. This is particular to support the refunds for the payments that was directly performed with the connector (example stripe) with out hyperswitch involv...
diff --git a/crates/api_models/src/relay.rs b/crates/api_models/src/relay.rs index e4bc607fc0d..f54e1471632 100644 --- a/crates/api_models/src/relay.rs +++ b/crates/api_models/src/relay.rs @@ -84,9 +84,20 @@ pub struct RelayRetrieveRequest { #[serde(default)] pub force_sync: bool, /// The unique identifi...
2024-12-23T09:40:12Z
## 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 --> /relay is a api that will be used to just forward the request s...
1fc941056fb8759435f41bba004a602c176eb802
-> Create a merchant connector account -> Make a refund request with invalid connector_resource_id ``` curl --location 'http://localhost:8080/relay' \ --header 'Content-Type: application/json' \ --header 'X-Profile-Id: pro_rIikb0gPrzd0vEY8hIiP' \ --header 'api-key: dev_qqMQAuMWCclJSk4uMBeNNSpqAPlsKlBA3blQOwOoq5...
[ { "file_path": "crates/api_models/src/relay.rs", "lines": [ " pub id: common_utils::id_type::RelayId,\n", "}\n", "\n", "#[derive(Debug, ToSchema, Clone, Deserialize, Serialize)]\n", "pub struct RelayRetrieveBody {\n", " /// The unique identifier for the Relay\n", ...
[ { "file_path": "crates/api_models/src/relay.rs", "lines": [ " pub id: String,\n" ] }, { "file_path": "crates/diesel_models/src/relay.rs", "lines": [ "#[table_name = \"relay\"]\n" ] }, { "file_path": "crates/router/src/core/relay.rs", "lines": [ "use commo...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-6916
Bug: fix(payments_list): handle same payment/attempt IDs for different merchants The query planner was applying the merchant_id filter before the join operation, which caused incorrect results when different merchants had the same payment_id or attempt_id. This prematurely filtered out valid rows from the payment_at...
diff --git a/crates/storage_impl/src/payments/payment_intent.rs b/crates/storage_impl/src/payments/payment_intent.rs index fe64136b743..786cbe75a43 100644 --- a/crates/storage_impl/src/payments/payment_intent.rs +++ b/crates/storage_impl/src/payments/payment_intent.rs @@ -831,10 +831,11 @@ impl<T: DatabaseStore> Paymen...
2024-12-23T09:39:07Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Changed the query to apply the merchant_id filter after the join. This ensures valid rows aren’t excluded...
a423ff53d3523508ba6c584134e32f3f1bb4f0c0
Tried to have to merchant id that have same payment/atttempt id. And tested for the logic: <img width="1078" alt="Screenshot 2024-12-23 at 7 31 50 PM" src="https://github.com/user-attachments/assets/0cc062fd-e10a-45f2-adbb-549dc9eb34c1" /> <img width="1056" alt="Screenshot 2024-12-23 at 4 32 48 PM" src="https://githu...
[ { "file_path": "crates/storage_impl/src/payments/payment_intent.rs", "lines": [ " .filter(pi_dsl::merchant_id.eq(merchant_id.to_owned()))\n", " .filter(pa_dsl::merchant_id.eq(merchant_id.to_owned())) // Ensure merchant_ids match, as different merchants can share payment/att...
[ { "file_path": "crates/storage_impl/src/payments/payment_intent.rs", "lines": [ " .filter(pi_dsl::merchant_id.eq(merchant_id.to_owned()))\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6941
Bug: [FEATURE] integrate NTI flow for Worldpay and Novalnet ### Feature Description Processing card payments using Network Transaction ID is required for below payment processors - - Fiuu - Novalnet - Worldpay This helps make card payments agnostic to the acquirer. ### Possible Implementation Fiuu - c...
diff --git a/config/config.example.toml b/config/config.example.toml index 821e854c9fa..c860420da38 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -802,7 +802,7 @@ check_token_status_url= "" # base url to check token status from token servic connector_list = "cybersource" # Supported co...
2024-12-26T11:38:07Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6941 This PR adds NTI flow integrations for below connectors - Fiuu - store NTI ID i...
d01172a613b8e74564eef792b8a6915c647854fc
<details> <summary>1. CIT for cards through Adyen</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_rh7Gdbe4bpB4Vxz9A7SQge8NwmI48LHgckedcW...
[ { "file_path": "config/config.example.toml", "lines": [ "connector_list = \"adyen,cybersource,novalnet,stripe,worldpay\" # Supported connectors for network transaction id\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "connector_list = \"adyen,cyber...
[ { "file_path": "config/config.example.toml", "lines": [ "connector_list = \"stripe,adyen,cybersource\" # Supported connectors for network transaction id\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "connector_list = \"stripe,adyen,cybersource\"\n"...
[ "yml", "toml", "rs" ]
16
juspay/hyperswitch
juspay__hyperswitch-6914
Bug: [feat] show error code and message in cypress reports show error code and message in cypress reports. this is helpful to debug failures in ci
2024-12-21T07:48:52Z
## 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 error code and error message validations. ...
d4b3dbc155906e8bc0fa1b14e73f45227395a32f
when a ci check fail, especially from the connectors' end, ci takes a screenshot of the ui, as usual, but that will now contain the error code and message. since adyen yet again got into some issues with save card flow, it is possible to test my changes directly without the need to make any modifications to the ...
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6902
Bug: [REFACTOR] send `tenant-id` and `request-id` in grpc headers
diff --git a/crates/common_utils/src/consts.rs b/crates/common_utils/src/consts.rs index 39e5483700a..3b437b703be 100644 --- a/crates/common_utils/src/consts.rs +++ b/crates/common_utils/src/consts.rs @@ -146,3 +146,6 @@ pub const CONNECTOR_TRANSACTION_ID_HASH_BYTES: usize = 25; /// Apple Pay validation url pub const...
2024-12-19T16:09:44Z
## 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 support for sending the `x-tenant-id` and `x-reque...
dcd51a7fb8df673cc74130ee732542b55783602f
1. Create merchant_account, api_key and mca (any connector) 2. Toggle dynamic routing ``` curl --location --request POST 'http://localhost:8080/account/merchant_1734609410/business_profile/pro_gPTjn9jLm0CxI8ZD1omL/dynamic_routing/success_based/toggle?enable=metrics' \ --header 'Content-Type: application/json' \...
[ { "file_path": "crates/common_utils/src/consts.rs", "lines": [ "\n", "/// Request ID\n", "pub const X_REQUEST_ID: &str = \"x-request-id\";\n" ] }, { "file_path": "crates/external_services/src/grpc_client.rs", "lines": [ "#[cfg(feature = \"dynamic_routing\")]\n", ...
[ { "file_path": "crates/external_services/src/grpc_client/dynamic_routing/elimination_rate_client.rs", "lines": [ " let request = tonic::Request::new(EliminationRequest {\n", " let request = tonic::Request::new(UpdateEliminationBucketRequest {\n", " let request = tonic:...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6901
Bug: refactor(dynamic_routing): perform db operations only when payments are in terminal state
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index 193998c3fd1..c3faa5c6f93 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -1304,6 +1304,20 @@ pub enum IntentStatus { } impl IntentStatus { + /// Indicates whether the payment intent is i...
2024-12-19T14:48:25Z
## 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 --> Previously due to the DB insertion code being in `post_update_t...
04787313941ec39b179490d0196258f09e2e51dd
1. Toggle Success Based routing for the merchant. ``` curl --location --request POST 'http://localhost:8080/account/xxxxxx/business_profile/xxxxxxx/dynamic_routing/success_based/toggle?enable=metrics' \ --header 'api-key: xxxxxxx' ``` 2. Create a payment that goes in processing state or any non terminal state. (...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " /// Indicates whether the payment intent is in terminal state or not\n", " pub fn is_in_terminal_state(self) -> bool {\n", " match self {\n", " Self::Succeeded | Self::Failed | Self::Cancelled | S...
[ { "file_path": "crates/router/src/core/payments/operations/payment_response.rs", "lines": [ " if business_profile.dynamic_routing_algorithm.is_some() {\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6893
Bug: [bug] reports are being generated in cypress upon failures that is because recently, i moved cypress.config.js from being a commonjs module to esmodule and this resulted in inconsistencies which went unaddressed or unnotified.
2024-12-19T10:16:04Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> closes https://github.com/juspay/hyperswitch/issues/6893 t...
c525c9f4c9d23802989bc594a4acd26c7d7cd27d
the changes in this pr has been cherry picked from #6735. reports for failed tests were generated there. an example of reports being generated: https://github.com/juspay/hyperswitch/actions/runs/12409713710?pr=6735
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6889
Bug: [FEATURE] Implement Payment Method Samsung Pay for Connector BankOfAmerica ### Feature Description Implement Payment Method Samsung Pay for Connector BankOfAmerica. ### Possible Implementation Samsung Pay should be implemented for BankOfAmerica ### Have you spent some time checking if this feature request h...
diff --git a/crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs b/crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs index 4b40e36a7a6..7690b6ed3d0 100644 --- a/crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs +++ b/crates/hyperswitch_connectors/...
2024-12-19T08:24:33Z
## 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 --> Implemented Payment Method Samsung Pay for connector Bankofamer...
10371af561ecc7536bb1db191af90a3cac2ab515
1. Connector configuration with merhcant account ``` curl --location 'http://localhost:8080/account/merchant_1734596148/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "payment_processor", "con...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs", "lines": [ "use common_utils::{consts, ext_traits::OptionExt, pii};\n", " payment_method_data::{\n", " ApplePayWalletData, GooglePayWalletData, PaymentMethodData, SamsungPayWalletData,\n"...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/bankofamerica/transformers.rs", "lines": [ "use common_utils::{consts, pii};\n", " payment_method_data::{ApplePayWalletData, GooglePayWalletData, PaymentMethodData, WalletData},\n", " | WalletData::Samsu...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6925
Bug: [FEATURE] Add support for retries with clear pan and network token payment method data Add support for payment retries with clear pan and network token payment method data and also reduced calls to locker when data is already fetch once.
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 2e0d57d977e..cd8b8458364 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -10615,7 +10615,8 @@ "message", "status", "decision", - "step_up_possi...
2024-12-19T21:16:38Z
## 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 to retry a transaction with clear PAN or Network To...
b71571d16ca4553e1c7eca17f00df24945479638
test cases - 1 - enable network tokenization, auto retries for profile 2 - make a setup future usage= on_session payment. 3 - make saved card payment (with payment token) (payment will happen with network token + cryptogram) with adyen, if it fails, a retry will happen with card data fetched from locker with same...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"step_up_possible\",\n", " \"clear_pan_possible\"\n", " },\n", " \"clear_pan_possible\": {\n", " \"type\": \"boolean\",\n", " \"description\": \"in...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"step_up_possible\"\n", " \"step_up_possible\"\n", " \"is_click_to_pay_enabled\"\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/payments.rs", "lines": [ "#[cfg(...
[ "sql", "json", "rs" ]
44
juspay/hyperswitch
juspay__hyperswitch-6886
Bug: [BUG] fix cypress test cases for adyenplatform ### Bug Description Cypress test cases for adyenplatform (Payout specific test cases) are failing. ### Expected Behavior They should be successfully executed. ### Actual Behavior They're failing while doing a status check in the expected response and...
2024-12-19T07:03:39Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description This PR fixes the cypress payout test cases for AdyenPlatform connector. ### Additional Changes -...
4bc88a71903bbb06cc757569b4c20d2d63f9d245
Locally. <img width="845" alt="Screenshot 2024-12-19 at 12 33 27 PM" src="https://github.com/user-attachments/assets/e9cd904d-c9a7-4b1e-93e9-5c78ae705a4e" />
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6898
Bug: add api model changes for /relay endpoint /relay is a api that will be used to just forward the request sent by merchant without performing any application logic on it. In this pr the changes is particular to support the refunds for the payments that was directly performed with the connector (example stripe) wi...
diff --git a/crates/api_models/src/lib.rs b/crates/api_models/src/lib.rs index a28332e7fea..2d1e87ebf01 100644 --- a/crates/api_models/src/lib.rs +++ b/crates/api_models/src/lib.rs @@ -31,6 +31,7 @@ pub mod poll; #[cfg(feature = "recon")] pub mod recon; pub mod refunds; +pub mod relay; pub mod routing; pub mod sur...
2024-12-18T06:00:50Z
## 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 --> /relay is a api that will be used to just forward the request s...
dcd51a7fb8df673cc74130ee732542b55783602f
<img width="1675" alt="image" src="https://github.com/user-attachments/assets/246da847-274c-4d1e-b441-07326e4a6d00" /> <img width="1721" alt="image" src="https://github.com/user-attachments/assets/0cb733ee-562d-4994-b57c-289296fff720" />
[ { "file_path": "crates/api_models/src/lib.rs", "lines": [ "pub mod relay;\n" ] }, { "file_path": "crates/api_models/src/relay.rs", "lines": [ "pub use common_utils::types::MinorUnit;\n", "use serde::{Deserialize, Serialize};\n", "use utoipa::ToSchema;\n", "\n", ...
[ { "file_path": "crates/openapi/src/routes.rs", "lines": [ " payment_method::*, payments::*, poll::*, refunds::*, routing::*, webhook_events::*,\n" ] } ]
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6892
Bug: feat(email): Local SMTP server Add mailhog by default in docker-compose for local smtp server.
diff --git a/config/docker_compose.toml b/config/docker_compose.toml index cfdf4b0e0c2..4296a5931dc 100644 --- a/config/docker_compose.toml +++ b/config/docker_compose.toml @@ -55,9 +55,9 @@ master_enc_key = "73ad7bbbbc640c845a150f67d058b279849370cd2c1f3c67c4dd6c869213e1 password_validity_in_days = 90 two_factor_auth...
2024-12-18T04:38:10Z
## 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 support to run local email server in docker-compose. User c...
e35f7079e3fc9ada76d0602739053bdd5d595008
[ { "file_path": "config/docker_compose.toml", "lines": [ "base_url = \"http://localhost:9000\"\n", "force_cookies = false\n", "forex_enabled = false # Enable or disable forex conversion for analytics\n", "active_email_client = \"SMTP\" # The currently active email client\...
[ { "file_path": "config/docker_compose.toml", "lines": [ "base_url = \"http://localhost:8080\"\n", "force_cookies = true\n", "active_email_client = \"NO_EMAIL_CLIENT\" # The currently active email client\n" ] } ]
[ "yml", "toml" ]
2
juspay/hyperswitch
juspay__hyperswitch-6883
Bug: feat(core): setup platform merchant account - Setup platform merchant account. Platform merchant account is a special type of merchant account which can do operations on behalf of other merchant account present in the same organisation. - Add APIs to create a platform merchant account / convert a merchant accou...
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml index 7fdc0c6d5e8..65ce1fdbc0a 100644 --- a/config/deployments/integration_test.toml +++ b/config/deployments/integration_test.toml @@ -428,3 +428,6 @@ card_networks = "Visa, AmericanExpress, Mastercard" [network_tokeniz...
2024-12-18T18:20:15Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description #### About the feature - This the first PR for the Platform Account feature. - Feature is under develop...
1fc941056fb8759435f41bba004a602c176eb802
1. Create a merchant account(m1). 2. Use below api to convert it into platform account. ```sh curl --location --request POST '<BASE URL>/accounts/{merchant_id}/platform' \ --header 'api-key:<ADMIN API KEY>' ``` 3. Create another merchant account in the same organisation(m2). 4. Do a payment using platform's(m1) ...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "\n", "[platform]\n", "enabled = true\n" ] }, { "file_path": "config/deployments/production.toml", "lines": [ "\n", "[platform]\n", "enabled = false\n" ] }, { "file_path": "c...
[ { "file_path": "crates/hyperswitch_domain_models/src/errors/api_error_response.rs", "lines": [ "\n" ] }, { "file_path": "crates/router/build.rs", "lines": [ " // Set thread stack size to 8 MiB for debug builds\n", " println!(\"cargo:rustc-env=RUST_MIN_STACK=8388608\")...
[ "sql", "toml", "rs" ]
63
juspay/hyperswitch
juspay__hyperswitch-6861
Bug: 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 profi...
diff --git a/crates/router/src/core/user/theme.rs b/crates/router/src/core/user/theme.rs index 27b342d9053..2a896b7158f 100644 --- a/crates/router/src/core/user/theme.rs +++ b/crates/router/src/core/user/theme.rs @@ -21,7 +21,7 @@ pub async fn get_theme_using_lineage( lineage: ThemeLineage, ) -> UserResponse<them...
2024-12-17T12:04:20Z
## 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 ...
e8bfd0e2270300fff3f051143f34ebb782da5366
Refactoring changes, currently in config global schema points to public, so no change in behaviour. Changes will be reflected after we turn on feature flag for multi-tenancy and update the configs. Global interface will point to global (shared resources) schema. When interacting with roles and themes storeage fucnt...
[ { "file_path": "crates/router/src/core/user/theme.rs", "lines": [ " .store\n", " .store\n", " .store\n", " .store\n", " .store\n", " .store\n" ] }, { "file_path": "crates/router/src/core/user_role/role.rs", "lines"...
[ { "file_path": "crates/router/src/core/user/theme.rs", "lines": [ " .global_store\n", " .global_store\n", " .global_store\n", " .global_store\n", " .global_store\n", " .global_store\n" ] }, { "file_path": "crates/route...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6854
Bug: refactor(dynamic_routing): add col payment_method_type in dynamic_routing_stats
diff --git a/crates/diesel_models/src/dynamic_routing_stats.rs b/crates/diesel_models/src/dynamic_routing_stats.rs index 168699d7f56..c055359d8b0 100644 --- a/crates/diesel_models/src/dynamic_routing_stats.rs +++ b/crates/diesel_models/src/dynamic_routing_stats.rs @@ -19,6 +19,7 @@ pub struct DynamicRoutingStatsNew { ...
2024-12-16T12:13:56Z
## 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 change will add `payment_method_type` in dynamic_routing_s...
ae00a103de5bd283695969270a421c7609a699e8
Testing can be done in following way: 1. Enable Success based routing for a profile with feature as metrics. 2. Make a payment. 3. Search the `dynamic_routing_stats` table for the new col. `payment_method_type` for that payment. <img width="441" alt="Screenshot 2024-12-16 at 5 38 33 PM" src="https://github.co...
[ { "file_path": "crates/diesel_models/src/dynamic_routing_stats.rs", "lines": [ " pub payment_method_type: Option<common_enums::PaymentMethodType>,\n", " pub payment_method_type: Option<common_enums::PaymentMethodType>,\n" ] }, { "file_path": "crates/diesel_models/src/schema.rs"...
[]
[ "sql", "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6872
Bug: [FEATURE] [Network Tokenization]: Tokenize before payment ### Feature Description Tokenize the card before payment based on profile level config. ### Possible Implementation Tokenize the card before payment based on profile level config. ### Have you spent some time checking if this feature request has been...
diff --git a/crates/api_models/src/admin.rs b/crates/api_models/src/admin.rs index a7b57b7433c..60eca62b618 100644 --- a/crates/api_models/src/admin.rs +++ b/crates/api_models/src/admin.rs @@ -2002,6 +2002,9 @@ pub struct ProfileCreate { /// Indicates if the redirection has to open in the iframe pub is_ifra...
2024-12-18T06:19:09Z
## 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 --> Introduced a new field in business_profile (is_pre_network_toke...
1192bd5247dc099f647963a90ccc85a356b9f742
1. Enable is_network_tokenization_enabled and is_pre_network_tokenization_enabled in business_profile 2. Create a card payment with a network tokenization supported connector. (Customer acceptance should be there) Connector Create(Cybersource): ``` curl --location 'http://localhost:8080/account/merchant_1747299...
[ { "file_path": "crates/api_models/src/admin.rs", "lines": [ "\n", " /// Indicates if pre network tokenization is enabled or not\n", " pub is_pre_network_tokenization_enabled: Option<bool>,\n", "\n", " /// Indicates if pre network tokenization is enabled or not\n", ...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " payments::{payment_intent::CustomerData, ClickToPayMetaData},\n", " payment_intent: &hyperswitch_domain_models::payments::PaymentIntent,\n" ] }, { "file_path": "crates/router/src/core/payments/helpers.rs", "l...
[ "sql", "rs" ]
17
juspay/hyperswitch
juspay__hyperswitch-6850
Bug: [bug] adyen mit transactions in ntid flow fail due mis matched expiry conversion ```txt "The provided Expiry Date is not valid.: Expiry year should be a 4 digit number greater than 2000: 30" ``` above error is being thrown during ntid transaction resulting in payment to fail: <img width="441" alt="image...
diff --git a/crates/router/src/connector/adyen/transformers.rs b/crates/router/src/connector/adyen/transformers.rs index 16cab2fda47..3e84dffcfaf 100644 --- a/crates/router/src/connector/adyen/transformers.rs +++ b/crates/router/src/connector/adyen/transformers.rs @@ -2650,7 +2650,7 @@ impl ...
2024-12-16T11:55:03Z
## 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 flo...
986de77b4868e48d00161c9d30071d809360e9a6
xecuted below commands: ```sh
[ { "file_path": "crates/router/src/connector/adyen/transformers.rs", "lines": [ " .get_expiry_year_4_digit()\n" ] } ]
[ { "file_path": "crates/router/src/connector/adyen/transformers.rs", "lines": [ " .card_exp_year\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6835
Bug: feat(redis-interface): add redis interface command to set multiple the keys in redis and increment if the key already exists add redis interface command to set multiple the keys in redis and increment if the key already exists
diff --git a/crates/redis_interface/src/commands.rs b/crates/redis_interface/src/commands.rs index 746b424abc8..19497d6fbb8 100644 --- a/crates/redis_interface/src/commands.rs +++ b/crates/redis_interface/src/commands.rs @@ -14,7 +14,7 @@ use common_utils::{ use error_stack::{report, ResultExt}; use fred::{ inte...
2024-12-12T11:51:49Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description add redis interface command to set multiple the keys in redis and increment if the key already exists ...
573fc2ce0ff306d15ec97e7c8d5b8a03528165f4
- Wrote a unit test to insert the keys <img width="1725" alt="Screenshot 2024-12-13 at 1 05 33 PM" src="https://github.com/user-attachments/assets/5165c747-6e53-4db2-9dce-6aa338c33517" />
[ { "file_path": "crates/redis_interface/src/commands.rs", "lines": [ " prelude::{LuaInterface, RedisErrorKind},\n", "\n", " #[instrument(level = \"DEBUG\", skip(self))]\n", " pub async fn incr_keys_using_script<V>(\n", " &self,\n", " lua_script: &'st...
[ { "file_path": "crates/redis_interface/src/commands.rs", "lines": [ " prelude::RedisErrorKind,\n", "\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6840
Bug: [FEATURE] [Deutschebank] : Implement 3ds Card Flow ### Feature Description Implement 3ds Card Flow for Deutschebank ### Possible Implementation Implement 3ds Card Flow for Deutschebank ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a si...
diff --git a/crates/diesel_models/src/payment_attempt.rs b/crates/diesel_models/src/payment_attempt.rs index 03facc2ebab..a450a30fa76 100644 --- a/crates/diesel_models/src/payment_attempt.rs +++ b/crates/diesel_models/src/payment_attempt.rs @@ -3426,6 +3426,10 @@ pub enum RedirectForm { access_token: String, ...
2024-12-16T08:25:48Z
## 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 Card 3ds for Deutschebank ### Additional Changes ...
3eb2eb1cf5b9855432b49994b433e6f7fa404212
**Cypress Tests** **1. No3DSManualCapture** ![image](https://github.com/user-attachments/assets/cca4c8ed-2205-419b-8eb4-4759daf20f8a) **2. 3DSAutoCapture** ![image](https://github.com/user-attachments/assets/38318c13-fba1-40f9-a4a8-16ee655e6127) **3. 3DSManualCapture** ![image](https://github.com/...
[ { "file_path": "crates/diesel_models/src/payment_attempt.rs", "lines": [ " DeutschebankThreeDSChallengeFlow {\n", " acs_url: String,\n", " creq: String,\n", " },\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/deutschebank.rs", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/deutschebank.rs", "lines": [ " RefundsRequestData,\n", " api::CurrencyUnit::Base\n", " if req.request.connector_mandate_id().is_none() {\n", " let event_id = req.connector_request_reference_i...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6841
Bug: Add support to pass apple pay recurring details in the payment request Whenever a customer makes an Applepay payment a unique network token called a DPAN (Device Primary Account Number) is created and stored securely on the customer’s Apple device. This token acts as the payment information for all purchases an...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index ee5654cfb6b..17849948516 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3288,12 +3288,169 @@ } ], "nullable": true + }, + "r...
2024-12-06T12:20:54Z
## 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 --> Whenever a customer makes an Applepay payment a unique network ...
da4642761495fba88e76ae7cbb567afdac28dce0
-> Create a merchant connector account with applepay metadata to decrypt the apple pay token at hyperswitch -> Create a payment by passing `apple_pay_recurring_details` ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --head...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " },\n", " \"recurring_payment_request\": {\n", " \"allOf\": [\n", " {\n", " \"$ref\": \"#/components/schemas/ApplePayRecurringPaymentRequest\"\n", " ...
[ { "file_path": "crates/diesel_models/src/types.rs", "lines": [ "impl masking::SerializableSecret for FeatureMetadata {}\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/lib.rs", "lines": [ "use diesel_models::types::{FeatureMetadata, OrderDetailsWithAmount, RedirectRe...
[ "json", "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-6807
Bug: [FEATURE] [AIRWALLEX] Add refferer data to whitelist hyperswitch ### Feature Description Referrer data needs to be added in Airwallex's Create Payment Intent request in order to whitelist Hyperswitch for processing raw card details. ### Possible Implementation Referrer data needs to be added in Airwallex's C...
diff --git a/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs b/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs index 97c9ed4d36a..e8ab479c978 100644 --- a/crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs +++ b/crates/hyperswitch_connectors/src/connecto...
2024-12-11T11:54:10Z
## 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 referrer data in Airwallex's Create Payment Intent request ...
cd205378c035780586f6b94e5c9e03466165a33b
Testing can be done by verifying payment logs for Airwallex payments <img width="1276" alt="Screenshot 2024-12-11 at 5 28 08 PM" src="https://github.com/user-attachments/assets/55f4ce53-6e38-46be-9055-d0ea50dd7b0c"> Payments Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs", "lines": [ "\n", "#[derive(Default, Debug, Serialize, Eq, PartialEq)]\n", "pub struct ReferrerData {\n", " #[serde(rename = \"type\")]\n", " r_type: String,\n", " version: St...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6788
Bug: 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 conne...
diff --git a/crates/router/src/routes/admin.rs b/crates/router/src/routes/admin.rs index 80d22ad22bf..a57fd56e6c8 100644 --- a/crates/router/src/routes/admin.rs +++ b/crates/router/src/routes/admin.rs @@ -431,7 +431,10 @@ pub async fn connector_retrieve( &auth::AdminApiAuthWithMerchantIdFromHeader, ...
2024-12-10T13:06:55Z
## 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 ...
08ab3ad7a2e60bc35332be606941793bc6a8a32f
``` curl 'http://localhost:8080/account/merchant_1733829021/profile/connectors' \ -H 'Content-Type: application/json' \ -H 'Cookie: login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMzgyMWViZTktNGVkZS00Y2Y5LTlkNDQtNDgzZGFjMTM2ODEzIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzMzODI5MDIxIiwicm9sZV9pZCI6In...
[ { "file_path": "crates/router/src/routes/admin.rs", "lines": [ " // This should ideally be ProfileConnectorRead, but since this API responds with\n", " // sensitive data, keeping this as ProfileConnectorWrite\n", " // TODO: Convert this to Profi...
[ { "file_path": "crates/router/src/routes/admin.rs", "lines": [ " required_permission: Permission::ProfileConnectorRead,\n" ] }, { "file_path": "crates/router/src/services/authorization/permission_groups.rs", "lines": [ " Self::OperationsView => vec![Self...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6800
Bug: [deps] update scylla driver
diff --git a/Cargo.lock b/Cargo.lock index e8315e8049a..4284539c5e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7153,9 +7153,8 @@ dependencies = [ [[package]] name = "scylla" -version = "0.14.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8139623d3fb0c8205b15e84fa587f3aa0ba61f876...
2024-12-11T06:19:00Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Dependency updates ## Description <!-- Describe your changes in detail --> Update scylla driver on masking crate ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, please link...
400d9a42de4cb99e3e2d7dc69510f503661700e4
Compiler guided. Testing not needed in environments
[ { "file_path": "Cargo.lock", "lines": [ "version = \"0.15.0\"\n", "source = \"git+https://github.com/juspay/scylla-rust-driver.git?rev=5700aa2847b25437cdd4fcf34d707aa90dca8b89#5700aa2847b25437cdd4fcf34d707aa90dca8b89\"\n", "version = \"0.4.0\"\n", "source = \"git+https://github.com/j...
[ { "file_path": "Cargo.lock", "lines": [ "version = \"0.14.0\"\n", "source = \"registry+https://github.com/rust-lang/crates.io-index\"\n", "checksum = \"8139623d3fb0c8205b15e84fa587f3aa0ba61f876c19a9157b688f7c1763a7c5\"\n", "version = \"0.3.0\"\n", "source = \"registry+https://g...
[ "toml", "lock", "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6787
Bug: refactor(constraint_graph): add cypress test cases for 'mandate_details'
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index 13575961108..0ca77f3a5ee 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -4589,7 +4589,7 @@ pub async fn filter_payment_methods( ...
2024-12-11T12:50:44Z
## 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 will handel the cases for constraint_graph for PML where s...
9466ced89407f31963bb0eb7c762749e3713591a
This can be tested in the following way: 1. Connector create (Fiuu) ``` curl --location 'http://127.0.0.1:8080/account/merchant_1733312955/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "payment_p...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " .unwrap_or(true)\n" ] } ]
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " .unwrap_or(false)\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6808
Bug: 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.
diff --git a/config/config.example.toml b/config/config.example.toml index 0fe6b8caa2c..8d7c926c3e2 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -758,8 +758,15 @@ sdk_eligible_payment_methods = "card" enabled = false global_tenant = { schema = "public", redis_key_prefix = "", clickhouse...
2024-12-11T12:20:07Z
## 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 ### Addition...
ed276ecc0017f7f98b6f8fa3841e6b8971f609f1
Tested locally with email feature flag on, for different tenancies the emails we were getting, we were landing onto to the URL specified in the tenant's config. We specified the following in the local configs. ``` [multitenancy] enabled = true global_tenant = { schema = "public", redis_key_prefix = "", clickhouse_...
[ { "file_path": "config/config.example.toml", "lines": [ "[multitenancy.tenants.public]\n", "base_url = \"http://localhost:8080\" # URL of the tenant\n", "schema = \"public\" # Postgres db schema\n", "redis_key_prefix = \"\" ...
[ { "file_path": "config/config.example.toml", "lines": [ "[multitenancy.tenants]\n", "public = { base_url = \"http://localhost:8080\", schema = \"public\", redis_key_prefix = \"\", clickhouse_database = \"default\" } # schema -> Postgres db schema, redis_key_prefix -> redis key distinguisher, bas...
[ "toml", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-6814
Bug: [FEATURE] Ephemeral Auth for v2 ### Feature Description We need to support ephemeral auth in v2. This would replace the current client secret auth being used in Payment methods ### Possible Implementation Need to add implementation for ephemeral auth ### Have you spent some time checking if this feature r...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 58a81caeed3..7a9448a4fd4 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -13696,16 +13696,11 @@ "PaymentMethodIntentConfirm": { "type": "object", "required": [ ...
2024-12-11T18:52:11Z
## 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 contains - - Ephemeral auth support for v2 (including...
e8bfd0e2270300fff3f051143f34ebb782da5366
1. Create Payment Method Intent ``` curl --location --request POST 'http://localhost:8080/v2/payment-methods/create-intent' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'X-Profile-Id: pro_DMmRBLpkNczeVDPd2EKd' \ --header 'api-key: dev_HVwdf7yWqJ9GGfw1CLDbAgjOFYHr...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"ephemeral_key\": {\n" ] }, { "file_path": "crates/api_models/src/ephemeral_key.rs", "lines": [ "#[cfg(feature = \"v2\")]\n", "use masking::Secret;\n", "#[cfg(feature = \"v1\")]\n", "#[c...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"client_secret\",\n", " \"client_secret\": {\n", " \"type\": \"string\",\n", " \"description\": \"For SDK based calls, client_secret would be required\"\n", " },\...
[ "json", "rs" ]
23
juspay/hyperswitch
juspay__hyperswitch-6782
Bug: Adding new logo in API ref and Readme
diff --git a/api-reference-v2/logo/dark.svg b/api-reference-v2/logo/dark.svg index fbf0d89d410..f07be0cea14 100644 --- a/api-reference-v2/logo/dark.svg +++ b/api-reference-v2/logo/dark.svg @@ -1,29 +1,21 @@ -<svg width="766" height="100" viewBox="0 0 766 100" fill="none" xmlns="http://www.w3.org/2000/svg"> -<g clip-pat...
2024-12-09T21:10:32Z
## 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 --> ### Additional Changes - [ ] This PR modifies the API co...
05f737309f7fac9f0985fac2948a57398c286317
[ { "file_path": "api-reference-v2/logo/dark.svg", "lines": [ "<svg width=\"545\" height=\"58\" viewBox=\"0 0 545 58\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n", "<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M27.2375 54.3079C25.9366 54.3441 24.6718 54.2355 23.3708 54.0545C19....
[ { "file_path": "api-reference-v2/logo/dark.svg", "lines": [ "<svg width=\"766\" height=\"100\" viewBox=\"0 0 766 100\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n", "<g clip-path=\"url(#clip0_1969_1952)\">\n", "<path d=\"M370.801 53.4399C370.801 70.0799 360.581 79.9999 346.441 79...
[ "svg" ]
2
juspay/hyperswitch
juspay__hyperswitch-6786
Bug: refactor(dynamic_routing): update the authentication for update config to include JWT type Enable JWT to be used for update config for success based routing route, previously it was only admin api key.
diff --git a/crates/openapi/src/openapi.rs b/crates/openapi/src/openapi.rs index 7ad5645e75a..fc8668905ca 100644 --- a/crates/openapi/src/openapi.rs +++ b/crates/openapi/src/openapi.rs @@ -159,7 +159,9 @@ Never share your secret api keys. Keep them guarded and secure. routes::routing::routing_retrieve_linked_c...
2024-12-10T09:10:55Z
## 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 will enable JWT to be used for update config for succes...
886e2aacd7dcd8a04a33884ceafb1562aa7c365f
This will be checked with JWT token. ``` curl --location --request PATCH '{base_url}/account/:account_id/business_profile/:profile_id/dynamic_routing/success_based/config/:routing_config_id' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer token' \ --data '{ "params": [ "Curr...
[ { "file_path": "crates/openapi/src/openapi.rs", "lines": [ " routes::routing::success_based_routing_update_configs,\n", " routes::routing::toggle_elimination_routing,\n", " api_models::routing::SuccessBasedRoutingConfig,\n", " api_models::routing::DynamicR...
[ { "file_path": "crates/openapi/src/routes/routing.rs", "lines": [ " path = \"/account/:account_id/business_profile/:profile_id/dynamic_routing/success_based/toggle\",\n", " path = \"/account/:account_id/business_profile/:profile_id/dynamic_routing/elimination/toggle\",\n" ] }, { ...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6778
Bug: Adding support for Tenant ID in Kafka events apart from Transactional events ( API , Connector, Outgoing ) Need to add tenant-id for kafka events for the domains API events, Connector events and Outgoing Webhook Events
diff --git a/crates/hyperswitch_interfaces/src/events/connector_api_logs.rs b/crates/hyperswitch_interfaces/src/events/connector_api_logs.rs index 5edd8d68c32..bf9eafe5aaf 100644 --- a/crates/hyperswitch_interfaces/src/events/connector_api_logs.rs +++ b/crates/hyperswitch_interfaces/src/events/connector_api_logs.rs @@ ...
2024-12-09T09:51:37Z
## 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 --> The changes are required for pushing tenant ID for API events, ...
05f737309f7fac9f0985fac2948a57398c286317
Attaching screenshots <img width="917" alt="Screenshot 2024-12-09 at 3 20 34 PM" src="https://github.com/user-attachments/assets/b8918318-68b5-426c-aad3-9eed76cd5150"> <img width="925" alt="Screenshot 2024-12-09 at 3 20 08 PM" src="https://github.com/user-attachments/assets/b21c5b4b-359b-4d35-a875-c33154c06e...
[ { "file_path": "crates/hyperswitch_interfaces/src/events/connector_api_logs.rs", "lines": [ " tenant_id: common_utils::id_type::TenantId,\n", " tenant_id: common_utils::id_type::TenantId,\n", " tenant_id,\n" ] }, { "file_path": "crates/router/src/core/webho...
[]
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6775
Bug: feat(analytics): add support for multiple emails as input to forward reports Currently, while generating reports on the dashboard, the current setup only supports forwarding reports to the email of the account signed in. Should add support to have custom emails in the input text box on the dashboard while gener...
diff --git a/crates/api_models/src/analytics.rs b/crates/api_models/src/analytics.rs index 806eb4b6e0e..7f58c6b00d7 100644 --- a/crates/api_models/src/analytics.rs +++ b/crates/api_models/src/analytics.rs @@ -114,6 +114,7 @@ pub struct RefundDistributionBody { #[serde(rename_all = "camelCase")] pub struct ReportReque...
2024-12-09T07:26:15Z
## 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 --> Currently, while generating reports on the dashboard, the curre...
079379e7290df47ac2410be50e066d84728a85ad
Hit the curl: ```bash curl --location 'http://localhost:8080/analytics/v1/org/report/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'Origin: http://localhost:9000' \ --header 'Referer: h...
[ { "file_path": "crates/api_models/src/analytics.rs", "lines": [ " pub emails: Option<Vec<Secret<String, EmailStrategy>>>,\n" ] } ]
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6773
Bug: refactor(kafka_message): NanoSecond precision for consolidated logs Due to millisecond level precision earlier , sessionizer was getting updates in same millisecond due to which updates were not getting picked up. Need to change this behaviour to NanoSecond precision
diff --git a/crates/router/src/services/kafka/dispute_event.rs b/crates/router/src/services/kafka/dispute_event.rs index 92327c044d7..45e7ff2c798 100644 --- a/crates/router/src/services/kafka/dispute_event.rs +++ b/crates/router/src/services/kafka/dispute_event.rs @@ -20,15 +20,15 @@ pub struct KafkaDisputeEvent<'a> { ...
2024-12-06T13:16:47Z
## 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 --> Adding nanosecond level precision to kafka messages for session...
b5d3d49ceaa2f89284ae5976afec0ff5663a24b0
Via Kafka UI
[ { "file_path": "crates/router/src/services/kafka/dispute_event.rs", "lines": [ " #[serde(default, with = \"time::serde::timestamp::nanoseconds::option\")]\n", " #[serde(default, with = \"time::serde::timestamp::nanoseconds::option\")]\n", " #[serde(default, with = \"time::serde::t...
[ { "file_path": "crates/router/src/services/kafka/dispute_event.rs", "lines": [ " #[serde(default, with = \"time::serde::timestamp::milliseconds::option\")]\n", " #[serde(default, with = \"time::serde::timestamp::milliseconds::option\")]\n", " #[serde(default, with = \"time::serde:...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6754
Bug: [FEATURE] [INESPAY] Implement Sepa Bank Debit Flow ### Feature Description Implement Sepa Bank Debit Flow ### Possible Implementation Implement Sepa Bank Debit Flow ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue ### Hav...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 41b2c0f80e4..330e504c272 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -6622,6 +6622,7 @@ "gocardless", "gpayments", "helcim", + "inespay", ...
2024-12-05T08:14:02Z
## 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 payment flows (Auth, PSync, Refund, RSync, and Webhooks) ...
062e1d1757ab894d3d7d88534372f8a85e77a8b6
1. Merchant Account Create 2. API Key Create 3.Inespay Connector Create: ``` curl --location 'http://localhost:8080/account/merchant_1736331946/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data '{ "connector_type": "pay...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"inespay\",\n", " \"inespay\",\n" ] }, { "file_path": "config/development.toml", "lines": [ "[pm_filters.inespay]\n", "sepa = { currency = \"EUR\" }\n", "\n" ] }, { ...
[ { "file_path": "crates/common_enums/src/connector_enums.rs", "lines": [ " // Inespay,\n", " // Inespay,\n", "\t\t\t// | Self::Inespay\n" ] }, { "file_path": "crates/connector_configs/src/connector.rs", "lines": [ " // pub inespay: Option<ConnectorTomlConfig>,...
[ "toml", "json", "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-6751
Bug: [BUG] Description for refunds - list is not apt ### Bug Description https://api-reference.hyperswitch.io/api-reference/refunds/refunds--list This should be - `Lists all the refunds associated with the merchant, or for a specific payment if payment_id is provided` Current one implies that it'll return ref...
diff --git a/crates/openapi/src/routes/refunds.rs b/crates/openapi/src/routes/refunds.rs index 4e096e243a8..0ff0891ee54 100644 --- a/crates/openapi/src/routes/refunds.rs +++ b/crates/openapi/src/routes/refunds.rs @@ -115,7 +115,7 @@ pub async fn refunds_update() {} /// Refunds - List /// -/// Lists all the refunds ...
2024-10-27T18:30:36Z
## Type of Change - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [ ] CI/CD ## Description The current description for refund - list is incorrect. Newer one looks more apt. ### Additional Changes - [ ] This PR modifies the API contra...
086115f47379b06185a1753979fc6dd9dc945afd
[ { "file_path": "crates/openapi/src/routes/refunds.rs", "lines": [ "/// Lists all the refunds associated with the merchant, or for a specific payment if payment_id is provided\n" ] } ]
[ { "file_path": "crates/openapi/src/routes/refunds.rs", "lines": [ "/// Lists all the refunds associated with the merchant or a payment_id if payment_id is not provided\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6750
Bug: [BUG] Network token data is being fetched in CIT repeat irrespective of connector Currently, Network token data is being fetched in CIT repeat irrespective of connector decided by routing. this would to lead to failure of payments with "payment method not implemented". New Implementation - connector decide...
diff --git a/crates/router/src/core/payment_methods.rs b/crates/router/src/core/payment_methods.rs index 599d696ec06..39889bf7577 100644 --- a/crates/router/src/core/payment_methods.rs +++ b/crates/router/src/core/payment_methods.rs @@ -588,6 +588,7 @@ pub async fn retrieve_payment_method_with_token( m...
2024-12-04T22:09:10Z
## 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 --> Currently we always fetch network token for the connector that ...
086115f47379b06185a1753979fc6dd9dc945afd
test cases - Create two MCA ex - Cybersource(network tokenization supported conn), Adyen enable network tokenization for business profile Make saved card flow transaction. when routable connector list - [Cybersource, Adyen] -> payment should happen with Network token + cryptogram when routable connector list -...
[ { "file_path": "crates/router/src/core/payment_methods.rs", "lines": [ " payment_attempt.connector.clone(),\n", " payment_attempt.connector.clone(),\n" ] }, { "file_path": "crates/router/src/core/payments/helpers.rs", "lines": [ " connector:...
[ { "file_path": "crates/router/src/core/payments/helpers.rs", "lines": [ " if let Some(token_ref) = pm_data.network_token_requestor_reference_id.clone() {\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6780
Bug: 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.
diff --git a/config/config.example.toml b/config/config.example.toml index 5aa9e543fb2..0fe6b8caa2c 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -797,5 +797,12 @@ host = "localhost" # Client Host port = 7000 # Client Port service = "dynamo" # Service name -[theme_storage] +[the...
2024-12-06T14:42:13Z
## 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 r...
08ab3ad7a2e60bc35332be606941793bc6a8a32f
1. User Info API will send `theme_id` in the response if a theme exists in your lineage. ``` curl --location 'http://localhost:8080/user' \ --header 'Cookie: login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiMzAwMjAwN2UtZWE3NC00NzVlLWJmNWQtMzYxNzIwNTk4YzA3IiwibWVyY2hhbnRfaWQiOiJtZXJjaGFu...
[ { "file_path": "config/config.example.toml", "lines": [ "[theme.storage]\n", "\n", "[theme.email_config]\n", "entity_name = \"Hyperswitch\" # Name of the entity to be showed in emails\n", "entity_logo_url = \"https://example.com/logo.svg\" # Logo URL of the...
[ { "file_path": "config/config.example.toml", "lines": [ "[theme_storage]\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "[theme_storage]\n", "[theme_storage.aws_s3]\n" ] }, { "file_path": "config/development.toml", "lines": [ ...
[ "sql", "toml", "rs" ]
27
juspay/hyperswitch
juspay__hyperswitch-6828
Bug: [FEATURE] Contract Routing Integration ### Feature Description Integration of Contract based routing in Router ### Possible Implementation Need to build interface, perform core integration and populate metrics for contract routing ### Have you spent some time checking if this feature request has been raised...
diff --git a/crates/api_models/src/events/routing.rs b/crates/api_models/src/events/routing.rs index f3e169336bf..122d1f8d3c8 100644 --- a/crates/api_models/src/events/routing.rs +++ b/crates/api_models/src/events/routing.rs @@ -1,12 +1,13 @@ use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::rou...
2024-12-05T20:19:52Z
## 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 --> - Built an interface for Contract based routing - Integrated C...
22072fd750940ac7fec6ea971737409518600891
1. Enable Contract routing config ``` curl --location --request POST 'http://localhost:8080/account/sarthak2/business_profile/pro_YozTgS8HebvBlk0UaeWW/dynamic_routing/contracts/toggle?enable=dynamic_connector_selection' \ --header 'api-key: dev_1aD8YuFd6Ovanf3oOtAYobqI6qw4ZBRSfw6BgYbifWHpaopkisBtm8obNXkFbVJn' \ -...
[ { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " ContractBasedRoutingPayloadWrapper, ContractBasedRoutingSetupPayloadWrapper,\n", " DynamicRoutingUpdateConfigQuery, LinkedRoutingConfigRetrieveResponse, MerchantRoutingAlgorithm,\n", " ProfileDefaultRoutingConf...
[ { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " LinkedRoutingConfigRetrieveResponse, MerchantRoutingAlgorithm, ProfileDefaultRoutingConfig,\n", " RoutingAlgorithmId, RoutingConfigRequest, RoutingDictionaryRecord, RoutingKind,\n", " RoutingLinkWrapper, Routin...
[ "rs", "proto" ]
21
juspay/hyperswitch
juspay__hyperswitch-6748
Bug: fix(api_models): `wasm` build problems caused by `actix-multipart` `wasm` build is failing because of adding `actix-multipart` dependency in `api-models`. As we cannot change any dependencies in `wasm`, we will have to make changes to `api_models` to fix this.
diff --git a/crates/api_models/Cargo.toml b/crates/api_models/Cargo.toml index eb706dc913c..e5bf74c20c6 100644 --- a/crates/api_models/Cargo.toml +++ b/crates/api_models/Cargo.toml @@ -8,7 +8,7 @@ readme = "README.md" license.workspace = true [features] -errors = ["dep:reqwest"] +errors = ["dep:actix-web", "dep:req...
2024-12-04T13:49:31Z
## 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 --> Wasm build is failing because of adding `actix-multipart` depen...
3a3e93cb3be3fc3ffabef2a708b49defabf338a5
Checked by building `wasm` locally. It worked. ![Image from Jeeva Ramachandran via Slack](https://github.com/user-attachments/assets/966948cb-ff45-4d02-b885-f878d59ae90d) No need to run any other tests as this is an internal change.
[ { "file_path": "crates/api_models/Cargo.toml", "lines": [ "errors = [\"dep:actix-web\", \"dep:reqwest\"]\n", "control_center_theme = [\"dep:actix-web\", \"dep:actix-multipart\"]\n", "actix-multipart = { version = \"0.6.1\", optional = true }\n", "actix-web = { version = \"4.5.1\", op...
[ { "file_path": "crates/api_models/Cargo.toml", "lines": [ "errors = [\"dep:reqwest\"]\n", "actix-multipart = \"0.6.1\"\n", "actix-web = \"4.5.1\"\n" ] }, { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " theme::{CreateThemeRequest, GetThemeRespons...
[ "toml", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6715
Bug: fix(opensearch): fix empty filter array query addition in globalsearch query Fix the opensearch query building, when free-text query is empty, no case-sensitive filters are passed and time-range is also not mentioned
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs index e8726840a2e..246a0f4e8bb 100644 --- a/crates/analytics/src/opensearch.rs +++ b/crates/analytics/src/opensearch.rs @@ -705,9 +705,7 @@ impl OpenSearchQueryBuilder { let should_array = self.build_auth_array(); - ...
2024-12-02T09:29:40Z
## 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 --> The opensearch query should be built manually in the code, base...
797a0db7733c5b387564fb1bbc106d054c8dffa6
Should test the case when free-text query is empty, case-sensitive filters are not provided, and time-range filter is also not applied. Hit the curl: ```bash curl --location 'http://localhost:8080/analytics/v1/search' \ --header 'sec-ch-ua-platform: "macOS"' \ --header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJh...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " query_obj.insert(\"bool\".to_string(), Value::Object(bool_obj));\n" ] } ]
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " if !bool_obj.is_empty() {\n", " query_obj.insert(\"bool\".to_string(), Value::Object(bool_obj));\n", " }\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6742
Bug: Updating logo in API ref
2024-12-04T12:36:25Z
## 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 co...
dc26317e9bc1aa82666e978c5e824ccb9b016d31
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6702
Bug: refactor(users): remove lineage checks in roles get operations refactor find_by_role_id_in_merchant_scope query to support profile level custom roles
diff --git a/crates/diesel_models/src/query/role.rs b/crates/diesel_models/src/query/role.rs index 065a5b6e114..6f6a1404ee2 100644 --- a/crates/diesel_models/src/query/role.rs +++ b/crates/diesel_models/src/query/role.rs @@ -26,6 +26,7 @@ impl Role { .await } + // TODO: Remove once find_by_role_id_in...
2024-11-29T06:19:36Z
## 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 --> - Refactor the find_by_role_id_in_merchant_scope query to make ...
6eb7cc14613d94f4711e39e16dc015a30b02cf0e
Using dashboard . All the below should work as before Cases to test : - Create a custom role from dashboard - Invite someone for that custom role - signin via that custom-role-user - List roles and list roles at entity level - List users
[ { "file_path": "crates/diesel_models/src/query/role.rs", "lines": [ " // TODO: Remove once find_by_role_id_in_lineage is stable\n", " pub async fn find_by_role_id_in_lineage(\n", " conn: &PgPooledConn,\n", " role_id: &str,\n", " merchant_id: &id_type:...
[ { "file_path": "crates/diesel_models/src/query/role.rs", "lines": [ " pub async fn find_by_role_id_in_org_scope(\n", " let predicate = dsl::merchant_id.eq(merchant_id.to_owned()).or(dsl::org_id\n", " .eq(org_id.to_owned())\n", " .and(dsl::scope.eq(Role...
[ "sql", "rs" ]
15
juspay/hyperswitch
juspay__hyperswitch-6713
Bug: ci: update expiry year to a later date ntid checks are failing because of expired cards
2024-12-02T09:21:32Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> this pr increments expiry year to a later date closes http...
22b5a93e02156cd92adf5e24a3fd8d0e39e8d429
ci should pass
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6698
Bug: refactor(users): Use domain email type in DB functions Currently lowercase email check is there in `UserEmail` type. But DB is using `pii::Email` type, which might cause unexpected behaviour in some cases.
diff --git a/crates/hyperswitch_domain_models/src/errors/api_error_response.rs b/crates/hyperswitch_domain_models/src/errors/api_error_response.rs index b02da396075..850cc470316 100644 --- a/crates/hyperswitch_domain_models/src/errors/api_error_response.rs +++ b/crates/hyperswitch_domain_models/src/errors/api_error_res...
2024-11-28T13:49:22Z
## 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 does 3 things. 1. Throw 401 if cookies are not found i...
707f48ceda789185187d23e35f483e117c67b81b
todo!()
[ { "file_path": "crates/hyperswitch_domain_models/src/errors/api_error_response.rs", "lines": [ " #[error(\n", " error_type = ErrorType::InvalidRequestError, code = \"IR_42\",\n", " message = \"Cookies are not found in the request\"\n", " )]\n", " CookieNo...
[ { "file_path": "crates/router/src/compatibility/stripe/errors.rs", "lines": [ " | errors::ApiErrorResponse::InvalidEphemeralKey => Self::Unauthorized,\n" ] }, { "file_path": "crates/router/src/core/user.rs", "lines": [ " .find_user_by_email(&request.email)\n", ...
[ "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-6707
Bug: 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
diff --git a/crates/api_models/src/events/user.rs b/crates/api_models/src/events/user.rs index 15146e304af..a244f69f543 100644 --- a/crates/api_models/src/events/user.rs +++ b/crates/api_models/src/events/user.rs @@ -9,15 +9,15 @@ use crate::user::{ theme::{CreateThemeRequest, GetThemeResponse, UpdateThemeRequest,...
2024-12-01T21:16:10Z
## 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 hi...
3a3e93cb3be3fc3ffabef2a708b49defabf338a5
Api for create tenant: ``` curl --location 'http://localhost:8080/user/tenant_signup' \ --header 'api-key: test_admin' \ --header 'Content-Type: application/json' \ --header 'x-tenant-id: test' \ --header 'Cookie: login_token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTJhMmViYzItOWZiZS00MDI0LThjODEtOWY...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " CreateTenantUserRequest, CreateUserAuthenticationMethodRequest, ForgotPasswordRequest,\n", " GetSsoAuthUrlRequest, GetUserAuthenticationMethodsRequest, GetUserDetailsResponse,\n", " GetUserRoleDetailsRequest, GetU...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " CreateUserAuthenticationMethodRequest, ForgotPasswordRequest, GetSsoAuthUrlRequest,\n", " GetUserAuthenticationMethodsRequest, GetUserDetailsResponse, GetUserRoleDetailsRequest,\n", " GetUserRoleDetailsResponseV2,...
[ "rs" ]
22
juspay/hyperswitch
juspay__hyperswitch-6697
Bug: bug(authz): cache `role_info` only if ttl >= 0 There is a race condition in BE, where application is putting role info into cache when the ttl is negative. Redis is throwing error when this happens.
diff --git a/crates/hyperswitch_domain_models/src/errors/api_error_response.rs b/crates/hyperswitch_domain_models/src/errors/api_error_response.rs index b02da396075..850cc470316 100644 --- a/crates/hyperswitch_domain_models/src/errors/api_error_response.rs +++ b/crates/hyperswitch_domain_models/src/errors/api_error_res...
2024-11-28T13:49:22Z
## 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 does 3 things. 1. Throw 401 if cookies are not found i...
707f48ceda789185187d23e35f483e117c67b81b
todo!()
[ { "file_path": "crates/hyperswitch_domain_models/src/errors/api_error_response.rs", "lines": [ " #[error(\n", " error_type = ErrorType::InvalidRequestError, code = \"IR_42\",\n", " message = \"Cookies are not found in the request\"\n", " )]\n", " CookieNo...
[ { "file_path": "crates/router/src/compatibility/stripe/errors.rs", "lines": [ " | errors::ApiErrorResponse::InvalidEphemeralKey => Self::Unauthorized,\n" ] }, { "file_path": "crates/router/src/core/user.rs", "lines": [ " .find_user_by_email(&request.email)\n", ...
[ "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-6704
Bug: chore: address Rust 1.83.0 clippy lints ### Description Address the clippy lints stabilized / enabled in Rust version 1.83.0. See #3391 for more information.
diff --git a/.clippy.toml b/.clippy.toml new file mode 100644 index 00000000000..4296655a040 --- /dev/null +++ b/.clippy.toml @@ -0,0 +1 @@ +allow-dbg-in-tests = true diff --git a/Cargo.toml b/Cargo.toml index 90eb996b82b..38d895d767a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,12 +18,16 @@ unused_qualifications = ...
2024-12-01T18:55:46Z
## 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 addresses clippy lints stabilized / enabled in Rust 1...
982b26a8c2851266b6e8615699479a05ab62e519
From what I'd expect, none of the existing behavior should be affected due to these changes. Our Postman and Cypress tests running on CI should pass, as before.
[ { "file_path": ".clippy.toml", "lines": [ "allow-dbg-in-tests = true\n" ] }, { "file_path": "Cargo.toml", "lines": [ "cloned_instead_of_copied = \"warn\"\n", "dbg_macro = \"warn\"\n", "fn_params_excessive_bools = \"warn\"\n", "mod_module_files = \"warn\"\n", ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"Bank account details for Giropay\\nBank account bic code\",\n" ] }, { "file_path": "crates/api_models/src/admin.rs", "lines": [ "\n" ] }, { "file_path": "crates/api...
[ "toml", "json", "rs" ]
138
juspay/hyperswitch
juspay__hyperswitch-6709
Bug: [FEATURE] Add webhook support for network tokenization ### Feature Description Add webhook support to consume the webhooks from network token requestor. ### Possible Implementation New webhook wrapper should be introduced, since current implementation are specific to payments, but payment methods. ### Have ...
diff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rs index 25b583f5dc4..c681cf7edd0 100644 --- a/crates/api_models/src/payment_methods.rs +++ b/crates/api_models/src/payment_methods.rs @@ -1065,6 +1065,23 @@ pub struct Card { pub nick_name: Option<String>, } +#[cfg(fe...
2024-11-28T13:10:26Z
## 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 webhooks for network tokenization - added support to proce...
46709ae3695eb1a6601c356397545f86de9f0f64
This cannot be tested unless we get real-time webhooks from CardNetwork.
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ "#[cfg(feature = \"v1\")]\n", "impl From<(Card, Option<common_enums::CardNetwork>)> for CardDetail {\n", " fn from((card, card_network): (Card, Option<common_enums::CardNetwork>)) -> Self {\n", " Self {\n...
[ { "file_path": "crates/api_models/src/webhooks.rs", "lines": [ " Self::NoEffect | Self::Mandate { .. } => None,\n" ] }, { "file_path": "crates/diesel_models/src/callback_mapper.rs", "lines": [ "use common_utils::pii;\n", " pub type_: String,\n", " pub...
[ "rs" ]
25
juspay/hyperswitch
juspay__hyperswitch-6693
Bug: bug(users): Mark users as verified if user comes from SSO - Currently we are not marking users as verified if they use SSO to login. - But if there is only SSO to login, then they won't be able to verify their email unless they come from the accept invite email. - Instead, we will mark users coming from SSO as ...
diff --git a/crates/router/src/core/user.rs b/crates/router/src/core/user.rs index aad2537c3d9..5595d72850c 100644 --- a/crates/router/src/core/user.rs +++ b/crates/router/src/core/user.rs @@ -2318,13 +2318,24 @@ pub async fn sso_sign( .await?; // TODO: Use config to handle not found error - let user_fro...
2024-11-28T10:33:46Z
## 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 --> Currently we are not marking users as verified if the user come...
707f48ceda789185187d23e35f483e117c67b81b
``` curl 'http://localhost:9000/api/user/oidc' \ -H 'Content-Type: application/json' \ --data-raw '{"code":"okta oidc code","state":"okta oidc state"}' ``` - The above curl when hit correctly should verify the user if the user was unverified.
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " let user_from_db: domain::UserFromStorage = state\n", " if !user_from_db.is_verified() {\n", " state\n", " .global_store\n", " .update_user_by_user_id(\n", " us...
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " let user_from_db = state\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6696
Bug: bug(authn): Throw 401 if cookies are not found Currently BE is throwing 400 if cookies are not found and this is breaking FE if token is present in local storage but not in cookies. If 401 is thrown, FE will remove the token from the local storage automatically.
diff --git a/crates/hyperswitch_domain_models/src/errors/api_error_response.rs b/crates/hyperswitch_domain_models/src/errors/api_error_response.rs index b02da396075..850cc470316 100644 --- a/crates/hyperswitch_domain_models/src/errors/api_error_response.rs +++ b/crates/hyperswitch_domain_models/src/errors/api_error_res...
2024-11-28T13:49:22Z
## 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 does 3 things. 1. Throw 401 if cookies are not found i...
707f48ceda789185187d23e35f483e117c67b81b
todo!()
[ { "file_path": "crates/hyperswitch_domain_models/src/errors/api_error_response.rs", "lines": [ " #[error(\n", " error_type = ErrorType::InvalidRequestError, code = \"IR_42\",\n", " message = \"Cookies are not found in the request\"\n", " )]\n", " CookieNo...
[ { "file_path": "crates/router/src/compatibility/stripe/errors.rs", "lines": [ " | errors::ApiErrorResponse::InvalidEphemeralKey => Self::Unauthorized,\n" ] }, { "file_path": "crates/router/src/core/user.rs", "lines": [ " .find_user_by_email(&request.email)\n", ...
[ "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-6692
Bug: Refactor(router): [ZSL] remove partially capture status ### Feature Description Currently, in case of underpayment we are mapping the payment status as partially captured. ### Possible Implementation We will map the underpayment status as succeeded and provide information about the amount actually captured...
diff --git a/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs b/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs index 81019325113..b2ba05b7cde 100644 --- a/crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/zsl/transformer...
2024-11-28T07:54:15Z
## 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 --> Currently, in case of underpayment we are mapping the payment sta...
9be012826abe87ffa2d0cea5423aed3e50449de2
Webhooks cannot be tested in ZSL sandbox.
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs", "lines": [ " status: enums::AttemptStatus::Charged,\n" ] } ]
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/zsl/transformers.rs", "lines": [ " let txn_amount = item\n", " .response\n", " .txn_amt\n", " .parse::<i64>()\n", " .change_context(errors::ConnectorError::ResponseDe...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6731
Bug: feat(analytics): Analytics Request Validator and config driven forex feature ## Current behaviour - Forex api calls are occuring on every analytics api call - There is no analytics request validator. ## Proposed Changes - Enable/Disable forex functionality based on a config flag. - `request_validator()` to v...
diff --git a/config/config.example.toml b/config/config.example.toml index 54a3ab3827b..fbeea44774b 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -660,6 +660,7 @@ pm_auth_key = "Some_pm_auth_key" # Analytics configuration. [analytics] source = "sqlx" # The Analytics source/strategy to b...
2024-12-03T13:03:26Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Fixes #6731 ## Description <!-- Describe your changes in detail --> ### Config driven forex functionality - Cre...
d75625f11d4611c688593d5730efc8c6f2c59afd
### Prerequisites ```toml [analytics] source = "sqlx" forex_enabled = false # update this to enable or disable ``` ### Testing config driven forex api call ```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-GB,en-US;q=0....
[ { "file_path": "config/config.example.toml", "lines": [ "forex_enabled = false # Enable or disable forex conversion for analytics\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "forex_enabled = false # Boolean to enable or disable forex conversion\n" ...
[ { "file_path": "crates/analytics/src/lib.rs", "lines": [ " AnalyticsConfig::Sqlx { sqlx } => {\n", " AnalyticsConfig::Clickhouse { clickhouse } => Self::Clickhouse(ClickhouseClient {\n", " AnalyticsConfig::CombinedCkh { sqlx, clickhouse } => Self::CombinedC...
[ "md", "toml", "rs" ]
16
juspay/hyperswitch
juspay__hyperswitch-6691
Bug: populate card network in the network transaction id based MIT flow In the PG agnostic MIT flow (card details with network transaction id) the card network is being passed a null in the response. As the card network fetched form the card info lookup is not being used. Additionally add changes to include the `...
diff --git a/config/config.example.toml b/config/config.example.toml index ba14ed881cf..76a38192909 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -787,6 +787,9 @@ check_token_status_url= "" # base url to check token status from token servic [network_tokenization_supported_connectors] ...
2024-11-28T08:03:58Z
## 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 --> In the PG agnostic MIT flow (card details with network transact...
9be012826abe87ffa2d0cea5423aed3e50449de2
-> Create merchant account and merchant connector account -> enable `is_connector_agnostic_mit_enabled` flag ``` curl --location 'http://localhost:8080/account/merchant_1732783890/business_profile/pro_lNl3x8up5RJTzGLgq0cC' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --hea...
[ { "file_path": "config/config.example.toml", "lines": [ "[network_transaction_id_supported_connectors]\n", "connector_list = \"stripe,adyen,cybersource\" # Supported connectors for network transaction id\n", "\n" ] }, { "file_path": "config/deployments/production.toml", "li...
[ { "file_path": "crates/router/src/connector/cybersource/transformers.rs", "lines": [ " \"discover\" => \"dipb\",\n" ] }, { "file_path": "crates/router/src/core/payments/helpers.rs", "lines": [ " card_network,\n" ] } ]
[ "toml", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6684
Bug: fix(opensearch): handle empty free-text query search in global search Previously, there was no support to add filters in global-search, hence only free-search queries were supported. Because of this, the following query object was being mandatorily added. ```bash { "multi_match": { "ty...
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs index 84a2b9db3d4..e8726840a2e 100644 --- a/crates/analytics/src/opensearch.rs +++ b/crates/analytics/src/opensearch.rs @@ -510,14 +510,15 @@ impl OpenSearchQueryBuilder { case_sensitive_filters: Vec<&(String, Vec<String>)>, ...
2024-11-27T14:28:36Z
## 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, there was no support to add filters in global-searc...
d4b482c21cf57b022c7bbadc1a3a9c9d9e5d4f03
Hit the curl: ```bash curl --location 'http://localhost:8080/analytics/v1/search' \ --header 'sec-ch-ua-platform: "macOS"' \ --header 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTQ5ZTNkMmItMTY5Yi00NzUzLWJmNTQtZDcxMTM2YjRiN2JkIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzI2MDQ2MzI4Iiwicm...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " if !self.query.is_empty() {\n", " filter_array.push(json!({\n", " \"multi_match\": {\n", " \"type\": \"phrase\",\n", " \"query\": self.query,...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ "\n", " filter_array.push(json!({\n", " \"multi_match\": {\n", " \"type\": \"phrase\",\n", " \"query\": self.query,\n", " \"lenient\": true\n", ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6688
Bug: refactor(dynamic_fields): rename fields like ach, bacs and becs for bank debit payment method ## Type of Change - Refactoring ## Description - The fields ach, becs, and bacs in the payment method data (particularly in bank_debit) should be renamed to improve clarity. ## Changes to be made: - Rename...
diff --git a/crates/router/src/configs/defaults/payment_connector_required_fields.rs b/crates/router/src/configs/defaults/payment_connector_required_fields.rs index 4e80ccf027e..1cb41827be3 100644 --- a/crates/router/src/configs/defaults/payment_connector_required_fields.rs +++ b/crates/router/src/configs/defaults/paym...
2024-11-27T13:05:18Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description ach, becs and bacs in payment method data is renamed to ach_bank_debit, becs_bank_debit, bacs_bank_debit ...
d4b482c21cf57b022c7bbadc1a3a9c9d9e5d4f03
Tested it through Postman. - Create Connector (Stripe): ``` { "connector_type": "payment_processor", "connector_name": "stripe", "business_country": "US", "business_label": "default", "connector_account_details": { "auth_type": "HeaderKey", "api_key": "some key here" ...
[ { "file_path": "crates/router/src/configs/defaults/payment_connector_required_fields.rs", "lines": [ " \"payment_method_data.bank_debit.ach_bank_debit.account_number\".to_string(),\n", " required_field: \"p...
[ { "file_path": "crates/router/src/configs/defaults/payment_connector_required_fields.rs", "lines": [ " \"payment_method_data.bank_debit.ach.account_number\".to_string(),\n", " required_field: \"payment_meth...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6679
Bug: bug(users): Check lineage across entities in invite Currently in invites we don't check if user exists across entities. This will be a problem when inviting a user with higher entity from different lineage. We should check if user exists across lineage before allowing invite in this case.
diff --git a/crates/router/src/core/user.rs b/crates/router/src/core/user.rs index c6501dac3bd..2087d01dbb4 100644 --- a/crates/router/src/core/user.rs +++ b/crates/router/src/core/user.rs @@ -642,6 +642,38 @@ async fn handle_existing_user_invitation( return Err(UserErrors::UserExists.into()); } + le...
2024-11-27T13:02:47Z
## 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 --> Currently in invites we don't check if user exists across entit...
d4b482c21cf57b022c7bbadc1a3a9c9d9e5d4f03
1. Invite a user in a specific (org, merchant, profile) combination. 2. Create a new profile in the same merchant account and switch to it. 3. Invite the same user as merchant level user. This should be stopped by API.
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " let (org_id, merchant_id, profile_id) = match role_info.get_entity_type() {\n", " EntityType::Organization => (Some(&user_from_token.org_id), None, None),\n", " EntityType::Merchant => (\n", " S...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6681
Bug: refactor(currency_conversion): release redis lock if api call fails ### Description Refactor currency conversion: -> For Better error propagation -> For Redis lock realease, if data isn't fetched from api, so that the other subsequent calls donot fail.
diff --git a/crates/router/src/utils/currency.rs b/crates/router/src/utils/currency.rs index 2173478ab67..9ab2780da73 100644 --- a/crates/router/src/utils/currency.rs +++ b/crates/router/src/utils/currency.rs @@ -7,6 +7,7 @@ use error_stack::ResultExt; use masking::PeekInterface; use once_cell::sync::Lazy; use redis...
2024-11-27T07:12:48Z
## 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 --> Refactors for currency conversion which invlolves: -> Better e...
d4b482c21cf57b022c7bbadc1a3a9c9d9e5d4f03
Scenarios tested: 1. No api_keys provided: call returned error and redis key was deleted after being set. 2. fallback api_key provided: call returned forex rates and lock was also released. 3. primary api_key provided: call returned forex rates and lock was also released.
[ { "file_path": "crates/router/src/utils/currency.rs", "lines": [ "use router_env::{instrument, tracing};\n", " .change_context(ForexCacheError::ConversionError)\n", " .attach_printable(\"Unable to Convert currency received\")?;\n", " .change_c...
[ { "file_path": "crates/router/src/utils/currency.rs", "lines": [ " .change_context(ForexCacheError::ConversionError)?;\n", " .change_context(ForexCacheError::ConversionError)?;\n", " .async_and_then(|_rates| async { release_redis_lock(state).await })\n", ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6666
Bug: fix(analytics): fix first_attempt filter value parsing for Payments - `first_attempt` filter takes in `true` or `false` as variants. - But while it is getting applied in the query, it is being converted into a string: `'true'` or `'false'` This works on latest clickhouse versions, but fails on the older clickh...
diff --git a/crates/analytics/src/query.rs b/crates/analytics/src/query.rs index e80f762c41b..caa112ec175 100644 --- a/crates/analytics/src/query.rs +++ b/crates/analytics/src/query.rs @@ -459,7 +459,8 @@ impl<T: AnalyticsDataSource> ToSql<T> for common_utils::id_type::CustomerId { impl<T: AnalyticsDataSource> ToSql...
2024-11-26T13:05:27Z
## 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 --> Fixes this issue: [https://github.com/juspay/hyperswitch-cloud/...
d4b482c21cf57b022c7bbadc1a3a9c9d9e5d4f03
Hit the curl with first_attempt filter containing either `true` or `false`: ```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ ...
[ { "file_path": "crates/analytics/src/query.rs", "lines": [ " let flag = *self;\n", " Ok(i8::from(flag).to_string())\n" ] } ]
[ { "file_path": "crates/analytics/src/query.rs", "lines": [ " Ok(self.to_string().to_owned())\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6656
Bug: ci: use ubuntu runner
2024-11-25T11:34:38Z
## 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 --> Use ubuntu runners instead. closes https://github.com/juspay...
83e8bc0775c20e9d055e65bd13a2e8b1148092e1
See if CI checks pass.
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6653
Bug: fix(analytics): fix bugs in payments page metrics in Analytics V2 dashboard Fix bugs in metrics calculations for Payments page - Analytics V2 dashboard: - `Successful Payments Distribution` and `Failure Payments Distribution`: Exclude the dropoffs from the denominator while calculating the rates - `Failure ...
diff --git a/crates/analytics/src/payment_intents/accumulator.rs b/crates/analytics/src/payment_intents/accumulator.rs index ef3cd3129c4..d8f27501b56 100644 --- a/crates/analytics/src/payment_intents/accumulator.rs +++ b/crates/analytics/src/payment_intents/accumulator.rs @@ -273,8 +273,14 @@ impl PaymentIntentMetricAc...
2024-11-25T08:40:46Z
## 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 --> Fixing some bugs in metrics calculations for Payments page - An...
31204941ee24fe7b23344ba9b4a2615c46f33bb0
Sankey: ```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/sankey' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'Origin: http://localhost:9000' \ --header 'Referer: http://l...
[ { "file_path": "crates/analytics/src/payment_intents/accumulator.rs", "lines": [ " if status.as_ref() != &storage_enums::IntentStatus::RequiresCustomerAction\n", " && status.as_ref() != &storage_enums::IntentStatus::RequiresPaymentMethod\n", " && st...
[ { "file_path": "crates/analytics/src/payment_intents/accumulator.rs", "lines": [ " if let Some(total) = metrics.count.and_then(|total| u32::try_from(total).ok()) {\n", " self.total += total;\n" ] }, { "file_path": "crates/analytics/src/payment_intents/core.r...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6647
Bug: [REFACTOR] add `error_category` column to gsm table Add `error_category` column to gsm table which is an enum in application. These could be used to take multiple decisions but currently these are required for elimination routing in which these categories will serve as bucket name.
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index e3f54813a43..ae9265aa41d 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -7776,6 +7776,16 @@ } } }, + "ErrorCategory": { + "type": "string", + ...
2024-11-24T12:45:50Z
## 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 adds `error_category` column to gsm table which is an e...
797a0db7733c5b387564fb1bbc106d054c8dffa6
Added new column to GSM table. (`error_category`) ``` curl --location 'http://localhost:8080/gsm' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data '{ "connector": "stripe", "flow" : "flow1", "sub_flow": "sub_flow", "code": ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"ErrorCategory\": {\n", " \"type\": \"string\",\n", " \"enum\": [\n", " \"frm_decline\",\n", " \"processor_downtime\",\n", " \"processor_decline_unauthorized\"...
[ { "file_path": "crates/diesel_models/src/gsm.rs", "lines": [ " Clone,\n", " Debug,\n", " PartialEq,\n", " Eq,\n", " AsChangeset,\n", " router_derive::DebugAsDisplay,\n", " Default,\n", " serde::Deserialize,\n", " ..Defa...
[ "sql", "json", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-6673
Bug: [FEATURE] [REDSYS] add Connector Template Code ### Feature Description Add Connector Template Code for Redsys ### Possible Implementation Add Connector Template Code for Redsys ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar is...
diff --git a/config/config.example.toml b/config/config.example.toml index 191f2ba7f8b..c0a7f8ad8d1 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -252,6 +252,7 @@ powertranz.base_url = "https://staging.ptranz.com/api/" prophetpay.base_url = "https://ccm-thirdparty.cps.golf/" rapyd.base_u...
2024-11-26T09:11:29Z
## 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 --> Template code added for new connector Inespay This PR is rel...
108b1603fa44b2a56c278196edb5a1f76f5d3d03
Only template PR, hence no testing required.
[ { "file_path": "config/config.example.toml", "lines": [ "redsys.base_url = \"https://sis-t.redsys.es:25443/sis/realizarPago\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "redsys.base_url = \"https://sis-t.redsys.es:25443/sis/realizarPago\"\n" ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " shift4::Shift4, square::Square, stax::Stax, taxjar::Taxjar, thunes::Thunes, tsys::Tsys,\n", " volt::Volt, worldline::Worldline, worldpay::Worldpay, xendit::Xendit, zen::Zen, zsl::Zsl,\n" ] }, { "file...
[ "sh", "toml", "rs" ]
25
juspay/hyperswitch
juspay__hyperswitch-6633
Bug: [FEATURE] [AIRWALLEX] Update production endpoint ### Feature Description Update production endpoint for connector Airwallex (https://api.airwallex.com/) ### Possible Implementation Update production endpoint for connector Airwallex (https://api.airwallex.com/) ### Have you spent some time checking if this f...
diff --git a/config/deployments/production.toml b/config/deployments/production.toml index 76f42085f92..ebd9e49d86b 100644 --- a/config/deployments/production.toml +++ b/config/deployments/production.toml @@ -28,7 +28,7 @@ adyen.base_url = "https://{{merchant_endpoint_prefix}}-checkout-live.adyenpaymen adyen.payout_ba...
2024-11-21T12:24:28Z
## 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 --> Update production endpoint for connector Airwallex (https://api...
f24578310f44adf75c993ba42225554377399961
Only config changes hence no testing required
[ { "file_path": "config/deployments/production.toml", "lines": [ "airwallex.base_url = \"https://api.airwallex.com/\"\n" ] } ]
[ { "file_path": "config/deployments/production.toml", "lines": [ "airwallex.base_url = \"https://api-demo.airwallex.com/\"\n" ] } ]
[ "toml" ]
1
juspay/hyperswitch
juspay__hyperswitch-6638
Bug: 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.
diff --git a/crates/router/src/consts/user.rs b/crates/router/src/consts/user.rs index aa427992082..32ca4ad31d7 100644 --- a/crates/router/src/consts/user.rs +++ b/crates/router/src/consts/user.rs @@ -41,3 +41,5 @@ pub const EMAIL_SUBJECT_INVITATION: &str = "You have been invited to join Hypers pub const EMAIL_SUBJECT...
2024-11-22T08:42:00Z
## 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...
83e8bc0775c20e9d055e65bd13a2e8b1148092e1
Local SES ![image](https://github.com/user-attachments/assets/f4e15419-31c7-452e-ba77-4a8815944ca0) ``` curl --location 'http://localhost:8080/user/connect_account' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "new user email" }' ``` The above email should be sent.
[ { "file_path": "crates/router/src/consts/user.rs", "lines": [ "pub const EMAIL_SUBJECT_WELCOME_TO_COMMUNITY: &str =\n", " \"Thank you for signing up on Hyperswitch Dashboard!\";\n" ] }, { "file_path": "crates/router/src/core/user.rs", "lines": [ " let magic_link_e...
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " let email_contents = email_types::VerifyEmail {\n", " let send_email_result = state\n", " Box::new(email_contents),\n", " logger::info!(?send_email_result);\n", " is...
[ "html", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6660
Bug: feat(user_roles): support tenant_id reads For tenancy support tenant_id in user roles queries - Adding tenant id to reads, deletes and updates queries.
diff --git a/crates/diesel_models/src/query/user_role.rs b/crates/diesel_models/src/query/user_role.rs index ed018cc2381..bb07f671824 100644 --- a/crates/diesel_models/src/query/user_role.rs +++ b/crates/diesel_models/src/query/user_role.rs @@ -1,7 +1,11 @@ use async_bb8_diesel::AsyncRunQueryDsl; use common_utils::id...
2024-11-26T09:27:22Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Support tenant id in user roles queries. ### Additional Changes - [ ] This PR modifies the API con...
b1c4e30e929fb8d31d854765d5f1ddad5e77f065
With tenancy feature flag enabled these changes will be tested when upcoming tenant related PRs from dashboard gets merged. The current behaviour of user apis should not change. Since hyperswitch has its own tenant id and we don't have tenant_id feature flag enabled for now. Tested the sanity flows for users. Worki...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " associations::HasTable,\n", " debug_query,\n", " pg::Pg,\n", " result::Error as DieselError,\n", " sql_types::{Bool, Nullable},\n", " fn check_user_in_lineage(\n", " ...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " associations::HasTable, debug_query, pg::Pg, result::Error as DieselError,\n", " pub async fn find_by_user_id(\n", " conn: &PgPooledConn,\n", " user_id: String,\n", " version: ...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-6629
Bug: fix: merchant order ref id filter and refund_id filter - Add merchant_order reference id filter for payments list - Fix refunds list filter, search by refund id. (It is construction a totally new filter ignoring the merchant id when searching)
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 98bc7b754a4..a5fc687ef28 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -4923,6 +4923,8 @@ pub struct PaymentListFilterConstraints { pub order: Order, /// The List of all the car...
2024-11-21T10:51:13Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description The PR - Add merchant order reference id filter for payments list - Fix bug for search by refund id (or...
f24578310f44adf75c993ba42225554377399961
Merchant Order filter is working as expected Request ``` curl --location 'http://localhost:8080/payments/list' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer JWT' \ --data '{ "merchant_order_reference_id": "test" }' ``` Response: ``` ...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " /// The identifier for merchant order reference id\n", " pub merchant_order_reference_id: Option<String>,\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "lines": [ ...
[ { "file_path": "crates/router/src/types/storage/dispute.rs", "lines": [ "use diesel::{associations::HasTable, ExpressionMethods, QueryDsl};\n", " filter = filter\n", " .filter(dsl::payment_id.eq(payment_id.to_owned()))\n", " .or_filter(dsl::di...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-6642
Bug: refactor(tenant): use tenant id type Refactor: Use tenant_id type instead of string for better type safety
diff --git a/crates/common_utils/src/id_type.rs b/crates/common_utils/src/id_type.rs index 3d57a72376e..a8085564145 100644 --- a/crates/common_utils/src/id_type.rs +++ b/crates/common_utils/src/id_type.rs @@ -12,6 +12,7 @@ mod payment; mod profile; mod refunds; mod routing; +mod tenant; #[cfg(feature = "v2")] mo...
2024-11-22T12:01:12Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Use tenant_id type for better type safety ### Additional Changes - [ ] This PR modifies the API c...
8d0639ea6f22227253a44e6bd8272d9e55d17f92
It refactoring PR, its compiling and checks are passing Tested flows like signup/signin with tenancy featue flag enabled and disabled in local
[ { "file_path": "crates/common_utils/src/id_type.rs", "lines": [ "mod tenant;\n", "pub use tenant::TenantId;\n" ] }, { "file_path": "crates/common_utils/src/id_type/organization.rs", "lines": [ " pub fn try_from_string(org_id: String) -> CustomResult<Self, ValidationError...
[ { "file_path": "crates/common_utils/src/id_type/organization.rs", "lines": [ " pub fn wrap(org_id: String) -> CustomResult<Self, ValidationError> {\n" ] }, { "file_path": "crates/common_utils/src/types/theme.rs", "lines": [ " /// tenant_id: String\n", " ten...
[ "rs" ]
32
juspay/hyperswitch
juspay__hyperswitch-6626
Bug: fix(analytics): remove `first_attempt` group by in Payment Intent old metrics `first_attempt` as a group by is getting added internally in the queries as it is required by the new PaymentIntent based metrics for Analytics V2 Dashboard. The logic was added for the existing older metrics as well for PaymentInten...
diff --git a/crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs b/crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs index cf733b0c3da..696dd6a584b 100644 --- a/crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs +++ b/crates/analytics/src/payment_intents...
2024-11-21T08:35:38Z
## 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 --> `first_attempt` as a group by is getting added internally in th...
f24578310f44adf75c993ba42225554377399961
Hit the curls to test the various metrics. Sessionized_metrics should be tested only on clickhouse. Older metricss can be tested on both sqlx and clickhouse. ```bash curl --location 'http://localhost:8080/analytics/v2/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ ...
[ { "file_path": "crates/analytics/src/payment_intents/metrics/sessionized_metrics/payment_processed_amount.rs", "lines": [ " .add_select_column(\"(attempt_count = 1) as first_attempt\")\n", " .add_group_by_clause(\"first_attempt\")\n", " .attach_printable(\"...
[ { "file_path": "crates/analytics/src/payment_intents/metrics/payment_processed_amount.rs", "lines": [ " query_builder\n", " .add_select_column(\"attempt_count == 1 as first_attempt\")\n", " .switch()?;\n", "\n", " query_builder\n", " ...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6623
Bug: Address `CVE-2024-21538` in Cypress https://vulert.com/vuln-db/CVE-2024-21538
diff --git a/cypress-tests-v2/package-lock.json b/cypress-tests-v2/package-lock.json index 36f801468a9..cac88cab055 100644 --- a/cypress-tests-v2/package-lock.json +++ b/cypress-tests-v2/package-lock.json @@ -10,7 +10,7 @@ "license": "ISC", "devDependencies": { "@types/fs-extra": "^11.0.4", - ...
2024-11-21T07:17:18Z
## 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 update Cypress packages to address [CVE-2024-21538](h...
f24578310f44adf75c993ba42225554377399961
No tests needed as it is just a dependency update. CI passing should be enough.
[ { "file_path": "cypress-tests-v2/package-lock.json", "lines": [ " \"cypress\": \"^13.16.0\",\n", " \"version\": \"7.0.6\",\n", " \"resolved\": \"https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz\",\n", " \"version\": \"13.16.0\",\n", " \"...
[ { "file_path": "cypress-tests-v2/package-lock.json", "lines": [ " \"cypress\": \"^13.15.2\",\n", " \"version\": \"7.0.3\",\n", " \"resolved\": \"https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz\",\n", " \"version\": \"13.15.2\",\n", " \"...
[ "json" ]
2
juspay/hyperswitch
juspay__hyperswitch-6620
Bug: feat(themes): Support naming themes Currently themes don't have names, and it's better to have a way to attach a name to a theme. So that we can know about theme without having to look at the theme data.
diff --git a/crates/common_utils/src/types/theme.rs b/crates/common_utils/src/types/theme.rs index a2e6fe4b19c..03b4cf23a6c 100644 --- a/crates/common_utils/src/types/theme.rs +++ b/crates/common_utils/src/types/theme.rs @@ -4,11 +4,12 @@ use crate::id_type; /// Currently being used for theme related APIs and queries....
2024-11-20T12:13:51Z
## 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 --> This PR adds `theme_name` and `entity_type` in the themes table...
43d87913ab3d177a6d193b3e475c96609cc09a28
This is an internal change and doesn't affect any APIs.
[ { "file_path": "crates/common_utils/src/types/theme.rs", "lines": [ " // TODO: Add back Tenant variant when we introduce Tenant Variant in EntityType\n", " // /// Tenant lineage variant\n", " // Tenant {\n", " // /// tenant_id: String\n", " // tenant_id: ...
[ { "file_path": "crates/common_utils/src/types/theme.rs", "lines": [ " /// Tenant lineage variant\n", " Tenant {\n", " /// tenant_id: String\n", " tenant_id: String,\n", " },\n" ] }, { "file_path": "crates/diesel_models/src/query/user/theme.rs"...
[ "sql", "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6625
Bug: Feature(routing): Stats table for dynamic_routing ## Description Creation of new table for storing required fields for dynamic_routing for list and point queries.
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index c4c2f072b1e..eeb67d679ee 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -740,7 +740,6 @@ pub struct ToggleDynamicRoutingPath { #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, ToS...
2024-12-02T17:06:01Z
## 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 --> Previously we were pushing the Dynamic routing metrics to Prome...
03b936a117ae0931fab800cb82038ba45aa6f9a3
Can be tested in the following ways: 1. enable success_based_routing(feature = metrics) for merchant. ``` curl --location --request POST 'http://localhost:8080/account/m_id/business_profile/pro_id/dynamic_routing/success_based/toggle?enable=metrics' \ --header 'api-key:api_key' ``` 2. Make a payment afterwards....
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " DbScaExemptionType as ScaExemptionType,\n", " DbSuccessBasedRoutingConclusiveState as SuccessBasedRoutingConclusiveState,\n", " DbWebhookDeliveryAttempt as WebhookDeliveryAttempt,\n", " Clone,\n",...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " // pub labels: Option<Vec<String>>,\n" ] }, { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " DbScaExemptionType as ScaExemptionType, DbWebhookDeliveryAttempt as WebhookDeliveryAttempt,\n", ...
[ "sql", "rs" ]
16