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-5770
Bug: feat(user): new invitations api New api to list invitations for users (not just limited to merchant accounts). Api should be compatibly with work with user jwt token and single purpose jwt token.
diff --git a/crates/api_models/src/user_role.rs b/crates/api_models/src/user_role.rs index 4718da28d27..e4819b74fbc 100644 --- a/crates/api_models/src/user_role.rs +++ b/crates/api_models/src/user_role.rs @@ -1,5 +1,6 @@ use common_enums::PermissionGroup; use common_utils::pii; +use masking::Secret; pub mod role; ...
2024-09-02T09:26:13Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description New APIs to list of invitations for a user. <!-- Describe your changes in detail --> ### Additional...
1d149716ba47d3e3f4c749687cff851e18ec77c0
```sh curl --location 'localhost:8080/user/list/invitation' \ --header 'Authorization: Bearer <JWT>' \ ``` Response ```json [ { "entity_id": "juspay2", "entity_type": "merchant", "entity_name": null, "role_id": "merchant_view_only" } ] ```
[ { "file_path": "crates/api_models/src/user_role.rs", "lines": [ "use masking::Secret;\n", "\n", "#[derive(Debug, serde::Deserialize, serde::Serialize)]\n", "pub struct ListInvitationForUserResponse {\n", " pub entity_id: String,\n", " pub entity_type: common_enums::...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " enums::UserRoleVersion, errors, query::generics, schema::user_roles::dsl, user_role::*,\n" ] }, { "file_path": "crates/diesel_models/src/user_role.rs", "lines": [ "fn get_entity_id_and_type(user_role: &...
[ "rs" ]
11
juspay/hyperswitch
juspay__hyperswitch-5792
Bug: feat(users): Add profile level invites Currently invites are at merchant level only. Invite, accept invite and accept invite from email should change because of this.
diff --git a/crates/api_models/src/user.rs b/crates/api_models/src/user.rs index a0dadfea217..78157f62bc5 100644 --- a/crates/api_models/src/user.rs +++ b/crates/api_models/src/user.rs @@ -51,9 +51,6 @@ pub struct AuthorizeResponse { //this field is added for audit/debug reasons #[serde(skip_serializing)] ...
2024-09-04T10:51: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 --> - Removed preferred_merchant_id from update user API. - Invite...
1c39cc1262e6b2521669639ae296211b7ebefd86
All the following APIs should work without any issues. - Invite multiple - Accept invite from email - Accept invite - Merchant select - List orgs for user will throw the following error ``` { "error": { "type": "invalid_request", "message": "User Role Operation Not Supported", ...
[ { "file_path": "crates/api_models/src/user_role.rs", "lines": [ "\n", "pub type AcceptInvitationsV2Request = Vec<Entity>;\n", "pub type AcceptInvitationsPreAuthRequest = Vec<Entity>;\n", "\n", "#[derive(Debug, serde::Deserialize, serde::Serialize)]\n", "pub struct Entity ...
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ " //this field is added for audit/debug reasons\n", " #[serde(skip_serializing)]\n", " pub merchant_id: id_type::MerchantId,\n", " pub preferred_merchant_id: Option<id_type::MerchantId>,\n" ] }, { "fil...
[ "sql", "rs" ]
19
juspay/hyperswitch
juspay__hyperswitch-5767
Bug: feat(connector): [Thunes] Template for thunes payout ### Feature Description Template connector code for Thunes payout connector ### Possible Implementation Want to connect thunes with hyperswitch ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn...
diff --git a/config/config.example.toml b/config/config.example.toml index 052b10d0b90..afdbdc954b6 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -253,6 +253,7 @@ stax.base_url = "https://apiprod.fattlabs.com/" stripe.base_url = "https://api.stripe.com/" taxjar.base_url = "https://api.sa...
2024-09-02T12:11:31Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Template connector code for Thunes payout <!-- Describe your changes in detail --> ### Additional C...
aa2f5d147561f6e996228d269e6a54c5d1f53a60
Template PR
[ { "file_path": "config/config.example.toml", "lines": [ "thunes.base_url = \"https://api.limonetikqualif.com/\"\n", " \"thunes\",\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "thunes.base_url = \"https://api.limonetikqualif.com/\"\n" ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " novalnet::Novalnet, powertranz::Powertranz, stax::Stax, taxjar::Taxjar, tsys::Tsys,\n", " worldline::Worldline,\n" ] }, { "file_path": "crates/router/src/connector.rs", "lines": [ " taxj...
[ "sh", "toml", "rs" ]
23
juspay/hyperswitch
juspay__hyperswitch-5753
Bug: feat(roles): add support for roles list - Add support to list all roles for a user. Roles which are equal and below given entity level should be listed - Add support to list roles at a given entity level for a user.
diff --git a/crates/api_models/src/events/user_role.rs b/crates/api_models/src/events/user_role.rs index f88c318477a..81b38198cfc 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-08-30T11:27:23Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Add support to - List available roles with info for the user - List roles at entity level for the user...
6b410505da3a2dbceaf6f07bb3f19f3ceef4efe2
To List roles available roles in hierarchy with info: ``` curl --location 'http://localhost:8080/user/role/v2/list' \ --header 'Authorization: Bearer JWT' ``` Response ``` [ { "role_id": "merchant_operator", "role_name": "operator", "entity_type": "merchant", "groups": [ ...
[ { "file_path": "crates/api_models/src/events/user_role.rs", "lines": [ " CreateRoleRequest, GetRoleRequest, ListRolesAtEntityLevelRequest, ListRolesResponse,\n", " RoleInfoResponseNew, RoleInfoWithGroupsResponse, RoleInfoWithPermissionsResponse,\n", " UpdateRoleRequest...
[ { "file_path": "crates/api_models/src/events/user_role.rs", "lines": [ " CreateRoleRequest, GetRoleRequest, ListRolesResponse, RoleInfoWithGroupsResponse,\n", " RoleInfoWithPermissionsResponse, UpdateRoleRequest,\n" ] }, { "file_path": "crates/api_models/src/user.rs", ...
[ "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-5759
Bug: [FEATURE] [GLOBEPAY|POWERTRANZ|TSYS|WORLDLINE] Move connector code to crate hyperswitch_connectors ### Feature Description Connector code for `globepay, powertranz, tsys, worldline` needs to be moved from crate `router` to new crate `hyperswitch_connectors` ### Possible Implementation Connector code for `glo...
diff --git a/Cargo.lock b/Cargo.lock index 4a37b597d30..30eb871a67f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3876,6 +3876,8 @@ dependencies = [ name = "hyperswitch_connectors" version = "0.1.0" dependencies = [ + "actix-http", + "actix-web", "api_models", "async-trait", "base64 0.22.0", @@ -3883,9 +3885,14...
2024-08-30T12:29:57Z
## 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...
c03587f9c6e8ad444cebac92fd5134fe01c71728
1. Worldline: Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_CwqDbNztbMVSQb2nXB765MuZZ42QdqKJ5Bs4XPlC6s0e20sqfhi59GInfhqaRWLL' \ --data '{ "amount": 2980, "currency": "GBP", ...
[ { "file_path": "Cargo.lock", "lines": [ " \"actix-http\",\n", " \"actix-web\",\n", " \"hex\",\n", " \"http 0.2.12\",\n", " \"once_cell\",\n", " \"rand\",\n", " \"regex\",\n" ] }, { "file_path": "crates/hyperswitch_connectors/Cargo.toml", "lines": [ ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " helcim::Helcim, nexixpay::Nexixpay, novalnet::Novalnet, stax::Stax, taxjar::Taxjar,\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/globepay.rs", "lines": [ " request::Reques...
[ "toml", "lock", "rs" ]
18
juspay/hyperswitch
juspay__hyperswitch-5756
Bug: Interfacing of client and gRPC communications to Dynamo Building a gRPC Client for communicating with the Dynamo server, once the dynamic routing feature has been enabled. The dynamic routing feature would be a compile time as well as runtime feature flag , for providing the flexibility to enable and dis...
diff --git a/Cargo.lock b/Cargo.lock index 11036b42dc4..d90c577152d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1433,7 +1433,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3b829e4e32b91e643de6eafe82b1d90675f5874230191a4ffbc1b336dec4d6bf" dependencies = [ "async-trait", - "axum-co...
2024-09-09T05:27:48Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Feature Description: Building a Grpc Client for communicating with the Dynamo server, once the ...
be902ffa5328d32efe70c40c36f86d8fbfa01c79
- This cannot be tested on sbx, yet I have tested it locally - Started the gRPC Server - Established the connection with the Client <-> Server - Sent Request the gRPC Server <img width="1711" alt="Screenshot 2024-09-17 at 7 29 17 PM" src="https://github.com/user-attachments/assets/60fb8ccf-2c4d-48d5-bcfe-f7f3018...
[ { "file_path": "Cargo.lock", "lines": [ " \"axum-core 0.3.4\",\n", "[[package]]\n", "name = \"axum\"\n", "version = \"0.7.5\"\n", "source = \"registry+https://github.com/rust-lang/crates.io-index\"\n", "checksum = \"3a6c9af12842a67734c9a2e355436e5d03b22383ed60cf13cd0c18fb...
[ { "file_path": "Cargo.lock", "lines": [ " \"axum-core\",\n", " \"prost\",\n", " \"tonic\",\n", " \"prost\",\n", " \"tonic\",\n", " \"prost-derive\",\n", " \"axum\",\n", " \"hyper-timeout\",\n", " \"prost\",\n", " \"prost-derive\",\n" ] }, {...
[ "proto", "yml", "toml", "sql", "rs", "Dockerfile", "lock" ]
21
juspay/hyperswitch
juspay__hyperswitch-5742
Bug: [REFACTOR] add domain type for routing id add domain type for routing id
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index f9bcf3901b9..1416e985523 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -89,7 +89,8 @@ pub enum LinkedRoutingConfigRetrieveResponse { #[derive(Debug, Clone, serde::Serialize, serde::Deseriali...
2024-08-28T11:10:22Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description add domain type for Routing id ### Additional Changes - [ ] This PR modifies the API contract - ...
32dd3f97ad094344d8bfe95f7cdcb5cff891990f
Tested Manually Create, Update & Retrieve of outing and subsequent flows like payments sanity
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " #[schema(value_type = String)]\n", " pub id: common_utils::id_type::RoutingId,\n", " pub algorithm_id: Option<common_utils::id_type::RoutingId>,\n", " pub fn update_algorithm_id(&mut self, new_id: common_util...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " pub id: String,\n", " pub algorithm_id: Option<String>,\n", " pub fn update_algorithm_id(&mut self, new_id: String) {\n", " pub id: String,\n", " pub routing_algorithm_id: String,\n" ] }, { ...
[ "rs" ]
14
juspay/hyperswitch
juspay__hyperswitch-5755
Bug: Creation of Toggle and Configs for DynamicRouting & DynamicRoutingMetrics ### Toggle for Dynamic Routing: There should be a 2 way toggle of the switch: 1. For Success-Based routing(whole integration in core that will affect payments). 2. For only enabling metrics of Success-Based routing (This can be used ...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 3c2c811766b..8e6e58865fc 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -17247,7 +17247,8 @@ "single", "priority", "volume_split", - "advanced...
2024-09-06T15:35:56Z
## 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 --> ### Toggle Success based dynamic routing This PR will toggle s...
246fdc84064367885596b33f5e0e66af78a97a3c
1. Request: ``` curl --location --request POST 'http://localhost:8080/account/merchant_1726160910/business_profile/pro_7Oo0CzTQoOwE5HfwKf6v/dynamic_routing/success_based/toggle?status=false' \ --header 'api-key:xxxxx' ``` Response: ``` { "id": "routing_sSePmUaucfVIcaSeZPK4", "profile_id": "pro_ejL5TRsd...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"advanced\",\n", " \"dynamic\"\n" ] }, { "file_path": "crates/api_models/src/admin.rs", "lines": [ "\n", " /// Indicates if dynamic routing is enabled or not.\n", " #[serd...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"advanced\"\n" ] }, { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingRetrieveLinkQueryWrapper, RoutingRetrieveQuery,\n" ] }, { "file_path": "crates/router/src/c...
[ "sql", "json", "rs" ]
25
juspay/hyperswitch
juspay__hyperswitch-5762
Bug: refactor(users): Add V2 user_roles data support In V2 user_roles data, merchant_id will be null for org level users. Currently in the BE, we throw 500 if merchant_id is not found in user_role. So, we should fix this case and get merchant_id from db using org_id if merchant_id is not present in the user_role.
diff --git a/crates/api_models/src/events/user.rs b/crates/api_models/src/events/user.rs index 590179c052c..8d1ae60b325 100644 --- a/crates/api_models/src/events/user.rs +++ b/crates/api_models/src/events/user.rs @@ -16,11 +16,11 @@ use crate::user::{ GetSsoAuthUrlRequest, GetUserAuthenticationMethodsRequest, GetU...
2024-08-31T09:14:39Z
## 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 --> - Deprecate all the APIs which are used when `is_token_only` an...
f7f5ba7c0bbf694dbeecec73f8383ac678dd4425
From the following endpoints, `token_only` query parameter is removed. - `/v2/signin` - `/reset_password` - `/v2/verify_email` - `/accept_invite_from_email` - `/invite/accept` - Post only All the above APIs will give the following response. ``` { "token": "JWT", "token_type": "type" } ``` Fro...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " SendVerifyEmailRequest, SignUpRequest, SignUpWithMerchantIdRequest, SsoSignInRequest,\n", " SwitchMerchantRequest, SwitchOrganizationRequest, SwitchProfileRequest, TokenResponse,\n", " TwoFactorAuthStatusResponse,...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " SendVerifyEmailRequest, SignInResponse, SignUpRequest, SignUpWithMerchantIdRequest,\n", " SsoSignInRequest, SwitchMerchantRequest, SwitchOrganizationRequest, SwitchProfileRequest,\n", " TokenOrPayloadResponse, Tok...
[ "rs", "json", "js" ]
31
juspay/hyperswitch
juspay__hyperswitch-5761
Bug: refactor(users): Deprecate unused APIs For backwards compatibility, BE will not remove old APIs when adding new APIs. We have to deprecate the APIs which are kept for backwards compatibility. This will make BE changes easier for user management changes. These APIs include: - All the APIs which are having `is_...
diff --git a/crates/api_models/src/events/user.rs b/crates/api_models/src/events/user.rs index 590179c052c..8d1ae60b325 100644 --- a/crates/api_models/src/events/user.rs +++ b/crates/api_models/src/events/user.rs @@ -16,11 +16,11 @@ use crate::user::{ GetSsoAuthUrlRequest, GetUserAuthenticationMethodsRequest, GetU...
2024-08-31T09:14:39Z
## 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 --> - Deprecate all the APIs which are used when `is_token_only` an...
f7f5ba7c0bbf694dbeecec73f8383ac678dd4425
From the following endpoints, `token_only` query parameter is removed. - `/v2/signin` - `/reset_password` - `/v2/verify_email` - `/accept_invite_from_email` - `/invite/accept` - Post only All the above APIs will give the following response. ``` { "token": "JWT", "token_type": "type" } ``` Fro...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " SendVerifyEmailRequest, SignUpRequest, SignUpWithMerchantIdRequest, SsoSignInRequest,\n", " SwitchMerchantRequest, SwitchOrganizationRequest, SwitchProfileRequest, TokenResponse,\n", " TwoFactorAuthStatusResponse,...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " SendVerifyEmailRequest, SignInResponse, SignUpRequest, SignUpWithMerchantIdRequest,\n", " SsoSignInRequest, SwitchMerchantRequest, SwitchOrganizationRequest, SwitchProfileRequest,\n", " TokenOrPayloadResponse, Tok...
[ "rs", "json", "js" ]
31
juspay/hyperswitch
juspay__hyperswitch-5747
Bug: Refactor: make the mca_id optional for PPT mandate flow ## Description <!-- Describe your changes in detail --> This refactor will make `mca_id` as optional in request and will completely remove the connector_name field, So the updation will make this request : ``` "recurring_details": { "type": "p...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 6882e823905..ed591af7a6c 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -16052,19 +16052,15 @@ "type": "object", "description": "Processor payment token for MIT payme...
2024-08-29T10:59:00Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This refactor will make `mca_id` as optional in request and wil...
2049ab055469a43c0cb2e543740571913a027eab
1. create a merchant account. 2. create api_key. 3. create mca (stripe). 4. create a routing rule: ``` curl --location 'http://127.0.0.1:8080/routing' \ --header 'Content-Type: application/json' \ --header 'api-key: xxxxxxxxx' \ --data '{ "name": "advanced config", "description": "It is my ADVANCED ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"processor_payment_token\"\n", " \"type\": \"string\",\n", " \"nullable\": true\n" ] }, { "file_path": "crates/api_models/src/mandates.rs", "lines": [ " #[schema(value...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"processor_payment_token\",\n", " \"connector\",\n", " \"merchant_connector_id\"\n", " \"connector\": {\n", " \"$ref\": \"#/components/schemas/Connector\"\n", ...
[ "json", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5725
Bug: [BUG] Fix Routing activate Route ### Bug Description When trying to hit the routing activate route , it was throwing a deserialisation error due to the passing a struct instead of a tuple struct ### Expected Behavior When trying to hit the routing activate route ,it should not throw a error ### Actual Beha...
diff --git a/crates/router/src/core/routing.rs b/crates/router/src/core/routing.rs index 267a3d55ce4..d5a3a96d155 100644 --- a/crates/router/src/core/routing.rs +++ b/crates/router/src/core/routing.rs @@ -428,18 +428,15 @@ pub async fn retrieve_routing_algorithm_from_algorithm_id( state: SessionState, merchan...
2024-08-27T14:10:28Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description fix routing routes for activating and retrieving the routing algorithms where not able to deserialise cor...
716d76c53e07327cd07844dd8b40f5be18c0df4b
- Create a MA and a MCa - Create a Routing Rule ``` curl --location 'http://localhost:8080/routing' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_HIL1XwQlvsJtPbfaOoWrYPznXmFoKE2F0Sg2Kq58Rjnj8PsV5k51g33I6a8chvLN' \ --data '{ "profile_id": "pro_2ScZ3GfSL10mn5BMMuFH", "name": "Brand b...
[ { "file_path": "crates/router/src/core/routing.rs", "lines": [ " algorithm_id: String,\n", " let routing_algorithm =\n", " RoutingAlgorithmUpdate::fetch_routing_algo(merchant_account.get_id(), &algorithm_id, db)\n", " .await?;\n", " algorithm_id: Stri...
[ { "file_path": "crates/router/src/core/routing.rs", "lines": [ " algorithm_id: routing_types::RoutingAlgorithmId,\n", " let routing_algorithm = RoutingAlgorithmUpdate::fetch_routing_algo(\n", " merchant_account.get_id(),\n", " &algorithm_id.routing_algorithm_id,\n...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5731
Bug: make customer details None in the `Psync` flow if the customer is deleted If the customer is deleted after the payment is done the payments retrieve will fail as the customer details are redacted. But we should be able to retrieve a payment even is the customer details are redacted.
diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rs index c2a14871a47..b9c89cd4387 100644 --- a/crates/router/src/core/payments/helpers.rs +++ b/crates/router/src/core/payments/helpers.rs @@ -1372,6 +1372,18 @@ pub async fn get_customer_from_details<F: Clone>( todo!...
2024-08-28T10:40: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 --> If the customer is deleted after the payment is done the paymen...
7296cceba351dccf13a71ef2479dba3f24e3c31f
-> Make a card payment ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_RPC8caLJDX8s4AFPVxr0KCy6UOTSJNs7IjbfK9WmkDddIBTfibFPBuQxM4A1nKu0' \ --data-raw '{ "amount": 100, "amount_to_capture": 1...
[ { "file_path": "crates/router/src/core/payments/helpers.rs", "lines": [ "#[cfg(all(feature = \"v2\", feature = \"customer_v2\"))]\n", "pub async fn get_customer_details_even_for_redacted_customer<F: Clone>(\n", " _state: &SessionState,\n", " _customer_id: Option<id_type::Custom...
[ { "file_path": "crates/router/src/core/payments/operations.rs", "lines": [ " helpers::get_customer_from_details(\n" ] }, { "file_path": "crates/router/src/core/payments/transformers.rs", "lines": [ " // If we have customer data in Payment Intent, We are populating t...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-5720
Bug: [FIX] Fix Mca create for v2 ### Feature Description fix merchant connector account create for v2 , by handling the case where defaull fallback is null ,while updating the it ### Possible Implementation fix merchant connector account create for v2 , by handling the case where defaull fallback is null ,w...
diff --git a/crates/router/src/core/admin.rs b/crates/router/src/core/admin.rs index 553de8c5608..ab20c1c68bf 100644 --- a/crates/router/src/core/admin.rs +++ b/crates/router/src/core/admin.rs @@ -4204,16 +4204,19 @@ impl BusinessProfileWrapper { pub fn get_default_fallback_list_of_connector_under_profile( ...
2024-08-27T10:30:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description fix merchant connector account create for v2 , by handling the case where defaull fallback is null ,whil...
4585e16245dd49d8c0b877cda148524afe395009
- Create a Organization ``` curl --location 'http://localhost:8080/v2/organization' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "organization_name": "my_org" }' ``` - Create a MA and then a profile ``` curl --location 'http://localhost:8080/v2/accounts' \ -...
[ { "file_path": "crates/router/src/core/admin.rs", "lines": [ " let fallback_connectors =\n", " if let Some(default_fallback_routing) = self.profile.default_fallback_routing.clone() {\n", " default_fallback_routing\n", " .expose()\n"...
[ { "file_path": "crates/router/src/core/admin.rs", "lines": [ " use masking::ExposeOptionInterface;\n", " self.profile\n", " .default_fallback_routing\n", " .clone()\n", " .expose_option()\n", " .parse_value::<Vec<r...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5714
Bug: feat(euclid): create a new variant under payment_type for ppt token flow ## Description This change will add a new variant in payment_type which will be `ppt_token_flow` using which we will be able to make rule on basis of the ppt flow. The new variant will be visible here: <img width="1201" alt="Scree...
diff --git a/crates/api_models/src/mandates.rs b/crates/api_models/src/mandates.rs index dc61aa08b0c..b62a2c38b9c 100644 --- a/crates/api_models/src/mandates.rs +++ b/crates/api_models/src/mandates.rs @@ -115,7 +115,7 @@ pub struct MandateListConstraints { } /// Details required for recurring payment -#[derive(Debu...
2024-08-23T08:00:31Z
## 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 change will add a new variant in payment_type which will b...
4585e16245dd49d8c0b877cda148524afe395009
Unit test cases are written for the same in PR (`vir_interpreter.rs` file).
[ { "file_path": "crates/api_models/src/mandates.rs", "lines": [ "#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema, PartialEq, Eq)]\n", "#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema, PartialEq, Eq)]\n" ] }, { "file_path": "crates/euclid/src...
[ { "file_path": "crates/api_models/src/mandates.rs", "lines": [ "#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]\n", "#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]\n" ] }, { "file_path": "crates/router/src/core/payments/routing.rs", ...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5706
Bug: feat(opensearch): add profile_id and organization_id to /search APIs Global Search is currently being done through the merchant_id authentication. We have to enhance the global search to search through new hierarchical structure of OrgLevel, MerchantLevel and ProfileLevel. Queries will now be of the following...
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs index f3dd5eea441..7486ab50a51 100644 --- a/crates/analytics/src/opensearch.rs +++ b/crates/analytics/src/opensearch.rs @@ -24,7 +24,7 @@ use storage_impl::errors::ApplicationError; use time::PrimitiveDateTime; use super::{health_c...
2024-08-27T05:25:37Z
## 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 is currently being done through the `merchant_id`...
296ca311c96cc032aaa9ad846299db24bacaeb56
- Sample Query Structure ![image](https://github.com/user-attachments/assets/e0690053-3f85-4fae-908d-a58b1d4a0f80) - Hit the `/search` API (using query, filters and timeRange). ```bash curl --location 'http://localhost:8080/analytics/v1/search' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ "use crate::{enums::AuthInfo, query::QueryBuildingError};\n", " pub search_params: Vec<AuthInfo>,\n", " pub fn new(query_type: OpenSearchQuery, query: String, search_params: Vec<AuthInfo>) -> Self {\n", " ...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ "use crate::query::QueryBuildingError;\n", " pub fn new(query_type: OpenSearchQuery, query: String) -> Self {\n", " bool_obj.insert(\"filter\".to_string(), Value::Array(filter_array));\n", " query_obj.in...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-5721
Bug: feat(users): List users in lineage API - Currently user roles are grouped by user email in dashboard. - Payload might look something like this ```json [ { "email": "e1", "roles": [ { "role_id": "r1", "role_name": "name" } ] } ] ```
diff --git a/crates/api_models/src/user.rs b/crates/api_models/src/user.rs index 2547f082039..97d0c63fdf1 100644 --- a/crates/api_models/src/user.rs +++ b/crates/api_models/src/user.rs @@ -418,3 +418,15 @@ pub struct ListProfilesForUserInOrgAndMerchantAccountResponse { pub profile_id: id_type::ProfileId, pub ...
2024-08-27T12:46: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 --> - This PR adds a new API which will be used to list the users i...
32dd3f97ad094344d8bfe95f7cdcb5cff891990f
``` curl --location 'http://localhost:8080/user/user/v2/list' \ --header 'Authorization: ••••••' \ ``` If the JWT is of `org_admin`, it will list all the users in the org, else it will list all the users in merchant.
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ "\n", "#[derive(Debug, serde::Serialize)]\n", "pub struct ListUsersInEntityResponse {\n", " pub email: pii::Email,\n", " pub roles: Vec<MinimalRoleInfo>,\n", "}\n", "\n", "#[derive(Debug, serde::...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " pub async fn generic_user_roles_list(\n" ] }, { "file_path": "crates/diesel_models/src/user_role.rs", "lines": [ "use common_utils::id_type;\n", "#[derive(Clone, Debug, Identifiable, Queryable, Se...
[ "rs" ]
18
juspay/hyperswitch
juspay__hyperswitch-5697
Bug: [FEATURE] Open api for routing v2 ### Feature Description Open api for routing v2 ### Possible Implementation Open api for routing v2 ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue ### Have you read the Contributing Gui...
diff --git a/api-reference-v2/api-reference/business-profile/business-profile--activate-routing-algorithm.mdx b/api-reference-v2/api-reference/business-profile/business-profile--activate-routing-algorithm.mdx new file mode 100644 index 00000000000..9ff6f4fdd57 --- /dev/null +++ b/api-reference-v2/api-reference/business...
2024-08-25T07:52:07Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Add open api routes for routing v2 ### Additional Changes - [ ] This PR modifies the API contract...
b90ae90c668d4134d526f05d2cc7f988a11ed496
- Validated the open-api using this command `swagger-cli validate ./api-reference-v2/openapi_spec.json` ./api-reference-v2/openapi_spec.json is valid <img width="1728" alt="openapi" src="https://github.com/user-attachments/assets/5f067b84-edb8-4d38-8418-168b56ec6e3d">
[ { "file_path": "api-reference-v2/api-reference/business-profile/business-profile--activate-routing-algorithm.mdx", "lines": [ "---\n", "openapi: patch /v2/profiles/{profile_id}/activate_routing_algorithm\n", "---\n" ] }, { "file_path": "api-reference-v2/api-reference/business-p...
[ { "file_path": "api-reference-v2/mint.json", "lines": [ " \"api-reference/business-profile/business-profile--retrieve\"\n" ] }, { "file_path": "crates/api_models/src/routing.rs", "lines": [ "#[repr(transparent)]\n", "#[derive(serde::Serialize, serde::Deserialize, Deb...
[ "json", "rs", "mdx" ]
15
juspay/hyperswitch
juspay__hyperswitch-5708
Bug: [FEATURE] Add is_tax_conenctor_enabled boolean in pml response ### Feature Description Add is_tax_conenctor_enabled boolean in pml response ### Possible Implementation Get the is_tax_connector_enabled value from business_profile and pass it to pml response ### Have you spent some time checking if this featu...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 6b9ba4afd01..783d4751bc5 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -11073,7 +11073,8 @@ "payment_methods", "mandate_payment", "show_surcharge_brea...
2024-08-27T07:12:50Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Added `skip_external_tax_calculation` boolean in payments create request that indicates whether tax to be...
21352cf875e360c808562a15fcbb8d8c6a27ae50
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"request_external_three_ds_authentication\",\n", " \"is_tax_calculation_enabled\"\n", " },\n", " \"is_tax_calculation_enabled\": {\n", " \"type\": \"boolean\",\n", ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"request_external_three_ds_authentication\"\n" ] } ]
[ "sql", "json", "rs" ]
16
juspay/hyperswitch
juspay__hyperswitch-5694
Bug: Add org id to transaction tables
diff --git a/crates/analytics/docs/clickhouse/scripts/disputes.sql b/crates/analytics/docs/clickhouse/scripts/disputes.sql index bb7472a4d54..3bd993d31cf 100644 --- a/crates/analytics/docs/clickhouse/scripts/disputes.sql +++ b/crates/analytics/docs/clickhouse/scripts/disputes.sql @@ -20,6 +20,7 @@ CREATE TABLE dispute_...
2024-08-26T07:43: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 --> Add organisation id for - payment intents - payment attempts...
c555a88c6730a1216aa291bc7f7a38e3df08c469
<img width="975" alt="image" src="https://github.com/user-attachments/assets/dcb1ff45-4771-4382-9f97-36039abb9ef2"> Check for the added columns in pgweb/grafana
[ { "file_path": "crates/analytics/docs/clickhouse/scripts/disputes.sql", "lines": [ " `organization_id` String,\n", " `organization_id` String,\n", " `organization_id` String,\n", " organization_id,\n" ] }, { "file_path": "crates/analytics/docs/clickhouse/scrip...
[ { "file_path": "crates/diesel_models/src/payment_attempt.rs", "lines": [ "use common_utils::pii;\n", " pub merchant_id: common_utils::id_type::MerchantId,\n", " pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,\n", " pub merchant_id: commo...
[ "sql", "rs" ]
39
juspay/hyperswitch
juspay__hyperswitch-5689
Bug: feat(users_roles): support switch for new user hierarchy Support switch - At org level - At merchant level - At profile level - For internal users Issue new token and set permissions accordingly
diff --git a/crates/api_models/src/events/user.rs b/crates/api_models/src/events/user.rs index 862c361d465..590179c052c 100644 --- a/crates/api_models/src/events/user.rs +++ b/crates/api_models/src/events/user.rs @@ -17,10 +17,10 @@ use crate::user::{ GetUserRoleDetailsRequest, GetUserRoleDetailsResponse, InviteUs...
2024-08-26T06:46:56Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Support switch for org, merchant, profile and internal users. For now switch exist only for merchant. ...
4585e16245dd49d8c0b877cda148524afe395009
For org level switch ``` curl --location 'http://localhost:8080/user/switch/org' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer JWT' \ --data '{ "org_id": "some_org_id" }' ``` For merchant level switch ``` curl --location 'http://localhost:8080/user/switch/merchant' \ --he...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " SsoSignInRequest, SwitchMerchantRequest, SwitchOrganizationRequest, SwitchProfileRequest,\n", " TokenOrPayloadResponse, TokenResponse, TwoFactorAuthStatusResponse,\n", " UpdateUserAccountDetailsRequest, UpdateUser...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " SsoSignInRequest, SwitchMerchantIdRequest, TokenOrPayloadResponse, TokenResponse,\n", " TwoFactorAuthStatusResponse, UpdateUserAccountDetailsRequest,\n", " UpdateUserAuthenticationMethodRequest, UserFromEmailReque...
[ "rs" ]
11
juspay/hyperswitch
juspay__hyperswitch-5693
Bug: [FEATURE] ADD NEXIXPAY CONNECTOR ### Feature Description Add Nexixpay connector ### Possible Implementation Add Nexixpay connector ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue ### Have you read the Contributing Guidel...
diff --git a/config/config.example.toml b/config/config.example.toml index a8cc36b4dc5..0a88c3896f2 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -222,6 +222,7 @@ mollie.secondary_base_url = "https://api.cc.mollie.com/v1/" multisafepay.base_url = "https://testapi.multisafepay.com/" netce...
2024-08-23T10:56:11Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Template code added for new connector Nexi-Xpay ### Addition...
4585e16245dd49d8c0b877cda148524afe395009
[ { "file_path": "config/config.example.toml", "lines": [ "nexixpay.base_url = \"https://xpaysandbox.nexigroup.com/api/phoenix-0.0/psp/api/v1\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "nexixpay.base_url = \"https://xpaysandbox.nexigroup.com/api...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "novalnet.base_url = \"https://payport.novalnet.de/v2\"\n" ] }, { "file_path": "config/deployments/production.toml", "lines": [ "novalnet.base_url = \"https://payport.novalnet.de/v2\"\n" ] }, { "fil...
[ "sh", "toml", "rs" ]
25
juspay/hyperswitch
juspay__hyperswitch-5695
Bug: Add profile id to transaction tables Required to provide profile level filters in analytics section
diff --git a/crates/analytics/docs/clickhouse/scripts/disputes.sql b/crates/analytics/docs/clickhouse/scripts/disputes.sql index bb7472a4d54..3bd993d31cf 100644 --- a/crates/analytics/docs/clickhouse/scripts/disputes.sql +++ b/crates/analytics/docs/clickhouse/scripts/disputes.sql @@ -20,6 +20,7 @@ CREATE TABLE dispute_...
2024-08-26T07:43: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 --> Add organisation id for - payment intents - payment attempts...
c555a88c6730a1216aa291bc7f7a38e3df08c469
<img width="975" alt="image" src="https://github.com/user-attachments/assets/dcb1ff45-4771-4382-9f97-36039abb9ef2"> Check for the added columns in pgweb/grafana
[ { "file_path": "crates/analytics/docs/clickhouse/scripts/disputes.sql", "lines": [ " `organization_id` String,\n", " `organization_id` String,\n", " `organization_id` String,\n", " organization_id,\n" ] }, { "file_path": "crates/analytics/docs/clickhouse/scrip...
[ { "file_path": "crates/diesel_models/src/payment_attempt.rs", "lines": [ "use common_utils::pii;\n", " pub merchant_id: common_utils::id_type::MerchantId,\n", " pub merchant_connector_id: Option<common_utils::id_type::MerchantConnectorAccountId>,\n", " pub merchant_id: commo...
[ "sql", "rs" ]
39
juspay/hyperswitch
juspay__hyperswitch-5680
Bug: REFACTOR: check the authenticity of profile_id being used for all the routing routes After this refactor goes in, we will have an auth layer verifying the autheticity of profile being sent in the request at max there can be 4 cases: 1. profile_id not present in the request: provide the requested details for th...
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index 1416e985523..7b7a59bc866 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -57,18 +57,18 @@ pub struct ProfileDefaultRoutingConfig { pub connectors: Vec<RoutableConnectorChoice>, } -#[der...
2024-08-20T08:17:36Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This change will ensure that the profile id being sent in param...
e3a9fb16c518d09313d00a23ece70a26d4728f63
Cannot be tested right now because currently we are not including profile_id in JWT. Was able to compile the code.
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ "#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]\n", "#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]\n", "#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]\n" ] }, { "file_pat...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ "#[derive(Debug, serde::Deserialize, serde::Serialize)]\n", "#[derive(Debug, serde::Deserialize, serde::Serialize)]\n", "#[derive(Debug, serde::Deserialize, serde::Serialize)]\n" ] }, { "file_path": "crates/router/sr...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-5663
Bug: [FEATURE] Update MCA Update to process additional merchant data for open banking connectors ### Feature Description Currently, we only accept `additional_merchant_data` in the MCA create req, we need to accept it in update req as well and and add the logic for processing the data in the MCA update core. ### P...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 458e1ae9ff0..b68a5c91c8b 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -7766,6 +7766,14 @@ "example": "y3oqhf46pyzuxjbcn2giaqnb44", "maxLength": 64, ...
2024-08-21T10:05:35Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR does - - In the PIS flow, in merchant connector upda...
b60ced02ffba21624a9491a63fcde1c04cfa0b06
1. MCA create for Plaid - ``` curl --location --request POST 'http://localhost:8080/account/merchant_1724231900/connectors' \ --header 'api-key: test_admin' \ --header 'Content-Type: application/json' \ --data-raw '{ "connector_type": "payment_processor", "connector_name": "plaid", "connector_acc...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " },\n", " \"additional_merchant_data\": {\n", " \"allOf\": [\n", " {\n", " \"$ref\": \"#/components/schemas/AdditionalMerchantData\"\n", " ...
[ { "file_path": "crates/router/src/core/admin.rs", "lines": [ " .attach_printable(\"Failed to get MerchantRecipientData\")?;\n", " identifier,\n", " .attach_printable(\"Failed to get MerchantRecipientData\")?;\n" ] } ]
[ "json", "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-5659
Bug: feat(user): list apis Create new apis to list for user: - orgs - merchant accounts - profiles.
diff --git a/crates/api_models/src/user.rs b/crates/api_models/src/user.rs index 03e59db1e86..9867aba7b39 100644 --- a/crates/api_models/src/user.rs +++ b/crates/api_models/src/user.rs @@ -390,3 +390,21 @@ pub struct UserKeyTransferRequest { pub struct UserTransferKeyResponse { pub total_transferred: usize, } + ...
2024-08-21T19:18:51Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description New APIs list: - orgs for a user. - merchant accounts for a user in current organisation. - profile i...
ca72fedae82194abb7216854c7dd61c64d57b1d6
List orgs ```sh curl --location 'localhost:8080/user/list/org' \ --header 'Authorization: Bearer <JWT>' \ ``` response example ```json [ { "org_id": "org_t4ryeBxwt9RKu8jlsTWq", "org_name": "Juspay" }, { "org_id": "org_t4ryeBxwt9RKu8jlsTWq2", "org_name": "Juspay...
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ "\n", "#[derive(Debug, serde::Serialize)]\n", "pub struct ListOrgsForUserResponse {\n", " pub org_id: id_type::OrganizationId,\n", " pub org_name: Option<String>,\n", "}\n", "\n", "#[derive(Debug...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ "use diesel::{associations::HasTable, BoolExpressionMethods, ExpressionMethods};\n", " enums::UserRoleVersion, query::generics, schema::user_roles::dsl, user_role::*, PgPooledConn,\n", " StorageResult,\n" ] ...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-5683
Bug: [FEATURE] Add template code for Novalnet ### Feature Description Add template code for Novalnet ### Possible Implementation Add template code for Novalnet ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue ### Have you read...
diff --git a/config/config.example.toml b/config/config.example.toml index ebadc9edae7..d71846dab6f 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -223,6 +223,7 @@ netcetera.base_url = "https://{{merchant_endpoint_prefix}}.3ds-server.prev.netce nexinets.base_url = "https://apitest.payengin...
2024-08-22T12:18:40Z
## 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 Novalnet https://developer.novalnet.com/onlinepayments/api ##...
ad9f91b37cc39c8fb594b48ac60c5e945a0f561f
[ { "file_path": "config/config.example.toml", "lines": [ "novalnet.base_url = \"https://payport.novalnet.de/v2\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "novalnet.base_url = \"https://payport.novalnet.de/v2\"\n" ] }, { "file_path":...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " stax::Stax, taxjar::Taxjar,\n" ] }, { "file_path": "crates/router/src/connector.rs", "lines": [ " fiservemea::Fiservemea, helcim, helcim::Helcim, stax, stax::Stax, taxjar, taxjar::Taxjar,\n" ...
[ "sh", "toml", "rs" ]
25
juspay/hyperswitch
juspay__hyperswitch-5671
Bug: [FEATURE] [FISERVEMEA] Integrate card payments ### Feature Description Integrate card payments for new connector Fiserv-EMEA https://docs.fiserv.dev/ ### Possible Implementation Integrate card payments for new connector Fiserv-EMEA https://docs.fiserv.dev/ ### 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 5c57891d103..7b9cf0e48c8 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -4738,6 +4738,7 @@ "dlocal", "ebanx", "fiserv", + "fiservemea", ...
2024-08-22T12:30:20Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Integrate card payments for new connector Fiserv-EMEA https://...
771f48cfe0ec6d8625ca3ff3095f5d9806915779
Following flows need to be tested for card payments for new connector FiservEMEA: 1. Authorize: Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_patS2PyLZVJvSG2Ik9brOOFlHKdIWJdkDaRBnfgNe5qN...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"fiservemea\",\n", " \"fiservemea\",\n" ] }, { "file_path": "config/config.example.toml", "lines": [ "fiservemea.base_url = \"https://prod.emea.api.fiservapps.com/sandbox\"\n" ] }, ...
[ { "file_path": "config/config.example.toml", "lines": [ "fiservemea.base_url = \"https://prod.emea.api.fiservapps.com/sandbox/ipp/payments-gateway/v2\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "fiservemea.base_url = \"https://prod.emea.api.fis...
[ "toml", "json", "rs" ]
20
juspay/hyperswitch
juspay__hyperswitch-5675
Bug: Prod intent email Email not getting delivered for prod intent, modify the email
diff --git a/crates/router/src/consts/user.rs b/crates/router/src/consts/user.rs index 18fdf0dcbe6..1a2b2ef60a4 100644 --- a/crates/router/src/consts/user.rs +++ b/crates/router/src/consts/user.rs @@ -5,7 +5,7 @@ pub const MAX_NAME_LENGTH: usize = 70; /// The max length of company name and merchant should be same ///...
2024-08-22T12:57:43Z
## 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 --> Changed the business email to which production intent requests ...
0eaadc42b77e0f27cc4bb26c7e04d7c4f762b6d9
[ { "file_path": "crates/router/src/consts/user.rs", "lines": [ "pub const BUSINESS_EMAIL: &str = \"neeraj.kumar@juspay.in\";\n" ] } ]
[ { "file_path": "crates/router/src/consts/user.rs", "lines": [ "pub const BUSINESS_EMAIL: &str = \"biz@hyperswitch.io\";\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5668
Bug: [FEATURE] allow testing payout links in test_mode ### Feature Description Payout links is secure by nature, meaning it can be consumed only when below pre-requisites are met - `allowed_domains` are configured in profile - these are later used for validating the render request, and blow embedding these links u...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index af1186ac9ed..cc1b2f3137e 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -2953,7 +2953,15 @@ "$ref": "#/components/schemas/BusinessGenericLinkConfig" }, ...
2024-08-22T11:01:33Z
## 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 #5668 ### Additional Changes - [x] This PR modifies the API contract - [ ] This PR m...
963a2547e87fc7a4e8ed55627d3e7b9da2022f21
<details> <summary>1. Create payout link without setting allowed_domains - *SHOULD FAIL*</summary> curl --location 'http://localhost:8080/payouts/create' \ --header 'Accept-Language: fr' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_1axlWLG2ZUMWX1B8TMZ7m1Y7E...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"type\": \"object\",\n", " \"properties\": {\n", " \"payout_test_mode\": {\n", " \"type\": \"boolean\",\n", " \"description\": \"Allows for removi...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"type\": \"object\"\n" ] }, { "file_path": "crates/router/src/core/generic_link/payout_link/initiate/script.js", "lines": [ "if (!isFramed) {\n" ] }, { "file_path": "crates/router/src/core/p...
[ "json", "js", "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-5634
Bug: [FIX]: add open banking in payment methods in wasm add open banking in payment methods in wasm
diff --git a/crates/connector_configs/src/response_modifier.rs b/crates/connector_configs/src/response_modifier.rs index 06f9d25b65d..b6b2e8555e3 100644 --- a/crates/connector_configs/src/response_modifier.rs +++ b/crates/connector_configs/src/response_modifier.rs @@ -225,6 +225,13 @@ impl ConnectorApiIntegrationPayloa...
2024-08-14T12:08:54Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description plaid payment processor configuring was breaking ![image](https://github.com/user-attachments/assets/94d...
2249010ceb9fc03249d8feb428f2209b2d2ee9f4
updated the wasm, and tested with frontend changes locally it is working fine
[ { "file_path": "crates/connector_configs/src/response_modifier.rs", "lines": [ " let open_banking = DashboardPaymentMethodPayload {\n", " payment_method: api_models::enums::PaymentMethod::OpenBanking,\n", " payment_method_type: api_models::enums::PaymentMethod:...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5650
Bug: feat(user_roles): Update both V1 and V2 user roles Since we are introducing V2 user_roles. Before we start inserting V2 data, we should complete the other operations (update, delete and read). This issue tracks the progress of changes for update.
diff --git a/crates/diesel_models/src/query/user_role.rs b/crates/diesel_models/src/query/user_role.rs index b84ea63de1d..b7f79a4438f 100644 --- a/crates/diesel_models/src/query/user_role.rs +++ b/crates/diesel_models/src/query/user_role.rs @@ -41,47 +41,6 @@ impl UserRole { .await } - pub async fn u...
2024-08-20T14:55:26Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - This PR adds a new db function which can update a user_role b...
cc5b06e72553c33c9d9ed5f9a944ceb5bb36f2c7
All the following APIs should not break and work as before. ``` curl --location 'https://integ-api.hyperswitch.io/user/accept_invite_from_email' \ --header 'Content-Type: application/json' \ --data '{ "token": "email token" }' ``` ``` curl --location 'https://integ-api.hyperswitch.io/user/accept_invi...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " pub async fn update_by_user_id_org_id_merchant_id_profile_id(\n", " conn: &PgPooledConn,\n", " user_id: String,\n", " org_id: id_type::OrganizationId,\n", " merchant_id: id...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " pub async fn update_by_user_id_merchant_id(\n", " conn: &PgPooledConn,\n", " user_id: String,\n", " merchant_id: id_type::MerchantId,\n", " update: UserRoleUpdate,\n", ...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-5632
Bug: use the saved billing details in the recurring payments Currently when a payment method is the billing details will also get saved in the payment method table. But when a recurring payment is performed with the saved payment method, it is expected that the billing details to be passed in the current payment as...
diff --git a/crates/hyperswitch_domain_models/src/payment_address.rs b/crates/hyperswitch_domain_models/src/payment_address.rs index d4f2cf9f350..548dd0c5416 100644 --- a/crates/hyperswitch_domain_models/src/payment_address.rs +++ b/crates/hyperswitch_domain_models/src/payment_address.rs @@ -53,6 +53,7 @@ impl PaymentA...
2024-08-14T11:18:42Z
## 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 when a payment method is the billing details will als...
8fa51b7b1cdf4347dc5778859597aa9ed1691790
-> Create mca for cybersource -> Create a payment to save a card ``` { "amount": 100, "amount_to_capture": 100, "currency": "USD", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "customer_id": "cu_{{$timestamp}}", "email": "guest@exampl...
[ { "file_path": "crates/hyperswitch_domain_models/src/payment_address.rs", "lines": [ " /// Here the fields passed in payment_method_data_billing takes precedence\n", " /// Unify the billing details from `payment_method_data.[payment_method_data].billing details`.\n", " /// Here th...
[ { "file_path": "crates/router/src/core/payments/transformers.rs", "lines": [ " _key_store: &domain::MerchantKeyStore,\n", " address: payment_data.address.clone(),\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5627
Bug: feat(payments): show aggregate count of payment status Show count of aggregate payments status in the given time range: ![Image](https://github.com/user-attachments/assets/7510b765-03e7-4469-872d-f61f6748312c) This can be part of filter Api.
diff --git a/crates/api_models/src/events/payment.rs b/crates/api_models/src/events/payment.rs index 589dcd8d10b..941cbb33309 100644 --- a/crates/api_models/src/events/payment.rs +++ b/crates/api_models/src/events/payment.rs @@ -18,12 +18,13 @@ use crate::{ payments::{ ExtendedCardInfoResponse, PaymentIdT...
2024-08-21T09:00:45Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description ![image](https://github.com/user-attachments/assets/9fea2624-b844-4318-8595-d35908d1e993) - The endpoint...
cc5b06e72553c33c9d9ed5f9a944ceb5bb36f2c7
Request: ``` curl --location 'http://localhost:8080/payments/aggregate?start_time=2022-08-20T11%3A33%3A39.000Z' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer JWT' ``` Response: ``` { "status_with_count": { "requires_capture": 0, "requires_customer_action"...
[ { "file_path": "crates/api_models/src/events/payment.rs", "lines": [ " PaymentListResponse, PaymentListResponseV2, PaymentsAggregateResponse,\n", " PaymentsApproveRequest, PaymentsCancelRequest, PaymentsCaptureRequest,\n", " PaymentsCompleteAuthorizeRequest, PaymentsEx...
[ { "file_path": "crates/api_models/src/events/payment.rs", "lines": [ " PaymentListResponse, PaymentListResponseV2, PaymentsApproveRequest, PaymentsCancelRequest,\n", " PaymentsCaptureRequest, PaymentsCompleteAuthorizeRequest,\n", " PaymentsExternalAuthenticationRequest...
[ "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-5625
Bug: [BUG] Fix Deserialization error in Pm auth core ### Feature Description Currently, if we try to link accounts twice in pm auth flow, the `/exchange` call fails due to a deserialization error. This happens because of extra entries created in DB during mandate save pm flow. ### Possible Implementation Need to...
diff --git a/crates/router/src/core/pm_auth.rs b/crates/router/src/core/pm_auth.rs index 64c1918c5e5..47f843030ee 100644 --- a/crates/router/src/core/pm_auth.rs +++ b/crates/router/src/core/pm_auth.rs @@ -346,7 +346,9 @@ async fn store_bank_details_in_payment_methods( > = HashMap::new(); for pm in payment_m...
2024-08-13T11:30: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 --> Earlier, the mandate request was inserting another entry in pay...
67d580c0ebcfc070ad6ff5cab4079ca447541ee4
Can be tested via SDK 1. Test Pm auth flow (with ` "setup_future_usage": "off_session"` passed in `payment_create` and `customer_acceptance` passed in `payment_confirm`) 2. Retest the Pm auth flow
[ { "file_path": "crates/router/src/core/pm_auth.rs", "lines": [ " if pm.payment_method == Some(enums::PaymentMethod::BankDebit)\n", " && pm.payment_method_data.is_some()\n", " {\n" ] } ]
[ { "file_path": "crates/router/src/core/pm_auth.rs", "lines": [ " if pm.payment_method == Some(enums::PaymentMethod::BankDebit) {\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5622
Bug: fix(opensearch): Sort the global search results in descending order When searching using global search, the results are not sorted. It would be better if they are sorted in newest to oldest order.
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs index e74622a054a..f3dd5eea441 100644 --- a/crates/analytics/src/opensearch.rs +++ b/crates/analytics/src/opensearch.rs @@ -518,7 +518,19 @@ impl OpenSearchQueryBuilder { let mut final_query = Map::new(); ...
2024-08-14T07:37:17Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> When searching using global search, the results are not sorted....
b213db213e623a1eea3f6dbd66703df4a897d93f
- Hit the `/search` API ```bash curl --location 'http://localhost:8080/analytics/v1/search' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'Origin: http://localhost:9000' \ --header 'Referer: http...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " let mut sort_obj = Map::new();\n", " sort_obj.insert(\n", " \"@timestamp\".to_string(),\n", " json!({\n", " \"order\": \"...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " let payload = json!({ \"query\": Value::Object(final_query) });\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5649
Bug: [REFACTOR] Refactor Update and Retrieve Default Fallback behaviour in payments routing ### Feature Description Refactor Update and Retrieve Default Fallback usages in payments core for routing ### Possible Implementation Refactor Update and Retrieve Default Fallback usages in payments core for routing, and...
diff --git a/Cargo.lock b/Cargo.lock index cf7718d8875..0a0448cae47 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -454,6 +454,7 @@ dependencies = [ "nutype", "reqwest", "router_derive", + "rustc-hash", "serde", "serde_json", "strum 0.26.2", diff --git a/crates/api_models/Cargo.toml b/crates/api_models/Cargo.t...
2024-08-19T18:35:53Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR refactors the fallback routing behaviour in payments routing for v2. Update the function to acce...
6e7b38a622d1399260f9a144e07a58bc6a7a6655
For v2: - create a MA and add 2 MCAs, it will be added for default fallback in the order they were cretaed - make a payment , it should go through the mca that was added first based on default fallback
[ { "file_path": "Cargo.lock", "lines": [ " \"rustc-hash\",\n" ] }, { "file_path": "crates/api_models/Cargo.toml", "lines": [ "rustc-hash = \"1.1.0\"\n" ] }, { "file_path": "crates/api_models/src/customers.rs", "lines": [ "use rustc_hash::FxHashMap;\n" ] ...
[ { "file_path": "crates/api_models/src/customers.rs", "lines": [ "use euclid::dssa::graph::euclid_graph_prelude::FxHashMap;\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ "use euclid::dssa::graph::euclid_graph_prelude::FxHashMap;\n" ] }, { "file...
[ "toml", "lock", "rs" ]
14
juspay/hyperswitch
juspay__hyperswitch-5621
Bug: [BUG] payout operations are using payment connectors ### Bug Description In case payment connectors were added prior to adding the same payout connector (Eg - onboarding `Adyen` as `payment_processor` and then onboarding `Adyen` as `payout_processor`), the payout transactions are routed via payment transacti...
diff --git a/crates/router/src/core/payouts.rs b/crates/router/src/core/payouts.rs index 07b50d3a154..44a3983a96a 100644 --- a/crates/router/src/core/payouts.rs +++ b/crates/router/src/core/payouts.rs @@ -1106,7 +1106,7 @@ pub async fn create_recipient( // 1. Form router data let router_data = core_ut...
2024-08-14T06:57:00Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #5621 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR m...
b213db213e623a1eea3f6dbd66703df4a897d93f
<details> <summary>1. Create a merchant account</summary> curl --location 'https://sandbox.hyperswitch.io/accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data-raw '{ "merchant_id":...
[ { "file_path": "crates/router/src/core/payouts.rs", "lines": [ " connector_data,\n", " connector_data,\n", " connector_data,\n", " connector_data,\n", " connector_data,\n", " connector_data,\n", " connector_data,\...
[ { "file_path": "crates/router/src/core/payouts.rs", "lines": [ " &connector_data.connector_name,\n", " &connector_data.connector_name,\n", " &connector_data.connector_name,\n", " &connector_data.connector_name,\n", " &connector_data.connec...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5611
Bug: Add redis commands required for success rate based routing
diff --git a/crates/redis_interface/src/commands.rs b/crates/redis_interface/src/commands.rs index ccfeb3e5b12..9b76d8d9c81 100644 --- a/crates/redis_interface/src/commands.rs +++ b/crates/redis_interface/src/commands.rs @@ -15,7 +15,7 @@ use common_utils::{ }; use error_stack::{report, ResultExt}; use fred::{ - ...
2024-08-13T10:03:46Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR adds the required redis commands for success rate based...
e757605fdc287685c573d0c1c461cea556e5a5ce
As this PR only adds the new redis commands and doesn't involve any existing code changes, basic sanity tests should suffice
[ { "file_path": "crates/redis_interface/src/commands.rs", "lines": [ " interfaces::{HashesInterface, KeysInterface, ListInterface, SetsInterface, StreamsInterface},\n", " #[instrument(level = \"DEBUG\", skip(self))]\n", " pub async fn increment_field_in_hash(\n", " &se...
[ { "file_path": "crates/redis_interface/src/commands.rs", "lines": [ " interfaces::{HashesInterface, KeysInterface, SetsInterface, StreamsInterface},\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5626
Bug: feat(disputes): support filters in disputes list Support filters in disputes list - Get list of filters to be applied on disputes list - It can be multi-select for options like status and connector - `get` api to be used to pass filters which to be applied on list API - Implement parsing logic for get api, (to ...
diff --git a/crates/api_models/src/disputes.rs b/crates/api_models/src/disputes.rs index a1340b5aa5a..4ddb50af0f2 100644 --- a/crates/api_models/src/disputes.rs +++ b/crates/api_models/src/disputes.rs @@ -1,11 +1,13 @@ use std::collections::HashMap; +use common_utils::types::TimeRange; use masking::{Deserialize, Se...
2024-08-15T17:30:42Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Add filters for disputes list ### Additional Changes - [ ] This PR modifies the API contract - [ ]...
a94cf25bb6eb40fafc5327aceffac8292b47b001
The following endpoints will give profile or merchant level filters: The start_time and end_time are in primitive data time format: `start_time`=`2024-07-03T18:00:00.000Z` `end_time`=`2024-10-03T18:00:00.000Z` ``` curl --location --request GET 'http://localhost:8080/disputes/filter' \ --header 'Content-Type: appl...
[ { "file_path": "crates/api_models/src/disputes.rs", "lines": [ "use common_utils::types::TimeRange;\n", "use serde::de::Error;\n", "use crate::{admin::MerchantConnectorInfo, enums, files};\n", "#[derive(Clone, Debug, Deserialize, Serialize, ToSchema)]\n", "pub struct DisputeLis...
[ { "file_path": "crates/api_models/src/disputes.rs", "lines": [ "use crate::files;\n", "#[derive(Clone, Debug, Deserialize, ToSchema, Serialize)]\n", "pub struct DisputeListConstraints {\n", " /// limit on the number of objects to return\n", " pub limit: Option<i64>,\n", ...
[ "rs" ]
14
juspay/hyperswitch
juspay__hyperswitch-5603
Bug: fix(opensearch): Add date-suffixed indexes for opensearch locally Currently the events get pushed to indexes of the form `{{ .topic }}` In addition we can push the events to date-suffixed indexes of the form - `vector-{{ .topic }}-%Y-%m-%d` for events pushed through vector - `fluentd-{{ .topic }}-%Y-%m-%d` for ...
diff --git a/config/vector.yaml b/config/vector.yaml index 17049677fe5..54ff25cab5a 100644 --- a/config/vector.yaml +++ b/config/vector.yaml @@ -71,7 +71,7 @@ transforms: window_secs: 60 sinks: - opensearch_events: + opensearch_events_1: type: elasticsearch inputs: - events @@ -93,9 +93,32 @@...
2024-08-14T13:57:50Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Currently the events get pushed to indexes of the form `{{ .top...
72b61310523403113b469e6e6a9a89806849bb1e
Made payments, and ensured the creation of separate indexes on opensearch from both fluentd and vector <img width="1303" alt="Screenshot 2024-08-14 at 7 23 14 PM" src="https://github.com/user-attachments/assets/9269f65c-c95c-4388-9196-7d8893dcb098"> <img width="1313" alt="Screenshot 2024-08-14 at 7 23 23 PM" src="h...
[ { "file_path": "config/vector.yaml", "lines": [ " opensearch_events_1:\n", " index: \"vector-{{ .topic }}\"\n", "\n", " opensearch_events_2:\n", " type: elasticsearch\n", " inputs:\n", " - events\n", " endpoints:\n", " - \"https...
[ { "file_path": "config/vector.yaml", "lines": [ " opensearch_events:\n", " # Add a date prefixed index for better grouping\n", " # index: \"vector-{{ .topic }}-%Y-%m-%d\"\n", " index: \"{{ .topic }}\"\n", " # Add a date prefixed index for better grouping\n"...
[ "conf", "yaml", "md" ]
3
juspay/hyperswitch
juspay__hyperswitch-5605
Bug: [REFACTOR] Refactor update and retrieve of fallback api-v2 ### Feature Description Refactor update and retrieve of fallback api-v2 ### Possible Implementation Refactor update and retrieve of fallback api-v2 ### Have you spent some time checking if this feature request has been raised before? - [X] I check...
diff --git a/crates/diesel_models/src/business_profile.rs b/crates/diesel_models/src/business_profile.rs index bb4aa21cda6..cf873d4b61f 100644 --- a/crates/diesel_models/src/business_profile.rs +++ b/crates/diesel_models/src/business_profile.rs @@ -251,7 +251,7 @@ pub struct BusinessProfile { // pub order_fulfillm...
2024-08-12T08:42:20Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Refactor fallback routing apis for v2. Refactor the fallback apis for routing to retrieve and update the ...
ed13ecac04f82b5c69b11636c1e355e7e17c60fd
- To retrieve the default fallback config ``` curl --location 'http://localhost:8080/v2/profile/pro_VirB3AxB3qItFTnLsuA2/fallback_routing' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiYWQyMTRiZjUtMjgyYS00OWRiLWIzMjEtZGM3ZTExODRlNTliIiwibWVyY2hhbnRfaWQiOiJzZW5kZXJfbmV0Iiwi...
[ { "file_path": "crates/diesel_models/src/business_profile.rs", "lines": [ " pub default_fallback_routing: Option<pii::SecretSerdeValue>,\n", " pub default_fallback_routing: Option<pii::SecretSerdeValue>,\n", " pub default_fallback_routing: Option<pii::SecretSerdeValue>,\n", ...
[ { "file_path": "crates/diesel_models/src/business_profile.rs", "lines": [ " // pub default_fallback_routing: Option<pii::SecretSerdeValue>,\n", " // pub default_fallback_routing: Option<pii::SecretSerdeValue>,\n", " // pub default_fallback_routing: Option<pii::SecretSerdeValue>,\n...
[ "sql", "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-5595
Bug: return missing required filed error when a domain is missing during apple pay session call Reference issue for the feature https://github.com/juspay/hyperswitch/issues/5354 As described in the above issue the apple pay domain needs to be fetched dynamically by the sdk and to be sent in the session request he...
diff --git a/crates/router/src/core/payments/flows/session_flow.rs b/crates/router/src/core/payments/flows/session_flow.rs index cdd8452fdb3..4a1d57cda34 100644 --- a/crates/router/src/core/payments/flows/session_flow.rs +++ b/crates/router/src/core/payments/flows/session_flow.rs @@ -411,10 +411,8 @@ async fn create_ap...
2024-08-12T13:42:44Z
## 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 issue for the feature https://github.com/juspay/hyp...
c8943eb289664093f2a4d515bfacd804f86cd20a
-> Create mca with apple pay enabled and metadata not containing apple pay domain -> Create a payment with confirm false -> Make a session call - session call without passing domain in header ``` curl --location 'http://localhost:8080/payments/session_tokens' \ --header 'Content-Type: application/json' \ --h...
[ { "file_path": "crates/router/src/core/payments/flows/session_flow.rs", "lines": [ " .get_required_value(\"apple pay domain\")\n", " .attach_printable(\"Failed to get domain for apple pay session call\")?;\n", " let initiative_contex...
[ { "file_path": "crates/router/src/core/payments/flows/session_flow.rs", "lines": [ " .ok_or(errors::ApiErrorResponse::InternalServerError)\n", " .attach_printable(\n", " \"Failed to get initiative_context ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5629
Bug: [FEATURE] [COINBASE] Move connector code to crate hyperswitch_connectors ### Feature Description Connector code for `coinbase` needs to be moved from crate `router` to new crate `hyperswitch_connectors` ### Possible Implementation Connector code for `coinbase` needs to be moved from crate `router` to n...
diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rs index 48c50936d60..f057b7d4a33 100644 --- a/crates/hyperswitch_connectors/src/connectors.rs +++ b/crates/hyperswitch_connectors/src/connectors.rs @@ -1,5 +1,8 @@ pub mod bambora; pub mod bitpay; +pub mod cas...
2024-09-20T18:00:15Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> ### Additional Changes - [ ] This PR modifies the API co...
d9270ace8ddde16eca8c45ceb79af3e4d815d7cd
Cryptopay: Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_23PxPwqBujt8VbpD0hwiNIqNHY5HNa82ZKPJEfN2Ex2y9CE2RcPNiNCeBMIMBifB' \ --data-raw '{ "amount": 300, "currency": "USD", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ "pub mod cashtocode;\n", "pub mod coinbase;\n", "pub mod cryptopay;\n", " bambora::Bambora, bitpay::Bitpay, cashtocode::Cashtocode, coinbase::Coinbase,\n", " cryptopay::Cryptopay, deutschebank::D...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " bambora::Bambora, bitpay::Bitpay, deutschebank::Deutschebank, fiserv::Fiserv,\n", " fiservemea::Fiservemea, fiuu::Fiuu, globepay::Globepay, helcim::Helcim, mollie::Mollie,\n", " nexixpay::Nexixpay, nova...
[ "rs" ]
15
juspay/hyperswitch
juspay__hyperswitch-5593
Bug: [FEATURE] handle redirections for iframed content served by HyperSwitch ### Feature Description HyperSwitch's SDK / links is meant to work within top context at the client side. This behaviour changes when we introduce secure links - which are supposed to be iframed within merchant's top context. Any functiona...
diff --git a/crates/router/src/core/generic_link/payout_link/status/script.js b/crates/router/src/core/generic_link/payout_link/status/script.js index 42b57903593..ffb554a6829 100644 --- a/crates/router/src/core/generic_link/payout_link/status/script.js +++ b/crates/router/src/core/generic_link/payout_link/status/scrip...
2024-08-12T08:33:34Z
(cherry picked from commit db6df219a9cd12d619268f388b26c88692d858f8) ## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description ### Additional Changes - [...
ed13ecac04f82b5c69b11636c1e355e7e17c60fd
<details> <summary>[Payments] open links (no auth redirections)</summary> https://github.com/user-attachments/assets/ccca6292-a89c-4e4f-9fc6-8cbb41280337 </details> <details> <summary>[Payments] open links (with auth redirections)</summary> https://github.com/user-attachments/assets/0ebe3c86-c6eb-...
[ { "file_path": "crates/router/src/core/generic_link/payout_link/status/script.js", "lines": [ " try {\n", " window.top.location.href = returnUrl.toString();\n", " } catch (error) {\n", " console.error(\n", " \"CRITICAL ERROR\...
[ { "file_path": "crates/router/src/core/generic_link/payout_link/status/script.js", "lines": [ " window.location.href = returnUrl.toString();\n" ] }, { "file_path": "crates/router/src/core/payment_link/payment_link_initiate/payment_link.html", "lines": [ " {{logging_...
[ "html", "js" ]
4
juspay/hyperswitch
juspay__hyperswitch-5585
Bug: [FEATURE] List Pm Based on Profile ### Feature Description List Pm Based on Profile for off_session payments ### Possible Implementation List Pm Based on Profile for off_session payments ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find ...
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index fa01437e5ed..e5c8ef57b29 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -3892,6 +3892,7 @@ pub async fn list_customer_payment_method...
2024-08-09T11:38:48Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description List cards on the basis of profiles, if it has a mandate details.The precedence order for off_session pay...
f81416e4df6fa430fd7f6eb910b55464cd72f3f0
- Create a MA and 2 Profiles - Create a MCA for Profile 1 - Create a `off_session` payment ``` Create curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_jsssWAg0XyxGK0ycPunkFjlItYNs30X1IVOr1MIF7lwrDQgBBk7np...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " profile_id.clone(),\n", " if requires_cvv || mca_enabled {\n", " customer_pms.push(pma.to_owned());\n", " }\n", " let (is_connector_agnostic_mit_enabled, requir...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " customer_pms.push(pma.to_owned());\n", " let (is_connector_agnostic_mit_enabled, requires_cvv, off_session_payment_flag) = payment_info\n", " .map(|pi| {\n", " (\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5574
Bug: Add profile_id in kafka and clickhouse Add profile_id in kafka topic `payment-intent` and clickhouse table payment-intent.
diff --git a/crates/analytics/docs/clickhouse/scripts/payment_intents.sql b/crates/analytics/docs/clickhouse/scripts/payment_intents.sql index 6889a1ff79d..09101e9aa2d 100644 --- a/crates/analytics/docs/clickhouse/scripts/payment_intents.sql +++ b/crates/analytics/docs/clickhouse/scripts/payment_intents.sql @@ -19,6 +1...
2024-08-08T12:12:20Z
## 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 --> ### Additional Changes - [ ] This PR modifies the API co...
e56ad0d6884c6505d73df048e73d6210db3aae46
By making a payment can see the profile_id is added in kafka topic `hyperswitch-payment-intent-events` and same in clickhouse table. Can also test in loki topic and clickhouse-sbx <img width="1728" alt="Screenshot 2024-08-08 at 5 15 37 PM" src="https://github.com/user-attachments/assets/88b13327-4a16-4cff-9782-4fa76...
[ { "file_path": "crates/analytics/docs/clickhouse/scripts/payment_intents.sql", "lines": [ " `profile_id` Nullable(String),\n", " `profile_id` Nullable(String),\n", " `profile_id` Nullable(String),\n", " profile_id,\n" ] }, { "file_path": "crates/router/src/ser...
[]
[ "sql", "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-5590
Bug: Feat(connector): [Paybox] Implement Paybox Payment Flows ### Feature Description Payone is payment connector Documentation link: http://www1.paybox.com/wp-content/uploads/2017/08/ManuelIntegrationVerifone_PayboxDirect_V8.1_EN.pdf Website url: [Paybox.com](http://paybox.com/) ### Have you spent some time...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 8974f940bac..0498c52cd36 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3577,6 +3577,7 @@ "noon", "nuvei", "opennode", + "paybox", ...
2024-08-08T21:55:10Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] New feature ## Description <!-- Describe your changes in detail --> Implemented Flows Authorize,Capture,PSync,Refund and RSync for card Payments. For Paybox after the Payment we have to to do PSync as Force to get the status of Payment and same...
d43648b9f5f87ce2e46e9e2dc49327c8a6af0f7d
Payment: ``` curl --location 'http://127.0.0.1:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_IUCGqoaqFnbYXDFcyRerYSYqx44KRHsJNsCHetqjQ0kqjsijMmBzZKsNOfcjDsUa' \ --data-raw '{ "amount": 1000, "currency": "EUR", "confirm": ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"paybox\",\n", " \"paybox\",\n" ] }, { "file_path": "config/deployments/production.toml", "lines": [ "paybox.base_url = \"https://ppps.paybox.com/PPPS.php\"\n" ] }, { "file_path...
[ { "file_path": "config/deployments/production.toml", "lines": [ "paybox.base_url = \"https://preprod-ppps.paybox.com/PPPS.php\"\n" ] }, { "file_path": "crates/api_models/src/enums.rs", "lines": [ " // Paybox, added as template code for future usage\n", "\t\t\t// | Self::...
[ "toml", "json", "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-5562
Bug: [FIX] fix cache invalidation for multitenancy
diff --git a/crates/redis_interface/src/types.rs b/crates/redis_interface/src/types.rs index 6469df50778..f40b81af68e 100644 --- a/crates/redis_interface/src/types.rs +++ b/crates/redis_interface/src/types.rs @@ -27,6 +27,12 @@ impl RedisValue { pub fn into_inner(self) -> FredRedisValue { self.inner ...
2024-08-07T16:47:35Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix ## Description <!-- Describe your changes in detail --> Added a tenant field in the pubsub redact message. To give the information for the subscriber to delete the message for the appropriate tenant ## Motivation and Context <!-- Why...
732472204d835ef0ceb60bfec89f872c7098621e
**This cannot be tested on sandbox without enabling multi tenancy or adding `redis_key_prefix` for the tenant** 1. Enable multitenancy by adding another tenant ```bash [multitenancy] enabled = true global_tenant = { schema = "public", redis_key_prefix = "", clickhouse_database = "default"} [multitenancy.ten...
[ { "file_path": "crates/redis_interface/src/types.rs", "lines": [ "\n", " pub fn from_bytes(val: Vec<u8>) -> Self {\n", " Self {\n", " inner: FredRedisValue::Bytes(val.into()),\n", " }\n", " }\n", "impl From<RedisValue> for FredRedisVal...
[ { "file_path": "crates/storage_impl/src/redis/cache.rs", "lines": [ " ext_traits::AsyncExt,\n", "/// Prefix for config cache key\n", "const CONFIG_CACHE_PREFIX: &str = \"config\";\n", "\n", "/// Prefix for accounts cache key\n", "const ACCOUNTS_CACHE_PREFIX: &str = \"a...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-5569
Bug: [REFACTOR] Refactor connector template generation ### Feature Description Connector template code needs to be refactored so that the new connectors are added directly into the crate `hyperswitch_connectors` ### Possible Implementation Connector template code needs to be refactored so that the new connectors ...
diff --git a/connector-template/mod.rs b/connector-template/mod.rs index ce189a33fca..ae450aecf20 100644 --- a/connector-template/mod.rs +++ b/connector-template/mod.rs @@ -1,26 +1,48 @@ pub mod transformers; use error_stack::{report, ResultExt}; -use masking::ExposeInterface; +use masking::{ExposeInterface, Mask};...
2024-08-08T09:13:09Z
## 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 --> Connector template code ise refactored so that the new connecto...
baaa73cff98a2377e854b992d5ec9e84f49a4a92
Only connector template generation script modified, hence no testing required. The template generation has been tested on local.
[ { "file_path": "connector-template/mod.rs", "lines": [ "use masking::{ExposeInterface, Mask};\n", " errors::CustomResult,\n", " ext_traits::BytesExt,\n", " types::{AmountConvertor, StringMinorUnit, StringMinorUnitForConnector},\n", " request::{Method, Request, Reque...
[ { "file_path": "connector-template/mod.rs", "lines": [ "use masking::ExposeInterface;\n", " types::{AmountConvertor, StringMinorUnit, StringMinorUnitForConnector}\n", "use super::utils::{self as connector_utils};\n", "use crate::{\n", " events::connector_api_logs::Connect...
[ "rs", "sh" ]
3
juspay/hyperswitch
juspay__hyperswitch-5582
Bug: [FEATURE] [FISERVEMEA] Add template code ### Feature Description Template code needs to be added for new connector Fiserv-EMEA https://docs.fiserv.dev/ ### Possible Implementation Template code needs to be added for new connector Fiserv-EMEA https://docs.fiserv.dev/ ### Have you spent some time checking i...
diff --git a/config/config.example.toml b/config/config.example.toml index b9ac37705a3..cd315a542de 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -205,6 +205,7 @@ dlocal.base_url = "https://sandbox.dlocal.com/" dummyconnector.base_url = "http://localhost:8080/dummy-connector" ebanx.base_...
2024-08-09T11:09: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 --> Template code added for new connector Fiserv-EMEA https://docs...
6a5b49397adc402f7ce50543c817df3f11ca46ea
Only template code added hence no testing required.
[ { "file_path": "config/config.example.toml", "lines": [ "fiservemea.base_url = \"https://prod.emea.api.fiservapps.com/sandbox/ipp/payments-gateway/v2\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "fiservemea.base_url = \"https://prod.emea.api.fis...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ "pub use self::{bambora::Bambora, bitpay::Bitpay, fiserv::Fiserv, helcim::Helcim, stax::Stax};\n" ] }, { "file_path": "crates/router/src/connector.rs", "lines": [ " bambora, bambora::Bambora, bitpay, ...
[ "sh", "toml", "rs" ]
25
juspay/hyperswitch
juspay__hyperswitch-5554
Bug: fix(opensearch): add "@timestamp" field for opensearch locally Add the `@timestamp` field to OpenSearch locally while creating index-patterns, as it is present in Elasticsearch and is causing mismatched results while using the ` /search ` api on SBX
diff --git a/config/vector.yaml b/config/vector.yaml index 1511e09a05c..17049677fe5 100644 --- a/config/vector.yaml +++ b/config/vector.yaml @@ -60,6 +60,7 @@ transforms: - plus_1_events source: |- .timestamp = from_unix_timestamp!(.created_at, unit: "seconds") + ."@timestamp" = from_unix_timest...
2024-08-07T11:57: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 --> Added the `@timestamp` field to OpenSearch locally while creati...
7e545e36ebdcfe46a1fcb29687af542e34d00e93
- Hit the `/search` API ```bash curl --location 'http://localhost:8080/analytics/v1/search' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connection: keep-alive' \ --header 'Content-Type: application/json' \ --header 'Origin: http://localhost:9000' \ --header 'Referer: http...
[ { "file_path": "config/vector.yaml", "lines": [ " .\"@timestamp\" = from_unix_timestamp(.created_at, unit: \"seconds\") ?? now()\n" ] }, { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " \"@timestamp\": range\n" ] } ]
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " \"timestamp\": range\n" ] } ]
[ "yaml", "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5587
Bug: [FEATURE] Adapt routing id and payout algorithm id in routing core ### Feature Description In this PR we adapt the usage of routing_algorithm_id as well as payout_routing_algorithm_id in routing and payments core for v2. ### Possible Implementation All the places that were being fetched as `serve_json::value...
diff --git a/crates/api_models/src/events/routing.rs b/crates/api_models/src/events/routing.rs index 4c2c5ca2c0b..9cfcafc8733 100644 --- a/crates/api_models/src/events/routing.rs +++ b/crates/api_models/src/events/routing.rs @@ -3,7 +3,8 @@ use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::routing:...
2024-08-06T08:17:36Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description In this PR we adapt the usage of routing_algorithm_id as well as payout_routing_algorithm_id in routing a...
ff430c983c56a2c4ecec13c78ccee020abd7a5d8
- List all the routing rules for under a profile ``` curl --location 'http://localhost:8080/v2/profile/pro_VirB3AxB3qItFTnLsuA2/routing_algorithm' \ --header 'api-key: dev_jsssWAg0XyxGK0ycPunkFjlItYNs30X1IVOr1MIF7lwrDQgBBk7npwdkZB4t7EQd' ```
[ { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingLinkWrapper, RoutingPayloadWrapper, RoutingRetrieveLinkQuery,\n", " RoutingRetrieveLinkQueryWrapper, RoutingRetrieveQuery,\n", "impl ApiEventMetric for RoutingRetrieveLinkQueryWrapper {\n", " fn ge...
[ { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingLinkWrapper, RoutingPayloadWrapper, RoutingRetrieveLinkQuery, RoutingRetrieveQuery,\n" ] }, { "file_path": "crates/api_models/src/routing.rs", "lines": [ "\n", " pub profile_id: Option<Strin...
[ "toml", "rs", "sql" ]
20
juspay/hyperswitch
juspay__hyperswitch-5548
Bug: [FEATURE] Add separate function for Plaid in Connector Config Need to add separate function for plaid in connector config for wasm
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rs index ed36dbca497..6cc32fe9553 100644 --- a/crates/connector_configs/src/connector.rs +++ b/crates/connector_configs/src/connector.rs @@ -3,7 +3,7 @@ use std::collections::HashMap; #[cfg(feature = "payouts")] use api_mo...
2024-08-06T16:02:43Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Refer #5548 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifi...
76b14601c843e328d168559840d8e22f78e59d3f
[ { "file_path": "crates/connector_configs/src/connector.rs", "lines": [ " enums::{AuthenticationConnectors, Connector, PmAuthConnectors},\n", " pub fn get_pm_authentication_processor_config(\n", " connector: PmAuthConnectors,\n", " ) -> Result<Option<ConnectorTomlConfi...
[ { "file_path": "crates/connector_configs/src/connector.rs", "lines": [ " enums::{AuthenticationConnectors, Connector},\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5558
Bug: [FEATURE] return total_count in payouts filtered list API response ### Feature Description Payouts filter API should also send a `total_count` which represents the total number of payout entries available for a given set of constraints. This API supports pagination and returns only 20 entries at a given time, ...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 8974f940bac..4706bc8e0dc 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -14252,7 +14252,14 @@ "type": "array", "items": { "$ref": "#/components...
2024-08-06T09:59:34Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR refactors the payouts filtered list's API response to include `total_count` which specifies the t...
ed13ecac04f82b5c69b11636c1e355e7e17c60fd
1. Create payouts (create multiple for listing based on different constraints) <details> <summary>2. Filter payouts</summary> curl --location 'http://localhost:8080/payouts/list' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_cp78v8fT2C03KkEClI9aBMrqKF6N0SBLyUjasXtUQMbLT...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " },\n", " \"description\": \"The list of payouts response objects\"\n", " },\n", " \"total_count\": {\n", " \"type\": \"integer\",\n", " \"format...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " }\n" ] }, { "file_path": "crates/api_models/src/payouts.rs", "lines": [ " // The list of payouts response objects\n" ] }, { "file_path": "crates/diesel_models/src/query/payout_attempt.rs",...
[ "json", "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-5559
Bug: [FEATURE] add localisation support for any HTML template served through HyperSwitch ### Feature Description Specifically for payout links The terminal status pages for payout links are served from backend with basic HTML / JS / CSS templates. The language used in these resources is English which is hardcode...
diff --git a/.typos.toml b/.typos.toml index 82fb84ecf38..2f68e039cde 100644 --- a/.typos.toml +++ b/.typos.toml @@ -62,5 +62,20 @@ extend-exclude = [ "openapi/open_api_spec.yaml", # no longer updated "crates/router/src/utils/user/blocker_emails.txt", # this file contains various email domains "CHANGELOG...
2024-08-07T09:24:07Z
## 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 #5559 This uses a forked version of `rust-i18n` which handles string index slicing orig...
942e63d9cd607913d4ef7d5a01493a1615a783c1
<details> <summary> 1. Create a payout link (without passing any locale in create request) </summary> ```curl curl --location 'http://localhost:8080/payouts/create' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_cp78v8fT2C03KkEClI9aBMrqKF6N0SBLyUjasXtUQMbLTasfR2LJwjg0LlNHY060' \ --data '...
[ { "file_path": ".typos.toml", "lines": [ " \"crates/router/locales/ar.yml\", # locales\n", " \"crates/router/locales/ca.yml\", # locales\n", " \"crates/router/locales/de.yml\", # locales\n", " \"crates/router/locales/es.yml\", # locales\n", " \"crates/router/loca...
[ { "file_path": "Cargo.lock", "lines": [ "version = \"0.4.21\"\n", "checksum = \"90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c\"\n", "version = \"2.7.2\"\n", "checksum = \"6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d\"\n", " \"siphasher\",\...
[ "yml", "toml", "html", "rs", "lock", "js" ]
40
juspay/hyperswitch
juspay__hyperswitch-5565
Bug: Implement API models for Payment methods v2 Need to implement API models for v2 of Payment Methods
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 757beea4b65..0505dd498e3 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -10283,17 +10283,6 @@ } } }, - { - "type": "object", ...
2024-08-07T19:00:31Z
## 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 --> API models for payment methods v2 - Implemented types for API ...
36cc0ccbe69dc8f43c4cdd6daaea5e07beea8514
Logic can't be tested as of now as this PR is only concerned with API model change
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ "#[cfg(all(feature = \"v2\", feature = \"payment_methods_v2\"))]\n", "use std::str::FromStr;\n", "#[cfg(all(\n", " any(feature = \"v1\", feature = \"v2\"),\n", " not(feature = \"payment_methods_v2\")\n"...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " {\n", " \"type\": \"object\",\n", " \"required\": [\n", " \"paypal\"\n", " ],\n", " \"properties\": {\n", " \"paypal\": {...
[ "sh", "json", "rs" ]
18
juspay/hyperswitch
juspay__hyperswitch-5543
Bug: feat(user_roles): Start inserting V2 user_roles in DB Currently we only have V1 user_roles data. These roles are at merchant level. To start supporting profile level dashboard, we should start inserting V2 user_roles which will have profile context as well.
diff --git a/crates/diesel_models/src/query/user_role.rs b/crates/diesel_models/src/query/user_role.rs index 85f866f2fc2..fde146408a9 100644 --- a/crates/diesel_models/src/query/user_role.rs +++ b/crates/diesel_models/src/query/user_role.rs @@ -5,6 +5,7 @@ use diesel::{ BoolExpressionMethods, ExpressionMethods, Qu...
2024-08-13T09:41:59Z
## 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 --> - From this PR, we will start inserting V2 user_roles. ### A...
c85b4a3a273ea211084ed26b1eb77f0731ac35ca
All the following APIs will insert both V1 and V2 roles in DB. ```curl curl --location 'https://integ-api.hyperswitch.io/user/signup' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "new email", "password": "password" }' ``` ```curl curl --location 'https://integ-api.hyperswitch...
[ { "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", " ...
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ "use std::collections::{HashMap, HashSet};\n", " user_role::UserRoleNew,\n", " .insert_user_role_in_db(\n", " .insert_user_role_in_db(\n", " .insert_user_role_in_db(\n", " .inse...
[ "sql", "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-5526
Bug: [BUG] Fix status mapping for Plaid ### Feature Description The current status mapping for Plaid is incorrect. We need to fix the few of the status in the status mapping from Plaid status to Attempt status ### Possible Implementation Will fix accordingly ### Have you spent some time checking if this featur...
diff --git a/crates/router/src/connector/plaid/transformers.rs b/crates/router/src/connector/plaid/transformers.rs index 545ea271c43..cf9c91afd0c 100644 --- a/crates/router/src/connector/plaid/transformers.rs +++ b/crates/router/src/connector/plaid/transformers.rs @@ -233,16 +233,16 @@ impl From<PlaidPaymentStatus> for...
2024-08-05T11:58:05Z
## 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 was a need to fix the status mapping for Plaid as the pre...
a3e01bb4ae5893f639f3846ccb73adcca6b25ee0
Payment sync - ``` curl --location --request GET 'https://sandbox.hyperswitch.io/payments/pay_IKnoLdEMCFdurH4Ps1Zl?force_sync=true' \ --header 'Accept: application/json' \ --header 'api-key: some key' ``` During payments sync, we used to get `status` as `requires_capture` for Open banking PIS flow, which is wr...
[ { "file_path": "crates/router/src/connector/plaid/transformers.rs", "lines": [ " PlaidPaymentStatus::PaymentStatusBlocked\n", " | PlaidPaymentStatus::PaymentStatusInsufficientFunds\n", " | PlaidPaymentStatus::PaymentStatusRejected => Self::AuthorizationFail...
[ { "file_path": "crates/router/src/connector/plaid/transformers.rs", "lines": [ " PlaidPaymentStatus::PaymentStatusBlocked => Self::AuthorizationFailed,\n", " PlaidPaymentStatus::PaymentStatusExecuted => Self::Authorized,\n", " PlaidPaymentStatus::PaymentSta...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5537
Bug: feat(users): Role info api with parent tags
diff --git a/crates/api_models/src/user_role.rs b/crates/api_models/src/user_role.rs index 02e40e2fe1a..5319c81385a 100644 --- a/crates/api_models/src/user_role.rs +++ b/crates/api_models/src/user_role.rs @@ -38,6 +38,19 @@ pub enum Permission { GenerateReport, } +#[derive(Clone, Debug, serde::Serialize, Partia...
2024-08-06T09:55:25Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> The permission_info API previously returned permission groups, ...
72b61310523403113b469e6e6a9a89806849bb1e
Request : ``` curl --location 'http://localhost:8080/user/module/list' \ --header 'Authorization: Bearer token ' ``` Response : ``` [ { "name": "Users", "description": "Manage and invite Users to the Team", "groups": [ "users_view", "users_manage" ...
[ { "file_path": "crates/api_models/src/user_role.rs", "lines": [ "#[derive(Clone, Debug, serde::Serialize, PartialEq, Eq, Hash)]\n", "pub enum ParentGroup {\n", " Operations,\n", " Connectors,\n", " Workflows,\n", " Analytics,\n", " Users,\n", " ...
[ { "file_path": "crates/router/src/core/user_role.rs", "lines": [ "\n" ] }, { "file_path": "crates/router/src/services/authorization/info.rs", "lines": [ "use api_models::user_role::{GroupInfo, PermissionInfo};\n" ] } ]
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-5521
Bug: [REFACTOR] Refactor deactivating and retrieve apis for routing v2 ### Feature Description Refactor deactivating and retrieve apis for routing v2 ### Possible Implementation Refactor deactivating and retrieve apis for routing v2 ### Have you spent some time checking if this feature request has been raised be...
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index 265d0451117..aca7bfaebe3 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -30,7 +30,16 @@ impl ConnectorSelection { } } } +#[cfg(all(feature = "v2", feature = "routing_v2"))] +#[d...
2024-07-30T11:24:12Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Refactor api v2 routes for deactivating and retrieving the routing config ### Additional Changes ...
a3ad0d92d71f654b3843bff550322f665d26223f
- To deactivate the routing config ``` curl --location --request PATCH 'http://localhost:8080/v2/profiles/pro_VirB3AxB3qItFTnLsuA2/deactivate_routing_algorithm' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_CMjrHy1A62kEwdzCDoLWRBta6xBZalgupmamFfdKfJdMjklfCil5S1wqAZ0F4Jw5' \ --data ' ' `...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ "#[cfg(all(feature = \"v2\", feature = \"routing_v2\"))]\n", "#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]\n", "pub struct RoutingConfigRequest {\n", " pub name: String,\n", " pub des...
[ { "file_path": "crates/router/src/core/routing.rs", "lines": [ " routing::{\n", " self as routing_types, RoutingAlgorithmId, RoutingRetrieveLinkQuery, RoutingRetrieveQuery,\n", " },\n", "#[cfg(all(feature = \"v2\", feature = \"routing_v2\"))]\n", "use diesel_models...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5504
Bug: [TRACKER] This issue tracks all the issues related to payment links ### Bug Description 1. open payment links are listing saved payment methods ### Expected Behavior 1. open payment links should not list saved payment methods ### Have you spent some time checking if this bug has been raised before...
diff --git a/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js b/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js index 6269b3546af..71f0875f42e 100644 --- a/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js +++ b/cra...
2024-08-01T07:14:07Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds an argument to be sent to the SDK for open payment links. This field controls the listing of...
93f557bacb9bf8e77e3b7b1b0521f0566793305b
<details> <summary>1. Create non 3DS open payment link with an existing customer</summary> curl --location 'https://sandbox.hyperswitch.io/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: API_KEY' \ --data-raw '{ "customer_id": "cus_05845u0qSuOE...
[ { "file_path": "crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js", "lines": [ " displaySavedPaymentMethods: false,\n" ] } ]
[]
[ "js" ]
1
juspay/hyperswitch
juspay__hyperswitch-5540
Bug: feat: support profile level delete in V1 - V2 Add support to delete user role - Support profile level delete along with merchant level delete. - In v1v2 version, delete from both V1 and V2
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index 015bf2d6c68..b81fb6e04e8 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -3085,6 +3085,8 @@ pub enum ApiVersion { Debug, Eq, PartialEq, + Ord, + PartialOrd, serde::Des...
2024-08-06T11:03:04Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Add support to delete profile level users - Delete is backward compatible - Delete to support both V1...
0ab0aa1a94fe98719d51ff89d27935a30cb33721
Use the curl to delete user role ``` curl --location --request DELETE 'http://localhost:8080/user/user/delete' \ --header 'Authorization: Bearer JWT' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "email_to_delete" }' ```
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " Ord,\n", " PartialOrd,\n", " Internal = 3,\n", " Organization = 2,\n", " Merchant = 1,\n", " Profile = 0,\n" ] }, { "file_path": "crates/diesel_models/src/query/user_role.rs", ...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " Internal,\n", " Organization,\n", " Merchant,\n", " Profile,\n" ] }, { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " pub async fn delete_by_user_id_merchant...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-5506
Bug: Docs: Adding redirect URL details Documentation didn't have any details about the Redirect URL.
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index a466288b416..09fede09e5d 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -2978,7 +2978,6 @@ where | PaymentMethodDataResponse::MandatePayment {} | PaymentM...
2024-08-01T10:24:49Z
## 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...
c036fd7f41a21eb481859671db672b0bcebdca97
[]
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " | PaymentMethodDataResponse::Paypal {}\n", " Paypal {},\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5495
Bug: [BUG] Open payment links does not redirect to status page ### Bug Description Open payment links does not redirect to status page after payment has completed. ### Expected Behavior Once payment request is submitted for non 3DS txns, payment link should redirect to the status page. ### Actual Behavio...
diff --git a/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js b/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js index 4d14af1577c..6269b3546af 100644 --- a/crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js +++ b/cra...
2024-07-31T14:33:51Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in https://github.com/juspay/hyperswitch/issues/5495 ### Additional Changes - [ ] This ...
540ef071cb238a56d52d06687226aab7fd0dfe68
<details> <summary>1. Create non 3DS open payment link</summary> curl --location 'https://sandbox.hyperswitch.io/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: API_KEY' \ --data-raw '{ "customer_id": "cus_05845u0qSuOENDnHLqTl", "amount": ...
[ { "file_path": "crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js", "lines": [ "}\n", "/**\n", " * Use - redirect to /payment_link/status\n", " */\n", "function redirectToStatus() {\n", " var arr = window.location.pathname.split(\"/\");\...
[ { "file_path": "crates/router/src/core/payment_link/payment_link_initiate/payment_link_initiator.js", "lines": [ " /**\n", " * Use - redirect to /payment_link/status\n", " */\n", " function redirectToStatus() {\n", " var arr = window.location.pathname.split(\"/\");\n",...
[ "js" ]
1
juspay/hyperswitch
juspay__hyperswitch-5510
Bug: [FEAT] add a wrapper for encryption and decryption
diff --git a/crates/common_utils/src/macros.rs b/crates/common_utils/src/macros.rs index abd24ac8679..06554ee9b51 100644 --- a/crates/common_utils/src/macros.rs +++ b/crates/common_utils/src/macros.rs @@ -301,3 +301,14 @@ mod id_type { }; } } + +/// Get the type name for a type +#[macro_export] +macro_ru...
2024-08-01T08:00:17Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Enhancement ## Description <!-- Describe your changes in detail --> Added a wrapper for Crypto Operation (Encrypt, Decrypt). So any changes in Encryption framework can be done in one place. This also adds logging for table name for which the Enc...
29c5f8a7570513bd0a23e5d0a90d6c2f78c63f6f
- All sanity tests for MerchantAccount Create, Payments, Refunds - Check the table name field in the encryption logs ![Screenshot 2024-08-07 at 2 49 36 PM](https://github.com/user-attachments/assets/d46e0cfc-a59e-4923-87e1-47a92161cd28)
[ { "file_path": "crates/common_utils/src/macros.rs", "lines": [ "\n", "/// Get the type name for a type\n", "#[macro_export]\n", "macro_rules! type_name {\n", " ($type:ty) => {\n", " std::any::type_name::<$type>()\n", " .rsplit(\"::\")\n", ...
[ { "file_path": "crates/hyperswitch_domain_models/src/business_profile.rs", "lines": [ " pii,\n", "use crate::type_encryption::{decrypt_optional, AsyncLift};\n", " .async_lift(|inner| {\n", " decrypt_optional(state, inner, key_manager_ident...
[ "rs" ]
30
juspay/hyperswitch
juspay__hyperswitch-5487
Bug: [refactor]: add level support for roles Determine a given role exists at which level, i.e., determine a entity of each roles which it is associated to. - This will help users to perform operation accordingly. - A profile/merchant level user cannot perform org level opertaion. - Similarly a hierarchy can be main...
diff --git a/crates/api_models/src/user_role/role.rs b/crates/api_models/src/user_role/role.rs index 6d0bb2154d9..73b25c84af5 100644 --- a/crates/api_models/src/user_role/role.rs +++ b/crates/api_models/src/user_role/role.rs @@ -1,4 +1,4 @@ -use common_enums::{PermissionGroup, RoleScope}; +use common_enums::{EntityType...
2024-07-31T10:48:31Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Add entity type to roles (predefined and customs) This can be used to determine at which level a current...
540ef071cb238a56d52d06687226aab7fd0dfe68
The change is at DB level and can be tested with the upcoming application changes PRs.
[ { "file_path": "crates/api_models/src/user_role/role.rs", "lines": [ "use common_enums::{EntityType, PermissionGroup, RoleScope};\n", " pub entity_type: Option<EntityType>,\n" ] }, { "file_path": "crates/common_enums/src/enums.rs", "lines": [ "#[derive(\n", " Cl...
[ { "file_path": "crates/api_models/src/user_role/role.rs", "lines": [ "use common_enums::{PermissionGroup, RoleScope};\n" ] }, { "file_path": "crates/diesel_models/src/user_role.rs", "lines": [ " pub entity_type: Option<String>,\n", " pub entity_type: Option<String>,\n...
[ "sql", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-5486
Bug: [FEATURE] - Add TimeRange based search on GlobalSearch ### Feature Description Global search be able to give out result based on a given time range and not just rely on the query string given as a parameter in the request ### Possible Implementation `{ "query": "usd", "filters": { "stat...
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs index 1031c815448..11ea4e4f7ab 100644 --- a/crates/analytics/src/opensearch.rs +++ b/crates/analytics/src/opensearch.rs @@ -1,6 +1,7 @@ use api_models::{ analytics::search::SearchIndex, errors::types::{ApiError, ApiErrorResp...
2024-07-29T10:11:46Z
## 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 --> ## Task 1 The `status` field is different in different indexes...
45a149418f1dad0cd27f975dc3dd56c68172b9dd
Tested through Postman curls:
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " payments::TimeRange,\n", "use serde_json::{json, Map, Value};\n", "use time::PrimitiveDateTime;\n", "#[derive(Debug, Clone, Copy, serde::Serialize, serde::Deserialize, PartialEq, Eq, Hash)]\n", "pub struct Ope...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ "use serde_json::{json, Value};\n", " let mut query =\n", " vec![json!({\"multi_match\": {\"type\": \"phrase\", \"query\": self.query, \"lenient\": true}})];\n", " .map(|(k, v)| json!({\"term...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-5496
Bug: [REFACTOR] Refactor routes for creating and activating the routing configs for v2 ### Feature Description Refactor routes for creating and activating the routing configs for v2 ### Possible Implementation Refactor routes for creating and activating the routing configs for v2 ### Have you spent some time c...
diff --git a/crates/api_models/Cargo.toml b/crates/api_models/Cargo.toml index 84f8d2f01e9..b6b6f219bd8 100644 --- a/crates/api_models/Cargo.toml +++ b/crates/api_models/Cargo.toml @@ -17,8 +17,9 @@ frm = [] olap = [] openapi = ["common_enums/openapi", "olap", "recon", "dummy_connector", "olap"] recon = [] +v1 =[] ...
2024-07-23T19:12:18Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds a `Routing_v2` flag and renames all the endpoints, and refactors the create and activate end...
540ef071cb238a56d52d06687226aab7fd0dfe68
- Create routing ``` curl --location 'http://localhost:8080/routing_algorithm' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_1ZYFaypqi4RKpkjTFbHHkdgAqvUsG6TYJXoH53D59BQ1uFMrBIcxrF4f7FiJkOWw' \ --data '{ "name": "newalgo", "description": "It is my ADVANCED config", "algorit...
[ { "file_path": "crates/api_models/Cargo.toml", "lines": [ "v1 =[]\n", "routing_v2 = []\n" ] }, { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingLinkWrapper, RoutingPayloadWrapper, RoutingRetrieveLinkQuery, RoutingRetrieveQuery,\n", "\n"...
[ { "file_path": "crates/api_models/Cargo.toml", "lines": [ "v1 = []\n" ] }, { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingPayloadWrapper, RoutingRetrieveLinkQuery, RoutingRetrieveQuery,\n" ] }, { "file_path": "crates/api_models/src/ro...
[ "toml", "justfile", "rs" ]
11
juspay/hyperswitch
juspay__hyperswitch-5491
Bug: feat(auth): Support profile level authentication - After the dashboard is changed to profile level, there will be 3 types of APIs based on the level 1. Merchant Level only - API Keys - Merchant Account - Business profile 2. Profile Level only - Connectors - Routing - Operations (Payment, refund, ...
diff --git a/crates/router/src/core/user.rs b/crates/router/src/core/user.rs index 40741c76198..457a71dff8b 100644 --- a/crates/router/src/core/user.rs +++ b/crates/router/src/core/user.rs @@ -138,7 +138,9 @@ pub async fn signup( .await?; utils::user_role::set_role_permissions_in_cache_by_user_role(&state...
2024-07-31T13:15: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 --> Since we are going to change the dashboard to profile level, we...
85209d12ae3439b555983d62b2cc3bf764c1b441
All the APIs which are using JWT, should not fail in the authentication layer.
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " let token =\n", " utils::user::generate_jwt_auth_token_without_profile(&state, &user_from_db, &user_role)\n", " .await?;\n", " profile_id: None,\n", " let token = utils::user::gener...
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " let token = utils::user::generate_jwt_auth_token(&state, &user_from_db, &user_role).await?;\n", " let token =\n", " utils::user::generate_jwt_auth_token(&state, &user_from_db, &update_status_result).await?;\n", ...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-5480
Bug: [FEATURE] Add Connector Config for Plaid ### Feature Description Need to add connector config for Plaid for wasm ### Possible Implementation Adding config in respective files ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issu...
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rs index bc781e05294..bf74adbc106 100644 --- a/crates/connector_configs/src/connector.rs +++ b/crates/connector_configs/src/connector.rs @@ -117,6 +117,7 @@ pub struct ConnectorTomlConfig { pub bank_transfer: Option<Vec...
2024-07-30T12:36:27Z
## 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 connector config for wasm for Plaid ### Additional Cha...
4ef3420ee8ad39ee28a0fb496b30fe2a7e108813
[ { "file_path": "crates/connector_configs/src/connector.rs", "lines": [ " pub open_banking: Option<Vec<Provider>>,\n" ] }, { "file_path": "crates/connector_configs/toml/development.toml", "lines": [ "[plaid]\n", "[[plaid.open_banking]]\n", " payment_method_type = \...
[]
[ "toml", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5483
Bug: [BUG] : fix postgreSQL database url ### Have you spent some time checking if this bug has been raised before? - [X] I checked and didn't find a similar issue ### Have you read the Contributing Guidelines? - [X] I have read the [Contributing Guidelines](https://github.com/juspay/hyperswitch/blob/main/...
2024-07-30T14:52:14Z
## 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 --> Before `export DATABASE_URL=$DB_USER:$DB_PASS@localhost:5432/...
be9347b8d56c0a6cf0d04cf51c75dd6426d3a21a
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-5475
Bug: refactor(configs): include env for cybersource in intergration_test ## Description Include configs for cybersource in `Integration_test` file to facilitate successful cypress tests on our Integ environment
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml index a498ad38995..39b19fd0535 100644 --- a/config/deployments/integration_test.toml +++ b/config/deployments/integration_test.toml @@ -289,6 +289,12 @@ ideal = { country = "NL", currency = "EUR" } klarna = { country = "AU...
2024-07-29T17:14: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 will add the config for cybersource in Integ. ### Addit...
45a149418f1dad0cd27f975dc3dd56c68172b9dd
This is an env change, hence wouldn't require testing as such.
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "[pm_filters.cybersource]\n", "credit = { currency = \"USD\" }\n", "debit = { currency = \"USD\" }\n", "apple_pay = { currency = \"USD\" }\n", "google_pay = { currency = \"USD\" }\n", "\n" ] } ]
[]
[ "toml" ]
1
juspay/hyperswitch
juspay__hyperswitch-5469
Bug: feat(opensearch): Update status filter field name to match index The `status` field is different in different indexes: - `status` in Payment Attempts and Payment Intents - `refund_status` in Refunds - `dispute_status` in Disputes The correct mapping of `status` for each index is required, to get the corre...
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs index 1031c815448..11ea4e4f7ab 100644 --- a/crates/analytics/src/opensearch.rs +++ b/crates/analytics/src/opensearch.rs @@ -1,6 +1,7 @@ use api_models::{ analytics::search::SearchIndex, errors::types::{ApiError, ApiErrorResp...
2024-07-29T10:11:46Z
## 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 --> ## Task 1 The `status` field is different in different indexes...
45a149418f1dad0cd27f975dc3dd56c68172b9dd
Tested through Postman curls:
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " payments::TimeRange,\n", "use serde_json::{json, Map, Value};\n", "use time::PrimitiveDateTime;\n", "#[derive(Debug, Clone, Copy, serde::Serialize, serde::Deserialize, PartialEq, Eq, Hash)]\n", "pub struct Ope...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ "use serde_json::{json, Value};\n", " let mut query =\n", " vec![json!({\"multi_match\": {\"type\": \"phrase\", \"query\": self.query, \"lenient\": true}})];\n", " .map(|(k, v)| json!({\"term...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-5489
Bug: [FEATURE] : Paybox payments integration ### Feature Description Payone is payout connector Documentation link: http://www1.paybox.com/wp-content/uploads/2017/08/ManuelIntegrationVerifone_PayboxDirect_V8.1_EN.pdf Website url: [Paybox.com](http://paybox.com/) ### Have you spent some time to check if this...
diff --git a/config/config.example.toml b/config/config.example.toml index 92bdaf6b924..7cbd6551303 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -227,6 +227,7 @@ noon.key_mode = "Test" nuvei.base_url = "https://ppp-test.nuvei.com/" opayo.base_url = "https://pi-test.sagepay.com/" openno...
2024-07-30T19:25:30Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] New feature ## Description <!-- Describe your changes in detail --> Template code for Paybox ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the database schema - [ ] This PR modifies application con...
540ef071cb238a56d52d06687226aab7fd0dfe68
This is template code so, no api testing required
[ { "file_path": "config/config.example.toml", "lines": [ "paybox.base_url = \"https://preprod-ppps.paybox.com/PPPS.php\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "paybox.base_url = \"https://preprod-ppps.paybox.com/PPPS.php\"\n" ] }, { ...
[ { "file_path": "crates/router/src/connector.rs", "lines": [ " nuvei::Nuvei, opayo::Opayo, opennode::Opennode, payeezy::Payeezy, payme::Payme, payone::Payone,\n", " paypal::Paypal, payu::Payu, placetopay::Placetopay, plaid::Plaid, powertranz::Powertranz,\n", " prophetpay::Prophetpa...
[ "sh", "toml", "rs" ]
24
juspay/hyperswitch
juspay__hyperswitch-5454
Bug: [FEATURE] Set Code owners for Pyament Methods ### Feature Description Need to set code owners for Payment Method suite ### Possible Implementation Changing the codeowners file ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar iss...
2024-07-26T10:32: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 --> Have set code owners for Payment Methods ### Additional Ch...
2bee694d5bb7393c11817bbee26b459609f6dd8c
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-5437
Bug: fix: change country in SessionFlowRouting ## Description Currently Shipping country is being used in SessionFlowRouting, which affects the PaymentMethodList as the later depends on billing country.
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index 5f5e59a89a5..6ed12388c4a 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -2556,7 +2556,7 @@ pub async fn list_payment_methods( ...
2024-07-24T17:45:01Z
## 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 Shipping country is being used in SessionFlowRouting,...
8e7de9068428e585c6848d3de5b1b4f292324dfc
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " country: billing_address.clone().and_then(|ad| ad.country),\n" ] } ]
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " country: shipping_address.clone().and_then(|ad| ad.country),\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5438
Bug: fix: refactor error codes for failing cypress tests ## Description Cypress tests are failing due to some recent refactors in error codes, which needs to be revamped to the correct ones in cypress framework.
2024-07-24T07:31: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 --> Changing of error codes to match cypress mappings ### Additi...
26b878308f7e493d6adb8c08b54a5498406eb28a
Tested locally for the following connectors: PS: The failing tests are not due to error codes they are due to expected status 200 but instead receiving error in routing. stripe <img width="674" alt="Screenshot 2024-07-25 at 9 05 33 AM" src="https://github.com/user-attachments/assets/01ff4e3d-75e3-4831-a121-0459d66...
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-5440
Bug: [FEATURE] [FISERV] Move connector code for fiserv to crate hyperswitch_connectors ### Feature Description Connector code for `fiserv` needs to be moved from crate router to new crate hyperswitch_connectors ### Possible Implementation Connector code for `fiserv` needs to be moved from crate router to new crat...
diff --git a/Cargo.lock b/Cargo.lock index c5eac1ef868..45556ef401e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3836,6 +3836,7 @@ version = "0.1.0" dependencies = [ "api_models", "async-trait", + "base64 0.22.0", "cards", "common_enums", "common_utils", @@ -3843,10 +3844,13 @@ dependencies = [ "hyperswitc...
2024-07-25T11:30:36Z
## 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 --> Move connector code for `fiserv` from crate `router` to crate `...
979539702190363c67045d509be04498efd9a1fa
The following flows need to be tested for connector `Fiserv`: - Authorize: Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_xo3RNH4SJGVUfv9B27JQjb6PAN9jmHcJqE4LQjPkLEjvfeFt9MGPENcooNOOEj9...
[ { "file_path": "Cargo.lock", "lines": [ " \"base64 0.22.0\",\n", " \"ring 0.17.8\",\n", " \"time\",\n", " \"uuid\",\n" ] }, { "file_path": "crates/hyperswitch_connectors/Cargo.toml", "lines": [ "base64 = \"0.22.0\"\n", "ring = \"0.17.8\"\n", "time = ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ "pub use self::helcim::Helcim;\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/fiserv.rs", "lines": [ "use common_utils::request::RequestContent;\n", "use diesel_models::enums;...
[ "toml", "lock", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-5451
Bug: [FEATURE] [BAMBORA, BITPAY, STAX] Move connector code for stax to crate hyperswitch_connectors ### Feature Description Connector code for `bambora, bitpay and stax` needs to be moved from crate router to new crate hyperswitch_connectors ### Possible Implementation Connector code for `bambora, bitpay a...
diff --git a/Cargo.lock b/Cargo.lock index 45556ef401e..fde659c77c7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3850,6 +3850,7 @@ dependencies = [ "serde_json", "strum 0.26.2", "time", + "url", "uuid", ] diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index 3454a6ba020..2bd2...
2024-07-26T10:09:10Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Move connector code for `bambora, bitpay and stax` from crate `...
46f3f6132aa667c29bea063ad1b04a880ae377d3
The following flows need to be tested for connector `Bambora`: 1. Authorize(Auto Capture): Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_cNgJBniCHyPWijpb73YRpH06jVNPFSU8B8oZl9yJCa1tK...
[ { "file_path": "Cargo.lock", "lines": [ " \"url\",\n" ] }, { "file_path": "crates/common_enums/src/enums.rs", "lines": [ "#[derive(Debug, Eq, PartialEq)]\n", "pub enum PaymentAction {\n", " PSync,\n", " CompleteAuthorize,\n", " PaymentAuthenticate...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ "pub use self::{fiserv::Fiserv, helcim::Helcim};\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/bambora.rs", "lines": [ "use common_utils::request::RequestContent;\n", "use di...
[ "toml", "rs", "lock" ]
21
juspay/hyperswitch
juspay__hyperswitch-5446
Bug: chore: address Rust 1.80 clippy lints Address the clippy lints occurring due to new rust version 1.80 See https://github.com/juspay/hyperswitch/issues/3391 for more information.
diff --git a/crates/api_models/src/events.rs b/crates/api_models/src/events.rs index 8289a320d01..a0808c0c24b 100644 --- a/crates/api_models/src/events.rs +++ b/crates/api_models/src/events.rs @@ -145,20 +145,6 @@ impl_api_event_type!( ) ); -#[cfg(feature = "stripe")] -impl_api_event_type!( - Miscellaneous, ...
2024-07-26T07:51:31Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [x] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR addresses the clippy lints occurring due to new rust ve...
93976db30a91b3e67d854681fb4b9db8eea7e295
Basic sanity testing should suffice
[ { "file_path": "crates/router/src/compatibility/stripe/payment_intents.rs", "lines": [ " tracing::Span::current().record(\"payment_id\", payload.id.clone().unwrap_or_default());\n", " tracing::Span::current().record(\"flow\", flow.to_string());\n", " tracing::Span::current().recor...
[ { "file_path": "crates/api_models/src/events.rs", "lines": [ "#[cfg(feature = \"stripe\")]\n", "impl_api_event_type!(\n", " Miscellaneous,\n", " (\n", " StripeSetupIntentResponse,\n", " StripeRefundResponse,\n", " StripePaymentIntentListRe...
[ "rs" ]
17
juspay/hyperswitch
juspay__hyperswitch-5443
Bug: [FEATURE] : Create env variable for enabling keymanager service ### Feature Description Application changes for encryption service is not backward compatible, so encryption service has to be enabled with runtime config once the build is deployed and certified stable.. ### Possible Implementation Introduce th...
diff --git a/crates/common_utils/src/types/keymanager.rs b/crates/common_utils/src/types/keymanager.rs index f4b671abcd7..e263f3d5789 100644 --- a/crates/common_utils/src/types/keymanager.rs +++ b/crates/common_utils/src/types/keymanager.rs @@ -23,6 +23,7 @@ use crate::{ #[derive(Debug)] pub struct KeyManagerState ...
2024-07-25T11:50:32Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds env variable for enabling encryption service. Application changes for encryption service is ...
043ea6d8dc9fe8108e0b7eb8113217bc37fa488a
**This can't be tested in Test environment, since it is already enabled in both** 1. key_manager.enabled: false and feature "encryption_service" disabled. Encryption and decryption happens within the application 2. key_manager.enabled: true and feature "encryption_service" disabled. Encryption and decryption happens...
[ { "file_path": "crates/common_utils/src/types/keymanager.rs", "lines": [ " pub enabled: Option<bool>,\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/type_encryption.rs", "lines": [ " keymanager::call_encryption_service,\n", " transformers::{Fo...
[ { "file_path": "crates/hyperswitch_domain_models/src/type_encryption.rs", "lines": [ " types::keymanager::{Identifier, KeyManagerState},\n", " use router_env::{instrument, tracing};\n", " #[cfg(feature = \"encryption_service\")]\n", " use {\n", " common_u...
[ "toml", "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-5433
Bug: refactor(opensearch): Add Error Handling for Empty Query and Filters in Request **Description:** > **Problem:** > Currently, there is no validation to check whether both the `query` and `filters` in the request are empty. This can lead to the processing of invalid requests, which may cause unexpected behavi...
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs index 05f89b655cf..1031c815448 100644 --- a/crates/analytics/src/opensearch.rs +++ b/crates/analytics/src/opensearch.rs @@ -71,6 +71,8 @@ pub enum OpenSearchError { ConnectionError, #[error("Opensearch NON-200 response conten...
2024-07-24T13:34:26Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> > Implement a validation check that ensures the `query` field i...
e18ea7a7bab257a6082639e84da8d9e44f31168f
```bash curl 'http://localhost:8080/analytics/v1/search' \ -H 'sec-ch-ua: "Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"' \ -H 'sec-ch-ua-mobile: ?0' \ -H 'authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiNTEzYWUyODItN2I1NS00MGMwLWFiZGMtYjdiMGYzNDNkMTQ2IiwibWVyY2h...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " #[error(\"Opensearch bad request error\")]\n", " BadRequestError(String),\n", " Self::BadRequestError(response) => {\n", " ApiErrorResponse::BadRequest(ApiError::new(\"IR\", 1, response....
[]
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-5455
Bug: [ENHANCEMENT] update API schema for payouts ### Bug Description API request / response structure for payouts API hasn't kept up the development pace w payments API. Overtime, some of the fields in payouts API request have been obsoleted, whereas some of the new fields / objects are added for consuming differ...
diff --git a/crates/api_models/src/payouts.rs b/crates/api_models/src/payouts.rs index c3ae760215b..3333fb6f546 100644 --- a/crates/api_models/src/payouts.rs +++ b/crates/api_models/src/payouts.rs @@ -18,7 +18,10 @@ pub enum PayoutRequest { PayoutRetrieveRequest(PayoutRetrieveRequest), } -#[derive(Default, Debu...
2024-07-11T08:17:38Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR includes below set of changes - move customer specific fields to `customer` object for payout ...
f81416e4df6fa430fd7f6eb910b55464cd72f3f0
*Backward comptability for customer fields* <details> <summary>1. Create a new customer (without passing customer_id)</summary> curl --location 'http://localhost:8080/payouts/create' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_OkApivBrWlFwhoXRY6Iulr3QONuGY9ZcGrBkXu2T9P0RijlIk...
[ { "file_path": "crates/api_models/src/payouts.rs", "lines": [ "#[derive(\n", " Default, Debug, Deserialize, Serialize, Clone, ToSchema, router_derive::PolymorphicSchema,\n", ")]\n", "#[generate_schemas(PayoutsCreateRequest, PayoutUpdateRequest, PayoutConfirmRequest)]\n", " ...
[ { "file_path": "crates/api_models/src/payouts.rs", "lines": [ "#[derive(Default, Debug, Deserialize, Serialize, Clone, ToSchema)]\n", " example = \"payout_mbabizu24mvu3mela5njyhpit4\"\n", " #[schema(value_type = i64, example = 1000)]\n", " #[schema(value_type = Currency,...
[ "sql", "rs" ]
27
juspay/hyperswitch
juspay__hyperswitch-5458
Bug: Update Schema and domain models for Payment Methods v2 ### Feature Description Have to change the schema for corresponding DB changes in `payment_methods` table for v2 ### Possible Implementation Will need to irun separate migrations for v2 Based on need, can implement domain models for Payment Methods ...
diff --git a/crates/diesel_models/Cargo.toml b/crates/diesel_models/Cargo.toml index 45582cc0ad9..6b288899778 100644 --- a/crates/diesel_models/Cargo.toml +++ b/crates/diesel_models/Cargo.toml @@ -14,6 +14,7 @@ v1 = [] v2 = [] customer_v2 = [] payment_v2 = [] +payment_methods_v2 = [] [dependencies] async-bb8-die...
2024-08-26T12:48:06Z
## 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 --> - Diesel model for payment methods v2 - Domain models for paym...
b85322612078a68fbe09e98494bfe849c6c123c2
- Test all flows (payments/payment_methods) for v1 - v2 cannot be tested as core logic is incomplete
[ { "file_path": "crates/diesel_models/Cargo.toml", "lines": [ "payment_methods_v2 = []\n" ] }, { "file_path": "crates/diesel_models/src/kv.rs", "lines": [ " #[cfg(all(\n", " any(feature = \"v1\", feature = \"v2\"),\n", " ...
[ { "file_path": "crates/diesel_models/src/payment_method.rs", "lines": [ "#[derive(\n", " Clone, Debug, Default, AsChangeset, router_derive::DebugAsDisplay, Serialize, Deserialize,\n", ")]\n" ] }, { "file_path": "crates/diesel_models/src/query/payment_method.rs", "lines":...
[ "sql", "toml", "rs" ]
39
juspay/hyperswitch
juspay__hyperswitch-5422
Bug: [FEATURE] Fixes in PM Auth ### Feature Description Bugs related to PML in PM Auth needs to be fixed ### Possible Implementation Implementation depends on the specific bugs encountered. ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a si...
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index 70a0a4e4cd1..a55e9c76b0f 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -2356,7 +2356,8 @@ pub async fn list_payment_methods( ....
2024-07-23T14:01: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 --> Added a check in mca for pm_auth_connectors to include only the...
0f89a0acbfc2d55f415e0daeb27e8d9022e6a862
1. Deactivate the pm_auth account - ``` curl --location --request POST 'http://localhost:8080/account/merchant_1721742760/connectors/mca_r7PzL0AWF5tHJ8sUWqIG' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data-raw '{ "connector_type": ...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " let filtered_mcas =\n", " helpers::filter_mca_based_on_business_profile(all_mcas.clone(), profile_id.clone());\n", " for inner_config in config.enabled_payment_methods.iter() {\n", ...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " let filtered_mcas = helpers::filter_mca_based_on_business_profile(all_mcas, profile_id.clone());\n", " config\n", " .enabled_payment_methods\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5413
Bug: [FEATURE] Include created_at and modified_at keys in PaymentAttemptResponse ### Feature Description Include created_at and modified_at keys in PaymentAttemptResponse, to display in payments dashboard ### Possible Implementation Include created_at and modified_at keys in PaymentAttemptResponse, to display in ...
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 5ac8d0edcc3..dd4ae572fd0 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -758,9 +758,7 @@ impl HeaderPayload { } } -#[derive( - Default, Debug, serde::Serialize, Clone, PartialEq...
2024-07-23T09:45:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> ## Summary This PR introduces the created_at and modified_at k...
876eeea0f426f63d0419021ba85372a016d46e27
``` curl 'http://localhost:8080/payments/pay_sQBhXpPgst6s57BvS9Fk?expand_attempts=true' \ -H 'Accept: */*' \ -H 'Accept-Language: en-GB,en-US;q=0.9,en;q=0.8,fr;q=0.7' \ -H 'Cache-Control: no-cache' \ -H 'Connection: keep-alive' \ -H 'Content-Type: application/json' \ -H 'Origin: http://localhost:90...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ "#[derive(Debug, serde::Serialize, Clone, PartialEq, ToSchema, router_derive::PolymorphicSchema)]\n", " /// Time at which the payment attempt was created\n", " #[schema(value_type = PrimitiveDateTime, example = \"2022-09-...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ "#[derive(\n", " Default, Debug, serde::Serialize, Clone, PartialEq, ToSchema, router_derive::PolymorphicSchema,\n", ")]\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5407
Bug: Fix(bug): Backend Issue for 4-Digit Input and Correct 3DS Routing Through no_3ds for Datatrans https://github.com/juspay/hyperswitch-cloud/issues/6000 1)Expiry Month : YYYY gives error 2)3ds should get routed through no_3ds, and should not throw an error
diff --git a/crates/router/src/connector/datatrans/transformers.rs b/crates/router/src/connector/datatrans/transformers.rs index 9c4ab6cf6a6..96c7bcd8b2c 100644 --- a/crates/router/src/connector/datatrans/transformers.rs +++ b/crates/router/src/connector/datatrans/transformers.rs @@ -7,7 +7,7 @@ use serde::{Deserialize...
2024-07-23T07:52:44Z
## 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 --> 1)Datatrans accepts expiry year in YY format only . Fixed that....
876eeea0f426f63d0419021ba85372a016d46e27
**for 3DS** Request ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:' \ --data '{ "amount": 800, "currency": "USD", "amount_to_capture":800, "confirm": true, "capture_method": "automatic", ...
[ { "file_path": "crates/router/src/connector/datatrans/transformers.rs", "lines": [ " utils::{CardData, PaymentsAuthorizeRequestData},\n", " number: req_card.card_number.clone(),\n", " expiry_month: req_card.card_exp_month.clone(),\n", " ...
[ { "file_path": "crates/router/src/connector/datatrans/transformers.rs", "lines": [ " utils::{PaymentsAuthorizeRequestData, RouterData},\n", " if item.router_data.is_three_ds() {\n", " return Err(errors::ConnectorError::NotImplemented(\n", " \"T...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5404
Bug: handle packages to run are being empty <img width="679" alt="image" src="https://github.com/user-attachments/assets/0c3a8639-7713-414c-9cc7-72516767dabd"> During the cargo hack if the packages to run are empty the workflow will error out.
diff --git a/scripts/ci-checks.sh b/scripts/ci-checks.sh index 7f2cecf8405..69bc56a623b 100755 --- a/scripts/ci-checks.sh +++ b/scripts/ci-checks.sh @@ -74,7 +74,7 @@ crates_with_v1_feature="$( | .name as $name | .features[] | { $name, features: . } # Expand nested features object to have package - features combi...
2024-07-22T14:08:33Z
## 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 --> handle packages to run are being empty <img width="679" alt="i...
eaa391a959076424399fb9331a78a16eaf790478
[ { "file_path": "scripts/ci-checks.sh", "lines": [ "while IFS=' ' read -r crate features && [[ -n \"${crate}\" && -n \"${features}\" ]]; do\n", "while IFS= read -r crate && [[ -n \"${crate}\" ]]; do\n", "if (( ${#all_commands[@]} == 0 )); then\n", " echo \"There are no commands to be...
[ { "file_path": "scripts/ci-checks.sh", "lines": [ "while IFS=' ' read -r crate features; do\n", "while IFS= read -r crate; do\n" ] } ]
[ "sh" ]
1
juspay/hyperswitch
juspay__hyperswitch-5402
Bug: refactor: Add customer_details, billing and shipping address in Payment LIst Add decrypted customer_details, shipping and billling address in Payment list response for Dashboard usages
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 45a6bb46385..04cf4cd5da3 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -206,7 +206,9 @@ pub struct CustomerDetails { } /// Details of customer attached to this payment -#[derive(Debug...
2024-07-22T13:24: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 --> This pr adds the decrypted customer_details, shipping and billl...
4838a86ebcb5000e65293e0d095e5de95e3a64a0
We need to make a payment with shipping, billing and customer details and then hit the Payment list api: ``` curl --location --request GET 'http://127.0.0.1:8080/payments/list' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --header 'api-key:xxxxxxx' \ --data '{ }' ``` ...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ "#[derive(\n", " Debug, Default, serde::Serialize, serde::Deserialize, Clone, ToSchema, PartialEq, Setter,\n", ")]\n" ] }, { "file_path": "crates/router/src/core/payments/transformers.rs", "lines": [ " ...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ "#[derive(Debug, Default, serde::Serialize, Clone, ToSchema, PartialEq, Setter)]\n" ] }, { "file_path": "crates/router/src/core/payments/transformers.rs", "lines": [ " CustomerDetailsResponse, FrmMessage, GetAddres...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5400
Bug: store `network_transaction_id` in stripe `authorize` flow Now we are trying to store the `network_transaction_id` that comes in the latest_attempt of the authorize response instead we should be storing the `network_transaction_id` that comes in the `latest_charge` object.
diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rs index 786f4a060b7..90ddc9f0b90 100644 --- a/crates/router/src/connector/stripe/transformers.rs +++ b/crates/router/src/connector/stripe/transformers.rs @@ -2389,7 +2389,18 @@ impl<F, T> //Note...
2024-07-22T11:52:12Z
## 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 --> Now we are trying to store the `network_transaction_id` that co...
3d385bbf736f8d7dae73a233d64148a8e88ec17e
-> Create mca for stripe -> Create a payment with `steup_future_usage: off_session` 0 amount ``` curl --location 'http://localhost:8080/payments' \ --header 'Accept: application/json' \ --header 'api-key: dev_WQrUfhm6TWzpFVlFlDScYFQxn9lKKoGHhOXk6YHQpWkQZclxtkrRdQX5wmc0p2dO' \ --header 'Content-Type: applicatio...
[ { "file_path": "crates/router/src/connector/stripe/transformers.rs", "lines": [ " let network_txn_id = match item.response.latest_charge.as_ref() {\n", " Some(StripeChargeEnum::ChargeObject(charge_object)) => charge_object\n", " .payment_method_details\n", ...
[ { "file_path": "crates/router/src/connector/stripe/transformers.rs", "lines": [ " let network_txn_id = Option::foreign_from(item.response.latest_attempt);\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5396
Bug: refactor: alter query for merchant scoped metadata Remove `is_null` from `find_merchant_scoped_dashboard_metadata` This is done to make DB changes and support backward compatibility in next deployment.
diff --git a/crates/diesel_models/src/query/dashboard_metadata.rs b/crates/diesel_models/src/query/dashboard_metadata.rs index 6f88629d82a..725a95ffef3 100644 --- a/crates/diesel_models/src/query/dashboard_metadata.rs +++ b/crates/diesel_models/src/query/dashboard_metadata.rs @@ -87,9 +87,8 @@ impl DashboardMetadata { ...
2024-07-22T10:06:58Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Alter query in `find_merchant_scoped_dashboard_metadata` For merchant scoped metadata it need not to be ...
bc19fca1f4e76be6131e9c870b8aa1c709fef578
To get the metadata use curl: ``` curl --location 'http://localhost:8080/user/data?keys=ProductionAgreement%2CSetupProcessor%2CConfigureEndpoint%2CSetupComplete%2CFirstProcessorConnected%2CSecondProcessorConnected%2CConfiguredRouting%2CTestPayment%2CIntegrationMethod%2CConfigurationType%2CIntegrationCompleted%2CStrip...
[ { "file_path": "crates/diesel_models/src/query/dashboard_metadata.rs", "lines": [ " let predicate = dsl::merchant_id\n", " .eq(merchant_id)\n" ] }, { "file_path": "crates/router/src/db/dashboard_metadata.rs", "lines": [ " metadata_inner.merc...
[ { "file_path": "crates/diesel_models/src/query/dashboard_metadata.rs", "lines": [ " let predicate = dsl::user_id\n", " .is_null()\n", " .and(dsl::merchant_id.eq(merchant_id))\n" ] }, { "file_path": "crates/router/src/db/dashboard_metadata.rs", "...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5395
Bug: refactor: change primary key of payment_methods table for v2 ## Description Previously our payment_methods table had `id` as PKey. Which needs to be changed to a new Primary key namely `payment_method_id`.
diff --git a/crates/diesel_models/src/schema.rs b/crates/diesel_models/src/schema.rs index b8c5344cbbb..55f8e935b14 100644 --- a/crates/diesel_models/src/schema.rs +++ b/crates/diesel_models/src/schema.rs @@ -934,7 +934,7 @@ diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; - ...
2024-07-22T08:39:07Z
## 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 --> Changing the primary key of the payment_methods table from (id)...
bc19fca1f4e76be6131e9c870b8aa1c709fef578
Just Db id migration, doesn't requires any specific testing
[ { "file_path": "crates/diesel_models/src/schema.rs", "lines": [ " payment_methods (payment_method_id) {\n" ] }, { "file_path": "crates/diesel_models/src/schema_v2.rs", "lines": [ " payment_methods (payment_method_id) {\n" ] }, { "file_path": "migrations/2024-07-...
[ { "file_path": "crates/diesel_models/src/schema.rs", "lines": [ " payment_methods (id) {\n" ] }, { "file_path": "crates/diesel_models/src/schema_v2.rs", "lines": [ " payment_methods (id) {\n" ] } ]
[ "sql", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5411
Bug: refactor: Patch file for DB migration ## Description Create a patch file which removes id from schema.rs for all tables havin Integer id col.
diff --git a/crates/common_utils/src/id_type.rs b/crates/common_utils/src/id_type.rs index 100f7957f5c..63f8497cae7 100644 --- a/crates/common_utils/src/id_type.rs +++ b/crates/common_utils/src/id_type.rs @@ -36,11 +36,11 @@ fn get_invalid_input_character(input_string: Cow<'static, str>) -> Option<char> .find(...
2024-07-22T11:51: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 --> This PR includes a patch file for removal of id from tables. ...
7068fbfbe2f561f71c2358d8d2a744d28672a892
The code compilation works fine, and moreover it is id exclusion so we can probably skip testing.
[ { "file_path": "crates/common_utils/src/id_type.rs", "lines": [ "#[derive(Debug, PartialEq, Hash, Serialize, Clone, Eq)]\n", "#[derive(Debug, Deserialize, Hash, Serialize, Error, Eq, PartialEq)]\n", "#[derive(Debug, Clone, Serialize, Hash, PartialEq, Eq, AsExpression)]\n" ] }, { ...
[ { "file_path": "crates/common_utils/src/id_type.rs", "lines": [ "#[derive(Debug, PartialEq, Serialize, Clone, Eq, Hash)]\n", "#[derive(Debug, Deserialize, Serialize, Error, Eq, PartialEq)]\n", "#[derive(Debug, Clone, Serialize, PartialEq, Eq, AsExpression, Hash)]\n" ] }, { "fil...
[ "toml", "rs", "patch" ]
37
juspay/hyperswitch
juspay__hyperswitch-5381
Bug: [BUG] Merchant Connector Account uses application decryption which should changed to API ### Bug Description Due to recent v2 related changes Merchant Connector Account uses application decryption instead it should be changed API call to encryption service ### Expected Behavior all encryption and decryption ...
diff --git a/crates/hyperswitch_domain_models/src/merchant_account.rs b/crates/hyperswitch_domain_models/src/merchant_account.rs index a430673c59a..47ced6573f8 100644 --- a/crates/hyperswitch_domain_models/src/merchant_account.rs +++ b/crates/hyperswitch_domain_models/src/merchant_account.rs @@ -14,7 +14,7 @@ use error...
2024-07-19T13:16:25Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description encrypt/decrypt should happen only via encryption service and DEK should be same in application and encry...
476aed5036eb41671c0736887d02dcac7f3573c6
Changes can be verified only through logs. Look for "Fall back to Application Encryption" or "Fall back to Application Decryption" in the logs post deployment after running below tests. If logs are present encryption/decryption failed with encryption service and fall back to the application encryption which has to be i...
[ { "file_path": "crates/hyperswitch_domain_models/src/merchant_account.rs", "lines": [ "use crate::type_encryption::{decrypt_optional, AsyncLift};\n", " .async_lift(|inner| {\n", " decrypt_optional(state, inner, identifier.clone(), key.peek())\n", ...
[ { "file_path": "crates/hyperswitch_domain_models/src/merchant_account.rs", "lines": [ "use crate::type_encryption::{decrypt, AsyncLift};\n", " .async_lift(|inner| decrypt(state, inner, identifier.clone(), key.peek()))\n", " .async_lift(|inner| decrypt(...
[ "rs" ]
17
juspay/hyperswitch
juspay__hyperswitch-5378
Bug: Email footer icons spacing Footer icons must be separated for better usability. ![image](https://github.com/user-attachments/assets/9a273e8b-4824-4b39-b300-de8b9caa3233)
diff --git a/crates/router/src/services/email/assets/api_key_expiry_reminder.html b/crates/router/src/services/email/assets/api_key_expiry_reminder.html index 9d97d153eb6..3ec51164a50 100644 --- a/crates/router/src/services/email/assets/api_key_expiry_reminder.html +++ b/crates/router/src/services/email/assets/api_key_...
2024-07-19T10:58:44Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Provided spacing between email template footer icons ### Additional Changes - [ ] This PR modif...
bc92e0cccbbc989f3b32ad16cae58a3e47babe8b
Tested locally using AWS SES service ![image](https://github.com/user-attachments/assets/21cdab48-2184-4847-8d3d-a202392d82d4)
[ { "file_path": "crates/router/src/services/email/assets/api_key_expiry_reminder.html", "lines": [ " <a href=\"https://x.com/hyperswitchio?s=21\" target=\"_blank\" style=\"margin: 0 6px 0\">\n" ] }, { "file_path": "crates/router/src/services/email/assets/bizemailprod.html",...
[ { "file_path": "crates/router/src/services/email/assets/api_key_expiry_reminder.html", "lines": [ " <a href=\"https://x.com/hyperswitchio?s=21\" target=\"_blank\">\n" ] }, { "file_path": "crates/router/src/services/email/assets/bizemailprod.html", "lines": [ " ...
[ "html" ]
7
juspay/hyperswitch
juspay__hyperswitch-5394
Bug: [FEATURE] Supporting processors token in Payments API ### Feature Description During the transition phase of Hyperswitch, Merchant should be able to send the processor's token to Hyperswitch to process MIT transaction. This is because, Merchant will not have the card data to migrate from Processor to Hypersw...
diff --git a/crates/api_models/src/mandates.rs b/crates/api_models/src/mandates.rs index f4089a16c22..dc61aa08b0c 100644 --- a/crates/api_models/src/mandates.rs +++ b/crates/api_models/src/mandates.rs @@ -120,4 +120,14 @@ pub struct MandateListConstraints { pub enum RecurringDetails { MandateId(String), Paym...
2024-08-01T10:46: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 --> During the transition phase of Hyperswitch, Merchant should be ...
4364630d6ffbce43bef0947a0150ce255a43751a
### The testing flows are as follows: 1. Create a Setup Mandate Payment. 2. Get the payment_method_id. 3. Get the connector_mandate_id from payment_method table in db (using pm_method_id) -> this is our payment_processor_token (PPT). 4. Now create a recurring_payment using the above ppt. The curls for the same...
[ { "file_path": "crates/api_models/src/mandates.rs", "lines": [ " ProcessorPaymentToken(ProcessorPaymentToken),\n", "}\n", "\n", "/// Processor payment token for MIT payments where payment_method_data is not available\n", "#[derive(Debug, Clone, serde::Serialize, serde::Deser...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " let merchant_recipient_data = payment_data\n", " .get_merchant_recipient_data(\n", " state,\n", " merchant_account,\n", " key_store,\n", " &merchant_con...
[ "sql", "rs" ]
16
juspay/hyperswitch
juspay__hyperswitch-5417
Bug: Add fields in business profile to collect address details (billing and shipping) irrespective of connector required fields Always collect address details | Collect address details only if required by connector | Connector required fields | payment method list | Session call -- | -- | -- | -- | -- False | F...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 84711c7b35f..cd4c73abba4 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3060,16 +3060,30 @@ "description": "Whether to use the billing details passed when creating the in...
2024-07-23T12:29: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 --> Always collect address details | Collect address details only i...
ca72fedae82194abb7216854c7dd61c64d57b1d6
-> Create a merchant connector account for cybersource and enable the below payment method ``` "payment_methods_enabled": [ { "payment_method": "pay_later", "payment_method_types": [ { "minimum_amount": 1, "maximum_amount"...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"collect_shipping_details_from_wallet_connector_if_required\": {\n", " \"description\": \"A boolean value to indicate if customer shipping details needs to be collected from wallet\\nconnector only if it is re...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"collect_shipping_details_from_wallet_connector\": {\n", " \"description\": \"A boolean value to indicate if customer shipping details needs to be collected from wallet connector (Eg. Apple Pay, Google Pay, et...
[ "sql", "json", "rs" ]
17
juspay/hyperswitch
juspay__hyperswitch-5377
Bug: refactor: change primary keys in user, user_roles & roles tables ## Description Previously our tables namely: users user_roles roles has primary key as ID. we are refactoring them as follows: users => user_id user_roles => (user_id, merchant_id) roles => role_id
diff --git a/crates/diesel_models/src/schema.rs b/crates/diesel_models/src/schema.rs index 4b5f4a8ad49..b8c5344cbbb 100644 --- a/crates/diesel_models/src/schema.rs +++ b/crates/diesel_models/src/schema.rs @@ -1168,7 +1168,7 @@ diesel::table! { use diesel::sql_types::*; use crate::enums::diesel_exports::*; -...
2024-07-19T10:27:39Z
## 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 --> Changing the primary key of the following table from (id) to th...
476aed5036eb41671c0736887d02dcac7f3573c6
Checked by compiling the code
[ { "file_path": "crates/diesel_models/src/schema.rs", "lines": [ " roles (role_id) {\n", " user_roles (user_id, merchant_id) {\n", " users (user_id) {\n" ] }, { "file_path": "crates/diesel_models/src/schema_v2.rs", "lines": [ " roles (role_id) {\n", "...
[ { "file_path": "crates/diesel_models/src/schema.rs", "lines": [ " roles (id) {\n", " user_roles (id) {\n", " users (id) {\n" ] }, { "file_path": "crates/diesel_models/src/schema_v2.rs", "lines": [ " roles (id) {\n", " user_roles (id) {\n", "...
[ "sql", "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-5371
Bug: Make `original_payment_authorized_currency` and `original_payment_authorized_amount` mandatory fields for `Discover` cards and `Cybersource` connector during payment method migration. Make original_payment_authorized_currency and original_payment_authorized_amount mandatory fields for Discover cards and Cyberso...
diff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rs index 7799cc24df2..1ca01114dd5 100644 --- a/crates/api_models/src/payment_methods.rs +++ b/crates/api_models/src/payment_methods.rs @@ -1428,12 +1428,8 @@ impl From<PaymentMethodRecord> for PaymentMethodMigrate { ...
2024-07-19T08:01:57Z
## 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 --> Make `original_payment_authorized_currency` and `original_payme...
1c825f465a42c71568db994c5d05ba72d8680564
-> Create a merchant connector account for cybersource -> Create a customer ``` curl --location 'http://localhost:8080/customers' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_1oC3ReWVy4AaGA8ORA6EMm8JHS5WTlsmBtfRnNp2LLemMxZEJXfZ9hLYsd9wmWtg' \ --data...
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ " original_payment_authorized_amount: record.original_transaction_amount,\n", " original_payment_authorized_currency: record.original_transaction_currency,\n" ] }, { "file_path": "crat...
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ " original_payment_authorized_amount: record\n", " .original_transaction_amount\n", " .or(Some(1000)),\n", " original_payment_authorized_currency:...
[ "rs" ]
3