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-6609
Bug: [FEATURE] align the JSON deserialization errors into expected ErrorResponse format ### Feature Description HyperSwitch uses an error format for responding back with the errors in the API. This error structure is uniform across different stages of the flow. For any deserialization errors in the API, error res...
diff --git a/crates/router/src/utils.rs b/crates/router/src/utils.rs index 515c9a94ce8..ca61543ec57 100644 --- a/crates/router/src/utils.rs +++ b/crates/router/src/utils.rs @@ -81,7 +81,11 @@ pub mod error_parser { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { f.write_str( ...
2024-11-19T11:05:09Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6609 ### Additional Changes - [x] This PR modifies the API contract - [ ] This PR mo...
8e9c3ec8931851dae638037b91eb1611399be0bf
Locally.
[ { "file_path": "crates/router/src/utils.rs", "lines": [ " \"error\": {\n", " \"error_type\": \"invalid_request\",\n", " \"message\": self.err.to_string(),\n", " \"code\": \"IR_06\",\n", " ...
[ { "file_path": "crates/router/src/utils.rs", "lines": [ " \"error\": self.err.to_string()\n" ] }, { "file_path": "cypress-tests-v2/cypress/e2e/configs/Payment/Commons.js", "lines": [ " error: \"Json deserialize error: invalid card number length\",\n", ...
[ "rs", "js" ]
3
juspay/hyperswitch
juspay__hyperswitch-6605
Bug: feat(analytics): add first_attempt as a filter for PaymentFilters Need to add `first_attempt` as a filter in PaymentFilters. This is required for the new Analytics v2 `Smart Retries Metrics`, specifically S`mart Retries Successful Distribution `and `Smart Retries Failure Distribution`, for calculations only in...
diff --git a/crates/analytics/src/payments/filters.rs b/crates/analytics/src/payments/filters.rs index 51805acaae2..668bdaa6c8b 100644 --- a/crates/analytics/src/payments/filters.rs +++ b/crates/analytics/src/payments/filters.rs @@ -64,4 +64,5 @@ pub struct PaymentFilterRow { pub card_last_4: Option<String>, ...
2024-11-19T08:32: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 --> Added `first_attempt` as a filter in `PaymentFilters`. This ...
65bf75a75e1e7d705de3ee3e9080a7a86099ffc3
Hit the curl: ```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' \ --header 'Origin: http://localhost:9000' \ --header 'Referer: ...
[ { "file_path": "crates/analytics/src/payments/filters.rs", "lines": [ " pub first_attempt: Option<bool>,\n" ] }, { "file_path": "crates/analytics/src/payments/types.rs", "lines": [ " if !self.first_attempt.is_empty() {\n", " builder\n", " ...
[]
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-6600
Bug: fix(users): Only use lowercase letters in emails Currently uppercase letters in emails are being using at it is. Ideally we should convert them to lowercase before performing any DB operations with it.
diff --git a/crates/router/src/types/domain/user.rs b/crates/router/src/types/domain/user.rs index 5a881728b07..4cb69e68ed8 100644 --- a/crates/router/src/types/domain/user.rs +++ b/crates/router/src/types/domain/user.rs @@ -103,7 +103,7 @@ impl UserEmail { pub fn new(email: Secret<String, pii::EmailStrategy>) -> ...
2024-11-18T13:19:55Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR changes will convert emails from request to lowercase b...
43d87913ab3d177a6d193b3e475c96609cc09a28
``` curl --location 'http://localhost:8080/user/connect_account' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "USER@Example.com" }' ``` This email in the about request will be inserted as `user@example.com` in DB.
[ { "file_path": "crates/router/src/types/domain/user.rs", "lines": [ " let email_string = email.expose().to_lowercase();\n", " let email_string = email.expose().map(|inner| inner.to_lowercase());\n", " Self::new(email_string)\n" ] } ]
[ { "file_path": "crates/router/src/types/domain/user.rs", "lines": [ " let email_string = email.expose();\n", " use validator::ValidateEmail;\n", "\n", " let email_string = email.peek();\n", " if email_string.validate_email() {\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6598
Bug: feat(authn): Use cookies for authentication Currently we use auth headers and local storage in FE for transfer JWT from FE to BE. Cookies is a better way to do this, as it is handled by browser and JavaScript doesn't have access to. First we will test this in Integ and slowly move it to sandbox and production...
diff --git a/config/config.example.toml b/config/config.example.toml index 191f2ba7f8b..52b704e1adc 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -403,6 +403,7 @@ two_factor_auth_expiry_in_secs = 300 # Number of seconds after which 2FA should totp_issuer_name = "Hyperswitch" # Name of...
2024-11-18T11:34:51Z
## 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 add logging for cookies and also make signout API ...
ea81432e3eb72d9a2e139e26741a42cdd8d31202
- This following behaviour applies only to integ and not for sandbox and prod. ``` curl --location 'http://localhost:8080/user' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNzJkNDU0YTAtM2I3YS00MzZiLTllNjMtMmU5ZDQ5YzI3NmZjIiwibWVyY2hhbnRfaWQiOiJtZXJjaGFudF8xNzMxOTI4MDg1Iiwi...
[ { "file_path": "config/config.example.toml", "lines": [ "force_cookies = true # Whether to use only cookies for JWT extraction and authentication\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "force_cookies = true\n" ] }, { ...
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " user_from_token: auth::UserFromToken,\n" ] }, { "file_path": "crates/router/src/routes/user.rs", "lines": [ " &auth::DashboardNoPermissionAuth,\n" ] }, { "file_path": "crates/router/src/services/a...
[ "toml", "rs" ]
11
juspay/hyperswitch
juspay__hyperswitch-6645
Bug: [FEAT] Multiple credential support for a connector in Cypress ## Requirement Execute cypress tests for a connector having **multiple credentials** which can be used for different scenarios (one api key for `cards`, another for `bank redirects` and etc.,). ## Implementation ### Introduce new format for ...
2024-11-17T07:12:09Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> This PR introduces 2 new features: - Multiple credentials ...
797a0db7733c5b387564fb1bbc106d054c8dffa6
Only Cybersource with `multiple creds` (takes only from first `connector_1`): <img width="594" alt="image" src="https://github.com/user-attachments/assets/7c05742c-6331-417a-8699-731285463560"> Cybersource with `multiple creds` (along with `incremental auth`): <img width="554" alt="image" src="https://gith...
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6594
Bug: fix(analytics): fix `authentication_type` and `card_last_4` fields serialization for payment_intent_filters There is a serialization issue for `card_last_4` and `authentication_type` fields when filters are getting applied for `PaymentIntentFilters`. - `card_last_4` was being processed as `card_last4` . - `auth...
diff --git a/crates/api_models/src/analytics/payment_intents.rs b/crates/api_models/src/analytics/payment_intents.rs index dd51c97d935..365abd71edc 100644 --- a/crates/api_models/src/analytics/payment_intents.rs +++ b/crates/api_models/src/analytics/payment_intents.rs @@ -63,11 +63,15 @@ pub enum PaymentIntentDimension...
2024-11-18T10:46: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 --> There is a serialization issue for `card_last_4` and `authentic...
d32397f060731f51a15634e221117a554b8b3721
`authentication_type`: Hit the curl for any metric of payment_intents (sessionized metrics): ```bash curl --location 'http://localhost:8080/analytics/v2/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: appl...
[ { "file_path": "crates/api_models/src/analytics/payment_intents.rs", "lines": [ " #[strum(serialize = \"authentication_type\")]\n", " #[serde(rename = \"authentication_type\")]\n", " #[strum(serialize = \"card_last_4\")]\n", " #[serde(rename = \"card_last_4\")]\n" ] ...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6615
Bug: feat(analytics): Add refund sessionized metrics for Analytics V2 dashboard Create the new refund sessionized metrics for Analytics V2 dashboard.
diff --git a/crates/analytics/src/clickhouse.rs b/crates/analytics/src/clickhouse.rs index f56e875f720..cd870c12b23 100644 --- a/crates/analytics/src/clickhouse.rs +++ b/crates/analytics/src/clickhouse.rs @@ -16,7 +16,9 @@ use super::{ distribution::PaymentDistributionRow, filters::PaymentFilterRow, metrics::P...
2024-11-19T17:04:47Z
## 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 --> Adding metrics, and support for Refund Page in Analytics V2 Das...
64383915bda5693df1cecf6cc5683e8b9aaef99b
Refunds Success Rate: ```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/refunds' \ --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 'Re...
[ { "file_path": "crates/analytics/src/clickhouse.rs", "lines": [ " refunds::{\n", " distribution::RefundDistributionRow, filters::RefundFilterRow, metrics::RefundMetricRow,\n", " },\n", "impl super::refunds::distribution::RefundDistributionAnalytics for ClickhouseClient {...
[ { "file_path": "crates/analytics/src/clickhouse.rs", "lines": [ " refunds::{filters::RefundFilterRow, metrics::RefundMetricRow},\n" ] }, { "file_path": "crates/analytics/src/lib.rs", "lines": [ " Distribution, Granularity, TimeRange,\n", " distribution: &Distri...
[ "rs" ]
29
juspay/hyperswitch
juspay__hyperswitch-6592
Bug: refactor(users): Force 2FA in prod env Currently 2FA is not forced on prod, users have ability to skip it. For the PCI compliance, we have to force users to setup and use 2FA.
diff --git a/config/deployments/production.toml b/config/deployments/production.toml index 73e5794f042..76f42085f92 100644 --- a/config/deployments/production.toml +++ b/config/deployments/production.toml @@ -149,7 +149,7 @@ password_validity_in_days = 90 two_factor_auth_expiry_in_secs = 300 totp_issuer_name = "Hyper...
2024-11-18T11:01: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 PR forces users to use 2FA in production. ### Additiona...
d32397f060731f51a15634e221117a554b8b3721
This change will only affect production. 1. 2FA Status API - `is_skippable` field is added in the response. ``` curl --location 'http://localhost:8080/user/2fa/v2' \ --header 'Authorization: JWT' \ ``` ``` { "status": null, "is_skippable": true } ``` 2. T...
[ { "file_path": "config/deployments/production.toml", "lines": [ "force_two_factor_auth = true\n" ] } ]
[ { "file_path": "config/deployments/production.toml", "lines": [ "force_two_factor_auth = false\n" ] } ]
[ "toml" ]
1
juspay/hyperswitch
juspay__hyperswitch-6580
Bug: chore(infra): SDK Table schema sanity Editing SDK Tables schema in the codebase for end to end ( ingestion to querying on dashboard ) sanity
diff --git a/crates/analytics/docs/clickhouse/scripts/sdk_events.sql b/crates/analytics/docs/clickhouse/scripts/sdk_events.sql index bfe6401cacc..c5c70cc9e66 100644 --- a/crates/analytics/docs/clickhouse/scripts/sdk_events.sql +++ b/crates/analytics/docs/clickhouse/scripts/sdk_events.sql @@ -6,7 +6,7 @@ CREATE TABLE sd...
2024-11-14T16:36:06Z
## 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 --> Updating SDK table schema ### Additional Changes - [ ] Th...
15f873bd1296169149987041f4008b0afe2ac2aa
Schema structure changes for sdk table. Nothing to test.
[ { "file_path": "crates/analytics/docs/clickhouse/scripts/sdk_events.sql", "lines": [ " `timestamp` DateTime64(3),\n", " `first_event` Bool,\n", " `latency` Nullable(UInt32),\n", " `payment_experience` LowCardinality(Nullable(String)),\n", " `created_at` DateTime ...
[ { "file_path": "crates/analytics/docs/clickhouse/scripts/sdk_events.sql", "lines": [ " `timestamp` String,\n", " `first_event` Bool DEFAULT 1,\n", " `payment_experience` LowCardinality(Nullable(String)) DEFAULT '',\n", " `created_at` DateTime64(3) DEFAULT now64() CODEC(T6...
[ "sql" ]
1
juspay/hyperswitch
juspay__hyperswitch-6577
Bug: [BUG] FATAL: role "root" does not exist ### Bug Description Whenever hyperswitch-pg-1 sever running in docker-compose, it though an error " role "root" does not exist" ### Expected Behavior Error should not come. ### Actual Behavior ![Screenshot from 2024-11-14 19-27-00](https://github.com/user-attachment...
diff --git a/docker-compose-development.yml b/docker-compose-development.yml index 07a2131c6d4..d7a0e365c36 100644 --- a/docker-compose-development.yml +++ b/docker-compose-development.yml @@ -26,7 +26,7 @@ services: - POSTGRES_PASSWORD=db_pass - POSTGRES_DB=hyperswitch_db healthcheck: - test: [...
2024-11-15T08:47:23Z
## 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 - [ ] This PR modifies the API co...
0805a937b1bc12ac1dfb23922036733ed971a87a
[ { "file_path": "docker-compose-development.yml", "lines": [ " test: [\"CMD-SHELL\", \"pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USER}\"]\n" ] }, { "file_path": "docker-compose.yml", "lines": [ " test: [\"CMD-SHELL\", \"pg_isready -d $${POSTGRES_DB} -U $${POSTGRES_USE...
[ { "file_path": "docker-compose-development.yml", "lines": [ " test: [\"CMD-SHELL\", \"pg_isready\"]\n" ] }, { "file_path": "docker-compose.yml", "lines": [ " test: [\"CMD-SHELL\", \"pg_isready\"]\n" ] } ]
[ "yml" ]
2
juspay/hyperswitch
juspay__hyperswitch-6574
Bug: feat(analytics): add `smart_retries` only metrics ## Proposed changes There should be fields in PaymentDistribution, for the case where we only want to extract metric for Subsequent smart retried attempts. For example, we have `success_rate` and `success_rate_without_retries` Now missing field is `success_ra...
diff --git a/crates/analytics/src/payments/accumulator.rs b/crates/analytics/src/payments/accumulator.rs index 651eeb0bcfe..c4e48300d07 100644 --- a/crates/analytics/src/payments/accumulator.rs +++ b/crates/analytics/src/payments/accumulator.rs @@ -76,8 +76,11 @@ pub struct PaymentsDistributionAccumulator { pub fa...
2024-11-14T13:37:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added support for calculating new metrics based on smart retri...
8cc5d3db9afb120b00115c6714be2e362951cc94
### Request - Hit the curl: ```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'Origin: http://localhost:9...
[ { "file_path": "crates/analytics/src/payments/accumulator.rs", "lines": [ " pub success_with_only_retries: u32,\n", " pub failed_with_only_retries: u32,\n", " pub total_with_only_retries: u32,\n", " type MetricOutput = (\n", " Option<f64>,\n", " ...
[ { "file_path": "crates/analytics/src/payments/accumulator.rs", "lines": [ " type MetricOutput = (Option<f64>, Option<f64>, Option<f64>, Option<f64>);\n", " (None, None, None, None)\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6597
Bug: [FEATURE] Xendit Template PR ### Feature Description Template code added for new connector Xendit https://developers.xendit.co/api-reference ### Possible Implementation Template code added for new connector Xendit https://developers.xendit.co/api-reference ### Have you spent some time checking if this fea...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index d2fa50d8629..96c6a037ad3 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -18092,6 +18092,7 @@ "wise", "worldline", "worldpay", + "xendit", ...
2024-11-18T10:24:16Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Template code added for new connector Xendit https://developers.xendit.co/api-reference ### Additiona...
d32397f060731f51a15634e221117a554b8b3721
Since this is template PR, no testing is required.
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"xendit\",\n" ] }, { "file_path": "config/config.example.toml", "lines": [ "xendit.base_url = \"https://api.xendit.co\"\n", " \"xendit\",\n" ] }, { "file_path": "config/deployments/in...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " worldpay::Worldpay, zen::Zen, zsl::Zsl,\n" ] }, { "file_path": "crates/router/src/connector.rs", "lines": [ " zen, zen::Zen, zsl, zsl::Zsl,\n" ] }, { "file_path": "scripts/add_connect...
[ "sh", "toml", "json", "rs" ]
23
juspay/hyperswitch
juspay__hyperswitch-6572
Bug: feat(analytics): add `sessionized_metrics` for disputes (backwards compatibility) ## Current Behaviour - There is no `sessionized_metrics` module for disputes like there is for `payments` and `payment_intents` ## Proposed Changes - create `sessionized_metrics` module for disputes
diff --git a/crates/analytics/src/clickhouse.rs b/crates/analytics/src/clickhouse.rs index 546b57f99af..f56e875f720 100644 --- a/crates/analytics/src/clickhouse.rs +++ b/crates/analytics/src/clickhouse.rs @@ -139,6 +139,9 @@ impl AnalyticsDataSource for ClickhouseClient { | AnalyticsCollection::Dispute => ...
2024-11-14T12:49:06Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Add sessionized metrics module and implement backwards compat...
8cc5d3db9afb120b00115c6714be2e362951cc94
```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/disputes' \ --header 'Accept: */*' \ --header 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'Origin: http://localhost:9000' \ --header 'QueryType: S...
[ { "file_path": "crates/analytics/src/clickhouse.rs", "lines": [ " AnalyticsCollection::DisputeSessionized => {\n", " TableEngine::CollapsingMergeTree { sign: \"sign_flag\" }\n", " }\n", " Self::DisputeSessionized => Ok(\"sessionizer_dis...
[ { "file_path": "crates/analytics/src/disputes/accumulators.rs", "lines": [ " pub total_amount_disputed: SumAccumulator,\n", " pub total_dispute_lost_amount: SumAccumulator,\n", "pub struct SumAccumulator {\n", "impl DisputeMetricAccumulator for SumAccumulator {\n", " ...
[ "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-6565
Bug: Elimination routing integration
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index c4c2f072b1e..2e570816ab4 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -740,14 +740,13 @@ pub struct ToggleDynamicRoutingPath { #[derive(serde::Serialize, serde::Deserialize, Debug, Clone, T...
2024-11-27T07:23:28Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description build the gRPC interface for communicating with the external service to perform elimination routing ...
d75625f11d4611c688593d5730efc8c6f2c59afd
- Communication is being established with dynamo <img width="1705" alt="Screenshot 2024-12-05 at 6 03 54 PM" src="https://github.com/user-attachments/assets/09c62052-6c86-47a2-b03f-da0c2835df55">
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " pub bucket_size: Option<u64>,\n", " pub bucket_leak_interval_in_secs: Option<u64>,\n", " bucket_leak_interval_in_secs: Some(2),\n", "\n", "#[derive(serde::Serialize, serde::Deserialize, Debug, ...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " // pub labels: Option<Vec<String>>,\n", " pub bucket_size: Option<u32>,\n", " pub bucket_ttl_in_mins: Option<f64>,\n", " bucket_ttl_in_mins: Some(2.0),\n" ] }, { "file_path": "crates/e...
[ "rs", "proto" ]
9
juspay/hyperswitch
juspay__hyperswitch-6564
Bug: Volume Split for Intelligent Routing Hyperswitch currently supports both static and dynamic routing. Develop a feature to provide a volume split between these routing types itself. Example - 20% of the payments, make decisions based on dynamic routing and 80% of the payments, based on static routing.
diff --git a/config/development.toml b/config/development.toml index eef44648c6c..4e3a9b09993 100644 --- a/config/development.toml +++ b/config/development.toml @@ -790,9 +790,10 @@ card_networks = "Visa, AmericanExpress, Mastercard" [network_tokenization_supported_connectors] connector_list = "cybersource" -[grpc_...
2024-11-26T10:16: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 --> Have added a new API for enabling volume split for dynamic rout...
3a3e93cb3be3fc3ffabef2a708b49defabf338a5
``` curl --location --request POST 'http://localhost:8080/account/sarthak1/business_profile/pro_WlO7KCOeDRB8kWk7MSy1/dynamic_routing/set_volume_split?split=20' \ --header 'api-key: dev_iricUDSeFis6RzTGCcYkOt4wmuBcRfjbVbWXbOUO5996boAgztmtfTKN6HNqerjM' ``` Status in DB - <img width="1511" alt="image" src="https:/...
[ { "file_path": "config/development.toml", "lines": [ "[grpc_client.dynamic_routing_client]\n", "host = \"localhost\"\n", "port = 7000\n", "service = \"dynamo\"\n" ] }, { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingRetrieveLinkQ...
[ { "file_path": "config/development.toml", "lines": [ "[grpc_client.dynamic_routing_client] \n", "host = \"localhost\" \n", "port = 7000 \n" ] }, { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingRetrieveLinkQueryWrapper, RoutingRet...
[ "toml", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-6548
Bug: refactor(core): add profile_id for default_fallback api ## Description This will refactor the route routing/default/profile into /default/profile/{profile_id}, Previously the output for this route was the default fallback connectors from all the profiles, After this refactor it will have the fallback connec...
diff --git a/crates/router/src/core/routing.rs b/crates/router/src/core/routing.rs index 0bd38918ee7..94eb9bd741e 100644 --- a/crates/router/src/core/routing.rs +++ b/crates/router/src/core/routing.rs @@ -909,26 +909,30 @@ pub async fn retrieve_default_fallback_algorithm_for_profile( } #[cfg(feature = "v1")] - pub...
2024-11-12T13:46:03Z
## 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 will refactor the route `routing/default/profile` Previou...
6808272de305c685b7cf948060f006d39cbac60b
``` curl --location 'http://127.0.0.1:8080/routing/default/profile' \ --header 'Authorization: Bearer token ``` This should have the connectors from the mentioned profile only. ``` [ { "connector": "bankofamerica", "merchant_connector_id": "mca_ADICIF9zh09TjnpUgusU" } ] ```
[ { "file_path": "crates/router/src/core/routing.rs", "lines": [ " profile_id: Option<common_utils::id_type::ProfileId>,\n", " let id = profile_id\n", " .map(|profile_id| profile_id.get_string_repr().to_owned())\n", " .unwrap_or_else(|| merchant_account.get_id().get...
[ { "file_path": "crates/router/src/core/routing.rs", "lines": [ "\n", " helpers::get_merchant_default_config(\n", " db,\n", " merchant_account.get_id().get_string_repr(),\n", " transaction_type,\n", " )\n", " .await\n", " .map(|...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6542
Bug: ci: run cybersource along with stripe ci: run cybersource along with stripe
2024-11-12T09:40:28Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> Run Cybersource in parallel along with Stripe. closes #654...
20a3a1c2d6bb93fb4dae7f7eb669ebd85e631c96
Let the CI check pass: https://github.com/juspay/hyperswitch/actions/runs/11794582778/job/32975411512?pr=6541
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6536
Bug: refactor(routing): remove payment_id from dynamic_routing metrics
diff --git a/crates/router/src/core/routing/helpers.rs b/crates/router/src/core/routing/helpers.rs index 0250d00d1bb..aef89ea8ed9 100644 --- a/crates/router/src/core/routing/helpers.rs +++ b/crates/router/src/core/routing/helpers.rs @@ -733,7 +733,7 @@ pub async fn push_metrics_with_update_window_for_success_based_rout...
2024-11-11T13:52:51Z
## 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 will remove payment_id from being pushed to dynamic_routin...
0a506b1729a27e47543cf24f64fbad08479d8dec
This can be tested on SBX in the dynamic_routing Dashboard present on grafana dashboard, There shouldn't be payment_id and the merchant_id should be merged with profile_id
[ { "file_path": "crates/router/src/core/routing/helpers.rs", "lines": [ " let (first_success_based_connector, _) = first_success_based_connector_label\n", " \"merchant_profile_id\",\n", " format!(\n", " \"{}:{}\",\n",...
[ { "file_path": "crates/router/src/core/routing/helpers.rs", "lines": [ " let (first_success_based_connector, merchant_connector_id) = first_success_based_connector_label\n", " \"merchant_id\",\n", " payment_attempt.merchant_id.get_string_repr()....
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6561
Bug: Create toggle and update endpoints for ER
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 1494908c5fc..68631872aa7 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -1278,7 +1278,7 @@ ], "summary": "Routing - Create", "description": "Create a routing...
2024-11-14T08:21:23Z
## 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 add route to enable Elimination based dynamic rout...
d4b482c21cf57b022c7bbadc1a3a9c9d9e5d4f03
Testing Scenarios: 1. enable elimination routing and check Profile table for the following value: ``` dynamic_routing_algorithm | {"success_based_algorithm":{"algorithm_id_with_timestamp":{"algorithm_id":"routing_2hS6Dn3XRjICecmNZg5s","timestamp":1732569416},"enabled_feature":"metrics...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"operationId\": \"Create a routing algorithm\",\n" ] }, { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " ToggleDynamicRoutingQuery, ToggleDynamicRoutingWrapper,\n", "impl ApiE...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"operationId\": \"Create a routing algprithm\",\n" ] }, { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " ToggleSuccessBasedRoutingQuery, ToggleSuccessBasedRoutingWrapper,\n", ...
[ "json", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-6563
Bug: Integration of ER in core flow
diff --git a/config/development.toml b/config/development.toml index 3a041db3574..c83713e2a07 100644 --- a/config/development.toml +++ b/config/development.toml @@ -991,7 +991,7 @@ connector_list = "cybersource" [grpc_client.dynamic_routing_client] host = "localhost" -port = 7000 +port = 8000 service = "dynamo" ...
2024-12-12T04:52:49Z
## 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 integrate elimination routing in our core flows for c...
2a4670537a5c0e40e70d2afec0a2ba6124f03927
Testing performed in same way as SR routing. 1. Enable ER for merchant ``` curl --location --request POST 'http://localhost:8080/account/merchant_1744368166/business_profile/pro_GrzjTHd5Pn5hAhwTZPRn/dynamic_routing/elimination/toggle?enable=dynamic_connector_selection' \ --header 'api-key: dev_a4XMpNXd3Yriz5DPsiw...
[ { "file_path": "config/development.toml", "lines": [ "port = 8000\n" ] }, { "file_path": "crates/api_models/src/routing.rs", "lines": [ "#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, Copy, ToSchema)]\n" ] }, { "file_path": "crates/common_enums/src/enums...
[ { "file_path": "config/development.toml", "lines": [ "port = 7000\n" ] }, { "file_path": "crates/api_models/src/routing.rs", "lines": [ "#[derive(serde::Serialize, serde::Deserialize, Debug, Clone, ToSchema)]\n" ] }, { "file_path": "crates/router/src/core/payments/ope...
[ "toml", "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6585
Bug: [REFACTOR] Move cybersource, bankofamerica, wellsfargo to crate hyperswitch_connectors ### Feature Description Move cybersource, bankofamerica, wellsfargo code to crate hyperswitch_connectors. ### Possible Implementation Move cybersource, bankofamerica, wellsfargo code to crate hyperswitch_connectors. ### H...
diff --git a/Cargo.lock b/Cargo.lock index 2007f4f88a0..7583fb2eeee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4003,6 +4003,7 @@ dependencies = [ "hyperswitch_domain_models", "hyperswitch_interfaces", "image", + "josekit", "lazy_static", "masking", "mime", diff --git a/crates/hyperswitch_connectors/Cargo....
2024-12-20T10:56:16Z
## 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 --> Move cybersource, bankofamerica, wellsfargo code to crate hyper...
9c1ebd219fcaeefb6bd06c21c2358bf19a332891
Moved the connector tot he hyperswitch crate (No logical Changes)
[ { "file_path": "Cargo.lock", "lines": [ " \"josekit\",\n" ] }, { "file_path": "crates/hyperswitch_connectors/Cargo.toml", "lines": [ "josekit = \"0.8.6\"\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ "pub mod bankofamer...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " billwerk::Billwerk, bitpay::Bitpay, bluesnap::Bluesnap, boku::Boku, cashtocode::Cashtocode,\n", " coinbase::Coinbase, cryptopay::Cryptopay, ctp_mastercard::CtpMastercard, datatrans::Datatrans,\n", " wor...
[ "toml", "lock", "rs" ]
19
juspay/hyperswitch
juspay__hyperswitch-6553
Bug: feat(themes): APIs for theme management Backend needs to provide APIs to create and manage themes. Four APIs are planned 1. Create theme 2. Update theme data 3. Delete theme 4. Upload an asset to theme ![Themes APIs](https://github.com/user-attachments/assets/71b9e349-12b7-45db-8589-7babbb8ea4e3)
diff --git a/Cargo.lock b/Cargo.lock index 4118ea29c2d..9b0263f99dc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -455,6 +455,7 @@ checksum = "b3d1d046238990b9cf5bcde22a3fb3584ee5cf65fb2765f454ed428c7a0063da" name = "api_models" version = "0.1.0" dependencies = [ + "actix-multipart", "actix-web", "cards", "commo...
2024-11-25T14:04:47Z
## 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 adds APIs to manage themes. These are the following AP...
64383915bda5693df1cecf6cc5683e8b9aaef99b
1. Create Theme ``` curl --location 'http://localhost:8080/user/theme' \ --header 'Content-Type: application/json' \ --header 'api-key: ••••••' \ --data '{ "lineage": { "entity_type": "profile", "tenant_id": "t1", "org_id": "o1", "m...
[ { "file_path": "Cargo.lock", "lines": [ " \"actix-multipart\",\n" ] }, { "file_path": "config/config.example.toml", "lines": [ "\n", "[theme_storage]\n", "file_storage_backend = \"file_system\" # Theme storage backend to be used\n" ] }, { "file_path": "con...
[ { "file_path": "crates/api_models/Cargo.toml", "lines": [ "errors = [\"dep:actix-web\", \"dep:reqwest\"]\n", "actix-web = { version = \"4.5.1\", optional = true }\n" ] }, { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " AuthSelectRequest\n" ] ...
[ "toml", "lock", "rs" ]
26
juspay/hyperswitch
juspay__hyperswitch-6534
Bug: refactor(users): Make `profile_id` in the JWT non-optional - We kept the `profile_id` in the JWT optional for backwards compatibility. - Now we have `profile_id` in all the JWT and this field no longer needs to be optional in JWT.
diff --git a/crates/diesel_models/src/query/user_role.rs b/crates/diesel_models/src/query/user_role.rs index 2496d22447e..ed018cc2381 100644 --- a/crates/diesel_models/src/query/user_role.rs +++ b/crates/diesel_models/src/query/user_role.rs @@ -87,7 +87,7 @@ impl UserRole { user_id: String, org_id: id...
2024-11-11T14:12:28Z
## 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 `profile_id` in the JWT is optional, this PR makes ...
98b141c6a00e6435385e1c513b1684d58567ecee
This is a internal change and it should not affect any APIs.
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " profile_id: id_type::ProfileId,\n", " profile_id: id_type::ProfileId,\n" ] }, { "file_path": "crates/router/src/core/user.rs", "lines": [ " profile_id: user_from_token.profil...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " profile_id: Option<id_type::ProfileId>,\n", " //TODO: In case of None, profile_id = NULL its unexpected behaviour, after V1 profile id will not be option\n", " //TODO: In...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6528
Bug: fix: trustpay eps redirection in cypress fix: trustpay eps redirection in cypress they changed it again
2024-11-11T10:19:51Z
## 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 --> Fix EPS Bank Redirect redirection in Cypress. Closes #6528...
0a506b1729a27e47543cf24f64fbad08479d8dec
<img width="453" alt="image" src="https://github.com/user-attachments/assets/a712b6c3-74fa-4a41-8eae-3045bc41e3ac">
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6526
Bug: [FIX] fix response for migration api Currently there is inconsistent response due to no validations for request body fields for the migration api. Implementation - validations such as empty string check for network transaction id and empty object for connector mandate details should be enforced while eval...
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index ad612ed6f3b..f07634060df 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -28,7 +28,7 @@ use common_utils::{ consts, crypto:...
2024-11-11T10:06:16Z
## 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 --> #6300 has inconsistent response due to no validations for each ...
086115f47379b06185a1753979fc6dd9dc945afd
test case - test migration api with empty fields. req - ``` curl --location 'http://localhost:8080/payment_methods/migrate' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: api-key' \ --data '{ "merchant_id": "merchant_id", "card": { "ca...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " ext_traits::{AsyncExt, BytesExt, ConfigExt, Encode, StringExt, ValueExt},\n", "use serde_json::json;\n", " let card_details = &req.card.get_required_value(\"card\")?;\n", " connector_m...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " ext_traits::{AsyncExt, BytesExt, Encode, StringExt, ValueExt},\n", " let card_details = req.card.as_ref().get_required_value(\"card\")?;\n", " migration_status.network_transaction_id_migrated(network_tr...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6532
Bug: feat(themes): Setup DB for themes There should a separate table for themes for storing the `theme_id`s for a particular lineage. This should be the schema: | org_id | merchant_id | profile_id | theme_id | | ------ | ----------- | ---------- | -------- | | o1 | m1 | p1 | t1 | | o...
diff --git a/crates/common_utils/src/types.rs b/crates/common_utils/src/types.rs index ef7a4b847c4..f7cdfd3617b 100644 --- a/crates/common_utils/src/types.rs +++ b/crates/common_utils/src/types.rs @@ -3,6 +3,8 @@ pub mod keymanager; /// Enum for Authentication Level pub mod authentication; +/// Enum for Theme Linea...
2024-11-11T12:08:51Z
## 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 creates a new table named `themes` in the DB. This will...
20a3a1c2d6bb93fb4dae7f7eb669ebd85e631c96
This is an internal change and there is no API to test this currently. I've tested the read query by creating a temporary API which uses the query created in this PR.
[ { "file_path": "crates/common_utils/src/types.rs", "lines": [ "/// Enum for Theme Lineage\n", "pub mod theme;\n" ] }, { "file_path": "crates/common_utils/src/types/theme.rs", "lines": [ "use crate::id_type;\n", "\n", "/// Enum for having all the required lineage...
[ { "file_path": "crates/diesel_models/src/user.rs", "lines": [ "\n" ] }, { "file_path": "crates/router/src/db/kafka_store.rs", "lines": [ "use common_utils::{errors::CustomResult, id_type, pii, types::keymanager::KeyManagerState};\n", " user::{sample_data::BatchSampleData...
[ "sql", "rs" ]
15
juspay/hyperswitch
juspay__hyperswitch-6513
Bug: docs(analytics): Instructions to set up `currency_conversion` (third party dependency API) ## Requirements After the changes by [this](#6418) PR, we need to update the documentation for `analytics` crate setup process. ## Reason Due to the third party dependency on `currency_conversion` crate, we need to ensur...
diff --git a/crates/analytics/docs/README.md b/crates/analytics/docs/README.md index 96218fc231c..eb5c26a6ba3 100644 --- a/crates/analytics/docs/README.md +++ b/crates/analytics/docs/README.md @@ -91,6 +91,44 @@ source = "kafka" After making this change, save the file and restart your application for the changes to ...
2024-11-08T08:27:21Z
## 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 --> Now that `analytics` depends on `currency_conversion` crate aft...
a5ac69d1a77e772e430df8c4187942de44f23079
[ { "file_path": "crates/analytics/docs/README.md", "lines": [ "## Setting up Forex APIs\n", "\n", "To use Forex services, you need to sign up and get your API keys from the following providers:\n", "\n", "1. Primary Service \n", " - Sign up for a free account and get you...
[]
[ "md" ]
1
juspay/hyperswitch
juspay__hyperswitch-6518
Bug: get apple pay certificates only from metadata during the session call Currently we have apple pay certificates being stored in the `metadata` as well as `connector_wallet_details` when a merchant connector account is created. During the session call we try to get the certificates from the `connector_wallet_deta...
diff --git a/crates/router/src/core/payments/flows/session_flow.rs b/crates/router/src/core/payments/flows/session_flow.rs index ba8054696a1..545d05e776f 100644 --- a/crates/router/src/core/payments/flows/session_flow.rs +++ b/crates/router/src/core/payments/flows/session_flow.rs @@ -189,20 +189,11 @@ async fn create_a...
2024-11-08T07:44:48Z
## 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 have apple pay certificates being stored in the `m...
a5ac69d1a77e772e430df8c4187942de44f23079
-> Create merchant connector account with apple pay enabled (pass the certificates only in the metadata) -> Create a payment with confirm false ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_1mlXU5sn...
[ { "file_path": "crates/router/src/core/payments/flows/session_flow.rs", "lines": [ " let apple_pay_metadata =\n", " helpers::get_applepay_metadata(router_data.connector_meta_data.clone())\n", " .attach_printable(\n", " \"Failed to t...
[ { "file_path": "crates/router/src/core/payments/flows/session_flow.rs", "lines": [ " let connector_apple_pay_wallet_details =\n", " helpers::get_applepay_metadata(router_data.connector_wallets_details.clone())\n", " .map_err(|error| {\n", " ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6521
Bug: [FEATURE]: [KLARNA] Klarna Kustom Checkout Integration ### Feature Description Klarna supports two types of payment methods: 1. Klarna Payments 2. Klarna Kustom Checkout This issue includes integration of Klarna KCO ### Possible Implementation Based on the PML got, there will be a switching between both...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index ee5654cfb6b..f86998cfc6f 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -11766,70 +11766,6 @@ } } }, - "OrderDetails": { - "type": "object", - ...
2024-12-15T22:10:16Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Klarna Kustom Checkout (KCO) integration Klarna provides two payment methods: 1. Klarna Payments (for...
886e2aacd7dcd8a04a33884ceafb1562aa7c365f
I tested it using postman by hitting the required endpoints. Curl to the postman setup: 1. Configure Klarna Checkout for merchant account ``` curl --location 'http://localhost:8080/account/merchant_1734083062/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --heade...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"type\": \"integer\",\n", " \"format\": \"int64\",\n", " \"description\": \"the amount per quantity of product\"\n", " },\n", " \"tax_rate\": {\n", " ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"OrderDetails\": {\n", " \"type\": \"object\",\n", " \"required\": [\n", " \"product_name\",\n", " \"quantity\"\n", " ],\n", " \"properties\": {\n",...
[ "json", "rs" ]
28
juspay/hyperswitch
juspay__hyperswitch-6508
Bug: [FEATURE] Add support for payout connector integrations for connectors crate ### Feature Description To be able to support connector integrations in router and the new hyperswitch_connectors crate. ### Possible Implementation Move payout API traits to a common place - in hyperswitch_interfaces crate. ### Ha...
diff --git a/crates/hyperswitch_connectors/src/default_implementations.rs b/crates/hyperswitch_connectors/src/default_implementations.rs index 418d58eb54b..81c079d5d52 100644 --- a/crates/hyperswitch_connectors/src/default_implementations.rs +++ b/crates/hyperswitch_connectors/src/default_implementations.rs @@ -1049,6 ...
2024-11-05T11:21:51Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6508 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR mo...
20a3a1c2d6bb93fb4dae7f7eb669ebd85e631c96
Not needed as it's only a refactor. New connectors being added in `hyperswitch_connectors` crate can be tested
[ { "file_path": "crates/hyperswitch_connectors/src/default_implementations.rs", "lines": [ "macro_rules! default_imp_for_payouts {\n", " ($($path:ident::$connector:ident),*) => {\n", " $(\n", " impl api::Payouts for $path::$connector {}\n", " )*\n", ...
[ { "file_path": "crates/hyperswitch_interfaces/src/api/payouts.rs", "lines": [ "use hyperswitch_domain_models::router_flow_types::payouts::{\n", " PoCancel, PoCreate, PoEligibility, PoFulfill, PoQuote, PoRecipient, PoRecipientAccount, PoSync,\n", "};\n", "#[cfg(feature = \"payouts\...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6506
Bug: [BUG] API Reference documentation broken ### Bug Description API reference is broken for following endpoints: - `API Key - Create` - `API Key - Revoke` - `Routing - Retrieve` - `Routing - Activate Config` ### Expected Behavior <img width="1514" alt="image" src="https://github.com/user-attachments/a...
2024-11-07T11:04:51Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Fixed broken API reference for the following endpoints: - `A...
cf126b940812b8adce26d7a0f957ed92309130d6
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6505
Bug: add card expiry check in the `network_transaction_id_and_card_details` based `MIT` flow [Reference pr](https://github.com/juspay/hyperswitch/pull/6245). Add card expiry validation for the `recurring_details` = `network_transaction_id_and_card_details` based MIT flow
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs index 5d75001b118..a09510a4c4e 100644 --- a/crates/router/src/core/payments.rs +++ b/crates/router/src/core/payments.rs @@ -4464,6 +4464,11 @@ where let (mandate_reference_id, card_details_for_network_transaction_id)= hyperswitc...
2024-11-07T10:52:50Z
## 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 --> [Reference pr](https://github.com/juspay/hyperswitch/pull/6245)...
cf126b940812b8adce26d7a0f957ed92309130d6
-> Create the cybersource connector -> Create payment with recurring details "type": "network_transaction_id_and_card_details" with expired card ``` curl --location 'http://localhost:8080/payments' \ --header 'Accept: application/json' \ --header 'api-key: ' \ --header 'Content-Type: application/json' \ --data...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " helpers::validate_card_expiry(\n", " &card_details_for_network_transaction_id.card_exp_month,\n", " &card_details_for_network_transaction_id.card_exp_year,\n", " )?;\n", "\n" ] } ]
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6501
Bug: feat: implement scylla cql traits for StrongSecret
diff --git a/Cargo.lock b/Cargo.lock index d232fcbf024..2d1f3cf4b06 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3698,6 +3698,12 @@ version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" +[[package]] +name = "h...
2024-11-07T06:34:24Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] New feature ## Description <!-- Describe your changes in detail --> This adds `SerializeValue` and `FromCQL` traits for masking StrongSecret ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixe...
90d9ffc1d2e13b83931762b05632056520eea07f
** THIS CANNOT BE TESTED ON ENVIRONEMTS ** Compiler guided
[ { "file_path": "Cargo.lock", "lines": [ "[[package]]\n", "name = \"histogram\"\n", "version = \"0.6.9\"\n", "source = \"registry+https://github.com/rust-lang/crates.io-index\"\n", "checksum = \"12cb882ccb290b8646e554b157ab0b71e64e8d5bef775cd66b6531e52d302669\"\n", "\n", ...
[]
[ "toml", "lock", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6491
Bug: feat(analytics): revert remove additional filters from PaymentIntentFilters When global filters are applied on the dashboard, these filters are being sent to both Payment Attempt and Payment Intent related metrics. Initially backend support was not present for capturing these filters and adding to the queries, ...
diff --git a/crates/analytics/src/payment_intents/core.rs b/crates/analytics/src/payment_intents/core.rs index 3e8915c60a2..42b4895b6a2 100644 --- a/crates/analytics/src/payment_intents/core.rs +++ b/crates/analytics/src/payment_intents/core.rs @@ -372,6 +372,15 @@ pub async fn get_filters( PaymentIntentDi...
2024-11-06T11:07: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 --> Reverts [https://github.com/juspay/hyperswitch/pull/6403](htt...
01c5216fdd6f1d841082868cccea6054b64e9e07
Hit the curl: ```bash curl --location 'http://localhost:8080/analytics/v2/org/metrics/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 'QueryType...
[ { "file_path": "crates/analytics/src/payment_intents/core.rs", "lines": [ " PaymentIntentDimensions::Connector => fil.connector,\n", " PaymentIntentDimensions::AuthType => fil.authentication_type.map(|i| i.as_ref().to_string()),\n", " PaymentIntentDimension...
[ { "file_path": "crates/analytics/src/payment_intents/filters.rs", "lines": [ "use diesel_models::enums::{Currency, IntentStatus};\n" ] }, { "file_path": "crates/api_models/src/analytics/payment_intents.rs", "lines": [ "use crate::enums::{Currency, IntentStatus};\n" ] } ]
[ "rs" ]
20
juspay/hyperswitch
juspay__hyperswitch-6509
Bug: [Enhancement] V2: Standardise endpoint naming scheme Use kebab case for all API endpoints consistently for V2. i.e. `/v2/like-this` instead of `/v2/not_like_this`
diff --git a/api-reference-v2/api-reference/api-key/api-key--create.mdx b/api-reference-v2/api-reference/api-key/api-key--create.mdx index a92a8ea77fd..abc1dcda10f 100644 --- a/api-reference-v2/api-reference/api-key/api-key--create.mdx +++ b/api-reference-v2/api-reference/api-key/api-key--create.mdx @@ -1,3 +1,3 @@ --...
2024-11-07T13:12:55Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Use kebab-case for all API endpoints in V2 ### Additional Ch...
d4b482c21cf57b022c7bbadc1a3a9c9d9e5d4f03
This is mostly a documentation PR, doesn't require any additional test cases. Verified that existing cypress tests are passing
[ { "file_path": "api-reference-v2/api-reference/api-key/api-key--create.mdx", "lines": [ "openapi: post /v2/api-keys\n" ] }, { "file_path": "api-reference-v2/api-reference/api-key/api-key--list.mdx", "lines": [ "openapi: get /v2/api-keys/list\n" ] }, { "file_path": "ap...
[ { "file_path": "api-reference-v2/api-reference/api-key/api-key--create.mdx", "lines": [ "openapi: post /v2/api_keys\n" ] }, { "file_path": "api-reference-v2/api-reference/api-key/api-key--list.mdx", "lines": [ "openapi: get /v2/api_keys/list\n" ] }, { "file_path": "ap...
[ "json", "js", "rs", "mdx" ]
49
juspay/hyperswitch
juspay__hyperswitch-6495
Bug: [DOCS] FIx API documentation for V2 - Merchant Account Update: Path Parameters in definition says it is {account_id} instead that should be {id} - Merchant Profile List Changes: Instead `Profile - list` make `Merchant Account - Profile List` , Path Parameters in definition says it is {account_id} instead ...
diff --git a/api-reference-v2/api-reference/api-key/api-key--retrieve.mdx b/api-reference-v2/api-reference/api-key/api-key--retrieve.mdx index 13b87953f1b..ee7970122d4 100644 --- a/api-reference-v2/api-reference/api-key/api-key--retrieve.mdx +++ b/api-reference-v2/api-reference/api-key/api-key--retrieve.mdx @@ -1,3 +1,...
2024-11-06T13:16:33Z
## 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 --> Improved OpenAPI documentation for V2 ### Additional Changes...
01c5216fdd6f1d841082868cccea6054b64e9e07
[ { "file_path": "api-reference-v2/api-reference/api-key/api-key--retrieve.mdx", "lines": [ "openapi: get /v2/api_keys/{id}\n" ] }, { "file_path": "api-reference-v2/api-reference/api-key/api-key--revoke.mdx", "lines": [ "openapi: delete /v2/api_keys/{id}\n" ] }, { "file...
[ { "file_path": "api-reference-v2/api-reference/api-key/api-key--retrieve.mdx", "lines": [ "openapi: get /v2/api_keys/{key_id}\n" ] }, { "file_path": "api-reference-v2/api-reference/api-key/api-key--revoke.mdx", "lines": [ "openapi: delete /v2/api_keys/{key_id}\n" ] }, { ...
[ "json", "rs", "mdx" ]
27
juspay/hyperswitch
juspay__hyperswitch-6524
Bug: [FEATURE] add permissions for operations in recon module ### Feature Description Reconciliation module in HyperSwitch provides various operations. Every operation needs to permitted for the end user to use it. As of today, recon has a single permission - which gives access to the entire recon module, this...
diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rs index c00afac6462..4af3f855d77 100644 --- a/crates/api_models/src/enums.rs +++ b/crates/api_models/src/enums.rs @@ -446,3 +446,20 @@ pub enum StripeChargeType { pub fn convert_frm_connector(connector_name: &str) -> Option<FrmConnectors> { ...
2024-11-18T06:24:02Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6524 This PR includes below changes - Extending resources enum (for specifying the res...
79a75ce65418f21da7250e1538d0990047ba52d9
- Verify the generated recon token has `acl` - `GET /verify_token` response to have `acl` <details> <summary>Check /verify_token response</summary> cURL curl --location --request GET 'http://localhost:8080/recon/verify_token' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1...
[ { "file_path": "crates/api_models/src/enums.rs", "lines": [ "\n", "#[derive(Debug, Clone, Copy, Eq, PartialEq, Ord, PartialOrd, serde::Serialize, Hash)]\n", "pub enum ReconPermissionScope {\n", " #[serde(rename = \"R\")]\n", " Read = 0,\n", " #[serde(rename = \"R...
[ { "file_path": "crates/api_models/src/events/recon.rs", "lines": [ "use crate::recon::{ReconStatusResponse, ReconTokenResponse, ReconUpdateMerchantRequest};\n" ] }, { "file_path": "crates/api_models/src/events/user.rs", "lines": [ "#[cfg(feature = \"recon\")]\n", "use maski...
[ "rs" ]
18
juspay/hyperswitch
juspay__hyperswitch-6482
Bug: feat(users): Force users to reset password on first login for non-email flow Currently in non-email flow, users who are invited are not forced to change their password. This is being forced in email flow, this should also be present in non-email flow as well.
diff --git a/crates/router/src/types/domain/user.rs b/crates/router/src/types/domain/user.rs index 8331dff95c1..c48fe3320f3 100644 --- a/crates/router/src/types/domain/user.rs +++ b/crates/router/src/types/domain/user.rs @@ -1,4 +1,8 @@ -use std::{collections::HashSet, ops, str::FromStr}; +use std::{ + collections::...
2024-11-05T13:01:02Z
## 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 non-email flow, users who are invited are not forc...
01c5216fdd6f1d841082868cccea6054b64e9e07
1. Invite a new user in non-email flow ``` curl --location 'http://localhost:8080/user/user/invite_multiple?token_only=true' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiN2I2NTA1NGQtNjgzNC00NzU2LTgyNDYtN2RkOWM1Zm...
[ { "file_path": "crates/router/src/types/domain/user.rs", "lines": [ "use std::{\n", " collections::HashSet,\n", " ops::{Deref, Not},\n", " str::FromStr,\n", "};\n", "impl Deref for UserEmail {\n", " password: Option<NewUserPassword>,\n", "#[derive(...
[ { "file_path": "crates/router/src/types/domain/user.rs", "lines": [ "use std::{collections::HashSet, ops, str::FromStr};\n", "impl ops::Deref for UserEmail {\n", " password: Option<UserPassword>,\n", " self.password.clone()\n", " last_password_modified_at: ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6475
Bug: feat(opensearch): refactor global search querybuilder and add case insensitivity opensearch filters - Currently the global search query builder logic is entirely present in a single function. - With more and more features getting added on, it is better to separate out the logic to build the query into separate ...
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs index a6e6c486ebe..84a2b9db3d4 100644 --- a/crates/analytics/src/opensearch.rs +++ b/crates/analytics/src/opensearch.rs @@ -1,3 +1,5 @@ +use std::collections::HashSet; + use api_models::{ analytics::search::SearchIndex, erro...
2024-11-04T11:59:47Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Currently the global search query builder logic is entirely p...
72ee434003eef744d516343a2f803264f226d92a
Can send the following filters in any case: - payment_method - payment_method_type - card_network - currency - connector - status Must send the following filters in the exact case: - customer_email - payment_id - card_last_4 - search_tags #### Hit the curl: ```bash curl --location 'http://localh...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ "use std::collections::HashSet;\n", "\n", " search_params: Vec<AuthInfo>,\n", " case_sensitive_fields: HashSet<&'static str>,\n", " case_sensitive_fields: HashSet::from([\n", " ...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " pub search_params: Vec<AuthInfo>,\n", " SearchIndex::Refunds => \"refund_status.keyword\",\n", " SearchIndex::Disputes => \"dispute_status.keyword\",\n", " pub fn replace_status_field(&self,...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6488
Bug: feat(users): Add profile level custom role Currently only merchant level custom role is allowed with role scope as Merchant and organization The requirement is to add profile level custom role at Organization , Merchant and Profile scope
diff --git a/crates/api_models/src/user_role/role.rs b/crates/api_models/src/user_role/role.rs index 7c877cd7477..46e15aafc70 100644 --- a/crates/api_models/src/user_role/role.rs +++ b/crates/api_models/src/user_role/role.rs @@ -7,6 +7,7 @@ pub struct CreateRoleRequest { pub role_name: String, pub groups: Vec...
2024-10-21T12:06:08Z
## 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 --> Earlier we only had access to create Merchant level custom role...
adc5262f130e25e9d711915ea9ad587bcbd0118f
**Create Custom role at profile level** ```sh curl --location 'http://localhost:8080/user/role' \ --header 'authorization: Bearer user JWT Token' \ --data '{ "role_scope": "organization", "groups": [ "operations_view", "operations_manage", "connectors_view" ], "role_name": "org-scope-pr...
[ { "file_path": "crates/api_models/src/user_role/role.rs", "lines": [ " pub entity_type: Option<EntityType>,\n", " pub entity_type: Option<EntityType>,\n" ] }, { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " Ord,\n", " PartialOrd,\n", ...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " Merchant,\n", " Organization,\n" ] }, { "file_path": "crates/diesel_models/src/query/role.rs", "lines": [ " entity_type: Option<common_enums::EntityType>,\n" ] }, { "file_path": "crates...
[ "sql", "rs" ]
14
juspay/hyperswitch
juspay__hyperswitch-6484
Bug: Refactor: interpolate success based routing params with their specific values
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index 47d75b2e835..389af3dab7b 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -615,8 +615,11 @@ impl Default for SuccessBasedRoutingConfig { pub enum SuccessBasedRoutingConfigParams { PaymentM...
2024-10-28T08:12:03Z
## 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 will interpolate the success_based_routing config params w...
90d9ffc1d2e13b83931762b05632056520eea07f
This is tested locally can't be tested on sbx or integ as it requires access for redis. <img width="1292" alt="Screenshot 2024-11-07 at 5 14 06 PM" src="https://github.com/user-attachments/assets/b5a096ae-3ab7-4e94-9aa0-502b7ab94417">
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " Currency,\n", " Country,\n", " CardNetwork,\n", " CardBin,\n" ] }, { "file_path": "crates/external_services/src/grpc_client/dynamic_routing.rs", "lines": [ "use router_env::logger;\n", ...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " Currency,\n" ] }, { "file_path": "crates/external_services/src/grpc_client.rs", "lines": [ "use router_env::logger;\n", " logger::info!(\"Connection established with gRPC Server\");\n", "\n" ...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6473
Bug: [FEATURE] Add support for network token migration Currently, the migration api only supports card raw details migration. Feature description - Add support to migrate raw network token details along with the network token requestor ref id.
diff --git a/crates/api_models/src/events/payment.rs b/crates/api_models/src/events/payment.rs index b1f15188dcb..6fdb7d59b0f 100644 --- a/crates/api_models/src/events/payment.rs +++ b/crates/api_models/src/events/payment.rs @@ -18,7 +18,7 @@ use crate::{ ListCountriesCurrenciesResponse, PaymentMethodCollectLi...
2024-10-13T21:59:05Z
## 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 for network token migration. ### Additional Chan...
43d87913ab3d177a6d193b3e475c96609cc09a28
test migration api. req - ``` curl --location 'http://localhost:8080/payment_methods/migrate' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: api-key' \ --data '{ "merchant_id": "merchant_id", "card": { "card_number": "card_number", ...
[ { "file_path": "crates/api_models/src/events/payment.rs", "lines": [ " PaymentMethodMigrateResponse, PaymentMethodResponse, PaymentMethodUpdate,\n", "impl ApiEventMetric for PaymentMethodMigrateResponse {\n", " #[cfg(all(\n", " any(feature = \"v1\", feature = \"v2\")...
[ { "file_path": "crates/api_models/src/events/payment.rs", "lines": [ " PaymentMethodResponse, PaymentMethodUpdate,\n" ] }, { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ "type PaymentMethodMigrationResponseType =\n", " (Result<PaymentMethodR...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6461
Bug: fix(analytics): add dynamic limit by clause in failure reasons metric query Currently, the `limit by` clause in query_builder of `failure_reasons` metric has only `connector` hardcoded. Should change this behaviour to enable dynamic addition of `group by` fields to the `limit by `clause as well.
diff --git a/crates/analytics/src/payments/metrics/sessionized_metrics/failure_reasons.rs b/crates/analytics/src/payments/metrics/sessionized_metrics/failure_reasons.rs index 70ae64e0115..bcbce0502d2 100644 --- a/crates/analytics/src/payments/metrics/sessionized_metrics/failure_reasons.rs +++ b/crates/analytics/src/pay...
2024-10-29T10:33:52Z
## 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, the `limit by` clause in query_builder of `failure...
55a81eb4692979036d0bfd43e445d3e1db6601e7
Hit the curl: ```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' \ --header 'Origin: http://localhost:9000' \ --header 'Referer: ...
[ { "file_path": "crates/analytics/src/payments/metrics/sessionized_metrics/failure_reasons.rs", "lines": [ " let filtered_dimensions: Vec<&PaymentDimensions> = dimensions\n", " .iter()\n", " .filter(|&&dim| dim != PaymentDimensions::ErrorReason)\n", " ...
[ { "file_path": "crates/analytics/src/payments/metrics/sessionized_metrics/failure_reasons.rs", "lines": [ " for dim in dimensions.iter() {\n", " if dim != &PaymentDimensions::ErrorReason {\n", " outer_query_builder\n", " .add_order_...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6489
Bug: [FEATURE] Add payments update-intent API for v2 Add payments `update-intent` API for v2
diff --git a/api-reference-v2/api-reference/payments/payments--update-intent.mdx b/api-reference-v2/api-reference/payments/payments--update-intent.mdx new file mode 100644 index 00000000000..3ef58f4db72 --- /dev/null +++ b/api-reference-v2/api-reference/payments/payments--update-intent.mdx @@ -0,0 +1,3 @@ +--- +openapi...
2024-11-06T09:26:24Z
## 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 `update-intent` API for payments ### Additional Chan...
15f873bd1296169149987041f4008b0afe2ac2aa
1. Intent Create Response: ```json { "id": "12345_pay_01930aca908b76b086927c61ad1fb724", "status": "requires_payment_method", "amount_details": { "order_amount": 100, "currency": "USD", "shipping_cost": null, "order_tax_amount": null, "skip_external_ta...
[ { "file_path": "api-reference-v2/api-reference/payments/payments--update-intent.mdx", "lines": [ "---\n", "openapi: put /v2/payments/{id}/update-intent\n", "---\n" ] }, { "file_path": "api-reference-v2/mint.json", "lines": [ " \"api-reference/payments/payments-...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"Set to true to indicate that the customer is in your checkout flow during this payment, and therefore is able to authenticate. This parameter should be false when merchant's doing merchant initiated payments an...
[ "json", "rs", "mdx" ]
23
juspay/hyperswitch
juspay__hyperswitch-6456
Bug: reduce cargo build jobs to 3 from 4 try reducing cargo build jobs to 3
2024-10-28T12:41:02Z
## 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 --> This PR reduces build jobs to 3 to see if it helps pass Cypre...
cd6265887adf7c17136e9fb608e97e6dd535e360
CI should work
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6449
Bug: Update broken readme icon Updating broken readme icon along with reposition of the hero image
diff --git a/README.md b/README.md index ccdd6e19b6d..10fdb6afc76 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ The single API to access payment ecosystems across 130+ countries</div> <p align="center"> <a href="https://github.com/juspay/hyperswitch/actions?query=workflow%3ACI+branch%3Amain"> - <img...
2024-10-28T05:20:16Z
TOC icon and reposition of the hero image in readme ## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Updated ...
cd6265887adf7c17136e9fb608e97e6dd535e360
[ { "file_path": "README.md", "lines": [ " <img src=\"https://github.com/juspay/hyperswitch/workflows/CI-push/badge.svg\" />\n", "<img src=\"./docs/imgs/switch.png\" />\n", "\n" ] } ]
[ { "file_path": "README.md", "lines": [ " <img src=\"https://github.com/juspay/hyperswitch/workflows/CI/badge.svg\" />\n", "<img src=\"./docs/imgs/switch.png\" />\n", "<br>\n" ] } ]
[ "md" ]
1
juspay/hyperswitch
juspay__hyperswitch-6438
Bug: fix: lazy connection pools for dynamic routing service
diff --git a/Cargo.lock b/Cargo.lock index 9ccedba3c39..78ae2d63adb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3126,8 +3126,10 @@ dependencies = [ "dyn-clone", "error-stack", "hex", + "http-body-util", "hyper 0.14.30", "hyper-proxy", + "hyper-util", "hyperswitch_interfaces", "masking", "once_cell", @@...
2024-10-25T10:47:07Z
## 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 hyperswitch server was panicking, if it wasn't able ...
aaac9aa97d1b00d50bec4e02efb0658956463398
Tested on my local. <img width="1728" alt="Screenshot 2024-10-25 at 4 15 03 PM" src="https://github.com/user-attachments/assets/a7a1d6c8-8c6c-4b35-ae3a-b05b6af9f9bc"> This can't be tested on Integ as we don't have this service on integ. Can't be tested on sbx as well, as it will require the pods to be killed. and ...
[ { "file_path": "Cargo.lock", "lines": [ " \"http-body-util\",\n", " \"hyper-util\",\n", "version = \"0.1.9\"\n", "checksum = \"41296eb09f183ac68eec06e03cdbea2e759633d4067b2f6552fc2e009bcad08b\"\n" ] }, { "file_path": "crates/external_services/Cargo.toml", "lines": [ ...
[ { "file_path": "Cargo.lock", "lines": [ "version = \"0.1.7\"\n", "checksum = \"cde7055719c54e36e95e8719f95883f22072a48ede39db7fc17a4e1d5281e9b9\"\n", " \"tower\",\n" ] }, { "file_path": "crates/external_services/Cargo.toml", "lines": [ "dynamic_routing = [\"dep:prost\...
[ "toml", "lock", "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6439
Bug: fix(authz): Proper descriptions for parents Currently descriptions for parent groups in invite page of control center are not entity specific. That means, customers in description will be visible for profile level users when it shouldn't.
diff --git a/crates/api_models/src/events/user_role.rs b/crates/api_models/src/events/user_role.rs index a2c76ecc394..e0df36a3349 100644 --- a/crates/api_models/src/events/user_role.rs +++ b/crates/api_models/src/events/user_role.rs @@ -2,8 +2,9 @@ use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate...
2024-10-25T12:17:59Z
## 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 --> Make new APIs to replace - `/user/role/{{role_id}}` -> `/user/...
98567569c1c61648eebf0ad7a1ab58bba967b427
1. Parent List ``` curl --location 'http://localhost:8080/user/parent/list' \ --header 'Authorization: JWT' \ ``` ```json [ { "name": "Operations", "description": "View and Manage Payments, Refunds, Mandates, Disputes, Customers, Payouts, Operation Reports, Organ...
[ { "file_path": "crates/api_models/src/events/user_role.rs", "lines": [ " CreateRoleRequest, GetRoleRequest, GroupsAndResources, ListRolesAtEntityLevelRequest,\n", " ListRolesRequest, RoleInfoResponseNew, RoleInfoWithGroupsResponse, RoleInfoWithParents,\n", " UpdateRole...
[ { "file_path": "crates/api_models/src/events/user_role.rs", "lines": [ " CreateRoleRequest, GetRoleRequest, ListRolesAtEntityLevelRequest, ListRolesRequest,\n", " RoleInfoResponseNew, RoleInfoWithGroupsResponse, UpdateRoleRequest,\n", " ListRolesRequest\n" ] }, ...
[ "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-6436
Bug: chore(users): change entity_type column of roles to non-optional Make entity-type in roles non-optional
diff --git a/crates/diesel_models/src/role.rs b/crates/diesel_models/src/role.rs index 3fb64e645d6..8199bd3979c 100644 --- a/crates/diesel_models/src/role.rs +++ b/crates/diesel_models/src/role.rs @@ -18,7 +18,7 @@ pub struct Role { pub created_by: String, pub last_modified_at: PrimitiveDateTime, pub las...
2024-10-25T09:20:18Z
## 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 --> Earlier entity-type column in roles table was optional , after ...
8372389671c4aefeb625365d198390df5d8f35a5
- Request : ``` curl 'http://localhost:8080/user/role' \ -H 'authorization: Bearer JWT \ --data-raw '{"role_scope":"merchant","groups":["operations_manage","connectors_view","connectors_manage"],"role_name":"merch-scope-merch-role"}' ``` Response : ``` { "role_id": "role_qrQ05Q9pu7czBlDEWnGE", ...
[ { "file_path": "crates/diesel_models/src/role.rs", "lines": [ " pub entity_type: enums::EntityType,\n", " pub entity_type: enums::EntityType,\n" ] }, { "file_path": "crates/diesel_models/src/schema.rs", "lines": [ " entity_type -> Varchar,\n" ] }, { ...
[ { "file_path": "crates/diesel_models/src/role.rs", "lines": [ " pub entity_type: Option<enums::EntityType>,\n", " pub entity_type: Option<enums::EntityType>,\n" ] }, { "file_path": "crates/diesel_models/src/schema.rs", "lines": [ " entity_type -> Nullable<Varch...
[ "sql", "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6430
Bug: fix(analytics): fix refund status filter on dashboard Whenever Refund Status filter is applied on the analytics section on dashboard, errors are being generated. The wrong RefundStatus enum has been imported for the RefundStatus filter in RefundFilters struct in this PR: https://github.com/juspay/hyperswitch/pu...
diff --git a/crates/api_models/src/analytics/refunds.rs b/crates/api_models/src/analytics/refunds.rs index 8acb51e764c..ef17387d1ea 100644 --- a/crates/api_models/src/analytics/refunds.rs +++ b/crates/api_models/src/analytics/refunds.rs @@ -5,7 +5,7 @@ use std::{ use common_utils::id_type; -use crate::{enums::Curr...
2024-10-24T13:21: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 --> - Whenever `Refund Status` filter is applied on the analytics s...
c3b0f7c1d6ad95034535048aa50ff6abe9ed6aa0
- Apply the refund status filter on the dashboard - Hit the curl: ```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/refunds' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header ...
[ { "file_path": "crates/api_models/src/analytics/refunds.rs", "lines": [ "use crate::enums::{Currency, RefundStatus};\n" ] } ]
[ { "file_path": "crates/api_models/src/analytics/refunds.rs", "lines": [ "use crate::{enums::Currency, refunds::RefundStatus};\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6425
Bug: fix(payment_methods): fix merchant payment method list to retain a mca based on connector_name and mca_id Earlier a connector was occurring twice while doing a session token call for wallets. This PR fixes merchant payment method list to retain a mca based on connector_name and mca_id. So that with every distin...
diff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rs index 84106a87d9b..d5255b5e8c5 100644 --- a/crates/api_models/src/payment_methods.rs +++ b/crates/api_models/src/payment_methods.rs @@ -1217,12 +1217,14 @@ pub struct ResponsePaymentMethodIntermediate { pub card_networ...
2024-10-23T09:37:30Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Earlier a connector was occurring twice while doing a session token call for wallets. This PR fixes merch...
4ef48c39b3ed7c1fcda9c850da766a0bdb701335
- Create a MA and an MCA(with wallets enabled) - Create an payment_intent ``` Intent Response { "payment_id": "pay_NHWegNguTfDH9hxuVj1m", "merchant_id": "merchant_1729514766", "status": "requires_payment_method", "amount": 8500, "net_amount": 8500, "shipping_cost": null, "amount_...
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ " pub merchant_connector_id: String,\n", " merchant_connector_id: String,\n", " merchant_connector_id,\n" ] }, { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " if connector_data.connector.connector_name == routing_choice.connector.connector_name {\n" ] } ]
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6421
Bug: feat(routing): add invalidate window as a service for SR based routing add invalidate window as a service for SR based routing
diff --git a/config/development.toml b/config/development.toml index 8f3ffdbcbb5..5a6a1250637 100644 --- a/config/development.toml +++ b/config/development.toml @@ -775,3 +775,7 @@ card_networks = "Visa, AmericanExpress, Mastercard" [network_tokenization_supported_connectors] connector_list = "cybersource" + +[grpc...
2024-10-08T09:02:03Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description add invalidate window as a service for SR based routing ### Additional Changes - [ ] This PR modi...
f56d76ffec7ef6c27417a5df1999af7ccc3f1545
- Hit the route, to update the config ``` curl --location --request PATCH 'http://localhost:8080/account/merchant_1730123706/business_profile/pro_TtvgDfAdgudrReoeeUJb/dynamic_routing/success_based/config/routing_lmPpwoTevEaYMVogesHs' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ ...
[ { "file_path": "config/development.toml", "lines": [ "\n", "[grpc_client.dynamic_routing_client] \n", "host = \"localhost\" \n", "port = 7000 \n" ] }, { "file_path": "crates/external_services/src/grpc_client/dynamic_routing.rs", "lines": [ " CurrentBloc...
[ { "file_path": "crates/external_services/src/grpc_client/dynamic_routing.rs", "lines": [ " CurrentBlockThreshold as DynamicCurrentThreshold, LabelWithStatus,\n", " UpdateSuccessRateWindowConfig, UpdateSuccessRateWindowRequest, UpdateSuccessRateWindowResponse,\n", " let mut cli...
[ "toml", "rs", "proto" ]
6
juspay/hyperswitch
juspay__hyperswitch-6416
Bug: feat(analytics): implement currency conversion to power multi-currency aggregation ## Current Behaviour The total amount calculated for all payment analytics buckets related to amounts is incorrect because currency conversion is not being applied before summing the values. As a result, amounts in different cur...
diff --git a/Cargo.lock b/Cargo.lock index 26ad619ee0b..8c69154fcea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -353,6 +353,7 @@ dependencies = [ "bigdecimal", "common_enums", "common_utils", + "currency_conversion", "diesel_models", "error-stack", "futures 0.3.30", @@ -363,6 +364,7 @@ dependencies = [ "o...
2024-10-23T19:46:05Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - implemented currency_conversion for calculating values of amount related metrics from their currency (i...
aee11c560e427195a0d321dff19c0d33ec60ba64
### API request for metrics ```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'Origin: http://localhost:...
[ { "file_path": "Cargo.lock", "lines": [ " \"currency_conversion\",\n", " \"rust_decimal\",\n" ] }, { "file_path": "crates/analytics/Cargo.toml", "lines": [ "currency_conversion = { version = \"0.1.0\", path = \"../currency_conversion\" }\n", "rust_decimal = \"1.35\"\n...
[ { "file_path": "crates/analytics/src/payment_intents/accumulator.rs", "lines": [ " type MetricOutput = (Option<u64>, Option<u64>);\n", " (with_retries, without_retries)\n", " type MetricOutput = (Option<u64>, Option<u64>, Option<u64>, Option<u64>);\n", " let (smar...
[ "toml", "lock", "rs" ]
18
juspay/hyperswitch
juspay__hyperswitch-6410
Bug: [FEATURE] [PAZE] Add amount, currency and email to paze session response ### Feature Description Add amount, currency and email to paze session response ### Possible Implementation { "wallet_name": "paze", "client_id": "HIDDEN", "client_name": "HIDDEN", "cl...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index bd9de3a2962..c85bfad3326 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -16199,7 +16199,9 @@ "required": [ "client_id", "client_name", - "client...
2024-10-23T11:22: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 --> Add amount, currency and email to paze session response ### ...
e36ea184ae6d1363fb1af55c790162df9f8b451c
Session Request Paze: ``` curl --location 'http://localhost:8080/payments/session_tokens' \ --header 'Content-Type: application/json' \ --header 'api-key: API_KEY_HERE' \ --data '{ "payment_id": "pay_Omdaxo733MC34fLvCfYw", "wallets": [], "client_secret": "pay_Omdaxo733MC34fLvCfYw_secret_ak2iLU1A5E...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"client_profile_id\",\n", " \"transaction_currency_code\",\n", " \"transaction_amount\"\n", " },\n", " \"transaction_currency_code\": {\n", " \"$ref\...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"client_profile_id\"\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/router_request_types.rs", "lines": [ "\n" ] }, { "file_path": "crates/router/src/core/payments/flows/session_f...
[ "json", "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-6406
Bug: feat(analytics): remove additional filters from PaymentIntentFilters hotfix -Additional filters are added to PaymentIntentFilters as new analytics APIs are expected to be calculated from `Sessionizer Payment Intents` table. - Existing metrics on current dashboard are breaking due to these new filters as the ...
diff --git a/crates/analytics/src/payment_intents/core.rs b/crates/analytics/src/payment_intents/core.rs index e04c3b7bd9e..af46baed23e 100644 --- a/crates/analytics/src/payment_intents/core.rs +++ b/crates/analytics/src/payment_intents/core.rs @@ -371,15 +371,6 @@ pub async fn get_filters( PaymentIntentDi...
2024-10-23T07:54:30Z
## 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 --> Hotfix PR for: [https://github.com/juspay/hyperswitch/pull/6403...
76dda56642ceef8cc56104a715b76c4c1663da28
Added filters of connector, payment_method, etc on the dashboard and the payments v2 APIs should not return 500 error. - Hit the curl: ```bash curl --location 'http://localhost:8080/analytics/v2/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: k...
[ { "file_path": "crates/analytics/src/payment_intents/filters.rs", "lines": [ "use diesel_models::enums::{Currency, IntentStatus};\n" ] }, { "file_path": "crates/api_models/src/analytics/payment_intents.rs", "lines": [ "use crate::enums::{Currency, IntentStatus};\n" ] } ]
[ { "file_path": "crates/analytics/src/payment_intents/core.rs", "lines": [ " PaymentIntentDimensions::Connector => fil.connector,\n", " PaymentIntentDimensions::AuthType => fil.authentication_type.map(|i| i.as_ref().to_string()),\n", " PaymentIntentDimension...
[ "rs" ]
19
juspay/hyperswitch
juspay__hyperswitch-6457
Bug: feat(users): add tenant_id in user roles - Use global interface for user roles - Add column tenant_id in user_roles - Handle insertion of tenant_id - Hadle token validation, a token issued in one tenant should not work in other tenancy
diff --git a/crates/diesel_models/src/schema.rs b/crates/diesel_models/src/schema.rs index e2ab676b2d3..782d7f50eac 100644 --- a/crates/diesel_models/src/schema.rs +++ b/crates/diesel_models/src/schema.rs @@ -1343,6 +1343,8 @@ diesel::table! { #[max_length = 64] entity_type -> Nullable<Varchar>, ...
2024-10-28T21:08:20Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR includes - Use of global interface for user roles table - Add tenant_id column in user_roles ta...
a5ac69d1a77e772e430df8c4187942de44f23079
With the multi -tenancy feature flag enabled, when trying to signup by sending different headers for different tenancies> ``` curl --location 'http://localhost:8080/user/signup?token_only=true' \ --header 'x-tenant-id: test' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "global_test@jus...
[ { "file_path": "crates/diesel_models/src/schema.rs", "lines": [ " #[max_length = 64]\n", " tenant_id -> Varchar,\n" ] }, { "file_path": "crates/diesel_models/src/schema_v2.rs", "lines": [ " #[max_length = 64]\n", " tenant_id -> Varchar,\n" ...
[ { "file_path": "crates/router/src/analytics.rs", "lines": [ " .store\n", " .store\n" ] }, { "file_path": "crates/router/src/core/user.rs", "lines": [ " .store\n", " .store\n", " .store\n", " ...
[ "sql", "rs" ]
18
juspay/hyperswitch
juspay__hyperswitch-6398
Bug: fix(payments): total count issue for card-network filter To close issue https://github.com/juspay/hyperswitch-cloud/issues/7206
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index fd1286a555e..4fb5aaf28f2 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -4585,6 +4585,7 @@ impl PaymentListFilterConstraints { && self.payment_method_type.is_none() ...
2024-10-22T12:47:21Z
## 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 total count in the payments response was incorrect when the...
26e0c32f4da5689a1c01fbb456ac008a0b831710
Request : ``` curl 'http://localhost:8080/payments/list' \ -H 'authorization: Bearer JWT token' \ -H 'sec-ch-ua: "Google Chrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'sec-ch-ua-platform: "macOS"' \ --data-raw '{"offset":0,"limit":50,"start_time":"2024-09...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " && self.card_network.is_none()\n" ] }, { "file_path": "crates/diesel_models/src/query/payment_attempt.rs", "lines": [ " card_network: Option<Vec<enums::CardNetwork>>,\n", " if let Some...
[]
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6404
Bug: feat(analytics): remove additional filters from PaymentIntentFilters -Additional filters are added to PaymentIntentFilters as new analytics APIs are expected to be calculated from `Sessionizer Payment Intents` table. - Existing metrics on current dashboard are breaking due to these new filters as the fields ar...
diff --git a/crates/analytics/src/payment_intents/core.rs b/crates/analytics/src/payment_intents/core.rs index e04c3b7bd9e..af46baed23e 100644 --- a/crates/analytics/src/payment_intents/core.rs +++ b/crates/analytics/src/payment_intents/core.rs @@ -371,15 +371,6 @@ pub async fn get_filters( PaymentIntentDi...
2024-10-22T18:22:21Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Fix for this PR: [https://github.com/juspay/hyperswitch/pull/58...
3d1a3cdc8f942a3dca2e6a200bf9200366bd62f1
Added filters of connector, payment_method, etc on the dashboard and the payments v2 APIs should not return 500 error. - Hit the curl: ```bash curl --location 'http://localhost:8080/analytics/v2/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: k...
[ { "file_path": "crates/analytics/src/payment_intents/filters.rs", "lines": [ "use diesel_models::enums::{Currency, IntentStatus};\n" ] }, { "file_path": "crates/api_models/src/analytics/payment_intents.rs", "lines": [ "use crate::enums::{Currency, IntentStatus};\n" ] } ]
[ { "file_path": "crates/analytics/src/payment_intents/core.rs", "lines": [ " PaymentIntentDimensions::Connector => fil.connector,\n", " PaymentIntentDimensions::AuthType => fil.authentication_type.map(|i| i.as_ref().to_string()),\n", " PaymentIntentDimension...
[ "rs" ]
19
juspay/hyperswitch
juspay__hyperswitch-6417
Bug: feat(analytics): add `sessionized_metrics` for refunds (backwards compatibility) and `currency_conversion` ## Current Behaviour - There is no `sessionized_metrics` module for refunds like there is for `payments` and `payment_intents` - Update the existing metrics with `currency_conversion` usage. ## Propos...
diff --git a/crates/analytics/src/payment_intents/core.rs b/crates/analytics/src/payment_intents/core.rs index 7ea8e9007f7..b242b3dae81 100644 --- a/crates/analytics/src/payment_intents/core.rs +++ b/crates/analytics/src/payment_intents/core.rs @@ -69,11 +69,21 @@ pub async fn get_sankey( i.refunds...
2024-10-23T19:59:24Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Add sessionized metrics module and implement backwards compat...
1ba3d84df1e93d2286db1a262c4a67b3861b90c0
```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/refunds' \ --header 'Accept: */*' \ --header 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'Origin: http://localhost:9000' \ --header 'QueryType: Si...
[ { "file_path": "crates/analytics/src/payment_intents/core.rs", "lines": [ " (IntentStatus::Succeeded, SessionizerRefundStatus::FullRefunded, 1) => {\n", " sankey_response.refunded += i.count;\n", " sankey_response.normal_succ...
[ { "file_path": "crates/analytics/src/payment_intents/core.rs", "lines": [ " sankey_response.refunded += i.count\n", " sankey_response.partial_refunded += i.count\n" ] }, { "file_path": "crates/analytics/src/payments/accumulator.rs", "...
[ "rs" ]
17
juspay/hyperswitch
juspay__hyperswitch-6395
Bug: [FEATURE] add payments get-intent API for v2 # Feature Description Add payments `get-intent` API for v2
diff --git a/api-reference-v2/api-reference/payments/payments--get-intent.mdx b/api-reference-v2/api-reference/payments/payments--get-intent.mdx new file mode 100644 index 00000000000..cd1321be217 --- /dev/null +++ b/api-reference-v2/api-reference/payments/payments--get-intent.mdx @@ -0,0 +1,3 @@ +--- +openapi: get /v2...
2024-10-22T12:37:13Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Added `get-intent` API for payments ### Additional Changes - [x] This PR modifies the API contract ...
fbe395198aea7252e9c4e3fad97956a548d07002
1a. Request ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_0192b3a0145173519abaa04d4b939558/get-intent' \ --header 'Content-Type: application/json' \ --header 'X-Profile-Id: pro_wcilqiS8axGFvpzfO9pw' \ --header 'api-key: dev_D3bTAROAIoP4nlqsaQXLzXoLdZznkpWQ3l4mzMRJEAP7V46pSnZucJM2zQiVwG0J' ```...
[ { "file_path": "api-reference-v2/api-reference/payments/payments--get-intent.mdx", "lines": [ "---\n", "openapi: get /v2/payments/{id}/get-intent\n", "---\n" ] }, { "file_path": "api-reference-v2/mint.json", "lines": [ " \"api-reference/payments/payments--get-i...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"$ref\": \"#/components/schemas/PaymentsCreateIntentResponse\"\n", " \"PaymentsCreateIntentResponse\": {\n", " \"type\": \"object\",\n", " \"required\": [\n", " \"id\...
[ "json", "rs", "mdx" ]
18
juspay/hyperswitch
juspay__hyperswitch-6387
Bug: include the payment_processing_details_at Hyperswitch option only if apple pay token decryption flow is supported for the connector While configuring apple pay iOS flow `payment_processing_details_at` option is shown that can take two values ,`Connector` or `Hyperswitch`. But the `payment_processing_details_at`...
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml index 78f3c627fca..180aadffde3 100644 --- a/crates/connector_configs/toml/development.toml +++ b/crates/connector_configs/toml/development.toml @@ -281,7 +281,7 @@ label="Payment Processing Details At" placehol...
2024-10-22T06:55:26Z
## 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 --> While configuring apple pay iOS flow `payment_processing_detail...
f3a869ea9a430f3b5177852fb74d0910dc8fbe17
This pr includes wasam changes to not show the `payment_processing_details_at` `Hyperswitch` when the web apple pay flow is not enabled. Things to test the below radio button with Hyperswitch option should not be shown if apple pay web flow is not enalbed. <img width="562" alt="image" src="https://github.com/user...
[ { "file_path": "crates/connector_configs/toml/development.toml", "lines": [ "options=[\"Connector\"]\n", "options=[\"Connector\"]\n", "options=[\"Connector\"]\n", "options=[\"Connector\"]\n", "options=[\"Connector\"]\n", "options=[\"Connector\"]\n", "options=[\"Conn...
[ { "file_path": "crates/connector_configs/toml/development.toml", "lines": [ "options=[\"Connector\",\"Hyperswitch\"]\n", "options=[\"Connector\",\"Hyperswitch\"]\n", "options=[\"Connector\",\"Hyperswitch\"]\n", "options=[\"Connector\",\"Hyperswitch\"]\n", "options=[\"Connector\...
[ "toml" ]
3
juspay/hyperswitch
juspay__hyperswitch-6390
Bug: [FIX] fix tenant nomenclature in the code
diff --git a/config/config.example.toml b/config/config.example.toml index 8f04ba49831..b0d3c743673 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -741,7 +741,7 @@ enabled = false global_tenant = { schema = "public", redis_key_prefix = "", clickhouse_database = "default"} [multitenancy....
2024-10-22T09:27:55Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Enhancement ## Description <!-- Describe your changes in detail --> This fixes the inconsistent nomenclature used for tenants in router and drainer code ### Additional Changes - [x] This PR modifies application configuration/environment vari...
04c969866816be286720377e73982e21a3302ba9
**This cannot be tested on sandbox without enabling Multi Tenancy** 1. Application runs with the changed config and so does drainer 2. Do a request with a valid `x-tenant-id` ```bash curl --location 'http://localhost:8080/accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: applicatio...
[ { "file_path": "config/config.example.toml", "lines": [ "public = { base_url = \"http://localhost:8080\", schema = \"public\", redis_key_prefix = \"\", clickhouse_database = \"default\" } # schema -> Postgres db schema, redis_key_prefix -> redis key distinguisher, base_url -> url of the tenant\n" ...
[ { "file_path": "config/config.example.toml", "lines": [ "public = { name = \"hyperswitch\", base_url = \"http://localhost:8080\", schema = \"public\", redis_key_prefix = \"\", clickhouse_database = \"default\" } # schema -> Postgres db schema, redis_key_prefix -> redis key distinguisher, base_url -> u...
[ "toml", "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-6391
Bug: feat(authz): Make permissions entity and scope aware Currently the permissions we use doesn't have any entity level context. But some of our APIs need that context. For example, 1. `payment/list` - This can only be accessible by merchant level users or higher. Profile level users should not be able to access it...
diff --git a/crates/api_models/src/user_role.rs b/crates/api_models/src/user_role.rs index e64639646d1..19027c3cbf8 100644 --- a/crates/api_models/src/user_role.rs +++ b/crates/api_models/src/user_role.rs @@ -1,23 +1,9 @@ -use common_enums::PermissionGroup; +use common_enums::{ParentGroup, PermissionGroup}; use common...
2024-10-22T12:12:38Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> ### Entity level context in Permissions Currently the permis...
c7c1e1adabceeb0a03659bf8feb9aa06d85960ea
This is an internal change, no APIs should be affected and all the APIs should be working as usual.
[ { "file_path": "crates/api_models/src/user_role.rs", "lines": [ "use common_enums::{ParentGroup, PermissionGroup};\n" ] }, { "file_path": "crates/common_enums/src/enums.rs", "lines": [ "#[derive(Clone, Debug, serde::Serialize, PartialEq, Eq, Hash, strum::EnumIter)]\n", "pub...
[ { "file_path": "crates/api_models/src/user_role.rs", "lines": [ "use common_enums::PermissionGroup;\n", "#[derive(Clone, Debug, serde::Serialize, PartialEq, Eq, Hash)]\n", "pub enum ParentGroup {\n", " Operations,\n", " Connectors,\n", " Workflows,\n", " ...
[ "rs" ]
32
juspay/hyperswitch
juspay__hyperswitch-6375
Bug: refactor(permissions): Deprecate permissions from permission info API response The permissions in the permission info API are not being used and should be removed.
diff --git a/crates/api_models/src/user_role.rs b/crates/api_models/src/user_role.rs index ab32651e729..e64639646d1 100644 --- a/crates/api_models/src/user_role.rs +++ b/crates/api_models/src/user_role.rs @@ -4,42 +4,6 @@ use masking::Secret; pub mod role; -#[derive(Debug, serde::Serialize)] -pub enum Permission {...
2024-10-21T06:56:03Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> The permissions in the permission info API are not being used a...
0dba763c3a1c69fa282ffa644a12d37dc14d8f7b
``` curl --location 'https://sandbox.hyperswitch.io/user/permission_info' \ --header 'Authorization: Bearer JWT' ``` This API will no longer have permissions field in the response. ```json [ { "group": "operations_view", "description": "View Payments, Refunds, Payouts, Mandates, Disputes ...
[ { "file_path": "crates/router/src/services/authorization/info.rs", "lines": [ "use api_models::user_role::{GroupInfo, ParentGroup};\n", " GroupInfo { group, description }\n" ] }, { "file_path": "crates/router/src/utils/user_role.rs", "lines": [ " services::authorizati...
[ { "file_path": "crates/api_models/src/user_role.rs", "lines": [ "#[derive(Debug, serde::Serialize)]\n", "pub enum Permission {\n", " PaymentRead,\n", " PaymentWrite,\n", " RefundRead,\n", " RefundWrite,\n", " ApiKeyRead,\n", " ApiKeyWrite,\n"...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6364
Bug: feat(config): update vector config # Current Behaviour - Sdk logs pushes `publishable_key` in the `merchant_id` field. - open search logs have some irrelevant fields. # Proposed Changes - transform sdk logs and update the correct corresponding `merchant_id` of the pre-existing `publishable_key` value - add som...
diff --git a/config/vector.yaml b/config/vector.yaml index 3f0709ae03c..4b801935ae5 100644 --- a/config/vector.yaml +++ b/config/vector.yaml @@ -1,5 +1,16 @@ acknowledgements: enabled: true +enrichment_tables: + sdk_map: + type: file + file: + path: /etc/vector/config/sdk_map.csv + encoding: + ...
2024-10-18T10:13:52Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Fixes #6364 ## Description <!-- Describe your changes in detail --> - adding a transform for `sdk` logs that f...
35bf5a91d9a5b2d5e476c995e679b445242218e0
### Running it locally to check logs added in console (sdk) logs & opensearch #### sdk_logs I created a dummy_transform event that inserted a `publishable_key` in merchant_id field and passed it to the actual transform function and then captured the output on a [console sink](https://vector.dev/docs/ref...
[ { "file_path": "config/vector.yaml", "lines": [ "enrichment_tables:\n", " sdk_map:\n", " type: file\n", " file:\n", " path: /etc/vector/config/sdk_map.csv\n", " encoding:\n", " type: csv\n", " schema:\n", " publishable_key...
[ { "file_path": "config/vector.yaml", "lines": [ " - \"sdk_transformed\"\n" ] } ]
[ "yaml" ]
1
juspay/hyperswitch
juspay__hyperswitch-6363
Bug: make `x_merchant_domain` as required value only for session call done on web The merchant domain url is only required in case of samsung pay payments on web. While processing payments on app the merchant domain is not required. Hence mandate the merchant domain only if the `x-client-platform` is `web`
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 1db9c98806b..654161d1c09 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -19148,7 +19148,6 @@ "type": "object", "required": [ "name", - "url", ...
2024-10-18T08:22:24Z
## 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 merchant domain url is only required in case of samsung pay...
451376e7993839f5c93624c12833af7d47aa4e34
-> Create a connector with samsung pay enabled -> Create a payment ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_GhK0bBcXMIVjqoKmEip0XbSEvPXOuaEOLlMdBQWL4gdD51LsgHsjj2vzyuxMahw1' \ --data '{ "am...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"Merchant domain that process payments, required for web payments\",\n", " \"nullable\": true\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"url\",\n", " \"description\": \"Merchant domain that process payments\"\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " /// Merchant domain that process payme...
[ "json", "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6357
Bug: feat(opensearch): add additional filters and create sessionizer indexes for local Global search has two components: - Free flow search, wherein search takes place across all fields available to search upon - Search on a specific field based on the field filter Additional filters should be added for global sea...
diff --git a/config/config.example.toml b/config/config.example.toml index c0358d91a26..8f04ba49831 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -728,6 +728,10 @@ payment_attempts = "hyperswitch-payment-attempt-events" payment_intents = "hyperswitch-payment-intent-events" refunds = "hyp...
2024-10-17T12:27:42Z
## 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 --> Global search has two components: - Free flow search, wherein ...
962afbd084458e9afb11a0278a8210edd9226a3d
The following filters can be used to be searched upon: - connector - payment_method_type - card_network - card_last_4 - payment_id Hit the following curl for the `/search` API ```bash curl --location 'http://localhost:8080/analytics/v1/search' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en...
[ { "file_path": "config/config.example.toml", "lines": [ "sessionizer_payment_attempts = \"sessionizer-payment-attempt-events\"\n", "sessionizer_payment_intents = \"sessionizer-payment-intent-events\"\n", "sessionizer_refunds = \"sessionizer-refund-events\"\n", "sessionizer_disputes =...
[ { "file_path": "config/vector.yaml", "lines": [ " - kafka_tx_events\n", " events:\n", " - plus_1_events\n", " .timestamp = from_unix_timestamp!(.created_at, unit: \"seconds\")\n", " .\"@timestamp\" = from_unix_timestamp(.created_at, unit: \"seconds\") ?? no...
[ "yaml", "toml", "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-6399
Bug: chore: address Rust 1.82.0 clippy lints Address the clippy lints occurring due to new rust version 1.82.0 See https://github.com/juspay/hyperswitch/issues/3391 for more information.
diff --git a/add_connector.md b/add_connector.md index eda368db9c8..4d6e885b7ed 100644 --- a/add_connector.md +++ b/add_connector.md @@ -311,7 +311,7 @@ impl TryFrom<types::PaymentsResponseRouterData<PaymentsResponse>> let payments_response_data = types::PaymentsResponseData::TransactionResponse { ...
2024-10-22T13:48:39Z
## 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 addresses the clippy lints occurring due to new rust ve...
673b8691e092e145ba211050db4f5c7e021a0ce2
This PR addresses clippy lint due to new rust version. So basic sanity testing should suffice.
[ { "file_path": "add_connector.md", "lines": [ " mandate_reference: Box::new(None),\n" ] }, { "file_path": "connector-template/transformers.rs", "lines": [ " redirection_data: Box::new(None),\n", " mandate_reference: Box::new(None),\n...
[ { "file_path": "add_connector.md", "lines": [ " mandate_reference: None,\n" ] }, { "file_path": "connector-template/transformers.rs", "lines": [ " redirection_data: None,\n", " mandate_reference: None,\n" ] }, { "file_pat...
[ "md", "rs" ]
113
juspay/hyperswitch
juspay__hyperswitch-6354
Bug: Refactor: add deep health check for dynamic routing
diff --git a/config/config.example.toml b/config/config.example.toml index 191f2ba7f8b..12df81d82c9 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -789,3 +789,4 @@ connector_list = "cybersource" # Supported connectors for network tokenization [grpc_client.dynamic_routing_client] # Dynamic ...
2024-10-25T19:11:21Z
## 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 gRPC based health check ### Additional Changes ...
ea81432e3eb72d9a2e139e26741a42cdd8d31202
Tested locally ``` curl --location --request GET 'http://localhost:8080/health/ready' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_Li5BLbzNIHjf2t0J6kYgS7sQurtmLubs1sGAxTE6MVo59aMBEMDSK6Qt8me7kJZQ' ``` Response ``` { "database": true, "re...
[ { "file_path": "config/config.example.toml", "lines": [ "service = \"dynamo\" # Service name\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "service = \"dynamo\" # Service name\n" ] }, { "file_path": "crates/api_models/Cargo.toml", "line...
[ { "file_path": "crates/external_services/build.rs", "lines": [ " let proto_file = router_env::workspace_path()\n", " .join(\"proto\")\n", " .join(\"success_rate.proto\");\n", " tonic_build::compile_protos(proto_file).expect(\"Failed to compile succ...
[ "toml", "rs", "proto" ]
13
juspay/hyperswitch
juspay__hyperswitch-6343
Bug: feat(analytics): add customer_id as filter for payment intents Add customer_id as a filter for payment intents
diff --git a/crates/analytics/src/payment_intents/core.rs b/crates/analytics/src/payment_intents/core.rs index af46baed23e..3e8915c60a2 100644 --- a/crates/analytics/src/payment_intents/core.rs +++ b/crates/analytics/src/payment_intents/core.rs @@ -205,7 +205,8 @@ pub async fn get_metrics( | Pa...
2024-10-17T06:31: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 --> - Added `customer_id` as a filter for payment intents - Added ...
829a20cc933267551e49565d06eb08e03e5f13bb
Hit the curl: Metric data would be obtained based on the customer_id filter applied. ```bash curl --location 'http://localhost:8080/analytics/v2/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/...
[ { "file_path": "crates/analytics/src/payment_intents/core.rs", "lines": [ " PaymentIntentMetrics::SessionizedPaymentProcessedAmount\n", " | PaymentIntentMetrics::PaymentProcessedAmount => metrics_builder\n" ] }, { "file_path": "crates/ana...
[ { "file_path": "crates/analytics/src/payment_intents/core.rs", "lines": [ " PaymentIntentMetrics::SessionizedPaymentProcessedAmount => metrics_builder\n" ] } ]
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6336
Bug: Create an id type for API Key ID Currently `key_id` is a String. We need to create an `id_type` for it and migrate all occurrences accordingly
diff --git a/.typos.toml b/.typos.toml index 79c86a39c6b..d2ffb8a5b10 100644 --- a/.typos.toml +++ b/.typos.toml @@ -1,5 +1,8 @@ [default] check-filename = true +extend-ignore-identifiers-re = [ + "UE_[0-9]{3,4}", # Unified error codes +] [default.extend-identifiers] ABD = "ABD" # Aberdeenshire, UK ISO 3166-2...
2024-10-15T12:16:41Z
## 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 --> ### Additional Changes - [ ] This PR modifies the API co...
899ec23565f99daaad821c1ec1482b4c0cc408c5
1a. Create API key ``` curl --location 'http://localhost:8080/api_keys/merchant_1729063721' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data '{ "name": "API Key 1", "description": null, "expiration": "2038-01-19T03:14:08.000Z"...
[ { "file_path": ".typos.toml", "lines": [ "extend-ignore-identifiers-re = [\n", " \"UE_[0-9]{3,4}\", # Unified error codes\n", "]\n" ] }, { "file_path": "crates/api_models/src/api_keys.rs", "lines": [ " #[schema(max_length = 64, example = \"5hEEqkgJUyuxgSKGArHA4m...
[ { "file_path": ".typos.toml", "lines": [ "UE_000 = \"UE_000\" #default unified error code\n" ] }, { "file_path": "crates/api_models/src/api_keys.rs", "lines": [ " #[schema(max_length = 64, example = \"5hEEqkgJUyuxgSKGArHA4mWSnX\")]\n", " pub key_id: String,\n", ...
[ "toml", "rs" ]
14
juspay/hyperswitch
juspay__hyperswitch-6321
Bug: [BUG] Various errors in `rust_locker_open_api_spec.yml` ### Bug Description The two identical files [`api-reference/rust_locker_open_api_spec.yml`](https://github.com/juspay/hyperswitch/blob/d06d19fc96e1a74d20e2fe3613f86d541947e0ae/api-reference/rust_locker_open_api_spec.yml) and [`api-reference-v2/rust_locker...
diff --git a/api-reference-v2/rust_locker_open_api_spec.yml b/api-reference-v2/rust_locker_open_api_spec.yml index 729886d9cd0..17a19fec44d 100644 --- a/api-reference-v2/rust_locker_open_api_spec.yml +++ b/api-reference-v2/rust_locker_open_api_spec.yml @@ -2,16 +2,16 @@ openapi: "3.0.2" info: title: Tartarus - Open...
2024-10-15T10:54:46Z
## 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 --> Improved wording in the edit files. ### Additional Changes...
e5710fa084ed5b0a4969a63b14a7f8e3433a3c64
Manually inspected the changed files.
[ { "file_path": "api-reference-v2/rust_locker_open_api_spec.yml", "lines": [ " This is the OpenAPI 3.0 specification for the card locker.\n", " description: CRUD APIs for working with data to be stored in the locker\n", " description: CRUD APIs for working with cards data to be sto...
[ { "file_path": "api-reference-v2/rust_locker_open_api_spec.yml", "lines": [ " This the the open API 3.0 specification for the card locker.\n", " description: CRUD APIs to for working with data to be stored in the locker\n", " description: CRUD APIs to for working with cards data t...
[ "yml" ]
1
juspay/hyperswitch
juspay__hyperswitch-6338
Bug: Integration of dynamic connector selection in core flows ## Description This will integrate the dynamic_connector_selection in core flows, enabling the success_based connector selection for payments (with the profiles, enabled with dynamic_connector_selection feature).
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index fc65ab037c2..47d75b2e835 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -522,22 +522,51 @@ pub struct DynamicAlgorithmWithTimestamp<T> { #[derive(Debug, Default, Clone, serde::Serialize, se...
2024-10-16T04:25:05Z
## 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 will add dynamic_routing in core flows. After which once ...
39d89f23b6ae85c4f91a52bb0d970277b43237d8
### The testing flows are as follows: 1. Toggle the route with feature(`metrics`, `dynamic_conenctor_selection`, `none`) as `dynamic_connector_selection`. ``` curl --location --request POST 'http://localhost:8080/account/merchant_id/business_profile/profile_id/dynamic_routing/success_based/toggle?enable=dynamic_co...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " pub success_based_algorithm: Option<SuccessBasedAlgorithm>,\n", "}\n", "\n", "#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]\n", "pub struct SuccessBasedAlgorithm {\n", " pub algorithm_id...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " pub success_based_algorithm:\n", " Option<DynamicAlgorithmWithTimestamp<common_utils::id_type::RoutingId>>,\n", " pub fn update_algorithm_id(&mut self, new_id: common_utils::id_type::RoutingId) {\n", " ...
[ "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-6348
Bug: set the eligible connector in payment attempt for network transaction id based mit flow [Reference pr](https://github.com/juspay/hyperswitch/pull/6245) In the MIT flow when the recurring details is of type `"type": "network_transaction_id_and_card_details"` the eligible connector needs to be set in the payme...
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs index 68f318958a2..a6ddc2e2180 100644 --- a/crates/router/src/core/payments.rs +++ b/crates/router/src/core/payments.rs @@ -4193,6 +4193,10 @@ where } }; + // Set the eligible connector in the attempt + pa...
2024-10-17T07:50:34Z
## 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 MIT flow when the recurring details is of type "type": "...
881f5fd0149cb5573eb31451fceb596092eab79a
Create merchant connector account for cybersource -> Make a MIT payment with `"type": "network_transaction_id_and_card_details"` ``` curl --location 'http://localhost:8080/payments' \ --header 'Accept: application/json' \ --header 'api-key: dev_OJYRaFClX8PIIwCNrPWUMttJWZrAXUNbBiyA1GvyYyaxRK5EsqODd2ON8KTOlTMa' \ ...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " // Set the eligible connector in the attempt\n", " payment_data\n", " .set_connector_in_payment_attempt(Some(eligible_connector_data.connector_name.to_string()));\n", "\n" ] } ]
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6318
Bug: docs: Adding Unified error codes to the API - Ref Adding Unified error codes to the API - Ref
2024-10-15T10:13:17Z
## 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 --> Helps closing - #6318 ### Additional Changes - [ ] This ...
d06d19fc96e1a74d20e2fe3613f86d541947e0ae
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6312
Bug: replace underscore by hyphen in Samsung pay session call replace underscore by hyphen in Samsung pay session call as it is passed to samsung pay as `order_number`. And Samsung pay does not accept underscore
diff --git a/crates/router/src/core/payments/flows/session_flow.rs b/crates/router/src/core/payments/flows/session_flow.rs index 1785eee87c5..053c9b8fb0a 100644 --- a/crates/router/src/core/payments/flows/session_flow.rs +++ b/crates/router/src/core/payments/flows/session_flow.rs @@ -567,13 +567,15 @@ fn create_samsung...
2024-10-14T14:59:59Z
## 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 --> ### Additional Changes - [ ] This PR modifies the API co...
df280f2574ac701a5e32b9bcae90c87cab7bc5aa
-> Create a connector with samsung pay enabled -> Create a payment ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:' \ --data '{ "amount": 100000, "currency": "USD", "capture_method": "automatic"...
[ { "file_path": "crates/router/src/core/payments/flows/session_flow.rs", "lines": [ " let formatted_payment_id = router_data.payment_id.replace(\"_\", \"-\");\n", "\n", " order_number: formatted_payment_id,\n" ] } ]
[ { "file_path": "crates/router/src/core/payments/flows/session_flow.rs", "lines": [ " order_number: router_data.payment_id.clone(),\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6307
Bug: [FEATURE] Set header consumption as optional in Open banking flows ### Feature Description Set header consumption as optional in Open banking flows ### Possible Implementation Set header consumption as optional in Open banking flows ### Have you spent some time checking if this feature request has been rais...
diff --git a/crates/api_models/src/pm_auth.rs b/crates/api_models/src/pm_auth.rs index 443a4c30394..8ed52907da8 100644 --- a/crates/api_models/src/pm_auth.rs +++ b/crates/api_models/src/pm_auth.rs @@ -4,8 +4,6 @@ use common_utils::{ id_type, impl_api_event_type, }; -use crate::enums as api_enums; - #[derive(De...
2024-10-14T09:59: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 --> Make header data to consume in open banking flows as optional. ...
a7c6f57668683132ac3b59a0398742ea9d12bdca
Test all open banking flows (PM auth and Payment initiation) Refer to this PR - https://github.com/juspay/hyperswitch/pull/3952
[ { "file_path": "crates/pm_auth/src/connector/plaid/transformers.rs", "lines": [ " Some(api_models::enums::ClientPlatform::Android) => {\n", " item.request.android_package_name.clone()\n", " Some(api_models::enums::ClientPlatform::Ios)\n", ...
[ { "file_path": "crates/api_models/src/pm_auth.rs", "lines": [ "use crate::enums as api_enums;\n", "\n", " pub client_platform: api_enums::ClientPlatform, // Client Platform to perform platform based processing\n", " pub android_package_name: Option<String>, // Android Package n...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6314
Bug: [FEAT] add a macro to derive ToEncryptable trait
diff --git a/crates/api_models/src/customers.rs b/crates/api_models/src/customers.rs index eb196a72074..4f6411a42cd 100644 --- a/crates/api_models/src/customers.rs +++ b/crates/api_models/src/customers.rs @@ -1,12 +1,5 @@ -use common_utils::{ - crypto, custom_serde, - encryption::Encryption, - id_type, - pi...
2024-10-14T17:27:37Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Enhancement ## Description <!-- Describe your changes in detail --> This PR adds a macro to generate ToEncryptable trait on different types ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes...
98567569c1c61648eebf0ad7a1ab58bba967b427
**THIS CANNOT BE TESTED ON SANDBOX** - Compiler guided. Since this does not change any core flow - Basic test of MerchantCreate and Payments for sanity
[ { "file_path": "crates/api_models/src/customers.rs", "lines": [ "use common_utils::{crypto, custom_serde, id_type, pii, types::Description};\n", "use masking::Secret;\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " pii::{self, Email},\n", "...
[ { "file_path": "crates/api_models/src/customers.rs", "lines": [ "use common_utils::{\n", " crypto, custom_serde,\n", " encryption::Encryption,\n", " id_type,\n", " pii::{self, EmailStrategy},\n", " types::{keymanager::ToEncryptable, Description},\n", ...
[ "rs" ]
19
juspay/hyperswitch
juspay__hyperswitch-6294
Bug: [BUG] Broken link to FAQs ### Bug Description The link in this line: https://github.com/juspay/hyperswitch/blob/19a8474d8731ed7149b541f02ad237e30c4c9f24/README.md?plain=1#L317 is broken. ### Expected Behavior When I click the link I should be taken to some FAQ page. ### Actual Behavior When I click that ...
diff --git a/README.md b/README.md index f5c27411b51..3814ac925ad 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,6 @@ The single API to access payment ecosystems across 130+ countries</div> <a href="#community">Community</a> • <a href="#bugs-and-feature-requests">Bugs and feature requests</a> • <a href="#...
2024-10-13T15:06: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...
2a53f52f994ca98a31509f05e31b3874b88d15bf
Manual check of the README.md file.
[]
[ { "file_path": "README.md", "lines": [ " <a href=\"#FAQs\">FAQs</a> •\n", "<a href=\"#FAQs\">\n", " <h2 id=\"FAQs\">🤔 FAQs</h2>\n", "</a>\n", "\n", "Got more questions?\n", "Please refer to our [FAQs page][faqs].\n", "\n", "[faqs]: https://hyperswitch...
[ "md" ]
1
juspay/hyperswitch
juspay__hyperswitch-6303
Bug: [FEATURE] Enable Paze Wallet for Cybersource on Dashboard ### Feature Description Enable Paze Wallet for Cybersource on Dashboard ### Possible Implementation Enable Paze Wallet for Cybersource on Dashboard ### Have you spent some time checking if this feature request has been raised before? - [X]...
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml index 3e81062b91e..f4523cf6171 100644 --- a/crates/connector_configs/toml/development.toml +++ b/crates/connector_configs/toml/development.toml @@ -1213,6 +1213,8 @@ merchant_secret="Source verification key" ...
2024-10-14T07:32: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 --> Enable Paze Wallet for Cubersource on Dashboard ### Addition...
19a8474d8731ed7149b541f02ad237e30c4c9f24
Only config changes hence no testing required.
[ { "file_path": "crates/connector_configs/toml/development.toml", "lines": [ "[[cybersource.wallet]]\n", " payment_method_type = \"paze\"\n" ] }, { "file_path": "crates/connector_configs/toml/sandbox.toml", "lines": [ "[[cybersource.wallet]]\n", " payment_method_type...
[]
[ "toml" ]
2
juspay/hyperswitch
juspay__hyperswitch-6340
Bug: Fix(mandates): handle the connector_mandate creation once and only if the payment is charged Earlier we used to store the connector mandate id irrespective of the payments status being charged or not for 3DS flows, now we would handle the connector_mandate_id updation in payment_method once and only if the paym...
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index 8306deeb258..e36a6d74994 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -3356,3 +3356,16 @@ pub enum SurchargeCalculationOverride { /// Calculate surcharge Calculate, } + +/// Conne...
2024-10-15T17:41:53Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Earlier we used to store the connector mandate id irrespective of the payments status being charged or n...
962afbd084458e9afb11a0278a8210edd9226a3d
- Configure a MA and a MCA - Make a 3ds mandate failed payment, it would be populated in the payment_attempt, but not in the payment_method table ``` Create curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-feature: ro...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ "\n", "/// Connector Mandate Status\n", "#[derive(\n", " Clone, Copy, Debug, Eq, PartialEq, serde::Deserialize, serde::Serialize, strum::Display,\n", ")]\n", "#[strum(serialize_all = \"snake_case\")]\n", ...
[ { "file_path": "crates/diesel_models/src/payment_attempt.rs", "lines": [ " \"mandate_type\": {\n" ] }, { "file_path": "crates/diesel_models/src/user/sample_data.rs", "lines": [ " PaymentAttemptNew,\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/pay...
[ "sql", "rs" ]
21
juspay/hyperswitch
juspay__hyperswitch-6290
Bug: [DOCS]: Add `X-Merchant-Id` to headers in Profile endpoints for v2 ### Description We require `X-Merchant-Id` in the headers for the following endpoints in Profile: - Profile - Create - Profile - Update - Profile - Retrieve - Merchant Connector - List We need to update the v2 API documentation.
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 3f57faaf1d7..46c4868e4bd 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -711,6 +711,20 @@ "summary": "Profile - Create", "description": "Creates a new *profile* for a...
2024-10-11T09:36:55Z
## 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 --> Add X-Merchant-Id to headers in Profile endpoints for v2 ###...
19a8474d8731ed7149b541f02ad237e30c4c9f24
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"parameters\": [\n", " {\n", " \"name\": \"X-Merchant-Id\",\n", " \"in\": \"header\",\n", " \"description\": \"Merchant ID of the profile.\",\n", " ...
[ { "file_path": "crates/openapi/src/routes/profile.rs", "lines": [ " (\"profile_id\" = String, Path, description = \"The unique identifier for the profile\")\n", " (\"profile_id\" = String, Path, description = \"The unique identifier for the profile\")\n" ] } ]
[ "json", "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6330
Bug: fix(list): improve querying time for payments list Quick Fix. Currently payment list is giving intermittent 5xx. After analyzing logs we got to knwo that it is happening for the count query That query need to be called always and we can skip this in most of the cases. Also add the logs around count. This can ...
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 674a19f3ef8..039c99ef348 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -4449,6 +4449,17 @@ pub struct PaymentListFilterConstraints { /// The List of all the card networks to filter p...
2024-10-15T21:20:33Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Skip count query if no filters are applied for attempts, in this we don't need to filter attempts as co...
7e90031c68c7b93db996ee03e11c56b56a87402b
For Tests Lists working is same, same request and response: ``` curl --location 'http://localhost:8080/payments/list' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-api-key: dev_VWtyXkyK1Ath1vBNRMM4dqm18J0PVW8SiML4IsKtuzpsR5ojI0FCDBIY0ZRggpFf' \ --header 'Authoriza...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ "\n", "impl PaymentListFilterConstraints {\n", " pub fn has_no_attempt_filters(&self) -> bool {\n", " self.connector.is_none()\n", " && self.payment_method.is_none()\n", " && se...
[ { "file_path": "crates/diesel_models/src/query/payment_attempt.rs", "lines": [ " profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>,\n", " if let Some(profile_id_list) = profile_id_list {\n", " filter = filter.filter(dsl::profile_id.eq_any(profile_id_li...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-6271
Bug: [BUG] Do not use backticks in shell files ### Bug Description These scripts: - [`INSTALL_dependencies.sh`](https://github.com/juspay/hyperswitch/tree/535f2f12f825be384a17fba8628d8517027bb6c6/INSTALL_dependencies.sh), - [`hyperswitch_aws_setup.sh`](https://github.com/juspay/hyperswitch/tree/535f2f12f825be384a...
diff --git a/INSTALL_dependencies.sh b/INSTALL_dependencies.sh index 3ec36ccc66e..e1d666b97a3 100755 --- a/INSTALL_dependencies.sh +++ b/INSTALL_dependencies.sh @@ -37,7 +37,7 @@ set -o nounset # utilities # convert semver to comparable integer -if [[ `id -u` -ne 0 ]]; then +if [[ "$(id -u)" -ne 0 ]]; then pri...
2024-10-16T08:15: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 --> Use $(...) notation instead of legacy `...` in the shell files....
899ec23565f99daaad821c1ec1482b4c0cc408c5
[ { "file_path": "INSTALL_dependencies.sh", "lines": [ "if [[ \"$(id -u)\" -ne 0 ]]; then\n", " printf \"%03d%03d%03d%03d\" \"$(echo \"$1\" | tr '.' ' ')\";\n", "PROGNAME=\"$(basename $0)\"\n", " RUST_VERSION=\"$(rustc -V | cut -d \" \" -f 2)\"\n", " _HAVE_VERSION=\"$(ve...
[ { "file_path": "INSTALL_dependencies.sh", "lines": [ "if [[ `id -u` -ne 0 ]]; then\n", " printf \"%03d%03d%03d%03d\" `echo \"$1\" | tr '.' ' '`;\n", "PROGNAME=`basename $0`\n", " RUST_VERSION=`rustc -V | cut -d \" \" -f 2`\n", " _HAVE_VERSION=`ver ${RUST_VERSION}`\n", ...
[ "sh" ]
4
juspay/hyperswitch
juspay__hyperswitch-6287
Bug: Add cypress test case for `network_transaction_id_and_card_details` recurring details MIT Test cases should be added to `network_transaction_id_and_card_details` based recurring MIT flow
2024-11-14T06:06:56Z
## 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 --> [Reference pr](https://github.com/juspay/hyperswitch/pull/6245)...
f24578310f44adf75c993ba42225554377399961
Cypress tests <img width="442" alt="image" src="https://github.com/user-attachments/assets/c871d675-1d44-49f9-9dd9-94cc3b58b9c0">
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6258
Bug: Add support for Samsung pay app token flow Samsung pay provide token in different format for web and app. Hence both of the formates needs to be handled in confirm call.
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 44ac1d3e08d..13d0cc87ccf 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -18929,6 +18929,61 @@ "FORMAT_TOTAL_ESTIMATED_AMOUNT" ] }, + "SamsungPayAppWalle...
2024-10-08T04:15:32Z
## 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 --> Samsung pay provide token in different format for web and app. ...
edd099886da9c46800a646fe809796a08eb78c99
-> Create merchant connector account with samsung pay enabled -> Create a payment ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:' \ --data '{ "amount": 100000, "currency": "USD", "capture_metho...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"SamsungPayAppWalletData\": {\n", " \"type\": \"object\",\n", " \"required\": [\n", " \"3_d_s\",\n", " \"payment_card_brand\",\n", " \"payment_currency_type\",...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"type\": \"string\",\n", " \"description\": \"Brand of the payment card\"\n", " \"SamsungPayWalletData\": {\n", " \"type\": \"object\",\n", " \"required\": [\n", " ...
[ "json", "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6265
Bug: [FEATURE]: [FORTE, NEXINETS, PAYEEZY, PAYU, ZEN] Move connector code to crate hyperswitch_connectors ### Feature Description Connector code for forte, nexinets, payeexy, payu and zen needs to be moved from crate router to new crate hyperswitch_connectors ### Possible Implementation Connector code for f...
diff --git a/Cargo.lock b/Cargo.lock index 347d4e58797..9ccedba3c39 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3997,6 +3997,7 @@ dependencies = [ "hyperswitch_interfaces", "image", "masking", + "mime", "once_cell", "qrcode", "rand", diff --git a/crates/common_utils/src/consts.rs b/crates/common_utils/src/...
2024-10-08T08:03: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 --> Moved connectors Forte, Nexinets, Payeezy, Payu and Zen from Ro...
f3a869ea9a430f3b5177852fb74d0910dc8fbe17
Forte : 1. Create Merchant Account ``` curl --location 'http://localhost:8080/accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: {}' \ --data-raw '{ "merchant_id": "merchant_1728385434", "locker_id": "m0010", "merchant_name": "NewAge R...
[ { "file_path": "Cargo.lock", "lines": [ " \"mime\",\n" ] }, { "file_path": "crates/common_utils/src/consts.rs", "lines": [ "\n", "/// URL Safe base64 engine\n", "pub const BASE64_ENGINE_URL_SAFE: base64::engine::GeneralPurpose =\n", " base64::engine::general_...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " globepay::Globepay, helcim::Helcim, mollie::Mollie, nexixpay::Nexixpay, novalnet::Novalnet,\n", " powertranz::Powertranz, square::Square, stax::Stax, taxjar::Taxjar, thunes::Thunes, tsys::Tsys,\n", " vo...
[ "toml", "rs", "lock" ]
21
juspay/hyperswitch
juspay__hyperswitch-6254
Bug: fix(users): Accepting invite for org_admins Currently, when email feature flag is enabled and invite a org_admin, it throws error saying `InvalidRoleId`. When we try to accept invite for `org_admin`s, it again throws `InvalidRoleId`. This should not be the case, error should not be throws and invite should be...
diff --git a/crates/diesel_models/src/query/user_role.rs b/crates/diesel_models/src/query/user_role.rs index f4142842e21..5ef09715211 100644 --- a/crates/diesel_models/src/query/user_role.rs +++ b/crates/diesel_models/src/query/user_role.rs @@ -119,7 +119,7 @@ impl UserRole { conn: &PgPooledConn, user...
2024-10-07T15:00:50Z
## 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 accepting invites for org_admin will not work. This P...
b79f75a7ab9ed63a75defa2b3c5f9c170fca493e
``` curl 'http://localhost:8080/user/accept_invite_from_email' \ -H 'authorization: Bearer SPT with accept_invite_from_email' \ --data-raw '{"token":"email token"}' ``` Response: ```json { "token": "JWT", "token_type": "user_info" } ```
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " merchant_id: Option<id_type::MerchantId>,\n" ] }, { "file_path": "crates/router/src/core/user.rs", "lines": [ " EntityType::Organization => {\n", " user_role\n", " ...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " merchant_id: id_type::MerchantId,\n" ] }, { "file_path": "crates/router/src/core/user.rs", "lines": [ " EntityType::Organization => return Err(UserErrors::InvalidRoleId.into()),\n", " ...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6260
Bug: Add support for network transaction id and card details based MIT Support needs to be added in order to accept the card details and network transaction id in `recurring_details` for an MIT. This will be only in the Sever-to-Server call where the customer is off_session and merchant is initiating the transaction...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 44ac1d3e08d..99055a2c6b5 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -10093,6 +10093,77 @@ } } }, + "NetworkTransactionIdAndCardDetails": { + ...
2024-10-07T04:35:39Z
## 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 --> Support needs to be added in order to accept the card details...
e911ea4615294d136210bcf9a8bd4b3ab39ca85f
-> Create the cybersource connector -> Make a payment ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_tsD2yHJdXXW6s9EMzxgsDgJiJbQEzCLt0l0ysqlOc0tV9F1CACTCTWdHOdtJcoYs' \ --data-raw '{ "amount": ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"NetworkTransactionIdAndCardDetails\": {\n", " \"type\": \"object\",\n", " \"required\": [\n", " \"card_number\",\n", " \"card_exp_month\",\n", " \"card_exp_ye...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " // will be obtained from the environment variables.\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/bambora/transformers.rs", "lines": [ " | PaymentMethodData::NetworkToken(_) => E...
[ "json", "rs" ]
64
juspay/hyperswitch
juspay__hyperswitch-6242
Bug: [BUG] Broken links to Running additional services ### Bug Description These lines: - https://github.com/juspay/hyperswitch/blob/b7139483bb4735b7dfaf7e659ab33a16a90af1db/README.md?plain=1#L137, - https://github.com/juspay/hyperswitch/blob/b7139483bb4735b7dfaf7e659ab33a16a90af1db/docs/try_local_system.md?pla...
diff --git a/README.md b/README.md index 0428ff38694..f5c27411b51 100644 --- a/README.md +++ b/README.md @@ -134,7 +134,7 @@ setup, which includes the [scheduler and monitoring services][docker-compose-sch [website-link]: https://hyperswitch.io/ [learning-resources]: https://docs.hyperswitch.io/learn-more/payment-flo...
2024-10-06T11:24:54Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Changed the links to point to: https://github.com/juspay/hyper...
b7139483bb4735b7dfaf7e659ab33a16a90af1db
Manually checked the links.
[ { "file_path": "README.md", "lines": [ "[docker-compose-scheduler-monitoring]: /docs/try_local_system.md#running-additional-services\n" ] } ]
[ { "file_path": "README.md", "lines": [ "[docker-compose-scheduler-monitoring]: /docs/try_local_system.md#run-the-scheduler-and-monitoring-services\n" ] } ]
[ "md" ]
1
juspay/hyperswitch
juspay__hyperswitch-6222
Bug: bug(user_roles): Restrict updating user_roles to the same entity level Currently update user role API allows updating a merchant level user role to profile level, which should not be possible. This comes under upgrade/downgrade functionality, which is not available yet.
diff --git a/crates/router/src/core/user_role.rs b/crates/router/src/core/user_role.rs index e10fa0eb81c..f2e9f758158 100644 --- a/crates/router/src/core/user_role.rs +++ b/crates/router/src/core/user_role.rs @@ -151,6 +151,14 @@ pub async fn update_user_role( )); } + if role_info.get_ent...
2024-10-04T08:16:42Z
## 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 update user role API allows updating a merchant lev...
a3c2694943a985d27b5bc8b0371884d17a6ca34d
```curl curl --location 'http://localhost:8080/user/user/update_role' \ --header 'Authorization: JWT' \ --data-raw '{ "email": "merchant level user email", "role_id": "profile_admin" }' ``` This call should throw the following error. ```json { "error": { "type": "invalid_request", ...
[ { "file_path": "crates/router/src/core/user_role.rs", "lines": [ " if role_info.get_entity_type() != role_to_be_updated.get_entity_type() {\n", " return Err(report!(UserErrors::InvalidRoleOperation)).attach_printable(format!(\n", " \"Upgrade and downgrade o...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6249
Bug: fix(users): max attempts for two-fa - Previously, there was no limit on the number of failed attempts for TOTP and recovery code. With this PR, a maximum of 4 wrong attempts is introduced for both TOTP and recovery code. After 4 failed attempts, a cooldown period of 5 minutes applies for TOTP, and 10 minutes fo...
diff --git a/crates/api_models/src/events/user.rs b/crates/api_models/src/events/user.rs index bb61a025180..4dc2a1a301a 100644 --- a/crates/api_models/src/events/user.rs +++ b/crates/api_models/src/events/user.rs @@ -18,8 +18,9 @@ use crate::user::{ ResetPasswordRequest, RotatePasswordRequest, SendVerifyEmailReque...
2024-10-07T10:19:31Z
## 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 --> - Previously, there was no limit on the number of failed attemp...
55a97cc952aedd67451ed3785792e00d74f357ff
Request : ``` curl --location 'http://localhost:8080/user/2fa/v2' \ --header 'Authorization: Bearer JWT' ``` Response: - If the user has not set twofa ``` { "status": null } ``` - If the user has twofa set and no attempts is remaining for both recovery code and totp ``` { "status": { ...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " TwoFactorStatus, UpdateUserAccountDetailsRequest, UpdateUserAuthenticationMethodRequest,\n", " UserFromEmailRequest, UserMerchantCreate, VerifyEmailRequest, VerifyRecoveryCodeRequest,\n", " VerifyTotpRequest,\n", ...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " UpdateUserAccountDetailsRequest, UpdateUserAuthenticationMethodRequest, UserFromEmailRequest,\n", " UserMerchantCreate, VerifyEmailRequest, VerifyRecoveryCodeRequest, VerifyTotpRequest,\n" ] }, { "file_path": "...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6226
Bug: [FEAT] add support for Hashicorp Vault Engine **Description:** Cripta is a service which creates keys and maintains it (includes key rotation etc.) individually for different Merchants and Users. Currently it uses the AWS KMS as the Master Key (Key Encryption Key) for encrypting and decrypting Data Encryp...
diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml index 5211b034eb5..982c1130207 100644 --- a/crates/router/Cargo.toml +++ b/crates/router/Cargo.toml @@ -7,6 +7,7 @@ default-run = "router" rust-version = "1.63" readme = "README.md" license = "Apache-2.0" +build = "src/build.rs" [features] default ...
2022-11-25T21:13:22Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates ## Description <!-- Describe your changes in detail --> This PR adds the following two fields of information to the output of `router --version`: - Sh...
3e0298032b5c9535d418f50ab440a4aeaf265aba
Manual testing. - When no Semantic Versioned git tags are present: `router 0.2.0-d411595-2022-11-25T11:33:52Z` - When Semantic Versioned git tags are present: `router v0.1.0-d411595-2022-11-25T11:33:52Z` - When Semantic Versioned git tags are present and the working directory is dirty: `router v0.1.0-dirty-d4115...
[ { "file_path": "crates/router/Cargo.toml", "lines": [ "build = \"src/build.rs\"\n", "[build-dependencies]\n", "router_env = { version = \"0.1.0\", path = \"../router_env\", default-features = false, features = [\"vergen\"] }\n", "\n" ] }, { "file_path": "crates/router/src...
[ { "file_path": "crates/router_env/Cargo.toml", "lines": [ "vergen = { version = \"7.4.2\" }\n" ] }, { "file_path": "crates/router_env/src/build.rs", "lines": [ "use vergen::{vergen, Config, ShaKind};\n", " let mut config = Config::default();\n", "\n", " le...
[ "toml", "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6248
Bug: [FEATURE]:[BILLWERK] Move connector code to hyperswitch_connectors Connector code for Billwerk needs to be moved from crate router to new crate hyperswitch_connectors
diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rs index e5eaa22795a..ddd9fa861a6 100644 --- a/crates/hyperswitch_connectors/src/connectors.rs +++ b/crates/hyperswitch_connectors/src/connectors.rs @@ -1,4 +1,5 @@ pub mod bambora; +pub mod billwerk; pub mod b...
2024-10-08T09:30:53Z
## 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 --> Moved connector Billwerk from Router to HyperswitchConnector Tr...
962afbd084458e9afb11a0278a8210edd9226a3d
1. Create Merchant Account ``` curl --location 'http://localhost:8080/payments/pay_hY1WhQcAhKsQZehh2piy' \ --header 'Accept: application/json' \ --header 'api-key: ___' ``` 2. Create API Key ``` curl --location 'http://localhost:8080/api_keys/merchant_1728387984' \ --header 'Content-Type: application/json' \ ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ "pub mod billwerk;\n", " bambora::Bambora, billwerk::Billwerk, bitpay::Bitpay, cashtocode::Cashtocode,\n", " coinbase::Coinbase, cryptopay::Cryptopay, deutschebank::Deutschebank,\n", " digitalvirgo:...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " bambora::Bambora, bitpay::Bitpay, cashtocode::Cashtocode, coinbase::Coinbase,\n", " cryptopay::Cryptopay, deutschebank::Deutschebank, digitalvirgo::Digitalvirgo, dlocal::Dlocal,\n", " fiserv::Fiserv, fi...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6237
Bug: [REFACTOR]: (merchant_account_v2) move `organization_id` from request body to `headers` When creating the merchant account, the request body is ```json { "merchant_name": "cloth_seller", "organization_id": "org_tdhdTbv3z85XtxXGgVHS" } ``` Here `organization_id` is the hierarchy_id / lineage id...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index bd9de3a2962..9a406e9c733 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -453,6 +453,20 @@ "summary": "Merchant Account - Create", "description": "Create a new account...
2024-10-09T13:08:17Z
## 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 --> For create_merchant request organization_id is currently being ...
c3b0f7c1d6ad95034535048aa50ff6abe9ed6aa0
1a. Correct Request ``` curl --location 'http://localhost:8080/v2/merchant_accounts' \ --header 'X-Organization-Id: org_55QZkS5H9AR8deTk9mRs' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "merchant_name": "Cloth Seller Person" }' ``` 1b. Response ```...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"parameters\": [\n", " {\n", " \"name\": \"X-Organization-Id\",\n", " \"in\": \"header\",\n", " \"description\": \"Organization ID for which the merchant account ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"merchant_name\": \"Cloth Store\",\n", " \"organization_id\": \"org_abcdefghijklmnop\"\n", " },\n", " \"organization_id\": \"org_abcdefghijkl...
[ "json", "js", "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-6216
Bug: [BUG] Docker Compose dev environment fails to setup hyperswitch-server ### Bug Description `hyperswitch-hyperswitch-server-1` container stops abruptly without spinning up the server. Container can't find `protobuf-compiler` debian package and fails. Below are the logs of the container ```shell ➜ hyperswitc...
diff --git a/docker-compose-development.yml b/docker-compose-development.yml index cf12982a9bd..3878f880b06 100644 --- a/docker-compose-development.yml +++ b/docker-compose-development.yml @@ -59,10 +59,12 @@ services: ### Application services hyperswitch-server: - image: rust:latest - command: | - a...
2024-10-04T02:40:48Z
## 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: https://github.com/juspay/hyperswitch/issues/6216 Bui...
a3c2694943a985d27b5bc8b0371884d17a6ca34d
docker compose --file docker-compose-development.yml up -d
[ { "file_path": "docker-compose-development.yml", "lines": [ " build:\n", " dockerfile_inline: |\n", " FROM rust:latest\n", " RUN apt-get update && \\\n", " apt-get install -y protobuf-compiler\n", " command: cargo run --bin router -- -f...
[ { "file_path": "docker-compose-development.yml", "lines": [ " image: rust:latest\n", " command: | \n", " apt-get install -y protobuf-compiler && \\\n", " cargo run --bin router -- -f ./config/docker_compose.toml\n" ] } ]
[ "yml" ]
1
juspay/hyperswitch
juspay__hyperswitch-6186
Bug: feat(users): Allow multiple org_admins in single org Currently, there can only be a single org_admin in a org, and that is the person who signed up. All the other users will be either merchant level or profile level. Since, there can be a usecase where a org needs multiple org admins, we should allow multiple...
diff --git a/crates/diesel_models/src/query/user_role.rs b/crates/diesel_models/src/query/user_role.rs index 1cd25e54cb3..f4142842e21 100644 --- a/crates/diesel_models/src/query/user_role.rs +++ b/crates/diesel_models/src/query/user_role.rs @@ -5,7 +5,6 @@ use diesel::{ BoolExpressionMethods, ExpressionMethods, Qu...
2024-10-01T10:27:33Z
## 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 we are inserting user_roles in v1 version and v2 vers...
4dae29221f2d24a0f4299e641cfe22ab705fae25
All the following APIs will insert only v2 user_roles from now on. ```curl curl --location 'https://integ-api.hyperswitch.io/user/signup' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "new email", "password": "password" }' ``` ``` curl --location 'https://integ-api.hyperswit...
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " .insert_in_v2(state)\n", " EntityType::Organization => {\n", " user_role\n", " .add_entity(domain::OrganizationLevel {\n", " org_id: user_from_token....
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ "use router_env::logger;\n", " pub async fn insert_multiple_user_roles(\n", " conn: &PgPooledConn,\n", " user_roles: Vec<UserRoleNew>,\n", " ) -> StorageResult<Vec<Self>> {\n", " ...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6213
Bug: Payment method delete API for v2
diff --git a/crates/hyperswitch_domain_models/src/payment_methods.rs b/crates/hyperswitch_domain_models/src/payment_methods.rs index af3c657c34a..445ad5ab800 100644 --- a/crates/hyperswitch_domain_models/src/payment_methods.rs +++ b/crates/hyperswitch_domain_models/src/payment_methods.rs @@ -14,6 +14,20 @@ use time::Pr...
2024-10-03T11:11: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 --> - Payment method delete API for v2 ### Additional Changes ...
edd099886da9c46800a646fe809796a08eb78c99
Cannot be tested as vault dev is incomplete.
[ { "file_path": "crates/hyperswitch_domain_models/src/payment_methods.rs", "lines": [ "#[cfg(all(feature = \"v2\", feature = \"payment_methods_v2\"))]\n", "#[derive(Debug, serde::Deserialize, serde::Serialize, Clone)]\n", "pub struct VaultId(String);\n", "\n", "#[cfg(all(feature...
[ { "file_path": "crates/hyperswitch_domain_models/src/payment_methods.rs", "lines": [ " pub locker_id: Option<String>,\n", " locker_id: self.locker_id,\n", " locker_id: item.locker_id,\n", " locker_id: self.locker_id,\n" ] }, { "file...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6163
Bug: fix(payments): remove time range filter from payment attempt hotfix Corresponding issue: https://github.com/juspay/hyperswitch/issues/6160
diff --git a/crates/diesel_models/src/query/payment_attempt.rs b/crates/diesel_models/src/query/payment_attempt.rs index 48941330ec6..fa80b0990d1 100644 --- a/crates/diesel_models/src/query/payment_attempt.rs +++ b/crates/diesel_models/src/query/payment_attempt.rs @@ -351,7 +351,6 @@ impl PaymentAttempt { paym...
2024-09-30T14:44:08Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Corresponding main branch PR: #6159 Currently created_at is not indexed in payment attempt table, when...
387f02ee273e1bbf50e7b3882f5e9468d59f2c5b
[]
[ { "file_path": "crates/diesel_models/src/query/payment_attempt.rs", "lines": [ " time_range: Option<common_utils::types::TimeRange>,\n", " if let Some(time_range) = time_range {\n", " filter = filter.filter(dsl::created_at.ge(time_range.start_time));\n", "\n"...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6177
Bug: [FEATURE] integrate 3DS for Worldpay connector ### Feature Description WorldPay offers 3DS capabilities for a card txn. Same needs to be integrated in HyperSwitch. Flow - https://developer.worldpay.com/products/access/3ds/web ### Possible Implementation Implementing 3DS for WorldPay requires one additiona...
diff --git a/crates/diesel_models/src/query/payment_attempt.rs b/crates/diesel_models/src/query/payment_attempt.rs index 85c69824892..0627fa0048a 100644 --- a/crates/diesel_models/src/query/payment_attempt.rs +++ b/crates/diesel_models/src/query/payment_attempt.rs @@ -171,11 +171,23 @@ impl PaymentAttempt { me...
2024-10-20T09:44:04Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6177 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR m...
58296ffae6ff6f2f2c8f7b23dd28e92b374b9be3
Things to test 1. 3DS payments using automatic capture 2. No 3DS payment using manual capture (full amount captures) 3. Payments Sync <details> <summary>1. Create and capture</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: applicat...
[ { "file_path": "crates/diesel_models/src/query/payment_attempt.rs", "lines": [ " let (txn_id, txn_data) = common_utils::types::ConnectorTransactionId::form_id_and_data(\n", " connector_txn_id.to_string(),\n", " );\n", " let connector_transaction_id = t...
[ { "file_path": "crates/diesel_models/src/query/payment_attempt.rs", "lines": [ " .and(dsl::connector_transaction_id.eq(connector_txn_id.to_owned())),\n" ] }, { "file_path": "crates/router/src/connector/worldpay/response.rs", "lines": [ " pub other_fields: Worldp...
[ "rs" ]
8