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-6165
Bug: [FIX] use batch encryption/decryption for payment intent table
diff --git a/crates/hyperswitch_domain_models/src/payments/payment_intent.rs b/crates/hyperswitch_domain_models/src/payments/payment_intent.rs index bd4707243ce..562e5d205c0 100644 --- a/crates/hyperswitch_domain_models/src/payments/payment_intent.rs +++ b/crates/hyperswitch_domain_models/src/payments/payment_intent.rs...
2024-09-30T16:08:45Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Enhancement ## Description <!-- Describe your changes in detail --> Batch Encrypt/Decrypt fields in Payment Intent table ## Motivation and Context <!-- Why is this change required? What problem does it solve? If it fixes an open issue, ple...
6b0f7e4870886997ca300935e727283c739be486
### How to test it in deployed environments Basic sanity testing of `PaymentsCreate` and `PaymentsList`. ### How did I test it locally 1. Call /payments from postman ```bash curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ ...
[ { "file_path": "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "lines": [ " crypto::{self, Encryptable},\n", " keymanager::{self, KeyManagerState, ToEncryptable},\n", "use rustc_hash::FxHashMap;\n", " type_encryption::{crypto_operation, CryptoOperation...
[ { "file_path": "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "lines": [ " crypto::Encryptable,\n", " keymanager::{self, KeyManagerState},\n", " type_encryption::{crypto_operation, AsyncLift, CryptoOperation},\n", " let inner_decrypt = |inn...
[ "toml", "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-6205
Bug: [FIX] batch encrypt decrypt for mca fetch/insert/update This adds batch encryption/decryption support for fetch/insert/update of the Merchant Connector Account.
diff --git a/crates/hyperswitch_domain_models/src/merchant_connector_account.rs b/crates/hyperswitch_domain_models/src/merchant_connector_account.rs index a281c553a13..66b98389818 100644 --- a/crates/hyperswitch_domain_models/src/merchant_connector_account.rs +++ b/crates/hyperswitch_domain_models/src/merchant_connecto...
2024-10-03T07:30:06Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Enhancement ## Description <!-- Describe your changes in detail --> This adds batch encrypt/decrypt support for Merchant Connector account create/fetch/update ## Motivation and Context <!-- Why is this change required? What problem does it ...
a3c2694943a985d27b5bc8b0371884d17a6ca34d
1. Create MerchantConnector Account ```bash { "connector_type": "fiz_operations", "connector_name": "checkout_test", "connector_label": "checkout_test_US_default", "merchant_connector_id": "mca_1nx2lpMSrHoJZ0Xiw3CM", "profile_id": "pro_1tS3symGpqUT5zGglYyI", "connector_account_details"...
[ { "file_path": "crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "lines": [ " types::keymanager::{Identifier, KeyManagerState, ToEncryptable},\n", "use rustc_hash::FxHashMap;\n", "use crate::type_encryption::{crypto_operation, CryptoOperation};\n", " let...
[ { "file_path": "crates/hyperswitch_domain_models/src/merchant_connector_account.rs", "lines": [ " types::keymanager::{Identifier, KeyManagerState},\n", "use crate::type_encryption::{crypto_operation, AsyncLift, CryptoOperation};\n", " connector_account_details: crypto_operati...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6184
Bug: refactor(users): Remove v1 insertions for user_roles Currently, we are inserting user_roles in v1 version and v2 version. Since we moved all the APIs to work with v2 data, we can stop inserting v1 data. This will also help in migrating v1 data to v2.
diff --git a/crates/diesel_models/src/query/user_role.rs b/crates/diesel_models/src/query/user_role.rs index 1cd25e54cb3..f4142842e21 100644 --- a/crates/diesel_models/src/query/user_role.rs +++ b/crates/diesel_models/src/query/user_role.rs @@ -5,7 +5,6 @@ use diesel::{ BoolExpressionMethods, ExpressionMethods, Qu...
2024-10-01T10:27:33Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Currently we are inserting user_roles in v1 version and v2 vers...
4dae29221f2d24a0f4299e641cfe22ab705fae25
All the following APIs will insert only v2 user_roles from now on. ```curl curl --location 'https://integ-api.hyperswitch.io/user/signup' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "new email", "password": "password" }' ``` ``` curl --location 'https://integ-api.hyperswit...
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " .insert_in_v2(state)\n", " EntityType::Organization => {\n", " user_role\n", " .add_entity(domain::OrganizationLevel {\n", " org_id: user_from_token....
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ "use router_env::logger;\n", " pub async fn insert_multiple_user_roles(\n", " conn: &PgPooledConn,\n", " user_roles: Vec<UserRoleNew>,\n", " ) -> StorageResult<Vec<Self>> {\n", " ...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6160
Bug: fix(payments): remove time range filter from payment attempt We don't need time range filters since created at is not indexed in payments attempts, we are already getting filtered payments intents and using its active attempt ids. It is further slowing down 'IN' query performance.
diff --git a/crates/diesel_models/src/query/payment_attempt.rs b/crates/diesel_models/src/query/payment_attempt.rs index e07d716fb6c..ad056aef6d0 100644 --- a/crates/diesel_models/src/query/payment_attempt.rs +++ b/crates/diesel_models/src/query/payment_attempt.rs @@ -369,7 +369,6 @@ impl PaymentAttempt { paym...
2024-09-30T13:32:34Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Currently `created_at` is not indexed in payment attempt table, when applying filtering with active attem...
e4a35d366b7db151378d6c1f61e4d01d1c7ed37f
We can hit test api ``` curl --location 'http://localhost:8080/payments/list' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer JWT' \ --data '{ "limit": 50, }' ```
[]
[ { "file_path": "crates/diesel_models/src/query/payment_attempt.rs", "lines": [ " time_range: Option<common_utils::types::TimeRange>,\n", " if let Some(time_range) = time_range {\n", " filter = filter.filter(dsl::created_at.ge(time_range.start_time));\n", "\n"...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6174
Bug: [FEATURE] integrate card payouts for Adyen ### Feature Description Adyen's Balance Platform is integrated as `Adyenplatform` in HyperSwitch. This is specifically integrated for processing payouts via Adyen through their Balance Platform product. Currently, only bank payouts (SEPA) is integrated. Adyen has roll...
diff --git a/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs b/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs index 1b1f2b42b77..7262ec9f3ff 100644 --- a/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs +++ b/crates...
2025-06-30T14:25:21Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR enables card payouts through AdyenPlatform connector. ### Additional Changes - [ ] This PR ...
d305fad2e6c403fde11b9eea785fddefbf3477df
<details> <summary>1. Card payouts via API</summary> cURL curl --location --request POST 'http://localhost:8080/payouts/create' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_lAISInmiO4UNrMmvkJogzRVKEGKlBKQbRCBFOkLJTXmq6nsD5G1H65BjOd4H72H8' \ --data '{"amo...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs", "lines": [ "use api_models::{payouts, webhooks};\n", " utils::{self, AddressDetailsData, PayoutsData as _, RouterData as _},\n", " priority: Option<AdyenPayoutPriority>,\n", " ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs", "lines": [ "use api_models::payouts;\n", "#[cfg(feature = \"payouts\")]\n", "use api_models::webhooks;\n", " utils::{self, PayoutsData as _, RouterData as _},\n", " priori...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6176
Bug: [PLUGIN] - WooCommerce - Refactor Code for Clarity and Readability The [WooCommerce-Payments-Plugin](https://docs.hyperswitch.io/features/e-commerce-platform-plugins/woocommerce-plugin) connect with multiple payment processors with a single API to improve payment conversions, reduce costs and ops. It supports m...
diff --git a/crates/router/src/connector/aci/transformers.rs b/crates/router/src/connector/aci/transformers.rs index c7dfe239526..4eecc3c1eeb 100644 --- a/crates/router/src/connector/aci/transformers.rs +++ b/crates/router/src/connector/aci/transformers.rs @@ -56,6 +56,7 @@ pub enum PaymentDetails { BankAccount(Ba...
2022-11-25T12:46:45Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates ## Description Add paypal as payment method type ### Additional Changes - [x] This PR modifies the database schema - [ ] This PR modifies applica...
d41159591e81f7674e87f333b9056702df74c52b
Manually tested (No DB error when payment method is paypal)
[ { "file_path": "crates/router/src/connector/aci/transformers.rs", "lines": [ " Paypal,\n", " api::PaymentMethod::Paypal => PaymentDetails::Paypal,\n" ] }, { "file_path": "crates/router/src/connector/adyen/transformers.rs", "lines": [ " api::PaymentM...
[]
[ "sql", "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-6146
Bug: fix(user_roles): Send only same and below Entity Level Users in List Users API Currently in user list api, for merchants we show org admin. This is happening because in V1 data, we have merchant_id in org level users as well, because of why the filtering is not correct.
diff --git a/crates/router/src/core/user_role.rs b/crates/router/src/core/user_role.rs index b841f88eca1..e10fa0eb81c 100644 --- a/crates/router/src/core/user_role.rs +++ b/crates/router/src/core/user_role.rs @@ -736,6 +736,16 @@ pub async fn list_users_in_lineage( } }; + // This filtering is needed ...
2024-09-27T11:56:42Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Send only same and below Entity Level Users in List Users API...
67d6d2247bb53dc25831d65305269ba6889c99de
``` curl 'http://localhost:8080/user/user/v2/list' \ -H 'authorization: Bearer JWT' \ ``` This API when called with merchant level users, it should not send org level users in response. Can be tested via control center.
[ { "file_path": "crates/router/src/core/user_role.rs", "lines": [ " // This filtering is needed because for org level users in V1, merchant_id is present.\n", " // Due to this, we get org level users in merchant level users list.\n", " let user_roles_set = user_roles_set\n", ...
[ { "file_path": "crates/router/src/utils/user_role.rs", "lines": [ "use std::collections::HashSet;\n", " match (user_entity, filter_entity) {\n", " (EntityType::Organization, None)\n", " | (EntityType::Organization, Some(EntityType::Organization)) => {\n", " ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6141
Bug: fix(admin): jwt added for organization update and retrieve Previously, updating and retrieving organization details required authentication using the admin API key. With the recent change, the dashboard JWT can now be used to update the org_name directly through the dashboard.
diff --git a/crates/router/src/routes/admin.rs b/crates/router/src/routes/admin.rs index e5a18fba536..78238d3af07 100644 --- a/crates/router/src/routes/admin.rs +++ b/crates/router/src/routes/admin.rs @@ -39,14 +39,24 @@ pub async fn organization_update( ) -> HttpResponse { let flow = Flow::OrganizationUpdate; ...
2024-09-27T07:14:54Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [X] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Previously, updating and retrieving organization details requir...
67d6d2247bb53dc25831d65305269ba6889c99de
Request : ``` curl --location --request PUT 'http://localhost:8080/organization/${org_id}' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer JWT' \ --data '{ "organization_name":"RiddhiTest3" }' ``` Response: ``` { "organization_id": "org_id", "organization_name...
[ { "file_path": "crates/router/src/routes/admin.rs", "lines": [ " let org_id = admin::OrganizationId {\n", " organization_id: organization_id.clone(),\n", " };\n", " auth::auth_type(\n", " &auth::AdminApiAuth,\n", " &auth::JWTAuthO...
[ { "file_path": "crates/router/src/routes/admin.rs", "lines": [ " let org_id = admin::OrganizationId { organization_id };\n", " &auth::AdminApiAuth,\n", " let payload = admin::OrganizationId { organization_id };\n", " &auth::AdminApiAuth,\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6135
Bug: [REFACTOR]: [OPAYO] Add amount conversion framework to Opayo ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the f...
diff --git a/crates/router/src/connector/opayo.rs b/crates/router/src/connector/opayo.rs index cd1ef67f662..3e7edba2128 100644 --- a/crates/router/src/connector/opayo.rs +++ b/crates/router/src/connector/opayo.rs @@ -1,8 +1,9 @@ mod transformers; -use std::fmt::Debug; - -use common_utils::request::RequestContent; +u...
2024-10-16T22:13:47Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR adds amount conversion framework to Opayo. Opayo accep...
881f5fd0149cb5573eb31451fceb596092eab79a
[ { "file_path": "crates/router/src/connector/opayo.rs", "lines": [ "use common_utils::{\n", " request::RequestContent,\n", " types::{AmountConvertor, MinorUnit, MinorUnitForConnector},\n", "};\n", " connector::{utils as connector_utils, utils::convert_amount},\n", ...
[ { "file_path": "crates/router/src/connector/opayo.rs", "lines": [ "use std::fmt::Debug;\n", "\n", "use common_utils::request::RequestContent;\n", " connector::utils as connector_utils,\n", "#[derive(Debug, Clone)]\n", "pub struct Opayo;\n", " let connector...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6117
Bug: [FEATURE] Generate Random Disputes for sample data ### Feature Description The issue is sub part of issue: #5991 (Please refer to this First) The current implementation of the generate_sample_data_for_user function generates sample data for payments and refunds. However, there is no functionality to generat...
diff --git a/crates/router/src/core/user/sample_data.rs b/crates/router/src/core/user/sample_data.rs index 453b3edf00f..d098d1f76d9 100644 --- a/crates/router/src/core/user/sample_data.rs +++ b/crates/router/src/core/user/sample_data.rs @@ -1,6 +1,6 @@ use api_models::user::sample_data::SampleDataRequest; use common_...
2024-10-16T19:47:45Z
## 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 --> I added dispute generation to function `generate_sample_data` i...
c3b0f7c1d6ad95034535048aa50ff6abe9ed6aa0
Tested manually. Initial state for both Case1 and Case2: Before sending POST request to `sample_data`, there are 18 non-generated `payment_attempt` records, and 0 `dispute` record. <img width="1384" alt="image" src="https://github.com/user-attachments/assets/a97abf7e-34d4-4bc2-b5e6-fd7ff2908c94"> <img width="11...
[ { "file_path": "crates/router/src/core/user/sample_data.rs", "lines": [ "use diesel_models::{DisputeNew, RefundNew};\n", " let (payment_intents, payment_attempts, refunds, disputes): (\n", " Vec<DisputeNew>,\n", " (Vec::new(), Vec::new(), Vec::new(), Vec::new()),\n",...
[ { "file_path": "crates/router/src/core/user/sample_data.rs", "lines": [ "use diesel_models::RefundNew;\n", " let (payment_intents, payment_attempts, refunds): (\n", " (Vec::new(), Vec::new(), Vec::new()),\n", " |(mut pi, mut pa, mut rf), (payment_intent, payment_atte...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6121
Bug: [REFACTOR]: [WISE] Add amount conversion framework to Wise ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the flo...
diff --git a/crates/router/src/connector/wise.rs b/crates/router/src/connector/wise.rs index 8123ae7ec79..9f41651b2f9 100644 --- a/crates/router/src/connector/wise.rs +++ b/crates/router/src/connector/wise.rs @@ -1,8 +1,8 @@ pub mod transformers; -use std::fmt::Debug; #[cfg(feature = "payouts")] use common_utils::...
2024-10-30T14:13:48Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This pull request introduces significant changes to the Wise co...
72ee434003eef744d516343a2f803264f226d92a
[ { "file_path": "crates/router/src/connector/wise.rs", "lines": [ "use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector};\n", "use super::utils::convert_amount;\n", "#[derive(Clone)]\n", "pub struct Wise {\n", " amount_converter: &'static (dyn AmountCon...
[ { "file_path": "crates/router/src/connector/wise.rs", "lines": [ "use std::fmt::Debug;\n", "#[derive(Debug, Clone)]\n", "pub struct Wise;\n", " let connector_req = wise::WisePayoutQuoteRequest::try_from(req)?;\n", " let connector_req = wise::WiseRecipientCreateReq...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6157
Bug: [FEATURE] [DLOCAL, SQUARE] Move connector code to crate hyperswitch_connectors ### Feature Description Connector code for `dlocal` and `square` needs to be moved from crate `router` to new crate `hyperswitch_connectors` ### Possible Implementation Connector code for `dlocal` and `square` needs to be mo...
diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rs index f057b7d4a33..9406353a1ee 100644 --- a/crates/hyperswitch_connectors/src/connectors.rs +++ b/crates/hyperswitch_connectors/src/connectors.rs @@ -4,6 +4,7 @@ pub mod cashtocode; pub mod coinbase; pub mod...
2024-09-30T08:36:17Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Move conector Dlocal and Square from router to hyperswitch_connector crate ### Additional Changes -...
dcec2a2bff082b606cc3376e9451d53ed6ecdf04
1. Create Merchant Account ``` curl --location 'http://localhost:8080/accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data-raw '{ "merchant_id": "merchant_1727684785", "locker_id": "m0010", "merchant_name": "NewAge Retailer"...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ "pub mod dlocal;\n", "pub mod square;\n", " cryptopay::Cryptopay, deutschebank::Deutschebank, dlocal::Dlocal, fiserv::Fiserv,\n", " fiservemea::Fiservemea, fiuu::Fiuu, globepay::Globepay, helcim::Helci...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " cryptopay::Cryptopay, deutschebank::Deutschebank, fiserv::Fiserv, fiservemea::Fiservemea,\n", " fiuu::Fiuu, globepay::Globepay, helcim::Helcim, mollie::Mollie, nexixpay::Nexixpay,\n", " novalnet::Novaln...
[ "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-6139
Bug: [REFACTOR]: [RISKIFIED] Add amount conversion framework to Riskified ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardi...
diff --git a/crates/router/src/connector/riskified.rs b/crates/router/src/connector/riskified.rs index 0f8ebb46134..7d9feec717a 100644 --- a/crates/router/src/connector/riskified.rs +++ b/crates/router/src/connector/riskified.rs @@ -1,8 +1,10 @@ pub mod transformers; -use std::fmt::Debug; #[cfg(feature = "frm")] u...
2024-10-17T18:02:20Z
## 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 does amount conversion changes for Riskified Connector ...
cd6265887adf7c17136e9fb608e97e6dd535e360
[ { "file_path": "crates/router/src/connector/riskified.rs", "lines": [ "use common_utils::types::{\n", " AmountConvertor, MinorUnit, StringMajorUnit, StringMajorUnitForConnector,\n", "};\n", "use super::utils::convert_amount;\n", "#[derive(Clone)]\n", "pub struct Riskif...
[ { "file_path": "crates/router/src/connector/riskified.rs", "lines": [ "use std::fmt::Debug;\n", "#[derive(Debug, Clone)]\n", "pub struct Riskified;\n", " let req_obj = riskified::RiskifiedPaymentsCheckoutRequest::try_from(req)?;\n", " let req_obj = riskifi...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6122
Bug: [REFACTOR]: [SHIFT4] Add amount conversion framework to Shift4 ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the...
diff --git a/crates/router/src/connector/shift4.rs b/crates/router/src/connector/shift4.rs index 895487db3ba..08c23bc5710 100644 --- a/crates/router/src/connector/shift4.rs +++ b/crates/router/src/connector/shift4.rs @@ -1,8 +1,10 @@ pub mod transformers; -use std::fmt::Debug; - -use common_utils::{ext_traits::ByteS...
2024-10-07T11:52:12Z
## 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 amount conversion framework to Shift4, for sending to connector. Resolves #6122 ### Add...
3d1a3cdc8f942a3dca2e6a200bf9200366bd62f1
[ { "file_path": "crates/router/src/connector/shift4.rs", "lines": [ "use common_utils::{\n", " ext_traits::ByteSliceExt,\n", " request::RequestContent,\n", " types::{AmountConvertor, MinorUnit, MinorUnitForConnector},\n", "};\n", "#[derive(Clone)]\n", "pub s...
[ { "file_path": "crates/router/src/connector/shift4.rs", "lines": [ "use std::fmt::Debug;\n", "\n", "use common_utils::{ext_traits::ByteSliceExt, request::RequestContent};\n", "#[derive(Debug, Clone)]\n", "pub struct Shift4;\n", " let connector_req = shift4::Shift4P...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6116
Bug: [FEATURE] Update worldpay connector's integration # Storing long connector transaction IDs (\>128 characters) ## Aim This issue describes the approach for efficiently storing long connector transaction IDs in HyperSwitch application. ## Context HyperSwitch is integrated with multiple connectors, the...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index e16a206b118..5d6d4049dea 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -6018,6 +6018,7 @@ "description": "The three letter ISO currency code in uppercase. Eg: 'USD' for the U...
2024-09-26T10:48:20Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #6116 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR m...
39d89f23b6ae85c4f91a52bb0d970277b43237d8
Things to test 1. No 3DS payment using auto capture 2. No 3DS payment using manual capture (full amount captures) 3. Refunds 4. Payments Sync 5. Backwards compatibility Notes - Refunds cannot be tested as WP relies only on webhooks to update the status to settled (succeeded in HS). Webhook URLs are configure...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"AFN\",\n", " \"BTN\",\n", " \"CDF\",\n", " \"ERN\",\n", " \"IRR\",\n", " \"ISK\",\n", " \"KPW\",\n", " \"SDG\",\n", ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"ZMW\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "apple_pay.country = \"AU,CN,HK,JP,MO,MY,NZ,SG,TW,AM,AT,AZ,BY,BE,BG,HR,CY,CZ,DK,EE,FO,FI,FR,GE,DE,GR,GL,GG,HU,IS,IE,IM,...
[ "json", "sql", "toml", "rs", "js" ]
63
juspay/hyperswitch
juspay__hyperswitch-6115
Bug: fix: env added for hyperswitch-web Added env for hyperswitch-web
diff --git a/docker-compose.yml b/docker-compose.yml index ef6ff17b5e9..f766ff91053 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -162,6 +162,7 @@ services: - SELF_SERVER_URL=http://localhost:5252 - SDK_ENV=local - ENV_LOGGING_URL=http://localhost:3103 + - ENV_BACKEND_URL=http://...
2024-09-26T12:12:55Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description In docker for hyperswitch-web we were facing that it's always pointing to beta.hyperswitch.io as `ENV_BAC...
8049993320e0c103d72dcae0497928ba622d7b59
Via checking HyperLoader.js file at 9050 port.
[ { "file_path": "docker-compose.yml", "lines": [ " - ENV_BACKEND_URL=http://localhost:8080\n" ] } ]
[]
[ "yml" ]
1
juspay/hyperswitch
juspay__hyperswitch-6111
Bug: [FEATURE] Extend the BatchSampleDataInterface Trait for Disputes ### Feature Description The issue is sub part of issue: #5991 We currently have a feature for generating sample data, which includes batch insertion of payments and refunds. The feature inserts payments and refunds in batches using the Batc...
diff --git a/crates/diesel_models/src/query/user/sample_data.rs b/crates/diesel_models/src/query/user/sample_data.rs index b5400f570a3..27e674f7d7b 100644 --- a/crates/diesel_models/src/query/user/sample_data.rs +++ b/crates/diesel_models/src/query/user/sample_data.rs @@ -12,9 +12,11 @@ use crate::schema_v2::{ pay...
2024-10-11T13:39:20Z
## 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 --> I've extended the interface for `BatchSampleDataInterface` to w...
53e82c3faef3ee629a38180e3882a2920332a9a8
Manual test is done, screenshots are provided in the comment section of this issue: https://github.com/juspay/hyperswitch/issues/6111
[ { "file_path": "crates/diesel_models/src/query/user/sample_data.rs", "lines": [ " errors,\n", " schema::{dispute::dsl as dispute_dsl, refund::dsl as refund_dsl},\n", " user::sample_data::PaymentAttemptBatchNew,\n", " Dispute, DisputeNew, PaymentAttempt, PaymentIntent, Pay...
[ { "file_path": "crates/diesel_models/src/query/user/sample_data.rs", "lines": [ " errors, schema::refund::dsl as refund_dsl, user::sample_data::PaymentAttemptBatchNew,\n", " PaymentAttempt, PaymentIntent, PaymentIntentNew, PgPooledConn, Refund, RefundNew,\n", " StorageResult,\n" ...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6097
Bug: [REFACTOR]: [TSYS] Add amount conversion framework to Tsys ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the flo...
diff --git a/crates/hyperswitch_connectors/src/connectors/tsys.rs b/crates/hyperswitch_connectors/src/connectors/tsys.rs index ec53a99316f..25b47981def 100644 --- a/crates/hyperswitch_connectors/src/connectors/tsys.rs +++ b/crates/hyperswitch_connectors/src/connectors/tsys.rs @@ -1,12 +1,11 @@ pub mod transformers; ...
2024-10-09T22:18:50Z
## Type of Change - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description added `StringMajorUnit` for amount conversion ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR modifies the datab...
3d1a3cdc8f942a3dca2e6a200bf9200366bd62f1
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/tsys.rs", "lines": [ " types::{AmountConvertor, StringMinorUnit, StringMinorUnitForConnector},\n", "#[derive(Clone)]\n", "pub struct Tsys {\n", " amount_converter: &'static (dyn AmountConvertor<Output = StringMinorUni...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/tsys.rs", "lines": [ "use std::fmt::Debug;\n", "\n", "#[derive(Debug, Clone)]\n", "pub struct Tsys;\n", "\n", " let connector_req = tsys::TsysPaymentsRequest::try_from(req)?;\n", " let connec...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6094
Bug: [FIX] keymanager config if disabled
diff --git a/config/development.toml b/config/development.toml index 6e56d5bb14d..a607dd94a16 100644 --- a/config/development.toml +++ b/config/development.toml @@ -13,7 +13,7 @@ use_xray_generator = false bg_metrics_collection_interval_in_secs = 15 [key_manager] -url = "http://localhost:5000" +enabled = false #...
2024-09-26T07:16:23Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Enhancement ## Description <!-- Describe your changes in detail --> This fixes unnecessary failure when url and cert for the keymanager is not provided in the config but keymanager is disabled. ## Motivation and Context <!-- Why is this cha...
962b9978d651e3cc9185b2f6f849c7f255868077
This cannot be tested on any environment
[ { "file_path": "config/development.toml", "lines": [ "enabled = false\n" ] }, { "file_path": "crates/common_utils/src/types/keymanager.rs", "lines": [ " pub enabled: bool,\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/type_encryption.rs", "lines"...
[ { "file_path": "config/development.toml", "lines": [ "url = \"http://localhost:5000\"\n" ] }, { "file_path": "crates/common_utils/src/types/keymanager.rs", "lines": [ " pub enabled: Option<bool>,\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/type_enc...
[ "toml", "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6092
Bug: [REFACTOR]: [MOLLIE] Add amount conversion framework to Mollie ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the...
diff --git a/crates/hyperswitch_connectors/src/connectors/mollie.rs b/crates/hyperswitch_connectors/src/connectors/mollie.rs index 5066fb422fa..010ae90c56f 100644 --- a/crates/hyperswitch_connectors/src/connectors/mollie.rs +++ b/crates/hyperswitch_connectors/src/connectors/mollie.rs @@ -1,12 +1,11 @@ pub mod transfor...
2024-10-09T18:52:03Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Refactoring ## Description <!-- Describe your changes in detail --> This PR do amount conversion changes for Mollie Connector and it accepts the amount in StringMajorUnit ### Additional Changes - [ ] This PR modifies the API contract - ...
edd099886da9c46800a646fe809796a08eb78c99
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/mollie.rs", "lines": [ " types::{AmountConvertor, StringMajorUnit, StringMajorUnitForConnector},\n", "use crate::{constants::headers, types::ResponseRouterData, utils::convert_amount};\n", "\n", "#[derive(Clone)]\n", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/mollie.rs", "lines": [ "use std::fmt::Debug;\n", "\n", "use crate::{constants::headers, types::ResponseRouterData};\n", "#[derive(Debug, Clone)]\n", "pub struct Mollie;\n", " let router_obj = mollie::Moll...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6086
Bug: feat(analytics): add card network feature Add a filter in payment analytics for the card network column
diff --git a/crates/analytics/src/opensearch.rs b/crates/analytics/src/opensearch.rs index e0235c67bed..149c77212a0 100644 --- a/crates/analytics/src/opensearch.rs +++ b/crates/analytics/src/opensearch.rs @@ -280,7 +280,10 @@ impl HealthCheck for OpenSearchClient { if health.status != OpenSearchHealthStatus::R...
2024-09-25T20:51: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 --> - Add card network analytics filter in payment analytics ###...
9a605afe372a0602127090da59e35ac9ca7396e1
<img width="431" alt="image" src="https://github.com/user-attachments/assets/d209f786-a967-4245-a780-e9539a5c7469">
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " Err::<(), error_stack::Report<QueryExecutionError>>(\n", " QueryExecutionError::DatabaseError.into(),\n", " )\n", " .attach_printable_lazy(|| format!(\"Opensearch cluster...
[ { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " Err(QueryExecutionError::DatabaseError.into())\n" ] }, { "file_path": "crates/api_models/src/analytics/payments.rs", "lines": [ " AttemptStatus, AuthenticationType, Connector, Currency, PaymentMethod,...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-6112
Bug: refactor(users): Deprecate non-profile level user APIs - Currently there are few APIs in Backend which are not at profile level. For example - Switch merchant. - We have to remove those APIs. - If there is any v2 counter part for those APIs, v1 APIs should be modified so that they will work the same way as v1.
diff --git a/crates/api_models/src/events/user.rs b/crates/api_models/src/events/user.rs index 9b100a7321e..bb61a025180 100644 --- a/crates/api_models/src/events/user.rs +++ b/crates/api_models/src/events/user.rs @@ -12,25 +12,16 @@ use crate::user::{ }, AcceptInviteFromEmailRequest, AuthSelectRequest, Author...
2024-09-26T12:17:17Z
## 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 --> Deletions - `/user/switch_merchant` - `/user/switch/list`...
67d6d2247bb53dc25831d65305269ba6889c99de
All the below APIs with throw 404. - `/user/switch_merchant` - `/user/switch/list` - `/user/merchants/list` - `/user/merchant_select/list` All the below APIs with behave differently. - `/user/user` will work same as `/user/user/v2` - `/user/user/list` will work same as `/user/user/v2/list` - ...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " CreateUserAuthenticationMethodRequest, ForgotPasswordRequest, GetSsoAuthUrlRequest,\n", " GetUserAuthenticationMethodsRequest, GetUserDetailsResponse, GetUserRoleDetailsRequest,\n", " GetUserRoleDetailsResponseV2,...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " CreateUserAuthenticationMethodRequest, DashboardEntryResponse, ForgotPasswordRequest,\n", " GetSsoAuthUrlRequest, GetUserAuthenticationMethodsRequest, GetUserDetailsResponse,\n", " GetUserRoleDetailsRequest, GetUs...
[ "rs" ]
18
juspay/hyperswitch
juspay__hyperswitch-6129
Bug: [CYPRESS]: Verify Time Range Filters in "Payment operations" page. --- ### **Title**: Verify Time Range Filters in "Payment operations" page. --- ### **Description**: This task is to write and execute automated test cases for various UI elements and functionalities on the "Payment Operations" page. ...
2023-07-08T11:58:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> This PR updates the schedule for the auto release workflow to r...
f56f9d643451b9a7ff961b21fc6ec0eefac0ebdf
N/A
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6131
Bug: [CYPRESS]: Verify Columns in "Payment operations" page. --- ### **Title**: Verify Columns in "Payment operations" page. --- ### **Description**: This task is to write and execute automated test cases for various UI elements and functionalities on the "Payment Operations" page. The tests should valid...
2023-07-10T09:17:23Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> - Also push to public docker repositories for all release tags ...
b428298030b3c04a249f175b51b7904ab96e2ce7
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6090
Bug: restructure `Samsung Pay` connector wallet details We need to restructure the Samsung Pay session token data stored in the connector wallet details as going forward we will add support for samsung pay payments with hyperswitch credentials. Then the samsung pay payment can be done using either merchant's credent...
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 456bb8e43a3..9d606dacb9f 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -4908,20 +4908,37 @@ pub struct GpaySessionTokenData { pub data: GpayMetaData, } +#[derive(Debug, Clone, ser...
2024-09-26T06:27:47Z
## 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 --> We need to restructure the Samsung Pay session token data store...
962b9978d651e3cc9185b2f6f849c7f255868077
``` { "connector_type": "payment_processor", "connector_name": "cybersource", "connector_account_details": { "auth_type": "SignatureKey", "api_secret": "api_secret", "key1": "key1", "api_key": "api_key" }, "test_mode": true, "disabled": false, "p...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ "#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]\n", "#[serde(rename_all = \"snake_case\")]\n", "pub enum SamsungPayCombinedMetadata {\n", " // This is to support the Samsung Pay decryption flow with appl...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " pub data: SamsungPayMetadata,\n", "pub struct SamsungPayMetadata {\n" ] }, { "file_path": "crates/router/src/core/payments/flows/session_flow.rs", "lines": [ " let samsung_pay_wallet_details = router_dat...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6024
Bug: [REFACTOR]: [WELLSFARGO] Add amount conversion framework to Wellsfargo ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standar...
diff --git a/crates/common_utils/src/types.rs b/crates/common_utils/src/types.rs index 0cad88bfd4f..1c0ca722f29 100644 --- a/crates/common_utils/src/types.rs +++ b/crates/common_utils/src/types.rs @@ -580,6 +580,10 @@ impl StringMajorUnit { .ok_or(ParsingError::DecimalToI64ConversionFailure)?; Ok(...
2024-10-13T18:46:13Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Refactoring ## Description <!-- Describe your changes in detail --> This PR do amount conversion changes for Wellsfargo Connector and it accepts the amount in StringMajorUnit ### Additional Changes - [ ] This PR modifies the API contract ...
19a8474d8731ed7149b541f02ad237e30c4c9f24
[ { "file_path": "crates/common_utils/src/types.rs", "lines": [ " /// forms a new StringMajorUnit default unit i.e zero\n", " pub fn zero() -> Self {\n", " Self(\"0\".to_string())\n", " }\n" ] }, { "file_path": "crates/router/src/connector/wellsfargo.rs", ...
[ { "file_path": "crates/router/src/connector/wellsfargo.rs", "lines": [ "use std::fmt::Debug;\n", "\n", "use common_utils::request::RequestContent;\n", "#[derive(Debug, Clone)]\n", "pub struct Wellsfargo;\n", " let connector_router_data = wellsfargo::WellsfargoRoute...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-6019
Bug: [REFACTOR]: [HELCIM] Add amount conversion framework to Helcim ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the...
diff --git a/crates/hyperswitch_connectors/src/connectors/fiserv.rs b/crates/hyperswitch_connectors/src/connectors/fiserv.rs index e80c57454a0..50eebb99518 100644 --- a/crates/hyperswitch_connectors/src/connectors/fiserv.rs +++ b/crates/hyperswitch_connectors/src/connectors/fiserv.rs @@ -1,13 +1,12 @@ pub mod transfor...
2025-02-21T08:52:43Z
## 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 --> added **FloatMajorUnit** for amount conversion for **Fiserv** ...
24aa00341f907e7b77df9348f62d1416cc098691
Tested through postman: - Create a MCA for **fiserv**: - Create a Payment with **fiserv**: request: ``` { "amount": 10000, "currency": "USD", "amount_to_capture": 10000, "confirm": true, "profile_id": {{profile_id}}, "capture_method": "automatic", "capture_on": "2022-09-10T...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiserv.rs", "lines": [ " types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector},\n", "use crate::{\n", " constants::headers,\n", " types::ResponseRouterData,\n", " utils::{construct_not_imple...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiserv.rs", "lines": [ "use std::fmt::Debug;\n", "\n", "use crate::{constants::headers, types::ResponseRouterData, utils};\n", "#[derive(Debug, Clone)]\n", "pub struct Fiserv;\n", " utils::constru...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-6130
Bug: [CYPRESS]: Verify Search in "Payment operations" page. --- ### **Title**: Verify Search in "Payment operations" page. --- ### **Description**: This task is to write and execute automated test cases for various UI elements and functionalities on the "Payment Operations" page. The tests should validat...
diff --git a/crates/api_models/Cargo.toml b/crates/api_models/Cargo.toml index 4e8710e031c..f1c7e8396da 100644 --- a/crates/api_models/Cargo.toml +++ b/crates/api_models/Cargo.toml @@ -10,7 +10,6 @@ license.workspace = true [features] default = ["payouts"] errors = ["dep:actix-web", "dep:reqwest"] -multiple_mca = []...
2023-07-11T10:26:05Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Refactoring ## Description <!-- Describe your changes in detail --> This PR will remove the multiple mca feature. No fields will have default values in primary business details. - When creating merchant connector account, `business_label` and...
bad9b9482398bb624cb34ae7021837f7af6e8e00
- Create a merchant account, without primary business details - Create connector account without business details -> Error <img width="829" alt="Screenshot 2023-07-11 at 3 48 23 PM" src="https://github.com/juspay/hyperswitch/assets/48803246/f5ac8294-b38b-48de-ab44-be5f7854aedc"> - Create connector ac...
[ { "file_path": "crates/router/src/core/admin.rs", "lines": [ " &req.primary_business_details.unwrap_or_default(),\n", " helpers::validate_business_details(\n", " req.business_country,\n", " &req.business_label,\n", " &merchant_account,\n", "...
[ { "file_path": "crates/api_models/Cargo.toml", "lines": [ "multiple_mca = []\n" ] }, { "file_path": "crates/api_models/src/admin.rs", "lines": [ " #[cfg(feature = \"multiple_mca\")]\n", " #[schema(value_type = PrimaryBusinessDetails)]\n", " pub primary_busine...
[ "toml", "json", "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-6020
Bug: [REFACTOR]: [RAPYD] Add amount conversion framework to Rapyd ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the f...
diff --git a/crates/router/src/connector/rapyd.rs b/crates/router/src/connector/rapyd.rs index da10513b3d3..196eb4ce73d 100644 --- a/crates/router/src/connector/rapyd.rs +++ b/crates/router/src/connector/rapyd.rs @@ -1,11 +1,11 @@ pub mod transformers; -use std::fmt::Debug; use base64::Engine; use common_utils::{ ...
2024-10-23T13:43:06Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR adds amount conversion framework to rapyd. rapyd accep...
cd6265887adf7c17136e9fb608e97e6dd535e360
[ { "file_path": "crates/router/src/connector/rapyd.rs", "lines": [ " types::{AmountConvertor, MinorUnit, MinorUnitForConnector},\n", " connector::utils::convert_amount,\n", "#[derive(Clone)]\n", "pub struct Rapyd {\n", " amount_converter: &'static (dyn AmountConvertor<O...
[ { "file_path": "crates/router/src/connector/rapyd.rs", "lines": [ "use std::fmt::Debug;\n", "#[derive(Debug, Clone)]\n", "pub struct Rapyd;\n", "\n", " let connector_router_data = rapyd::RapydRouterData::try_from((\n", " &self.get_currency_unit(),\n", ...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6018
Bug: pass Samsung Pay `public_key_hash` in the confirm call The token received form Samsung Pay will be int the JWT format. The header of that will contain the `kid` which is the `public_key_hash`. This is needs to be passed to Cybersource in the confirm call.
diff --git a/crates/router/src/connector/adyen.rs b/crates/router/src/connector/adyen.rs index f0b84fc93c1..810551e0cb7 100644 --- a/crates/router/src/connector/adyen.rs +++ b/crates/router/src/connector/adyen.rs @@ -130,6 +130,7 @@ impl ConnectorValidation for Adyen { } }, ...
2024-09-25T05:31: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 --> The token received form Samsung Pay will be int the JWT format....
2a10b09a2f7c6bcf0b9b7c23b5b88066e1d0f029
Test Samsung Pay flow -> Enable Samsung Pay payment method for the connector (Cybersource) ``` { "connector_type": "payment_processor", "connector_name": "cybersource", "connector_account_details": { "auth_type": "SignatureKey", "api_secret": "api_secret", "key1": "key1", ...
[ { "file_path": "crates/router/src/connector/adyen.rs", "lines": [ " | PaymentMethodType::SamsungPay\n" ] }, { "file_path": "crates/router/src/connector/cybersource/transformers.rs", "lines": [ "use common_utils::{\n", " ext_traits::{OptionExt, ValueExt},\n...
[ { "file_path": "crates/router/src/connector/adyen.rs", "lines": [ " | PaymentMethodType::SamsungPay\n" ] }, { "file_path": "crates/router/src/connector/cybersource/transformers.rs", "lines": [ "use common_utils::{ext_traits::ValueExt, pii, types::SemanticVersion};\...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-6028
Bug: [FEATURE] Implement Paze Wallet ### Feature Description Integrate paze wallet https://www.paze.com/ ### Possible Implementation Integrate paze wallet https://www.paze.com/ ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a similar issue...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 388ccb79a66..44ac1d3e08d 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -5592,6 +5592,11 @@ "type": "object", "description": "This field contains the Samsung ...
2024-09-25T13:09:27Z
## 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 --> New wallet Paze is integrated in Hyperswitch with Cybserource a...
2bc21cfc5e3e6d8403bec82fde14cfd01536f406
Paze Payments need to be tested via Cybersource: 1. Payments Connector - Create: Request: ``` curl --location 'http://localhost:8080/account/merchant_1727784802/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data '{ "conn...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " },\n", " \"paze\": {\n", " \"type\": \"object\",\n", " \"description\": \"This field contains the Paze certificates and credentials\",\n", " \"nullable\": true\n...
[ { "file_path": "crates/connector_configs/src/transformer.rs", "lines": [ " (_, GooglePay) | (_, ApplePay) | (_, PaymentMethodType::SamsungPay) => {\n" ] }, { "file_path": "crates/router/src/connector/gocardless/transformers.rs", "lines": [ " types::Payme...
[ "toml", "json", "rs" ]
66
juspay/hyperswitch
juspay__hyperswitch-6014
Bug: [BUG] Add reference to Sepa Bank Transfer Next Customer Actions Responses ### Bug Description Sepa bank transfer payment responses don't contain reference for the payment. A reference is very important unique id for the payment reconciliation by the connectors. e.g. Stripe does create a payment reference ...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index fb679970f3d..c554245b936 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -18325,7 +18325,8 @@ "account_holder_name", "bic", "country", - "iban"...
2024-10-03T13:51:09Z
## 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' added in sepa_bank_instructions, for Stripe Sepa B...
a3c2694943a985d27b5bc8b0371884d17a6ca34d
Request ~~~ curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: <apiKey>' \ --data-raw '{ "amount": 60, "authentication_type": "no_three_ds", "confirm": true, "currency": "EUR", "customer_id": "S...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"iban\",\n", " \"reference\"\n", " },\n", " \"reference\": {\n", " \"type\": \"string\",\n", " \"example\": \"U2PVVSEV4V9Y\"\n" ] }, { ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"iban\"\n" ] }, { "file_path": "crates/router/src/connector/stripe/transformers.rs", "lines": [ " financial_address.iban.to_owned(),\n" ] } ]
[ "json", "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6009
Bug: [$100] Develop Email Template Design ### Please make sure to read this through the below Guidelines before attempting the problem statements [Contribution Guidelines](https://github.com/juspay/hyperswitch/blob/main/docs/CONTRIBUTING.md) [Bounty Program Guidelines](https://github.com/juspay/hyperswitch/wiki/...
2023-07-13T14:33:28Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> This PR fixes the command used to generate release notes in the...
9112417caee51117c170af6096825c5b1b2bd0e0
Locally. Trust me, it works.
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-6004
Bug: [BUG] [CORE] Payment method details are being none in Psync Response. ### Bug Description Payment method details are being none in Psync Response. ### Expected Behavior Payment method data should be populated in Psync response for all the payment methods, except for network token. ### Actual Behavior Payme...
diff --git a/crates/router/src/core/payments/transformers.rs b/crates/router/src/core/payments/transformers.rs index 37e178dc7f3..d8c5f88dde9 100644 --- a/crates/router/src/core/payments/transformers.rs +++ b/crates/router/src/core/payments/transformers.rs @@ -784,36 +784,16 @@ where .map(ToString::to_string) ...
2024-09-24T08:35:45Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Currently, in Psync response, payment_method_data is being none...
8a9fed36fc7f01f54d9a2e725abf459fac857222
payment curl - ```{ "amount": 6540, "currency": "USD", "confirm": true, "capture_method": "automatic", "capture_on": "2022-09-10T10:11:12Z", "amount_to_capture": 6540, "customer_id": "StripeCustomer", "email": "guest@example.com", "name": "John Doe", "phone": "99999...
[ { "file_path": "crates/router/src/core/payments/transformers.rs", "lines": [ " payment_attempt\n", " .payment_method_data\n", " .clone()\n", " .and_then(|data| match data {\n", " serde_json::Value::Null => None, // This is ...
[ { "file_path": "crates/router/src/core/payments/transformers.rs", "lines": [ " match payment_data.get_payment_method_data(){\n", " Some(payment_method_data) => match payment_method_data{\n", " hyperswitch_domain_models::payment_method_data::PaymentMethodData::Card(_) |...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6012
Bug: fix: remove internal entity type We can remove type internal. TODO: - Being internal is the property of role and does not depend on entity type - We can remove logic for internal entity type and transfer it use role.is_internal() wherever it is being used in the code. - The mini logics like get entity type ...
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index a9ece7e9c02..d6f452a5a01 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -3144,7 +3144,6 @@ pub enum ApiVersion { #[strum(serialize_all = "snake_case")] #[serde(rename_all = "snake_case")] p...
2024-09-24T11:18:33Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Remove internal from entity type. Being internal is the property of role and does not depend on entity ty...
3ddfe53838c6b039dc5f669ccd23d3035521d691
Switch should work fine for users For internal users also switch merchant should work as expected. ``` curl --location 'http://localhost:8080/user/switch/merchant' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer JWT' \ --data '{ "merchant_id": "some_merchant_id" }' ``` The ...
[ { "file_path": "crates/router/src/core/user.rs", "lines": [ " let internal_merchant_id = common_utils::id_type::MerchantId::get_internal_user_merchant_id(\n", " consts::user_role::INTERNAL_USER_MERCHANT_ID,\n", " );\n", "\n", " .find_merchant_account_by_merc...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " Internal = 3,\n" ] }, { "file_path": "crates/diesel_models/src/user_role.rs", "lines": [ " (enums::UserRoleVersion::V1, consts::ROLE_ID_INTERNAL_VIEW_ONLY_USER)\n", " | (enums::UserRole...
[ "sql", "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-5995
Bug: feat(payments): support for card_network filter in payments list - Support for card_network as filters in payments list - Card network values in payments filter values
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 584f81992bd..4034b8cd58e 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -4361,6 +4361,8 @@ pub struct PaymentListFilterConstraints { /// The order in which payments list should be sor...
2024-09-23T09:15:45Z
## 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 --> - Support for card_network as filters in payments list - Card...
b7139483bb4735b7dfaf7e659ab33a16a90af1db
1. Payments filter list Request ``` curl --location 'http://localhost:8080/payments/v2/filter' \ --header 'Authorization: Bearer JWT' \ --data '' ``` Response ``` { "connector": { "connector_name": [ { "connector_label": "connector_label", "mer...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " /// The List of all the card networks to filter payments list\n", " pub card_network: Option<Vec<enums::CardNetwork>>,\n", " /// The list of available card networks\n", " pub card_network: Vec<enums::CardNet...
[]
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-6228
Bug: [FEAT] Add benchmarking for encryption/decryption **Description:** Cripta is a service which creates keys and maintains it (includes key rotation etc.) individually for different Merchants and Users. We need to add a tool which benchmarks the internal encryption/decryption implementation, And any changes ...
diff --git a/Cargo.lock b/Cargo.lock index 8472b79d44e..20f3b17c44f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -91,7 +91,7 @@ dependencies = [ "rand", "sha1", "smallvec", - "tracing", + "tracing 0.1.36", "zstd", ] @@ -115,7 +115,7 @@ dependencies = [ "http", "regex", "serde", - "tracing", + "tracing 0...
2022-11-27T10:31:38Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [x] Dependency updates ## Description This change includes changes for adding histogram with additional requirement on updating the current telemetry dependencies. (this is a te...
d67bd801f621b9784121f516b5ac65328d2aa431
[ { "file_path": "Cargo.lock", "lines": [ " \"tracing 0.1.36\",\n", " \"tracing 0.1.36\",\n", " \"tracing 0.1.36\",\n", " \"tracing 0.1.36\",\n", " \"tracing 0.1.36\",\n", " \"tracing 0.1.36\",\n", " \"tracing 0.1.36\",\n", " \"tracing 0.1.36\",\n", " \"tr...
[ { "file_path": "Cargo.lock", "lines": [ " \"tracing\",\n", " \"tracing\",\n", " \"tracing\",\n", " \"tracing\",\n", " \"tracing\",\n", " \"tracing\",\n", " \"tracing\",\n", " \"tracing\",\n", " \"tracing\",\n", " \"tracing\",\n", " \"tracing\...
[ "toml", "rs", "lock" ]
12
juspay/hyperswitch
juspay__hyperswitch-5990
Bug: [FIX] Remove ToSchema from RefundAggregateResponse and exclude it from OpenAPI documentation ### Feature Description The RefundAggregateResponse type used by the [/refunds/aggregate](https://github.com/juspay/hyperswitch/blob/37925626e6446900f1d16e0e5f184ee472d4be3e/crates/router/src/routes/app.rs#L1004) API...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 72afa1dc3da..63c01329dfe 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -18158,22 +18158,6 @@ } } }, - "RefundAggregateResponse": { - "type": "ob...
2024-10-22T20:13:07Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Removed all the openapi references to `RefundAggregateResponse`...
aee11c560e427195a0d321dff19c0d33ec60ba64
Tested manually. The references of `RefundAggregateResponse` is removed in openapi generated json file after the modification. <img width="871" alt="image" src="https://github.com/user-attachments/assets/70f23a10-37e9-420e-8031-f41e6b5f11da"> <img width="1015" alt="image" src="https://github.com/user-attachment...
[ { "file_path": "crates/api_models/src/refunds.rs", "lines": [ "#[derive(Clone, Debug, serde::Serialize)]\n" ] } ]
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"RefundAggregateResponse\": {\n", " \"type\": \"object\",\n", " \"required\": [\n", " \"status_with_count\"\n", " ],\n", " \"properties\": {\n", " \...
[ "json", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5996
Bug: feat(users): Add entity type filter in list users and list roles API Currently list users and list roles API is sending all the users and roles respectively for those who are same entity level and less. We need to add filters in these APIs to send users and roles who are only at particular entity level.
diff --git a/crates/api_models/src/events/user_role.rs b/crates/api_models/src/events/user_role.rs index 81b38198cfc..eb09abd471c 100644 --- a/crates/api_models/src/events/user_role.rs +++ b/crates/api_models/src/events/user_role.rs @@ -2,12 +2,12 @@ use common_utils::events::{ApiEventMetric, ApiEventsType}; use cra...
2024-09-23T13:30: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 --> - Adds entity_type filter in list users and list roles API. ...
035906e9b1b1a1e52fe970db5d7e028556fa82b4
1. List Users ``` curl 'http://localhost:8080/user/user/v2/list' \ -H 'authorization: Bearer JWT' \ ``` This should respond with all the users who are at the same level and lower. ``` curl 'http://localhost:8080/user/user/v2/list?entity_type=organization' \ -H 'authorization: Bearer JWT' \ ``` This ...
[ { "file_path": "crates/api_models/src/events/user_role.rs", "lines": [ " CreateRoleRequest, GetRoleRequest, ListRolesAtEntityLevelRequest, ListRolesRequest,\n", " ListRolesResponse, RoleInfoResponseNew, RoleInfoWithGroupsResponse,\n", " RoleInfoWithPermissionsResponse,...
[ { "file_path": "crates/api_models/src/events/user_role.rs", "lines": [ " CreateRoleRequest, GetRoleRequest, ListRolesAtEntityLevelRequest, ListRolesResponse,\n", " RoleInfoResponseNew, RoleInfoWithGroupsResponse, RoleInfoWithPermissionsResponse,\n", " UpdateRoleRequest...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-5976
Bug: [BUG] [DEUTSCHEBANK] Trim the spaces in IBAN ### Bug Description Trim the spaces in IBAN before sending it in SEPA Mandate Post and Direct Debit requests for Deutsche Bank. ### Expected Behavior No spaces in IBAN in SEPA Mandate Post and Direct Debit requests. ### Actual Behavior Spaces in IBAN in SEPA Man...
diff --git a/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs b/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs index 8b3837edd63..30b1d65134a 100644 --- a/crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs +++ b/crates/hyperswitch_connectors/src...
2024-09-20T11:49:40Z
## 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 --> Trim the spaces in IBAN before sending it in SEPA Mandate Post ...
5335f2d21ce6f0c11dc84fd56b3cd2c80e8b064f
Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_2QpEeK0ByPRkb2DPBxHfad4i1WxQO3hZSuVzlFcg9mTrLFUHRpGfE0SCuQwZjGEb' \ --data '{ "amount": 9000, "currency": "EUR", "confirm": true...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs", "lines": [ " iban: Secret::from(iban.peek().replace(\" \", \"\")),\n", " }) => Ok(Secret::from(iban.peek().replace(\" \", \"\"))),\n", "...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/deutschebank/transformers.rs", "lines": [ " iban,\n", " }) => Ok(iban),\n", " iban,\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6002
Bug: [FEATURE] [CRYPTOPAY] Move connector code to crate hyperswitch_connectors ### Feature Description Connector code for `cryptopay` needs to be moved from crate `router` to new crate `hyperswitch_connectors` ### Possible Implementation Connector code for `cryptopay` needs to be moved from crate `router` to new ...
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-5979
Bug: [REFACTOR] API Key List and Update endpoints in Hyperswitch V2 Update API Key endpoint in V2, the URLs are registered in the `app.rs` but the necessary changes to it has not been made in `api_keys.rs`. In addition to that, List API Key endpoint for V2 does not work as no such thing exist in `api_keys.rs`. ...
diff --git a/api-reference-v2/api-reference/api-key/api-key--list.mdx b/api-reference-v2/api-reference/api-key/api-key--list.mdx new file mode 100644 index 00000000000..5975e9bd6ca --- /dev/null +++ b/api-reference-v2/api-reference/api-key/api-key--list.mdx @@ -0,0 +1,3 @@ +--- +openapi: get /v2/api_keys/list +--- diff...
2024-09-20T13:18:13Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR fixes `404` errors thrown by API Key List and Update ...
5fec99b58b0062dbc02fc8fdc1bd8d949d76c51e
tested it by running locally. Create Api Key endpoint: ```curl curl --location 'http://Localhost:8080/v2/api_keys' \ --header 'x-merchant-id: cloth_seller_o6pEetqmlQjhp0kfR7ae' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \ --data '{ "name": "My Api Key", "expira...
[ { "file_path": "api-reference-v2/api-reference/api-key/api-key--list.mdx", "lines": [ "---\n", "openapi: get /v2/api_keys/list\n", "---\n" ] }, { "file_path": "api-reference-v2/mint.json", "lines": [ " \"api-reference/api-key/api-key--revoke\",\n", " ...
[ { "file_path": "api-reference-v2/mint.json", "lines": [ " \"api-reference/api-key/api-key--revoke\"\n" ] }, { "file_path": "crates/api_models/src/api_keys.rs", "lines": [ "#[derive(Clone, Debug, Deserialize)]\n" ] }, { "file_path": "crates/router/src/routes/api...
[ "json", "rs", "mdx" ]
9
juspay/hyperswitch
juspay__hyperswitch-5970
Bug: add `phone` and `country_code` in dynamic fields This is to extend the feature of [collecting address details](https://github.com/juspay/hyperswitch/pull/5418) from wallets to paylater. Additionally also include phone and country_code in the dynamic fields.
diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs index 4fcb0785ea1..41efc6e4c38 100644 --- a/crates/router/src/configs/defaults.rs +++ b/crates/router/src/configs/defaults.rs @@ -12335,6 +12335,24 @@ pub fn get_billing_required_fields() -> HashMap<String, RequiredFieldInfo> { ...
2024-09-19T14:51:31Z
## 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 is to extend the feature of [collecting address details](h...
5942e059e9efa3fa71a13cacc896509515e2f976
-> Create a merchant connector of Klarna with klarna payment method enabled. -> Set the below business profile config ``` curl --location 'http://localhost:8080/account/merchant_1726764490/business_profile/pro_XOWZOwYWMAmTV4wEyGgh' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json'...
[ { "file_path": "crates/router/src/configs/defaults.rs", "lines": [ " (\n", " \"billing.phone.number\".to_string(),\n", " RequiredFieldInfo {\n", " required_field: \"payment_method_data.billing.phone.number\".to_string(),\n", " ...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " (api_enums::PaymentMethod::Wallet, Some(api_enums::PaymentExperience::InvokeSdkClient)) => {\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5974
Bug: Missing terms and conditions for the contests. The team should add terms and conditions for the contests like Hacktoberfest.
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 926af8c162c..577fe4ae1b7 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -7293,7 +7293,7 @@ }, "FutureUsage": { "type": "string", - "description": "Indicat...
2024-09-20T10:51:26Z
## 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...
dccb8d4e629d615a69f6922a96e72f10d3410bfc
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"Indicates that you intend to make future payments with the payment methods used for this Payment. Providing this parameter will attach the payment method to the Customer, if present, after the Payment is confir...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"Indicates that you intend to make future payments with the payment methods used for this Payment. Providing this parameter will attach the payment method to the Customer, if present, after the Payment is confir...
[ "json", "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5982
Bug: add `email` in `billing` and `shipping` address of merchant payment method list This is to extend the feature of [collect address details](https://github.com/juspay/hyperswitch/pull/5418) to collect `billing.email` and `shipping.email`. As per this when `"always_collect_shipping_details_from_wallet_connector...
diff --git a/crates/router/src/configs/defaults.rs b/crates/router/src/configs/defaults.rs index 41efc6e4c38..5719e111759 100644 --- a/crates/router/src/configs/defaults.rs +++ b/crates/router/src/configs/defaults.rs @@ -12353,6 +12353,15 @@ pub fn get_billing_required_fields() -> HashMap<String, RequiredFieldInfo> { ...
2024-09-20T13:48:34Z
## 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 is to extend the feature of [collect address details](http...
c0cac8d9135b14945ce5763327ec16b1578ca2a2
-> Create a merchant account -> Set the below config in the business profile ``` curl --location 'http://localhost:8080/account/merchant_1726839405/business_profile/pro_TwNiv0vtGBct5t1SLyhm' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: *' \ --data '{ ...
[ { "file_path": "crates/router/src/configs/defaults.rs", "lines": [ " (\n", " \"billing.email\".to_string(),\n", " RequiredFieldInfo {\n", " required_field: \"payment_method_data.billing.email\".to_string(),\n", " displa...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-6001
Bug: [FEATURE] [CASHTOCODE] Move connector code to crate hyperswitch_connectors ### Feature Description Connector code for `cashtocode` needs to be moved from crate `router` to new crate `hyperswitch_connectors` ### Possible Implementation Connector code for `cashtocode` 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-5965
Bug: [REFACTOR] Update Database Connection Functions for Read Operations ### Feature Description Currently, in our codebase, we are using `pg_connection_write` for database operations even when performing read operations, which is inefficient. The `pg_connection_write` function should only be used when we need to...
diff --git a/crates/router/src/db/dashboard_metadata.rs b/crates/router/src/db/dashboard_metadata.rs index f8aee34c49c..742c03dde4a 100644 --- a/crates/router/src/db/dashboard_metadata.rs +++ b/crates/router/src/db/dashboard_metadata.rs @@ -99,7 +99,7 @@ impl DashboardMetadataInterface for Store { org_id: &id_...
2024-09-30T19:50:45Z
## 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 refactors the database connection logic by changing the function from `pg_connection_write()` to ...
edd099886da9c46800a646fe809796a08eb78c99
- Verified that all user-related APIs are working without any issues. - All existing test cases for database read and write operations passed successfully. - Confirmed that this internal change does not affect the functionality of user-facing APIs.
[ { "file_path": "crates/router/src/db/dashboard_metadata.rs", "lines": [ " let conn = connection::pg_connection_read(self).await?;\n", " let conn = connection::pg_connection_read(self).await?;\n" ] }, { "file_path": "crates/router/src/db/role.rs", "lines": [ " ...
[ { "file_path": "crates/router/src/db/dashboard_metadata.rs", "lines": [ " let conn = connection::pg_connection_write(self).await?;\n", " let conn = connection::pg_connection_write(self).await?;\n" ] }, { "file_path": "crates/router/src/db/role.rs", "lines": [ ...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5966
Bug: [BUG] Bug in merchant connector account create - delete flows ### Bug Description There is a problem with how the `configs` table is updated. The problem arises when a user deletes a connector and then adds the same one, the config isn't cleaned from the connector when it's deleted, and the new connector (with...
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index 781b5e3710a..f0adf49c1e8 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -3327,6 +3327,16 @@ pub enum PresenceOfCustomerDuringPayment { Absent, } +impl From<ConnectorType> for Transacti...
2024-09-23T13:34:14Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Fixes #5966 (in both v1 and v2). Now the router cleans up the configs table (or business_profile in v2) w...
64383915bda5693df1cecf6cc5683e8b9aaef99b
Added a payment and payout processor, checked if values are present in config, deleted and rechecked. v1: ![v1test](https://github.com/user-attachments/assets/fad9e25a-edc0-4bdd-9835-e577c1d43d05) v2: ![v2test](https://github.com/user-attachments/assets/2e6f311b-c860-407a-9c61-8162c77f6ec8)
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ "impl From<ConnectorType> for TransactionType {\n", " fn from(connector_type: ConnectorType) -> Self {\n", " match connector_type {\n", " #[cfg(feature = \"payouts\")]\n", " ConnectorT...
[ { "file_path": "crates/router/src/core/admin.rs", "lines": [ " let _mca = db\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5969
Bug: Add support for Samsung Pay payment method This is to support for Samsung pay as a payment method. This also needs to add a new field in merchant connector account create `connector_wallet_details` which is required to collect the required credentials for Samsung Pay. As this column in the data base stores the...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 5465d902388..a250a8a9c37 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -5521,6 +5521,27 @@ } } }, + "ConnectorWalletDetails": { + "type": "objec...
2024-09-19T08:10: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 --> This pr is to support for Samsung pay as a payment method. Thi...
5942e059e9efa3fa71a13cacc896509515e2f976
Test Samsung Pay flow -> Enable Samsung Pay payment method for the connector ``` { "connector_type": "payment_processor", "connector_name": "cybersource", "connector_account_details": { "auth_type": "SignatureKey", "api_secret": "api_secret", "key1": "key1", "api_...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"ConnectorWalletDetails\": {\n", " \"type\": \"object\",\n", " \"properties\": {\n", " \"apple_pay_combined\": {\n", " \"type\": \"object\",\n", " \"descri...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"SamsungPayWalletData\": {\n", " \"token\"\n", " \"token\": {\n", " \"description\": \"The encrypted payment token from Samsung\"\n" ] }, { "file_path": "crates/api_models...
[ "toml", "json", "rs" ]
26
juspay/hyperswitch
juspay__hyperswitch-5963
Bug: fix(dashboard_metadata): Fix prod intent emails Currently prod intent emails are not going to biz email. Email are working on custom integ, integ main pod and custom sandbox pod with some code changes. Need to check if sandbox main pod is also able to send emails.
diff --git a/config/config.example.toml b/config/config.example.toml index be0532622bb..a6af984b01f 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -375,10 +375,12 @@ wildcard_origin = false # If true, allows any origin to make req # EmailClient configuration. Only applica...
2024-09-19T12:17:46Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - This PR add recipient emails for recon and prod_intent under ...
82574c0e8e7eb69e9f21eedc765145c724960cd5
``` curl --location 'http://localhost:8080/user/data' \ --header 'Content-Type: application/json' \ --header 'Authorization: ••••••' \ --data ' { "ProdIntent": { "is_completed": true, "legal_business_name": "test", "business_label": "test", "business_location": "US", ...
[ { "file_path": "config/config.example.toml", "lines": [ "sender_email = \"example@example.com\" # Sender email\n", "aws_region = \"\" # AWS region used by AWS SES\n", "allowed_unverified_days = 1 # Number of days...
[ { "file_path": "config/config.example.toml", "lines": [ "sender_email = \"example@example.com\" # Sender email\n", "aws_region = \"\" # AWS region used by AWS SES\n", "allowed_unverified_days = 1 # Number of days the api calls ( with jwt token ) can be made wi...
[ "toml", "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-5956
Bug: [BUG] using FRM with Signifyd throws 5xx ### Bug Description Enabling Signifyd FRM connector for payments, and using this for a payment throws 5xx. This is due to Signifyd sending 303 which is not handled in HyperSwitch. Signifyd throws 303 as the URL is malformed. https://api.signifyd.com//v3/orders/even...
diff --git a/crates/router/src/connector/signifyd.rs b/crates/router/src/connector/signifyd.rs index 6ba2dce9861..4ee36d8966b 100644 --- a/crates/router/src/connector/signifyd.rs +++ b/crates/router/src/connector/signifyd.rs @@ -237,7 +237,7 @@ impl Ok(format!( "{}{}", self.base_url(c...
2024-09-19T09:26: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 #5956 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR m...
7076ae9244e26c08c61fdca328237963b3797a5a
Locally - using an increased stack size.
[ { "file_path": "crates/router/src/connector/signifyd.rs", "lines": [ " \"v3/orders/events/sales\"\n", " \"v3/orders/events/checkouts\"\n", " \"v3/orders/events/transactions\"\n", " \"v3/orders/events/fulfillments\"\n", " \"...
[ { "file_path": "crates/router/src/connector/signifyd.rs", "lines": [ " \"/v3/orders/events/sales\"\n", " \"/v3/orders/events/checkouts\"\n", " \"/v3/orders/events/transactions\"\n", " \"/v3/orders/events/fulfillments\"\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5961
Bug: [REFACTOR]: [PAYU] Add amount conversion framework to Payu ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the flo...
diff --git a/crates/hyperswitch_connectors/src/connectors/payu.rs b/crates/hyperswitch_connectors/src/connectors/payu.rs index 05f983b8fbb..ad2479f19e4 100644 --- a/crates/hyperswitch_connectors/src/connectors/payu.rs +++ b/crates/hyperswitch_connectors/src/connectors/payu.rs @@ -6,6 +6,7 @@ use common_utils::{ er...
2024-10-02T14:12:09Z
## 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 amount conversion framework to payu, for sending to connector. fixes #5961 ### Addit...
a3ea62f88524a360b666cacfbc1cf239f6be8797
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/payu.rs", "lines": [ " types::{AmountConvertor, MinorUnit, MinorUnitForConnector},\n", " utils,\n", "#[derive(Clone)]\n", "pub struct Payu {\n", " amount_converter: &'static (dyn AmountConvertor<Output = Mino...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/payu.rs", "lines": [ "#[derive(Debug, Clone)]\n", "pub struct Payu;\n", " let connector_req = payu::PayuPaymentsRequest::try_from(req)?;\n", " let connector_req = payu::PayuRefundRequest::try_from(req)?;\n" ...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5952
Bug: [CHORE]: update docker compose toml ### Feature Description remove the network_tokenization_service config ### Possible Implementation remove the network_tokenization_service config ### Have you spent some time checking if this feature request has been raised before? - [X] I checked and didn't find a simi...
diff --git a/config/docker_compose.toml b/config/docker_compose.toml index 698800f082d..f0d44db4d5e 100644 --- a/config/docker_compose.toml +++ b/config/docker_compose.toml @@ -597,15 +597,5 @@ recon = "recon@example.com" [network_tokenization_supported_card_networks] card_networks = "Visa, AmericanExpress, Mastercar...
2024-09-19T06:58: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 --> remove the network_tokenization_service from the config ![imag...
769111c20b0f745a5e4fc3ed6c9a705f277c3d5b
Test is not required
[]
[ { "file_path": "config/docker_compose.toml", "lines": [ "[network_tokenization_service]\n", "generate_token_url= \"\"\n", "fetch_token_url= \"\"\n", "token_service_api_key= \"\"\n", "public_key= \"\"\n", "private_key= \"\"\n", "key_id= \"\"\n", "delete_token_u...
[ "toml" ]
1
juspay/hyperswitch
juspay__hyperswitch-5958
Bug: fix: add time_range constraint to retrieve payment attempt list Currently, to retrieve the total count for payments, we use a query that gets the total count of attempts based on the last active attempt ID. To enhance performance, we need to add a time_range to the query. This will ensure that the query is exec...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 5465d902388..3690bcf24db 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -18569,6 +18569,7 @@ }, "TimeRange": { "type": "object", + "description": "A type ...
2024-09-19T11:00:46Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Add time range to filter total count for payment attempt list. - Move `TimeRange` type to common utils...
6a6ce17506932e0843140ef5b02ed201d0524d5d
The expected behaviour is same, the query that is getting printed, is now also considering time range. ``` SELECT COUNT(*) FROM "payment_attempt" WHERE ((("payment_attempt"."merchant_id" = $1) AND ("payment_attempt"."attempt_id" = ANY($2))) AND ("payment_attempt"."created_at" >= $3)) -- binds: [MerchantId("mercha...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"A type representing a range of time for filtering, including a mandatory start time and an optional end time.\",\n" ] }, { "file_path": "crates/analytics/src/disputes/metrics.rs", "lines": [ ...
[ { "file_path": "crates/analytics/src/disputes/metrics.rs", "lines": [ "use api_models::{\n", " analytics::{\n", " disputes::{\n", " DisputeDimensions, DisputeFilters, DisputeMetrics, DisputeMetricsBucketIdentifier,\n", " },\n", " Granula...
[ "json", "rs" ]
39
juspay/hyperswitch
juspay__hyperswitch-5944
Bug: feat(refunds) : profile level refunds aggregate Support for disputes aggregate at profile level
diff --git a/crates/router/src/core/refunds.rs b/crates/router/src/core/refunds.rs index 118f4b81766..0f3dfa44c10 100644 --- a/crates/router/src/core/refunds.rs +++ b/crates/router/src/core/refunds.rs @@ -1098,11 +1098,17 @@ pub async fn get_filters_for_refunds( pub async fn get_aggregates_for_refunds( state: Ses...
2024-09-18T06:32: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 --> - Add support for profile level refunds aggregate - For now it...
dccb8d4e629d615a69f6922a96e72f10d3410bfc
Request : ``` curl --location 'http://localhost:8080/refunds/profile/aggregate?start_time=2022-08-10T18%3A30%3A00Z' \ --header 'Authorization: Bearer JWT' \ --data '' ``` Response ``` { "status_with_count": { "success": 3, "pending": 0, "failure": 0, "manual_review...
[ { "file_path": "crates/router/src/core/refunds.rs", "lines": [ " profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>,\n", " .get_refund_status_with_count(\n", " merchant.get_id(),\n", " profile_id_list,\n", " &time_range,\n"...
[ { "file_path": "crates/router/src/core/refunds.rs", "lines": [ " .get_refund_status_with_count(merchant.get_id(), &time_range, merchant.storage_scheme)\n" ] }, { "file_path": "crates/router/src/db/kafka_store.rs", "lines": [ " .get_refund_status_with_count(merch...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-5946
Bug: fix(external_services): add proto compilation under a feature flag add proto compilation under a feature flag
diff --git a/config/config.example.toml b/config/config.example.toml index a6af984b01f..8345185238d 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -748,3 +748,7 @@ check_token_status_url= "" # base url to check token status from token servic [network_tokenization_supported_connectors]...
2024-09-18T10:38:19Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description add proto build under the dynamic_routing feature flag. Now the application would run without having to i...
c8f7232a3001be1fc5d8b0fedfd703030df83789
Cannot be tested as it is for compiling the application without having to mandatorily install proton
[ { "file_path": "config/config.example.toml", "lines": [ "\n", "[grpc_client.dynamic_routing_client] # Dynamic Routing Client Configuration\n", "host = \"localhost\" # Client Host\n", "port = 7000 # Client Port\n" ] }, { "file_path": "config/deployments/env_specific...
[ { "file_path": "crates/external_services/Cargo.toml", "lines": [ "dynamic_routing = [\"dep:prost\", \"dep:tonic\", \"dep:tonic-reflection\", \"dep:tonic-types\", \"dep:api_models\", \"tokio/macros\", \"tokio/rt-multi-thread\"]\n", "tonic-build = \"0.12\"\n" ] }, { "file_path": "crate...
[ "toml", "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-5947
Bug: [REFACTOR]: [FISERV] Add amount conversion framework to Fiserv ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to standardize the...
diff --git a/crates/hyperswitch_connectors/src/connectors/fiserv.rs b/crates/hyperswitch_connectors/src/connectors/fiserv.rs index e80c57454a0..50eebb99518 100644 --- a/crates/hyperswitch_connectors/src/connectors/fiserv.rs +++ b/crates/hyperswitch_connectors/src/connectors/fiserv.rs @@ -1,13 +1,12 @@ pub mod transfor...
2025-02-21T08:52:43Z
## 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 --> added **FloatMajorUnit** for amount conversion for **Fiserv** ...
24aa00341f907e7b77df9348f62d1416cc098691
Tested through postman: - Create a MCA for **fiserv**: - Create a Payment with **fiserv**: request: ``` { "amount": 10000, "currency": "USD", "amount_to_capture": 10000, "confirm": true, "profile_id": {{profile_id}}, "capture_method": "automatic", "capture_on": "2022-09-10T...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiserv.rs", "lines": [ " types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector},\n", "use crate::{\n", " constants::headers,\n", " types::ResponseRouterData,\n", " utils::{construct_not_imple...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiserv.rs", "lines": [ "use std::fmt::Debug;\n", "\n", "use crate::{constants::headers, types::ResponseRouterData, utils};\n", "#[derive(Debug, Clone)]\n", "pub struct Fiserv;\n", " utils::constru...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-5942
Bug: [REFACTOR]: [CYBERSOURCE] Add amount conversion framework to Cybersource ### :memo: Feature Description Currently, amounts are represented as `i64` values throughout the application. We want to introduce a `Unit` struct that explicitly states the denomination. A new type, `MinorUnit`, has been added to stand...
diff --git a/crates/common_utils/src/types.rs b/crates/common_utils/src/types.rs index 2a271acb62b..433a3139d52 100644 --- a/crates/common_utils/src/types.rs +++ b/crates/common_utils/src/types.rs @@ -603,7 +603,6 @@ impl StringMajorUnit { pub fn zero() -> Self { Self("0".to_string()) } - /// Ge...
2024-10-16T07:06:40Z
## 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 --> added StringMajorUnit for amount conversion ### Additional C...
55fe82fdcd78df9608842190f1423088740d1087
Tested through postman: - Create a MCA for cybersource: - Create a Payment with Cybersource: ``` { "amount": 499, "currency": "USD", "confirm": true, "capture_method": "automatic", "customer_id": "test_rec7", "email": "guest@example.com", "request_external_three_ds_authenticat...
[ { "file_path": "crates/router/src/connector/cybersource.rs", "lines": [ "use common_utils::{\n", " request::RequestContent,\n", " types::{AmountConvertor, MinorUnit, StringMajorUnit, StringMajorUnitForConnector},\n", "};\n", "use super::utils::{convert_amount, PaymentsAut...
[ { "file_path": "crates/common_utils/src/types.rs", "lines": [ "\n" ] }, { "file_path": "crates/router/src/connector/cybersource.rs", "lines": [ "use std::fmt::Debug;\n", "\n", "use common_utils::request::RequestContent;\n", "use super::utils::{PaymentsAuthorizeR...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-5940
Bug: [REFACTOR] Move Hardcoded Email Subjects to Constants Across the User Related Files ### Feature Description In the current implementation, email subjects are hardcoded at multiple places across the codebase when constructing email content. To improve maintainability and avoid magic strings, each unique subje...
diff --git a/crates/router/src/consts.rs b/crates/router/src/consts.rs index 9e70cb2b96b..728933a4614 100644 --- a/crates/router/src/consts.rs +++ b/crates/router/src/consts.rs @@ -86,6 +86,11 @@ pub const EMAIL_TOKEN_TIME_IN_SECS: u64 = 60 * 60 * 24; // 1 day #[cfg(feature = "email")] pub const EMAIL_TOKEN_BLACKLIST...
2024-09-26T11:47:50Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Change the hardcoded email subject to constants ### Additional Changes - [ ] This PR modifies the A...
05080259132fb12cdef40a999bd02b6fe2beeeaa
This is an internal change for email subjects. There should be no affect. All email subjects like magic link, invite should be properly sent as before. [change_apply_before.txt](https://github.com/user-attachments/files/17147768/change_apply_before.txt) [change_apply_after.txt](https://github.com/user-attachment...
[ { "file_path": "crates/router/src/consts.rs", "lines": [ "pub const EMAIL_SUBJECT_API_KEY_EXPIRY: &str = \"API Key Expiry Notice\";\n", "pub const EMAIL_SUBJECT_DASHBOARD_FEATURE_REQUEST: &str = \"Dashboard Pro Feature Request by\";\n", "pub const EMAIL_SUBJECT_APPROVAL_RECON_REQUEST: &str...
[ { "file_path": "crates/router/src/core/recon.rs", "lines": [ " \"Dashboard Pro Feature Request by {}\",\n", " subject: \"Approval of Recon Request - Access Granted to Recon Dashboard\",\n" ] }, { "file_path": "crates/router/src/core/user.rs", "lines": [ " ...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-5934
Bug: feat(opensearch): restrict search view access based on user roles and permissions To fix the issue raised here: [https://github.com/juspay/hyperswitch-cloud/issues/6759](https://github.com/juspay/hyperswitch-cloud/issues/6759) - Currently, a profile level user is able to see the other profile payments list whe...
diff --git a/config/dashboard.toml b/config/dashboard.toml index 4cafdd49ab3..87c00721736 100644 --- a/config/dashboard.toml +++ b/config/dashboard.toml @@ -35,5 +35,6 @@ global_search=true dispute_analytics=true configure_pmts=false branding=false +user_management_revamp=true totp=true live_users_counter=false \ ...
2024-09-18T06:53:54Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Fixes the issue raised here: [https://github.com/juspay/hypersw...
e7da0474ec63c9953098ee808543e22e114291cf
Try to search payments of a profile from another profile which doesn't have access to the profile where the payments are present. Results should not show up while using global search.
[ { "file_path": "config/dashboard.toml", "lines": [ "user_management_revamp=true\n" ] }, { "file_path": "crates/analytics/src/opensearch.rs", "lines": [ " #[error(\"Opensearch access forbidden error\")]\n", " AccessForbiddenError,\n", " Self::AccessFor...
[ { "file_path": "crates/router/src/analytics.rs", "lines": [ " use common_utils::id_type::{MerchantId, OrganizationId};\n", " consts::opensearch::OPENSEARCH_INDEX_PERMISSIONS,\n", " db::user::UserInterface,\n", " types::domain::UserEmail,\n", " ...
[ "toml", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5917
Bug: [FIX] Add Limit Parameter to User Role List for Org Function ### Feature Description Description: The function [generic_user_roles_list_for_org_and_extra](https://github.com/juspay/hyperswitch/blob/a94cf25bb6eb40fafc5327aceffac8292b47b001/crates/diesel_models/src/query/user_role.rs#L270) currently fetches al...
diff --git a/crates/diesel_models/src/query/user_role.rs b/crates/diesel_models/src/query/user_role.rs index 5ef09715211..2496d22447e 100644 --- a/crates/diesel_models/src/query/user_role.rs +++ b/crates/diesel_models/src/query/user_role.rs @@ -258,6 +258,7 @@ impl UserRole { merchant_id: Option<id_type::Merch...
2024-10-01T16:00:18Z
## 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 --> This PR adds the `limit` parameter to the `generic_user_roles_l...
19a8474d8731ed7149b541f02ad237e30c4c9f24
When having 5a1d2b3633e4fc8862f61bed9b5810eac2a313cb in: ```shell curl 'http://localhost:8080/user/user/v2/list' \ -H 'authorization: Bearer JWT' \ ``` yields ``` [{"email":"email1@gmail.com","roles":[{"role_id":"org_admin","role_name":"organization_admin"}]}] ``` **Outdated** by 5a1d2b3633e4fc8862f61b...
[ { "file_path": "crates/diesel_models/src/query/user_role.rs", "lines": [ " limit: Option<u32>,\n", " if let Some(limit) = limit {\n", " query = query.limit(limit.into());\n", " }\n", "\n" ] }, { "file_path": "crates/router/src/core/us...
[]
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-5913
Bug: [CYPRESS_FRAMEWORK] Re-use config update commands **Description:** Cypress is the testing framework that Hyperswitch uses to run automated tests. Having good grip on Javascript to work on Cypress is a must. Cypress makes use of custom [commands](https://github.com/juspay/hyperswitch/blob/main/cypress-te...
2024-10-02T12:55:09Z
## Type of Change - [ ] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD This pull request resolves issue #5913 ## Description This PR refactors the existing Cypress commands used for configuration updates (autoRetryConfig, setMaxAuto...
19a8474d8731ed7149b541f02ad237e30c4c9f24
Tested manually and with cypress command.
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-5915
Bug: [CYPRESS_FRAMEWORK] Verify URL after redirection **Description:** Cypress is the testing framework that Hyperswitch uses to run automated tests as it helps test both backend as well as frontend in a single shot that includes redirection flows like `3ds` and `bank redirect`. Redirection tests in Cypress ...
2024-10-01T10:33:37Z
## Type of Change - [ ] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD This pull request Resolve #5915 ## Description This PR refactors the verifyReturnUrl function to validate the redirection_url and ensure that the payment status i...
d8d8c400bbda49b9a0cd5edbe37e929ae6d38eb4
Ran against Integ environment for Stripe: <img width="555" alt="image" src="https://github.com/user-attachments/assets/0dc3fb11-4f2c-4731-9f23-8a3a0dc9ab94" /> when the validation fails, below is the kind of error we get: <img width="551" alt="image" src="https://github.com/user-attachments/assets/e15418f2-ad9...
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-5906
Bug: fix(user_roles): Profile level user_roles are not being updated Currently, updating a profile level user role causes update user role API to break and throw error. This is because profile_id from the token is not being populated in the DB calls. This makes the API unable to find the user role to be updated.
diff --git a/crates/router/src/core/user_role.rs b/crates/router/src/core/user_role.rs index 868d2e65a24..d42f71695a5 100644 --- a/crates/router/src/core/user_role.rs +++ b/crates/router/src/core/user_role.rs @@ -119,7 +119,7 @@ pub async fn update_user_role( user_to_be_updated.get_user_id(), ...
2024-09-16T11:36:31Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Currently, profile level user_roles are not being updated. This...
90ebd54ec9dfabf03ee85c0d0e7d96755a135083
``` curl 'http://localhost:8080/user/user/update_role' \ -H 'authorization: Bearer JWT' \ --data-raw '{"email":"email","role_id":"profile_iam_admin"}' ``` Response: 200 OK.
[ { "file_path": "crates/router/src/core/user_role.rs", "lines": [ " user_from_token.profile_id.as_ref(),\n", " user_from_token.profile_id.as_ref(),\n", " user_from_token.profile_id.as_ref(),\n", " user_from_token.profile_id.as_ref(),...
[ { "file_path": "crates/router/src/core/user_role.rs", "lines": [ " None,\n", " None,\n", " None,\n", " None,\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5941
Bug: Update and Retrieve PM APIs ### Feature Description - Update Payment methods API - Retrieve Payment Method API
diff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rs index 6c93b0bb5bd..1a82dc0e26b 100644 --- a/crates/api_models/src/payment_methods.rs +++ b/crates/api_models/src/payment_methods.rs @@ -374,7 +374,7 @@ pub struct PaymentMethodUpdate { #[serde(deny_unknown_fields)] pub st...
2024-09-18T08:09:47Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Update PM API for v2 - Retrieve PM API for v2 ### Addit...
4eec6ca4b05202dea1f5400007c5f143142b65e4
Vault dev is incomplete so cannot be tested.
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ " pub payment_method_data: PaymentMethodUpdateData,\n", "#[cfg(all(feature = \"v2\", feature = \"payment_methods_v2\"))]\n", "impl From<CardDetail> for CardDetailFromLocker {\n", " fn from(item: CardDetail) -...
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ " pub payment_method_data: Option<PaymentMethodUpdateData>,\n" ] }, { "file_path": "crates/router/src/core/payment_methods.rs", "lines": [ " ext_traits::{AsyncExt, Encode, ValueExt},\n", "pub async ...
[ "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-5898
Bug: feat(disputes): add support for disputes aggregate 1. Support for disputes aggregate 2. Support for disputes aggregate in profile level
diff --git a/crates/api_models/src/disputes.rs b/crates/api_models/src/disputes.rs index 5c2a2cc03d2..a1340b5aa5a 100644 --- a/crates/api_models/src/disputes.rs +++ b/crates/api_models/src/disputes.rs @@ -1,3 +1,5 @@ +use std::collections::HashMap; + use masking::{Deserialize, Serialize}; use time::PrimitiveDateTime;...
2024-09-16T09:50:34Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Add support for disputes aggregate - Add support for profil...
90ebd54ec9dfabf03ee85c0d0e7d96755a135083
**Dispute Aggregate** Request: ``` curl --location 'http://localhost:8080/disputes/aggregate?start_time=2022-08-10T18%3A30%3A00Z' \ --header 'Authorization: Bearer JWT' \ --data '' ``` Response : ``` { "status_with_count": { "dispute_cancelled": 0, "dispute_expired": 3, "d...
[ { "file_path": "crates/api_models/src/disputes.rs", "lines": [ "use std::collections::HashMap;\n", "\n", "\n", "#[derive(Clone, Debug, serde::Serialize)]\n", "pub struct DisputesAggregateResponse {\n", " /// Different status of disputes with their count\n", " ...
[ { "file_path": "crates/api_models/src/events/dispute.rs", "lines": [ " DeleteEvidenceRequest, DisputeResponse, DisputeResponsePaymentsRetrieve, SubmitEvidenceRequest,\n" ] }, { "file_path": "crates/router/src/routes/disputes.rs", "lines": [ " types::api::disputes as dispute...
[ "rs" ]
11
juspay/hyperswitch
juspay__hyperswitch-5914
Bug: [CYPRESS_FRAMEWORK] Run Cypress tests in parallel **Description:** Cypress tests are resource intensive and consume a lot of memory and power. But that should not stop us from running them in parallel even if they consume a lot of resources. At present, Cypress tests here at Hyperswitch is run in sequential...
diff --git a/scripts/execute_cypress.sh b/scripts/execute_cypress.sh new file mode 100755 index 00000000000..1f1219ee717 --- /dev/null +++ b/scripts/execute_cypress.sh @@ -0,0 +1,188 @@ +#! /usr/bin/env bash + +set -euo pipefail + +# Initialize tmp_file globally +tmp_file="" + +# Define arrays for services, etc. +# Rea...
2024-10-04T09:33:14Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> This PR makes it possible for us to run Cypress tests in para...
d06d19fc96e1a74d20e2fe3613f86d541947e0ae
Tested locally: These are known failures. <img width="576" alt="image" src="https://github.com/user-attachments/assets/12788d3f-f816-4395-9799-316546595823"> The ones that passed is `Stripe` and hence it is not in `failed_connector` list. https://github.com/juspay/hyperswitch/actions/runs/11177572035/jo...
[ { "file_path": "scripts/execute_cypress.sh", "lines": [ "#! /usr/bin/env bash\n", "\n", "set -euo pipefail\n", "\n", "# Initialize tmp_file globally\n", "tmp_file=\"\"\n", "\n", "# Define arrays for services, etc.\n", "# Read service arrays from environm...
[]
[ "sh" ]
1
juspay/hyperswitch
juspay__hyperswitch-5924
Bug: [FEATURE] [DEUTSCHEBANK] Implement subsequent mandate payments via SEPA ### Feature Description Implement SEPA mandate payments for Deutschebank. ### Possible Implementation Implement SEPA mandate payments for Deutschebank. ### Have you spent some time checking if this feature request has been raised before...
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index b0866cfb265..535a5abffce 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -1042,6 +1042,7 @@ pub struct ConnectorMandateReferenceId { pub connector_mandate_id: Option<String>, pub ...
2024-09-17T11:42:58Z
## 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 --> Implement SEPA mandate payments for Deutschebank. These mandat...
a94cf25bb6eb40fafc5327aceffac8292b47b001
1. Payments Intent Create: Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_2QpEeK0ByPRkb2DPBxHfad4i1WxQO3hZSuVzlFcg9mTrLFUHRpGfE0SCuQwZjGEb' \ --data '{ "amount": 1650, "currenc...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " pub mandate_metadata: Option<serde_json::Value>,\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/deutschebank.rs", "lines": [ " utils::{\n", " self, PaymentsAuthorizeRequestDa...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/deutschebank.rs", "lines": [ " utils::{self, PaymentsCompleteAuthorizeRequestData, RefundsRequestData},\n", " _req: &PaymentsAuthorizeRouterData,\n", " Ok(format!(\n", " \"{}/services/v2.1/manage...
[ "rs" ]
34
juspay/hyperswitch
juspay__hyperswitch-5895
Bug: [CYPRESS] : Add Noon Connector **Description:** This task involves adding a connector for the Noon functionality in Cypress. For reference, similar connectors have already been implemented in the repository. You can refer to the existing connectors here: https://github.com/juspay/hyperswitch/tree/main/cyp...
2024-11-19T06:46:36Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description Add Noon Connector for Cypress Automation Note : Noon supports only 3ds payments , so all the no_three_d...
65bf75a75e1e7d705de3ee3e9080a7a86099ffc3
<img width="710" alt="image" src="https://github.com/user-attachments/assets/88aec323-824c-49e3-b51e-67d469c9826a">
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-5893
Bug: [CYPRESS] : Add Checkout Connector **Description:** This task involves adding a payment connector for the checkout functionality in Cypress. For reference, similar connectors have already been implemented in the repository. You can refer to the existing connectors here: https://github.com/juspay/hyperswitch...
2024-11-13T13:36:29Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description Add Checkout Connector for Cypress Automation ### Additional Changes - [ ] This PR modifies the ...
600cf44684912192f0bf1b9566fd0a7daae9f54c
Cypress Tests - Checkout <img width="710" alt="image" src="https://github.com/user-attachments/assets/75bc70aa-8bc5-43f6-ad28-ac33c7bcf6de"> - NMI <img width="710" alt="image" src="https://github.com/user-attachments/assets/cb4b4b21-8a93-4a88-8e67-5172d0847ca4">
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-5888
Bug: [BUG] remove redundant DB calls when FRM feature is not enabled ### Bug Description FRM is a payment feature which is integrated in HyperSwitch behind `frm` feature flag. There are some DB queries (which are generally not behind a feature flag) which are being executed even when `frm` feature is disabled. ###...
diff --git a/crates/router/src/core/payments/operations/payment_approve.rs b/crates/router/src/core/payments/operations/payment_approve.rs index 38cf72a3e2f..9c5b632eff0 100644 --- a/crates/router/src/core/payments/operations/payment_approve.rs +++ b/crates/router/src/core/payments/operations/payment_approve.rs @@ -136...
2024-09-16T04:11:58Z
## 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 #5888 ### Additional Changes - [x] This PR modifies the API contract - [ ] This PR m...
2aa215440e0531e315e61ee30bbbc5a5685481b3
<details> <summary>1. Create a txn</summary> cURL curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_4cUeectovRvg0seB0AhDXZ04342m045JeKncgz5XfwkkhJujY4gy7TzfTS9uvdiP' \ --data-raw ...
[ { "file_path": "crates/router/src/core/payments/operations/payment_approve.rs", "lines": [ " let frm_response = if cfg!(feature = \"frm\") {\n", " db.find_fraud_check_by_payment_id(payment_intent.payment_id.clone(), merchant_account.get_id().clone())\n", " ...
[ { "file_path": "crates/router/src/core/payments/operations/payment_approve.rs", "lines": [ " let frm_response = db\n", " .find_fraud_check_by_payment_id(payment_intent.payment_id.clone(), merchant_account.get_id().clone())\n", " .await\n", " .change_contex...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-6124
Bug: [CYPRESS]: Use the SDK to process a payment. --- ### **Title**: Verify Make and View a Test Payment --- ### **Description**: This task involves testing the "Make a test payment" feature from the homepage. The user will go through the checkout process, entering payment details and viewing the payment...
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 2d4a539c1e9..453d1521226 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -9,6 +9,7 @@ use common_utils::{ use masking::{PeekInterface, Secret}; use router_derive::Setter; use time::Primi...
2023-06-27T14:05:27Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] New feature ## Description <!-- Describe your changes in detail --> Add support for WeChat Pay, we chat pay in stripe doesn't follow redirection.Qr code url is given in the next action, this qr code has to be shown in sdk. API contract for ...
ca4e242d206dc69a10a1fbf51805a4cf4885a35e
Manual Qr code url in next action <img width="1264" alt="Screen Shot 2023-06-27 at 6 16 14 PM" src="https://github.com/juspay/hyperswitch/assets/59434228/eef065bd-f0ef-47b4-899d-89c42545a52c"> Qr code <img width="1545" alt="Screen Shot 2023-06-27 at 6 15 53 PM" src="https://github.com/juspay/hyperswitch/asset...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ "use url::Url;\n", " pub return_url: Option<Url>,\n", " /// The wallet data for WeChat Pay\n", " WeChatPay(Box<WeChatPay>),\n", "#[derive(Eq, PartialEq, Clone, Debug, serde::Deserialize, serde::Serialize, T...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " pub return_url: Option<url::Url>,\n", " /// contains third party sdk session token response\n" ] }, { "file_path": "crates/router/src/connector/stripe/transformers.rs", "lines": [ "\n", " ...
[ "rs", "json" ]
8
juspay/hyperswitch
juspay__hyperswitch-5886
Bug: [FEATURE] Add Cell ID in config ### Feature Description Add global cell id information in config for v2 ### Possible Implementation Will need to add in settings ### 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 yo...
diff --git a/config/config.example.toml b/config/config.example.toml index 1f32481fec7..cf6703f43d4 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -734,6 +734,9 @@ connector_list = "" [recipient_emails] recon = "test@example.com" +[cell_information] +id = "12345" # Default CellID for Gl...
2024-09-13T15: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 --> Added Cell Id in SessionState config The strategy is use check...
c0cac8d9135b14945ce5763327ec16b1578ca2a2
Cannot be tested, as setting the cell id as default in config will cause the application to panic.
[ { "file_path": "config/config.example.toml", "lines": [ "[cell_information]\n", "id = \"12345\" # Default CellID for Global Cell Information\n", "\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "[cell_information]\n", "id = \"12345\" #...
[ { "file_path": "config/docker_compose.toml", "lines": [ "fiuu.secondary_base_url=\"https://sandbox.merchant.razer.com/\"\n", "fiuu.third_base_url=\"https://api.merchant.razer.com/\"\n", "open_banking_pis = {currency = \"EUR,GBP\"}\n", "global_tenant = { schema = \"public\", redis_key...
[ "toml", "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-5891
Bug: [FEATURE] Open banking SDK fixes ### Feature Description SDK would send headers in order to identify the client platform, we need to consume in the backend and process accordingly. ### Possible Implementation Need to consume headers in specific flows. ### Have you spent some time checking if this feature r...
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 20f1205e14b..c50b1fb1d05 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -793,6 +793,8 @@ pub struct HeaderPayload { pub x_client_platform: Option<api_enums::ClientPlatform>, pub ...
2024-09-13T13:40:37Z
## 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 --> - Refactored RouterData to use HeaderPayload for Android/IOS Pl...
fbd2cda763f0d8d2757d734578babd73a8613cb8
1. Payments create - ``` curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_uFcNSTN14N27NiyGdgkK8eN2fBmPWHHhbPZh6RMkBUxoByMfAdPlBItplwGctI6P' \ --data-raw '{ "amount": 6500, "curren...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " pub x_app_id: Option<String>,\n", " pub x_redirect_uri: Option<String>,\n" ] }, { "file_path": "crates/api_models/src/pm_auth.rs", "lines": [ "use crate::enums as api_enums;\n", "\n", " pu...
[ { "file_path": "crates/router/src/connector/plaid/transformers.rs", "lines": [ "use error_stack::ResultExt;\n", " let recipient_val = item\n", " .connector_meta_data\n", " field_name: \"connector_customer\",\n", ...
[ "rs" ]
44
juspay/hyperswitch
juspay__hyperswitch-5862
Bug: [REFACTOR] unify locker api function call Create a single method using which locker api can be called and deserialised to the given type. Also send tenant-id in headers
diff --git a/crates/router/src/core/admin.rs b/crates/router/src/core/admin.rs index 996224d7bea..e2c2dbb48ce 100644 --- a/crates/router/src/core/admin.rs +++ b/crates/router/src/core/admin.rs @@ -4486,7 +4486,7 @@ async fn locker_recipient_create_call( ttl: state.conf.locker.ttl_for_storage_in_secs, }); ...
2024-09-11T14:08:08Z
## 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 performs below changes - * Creates a single method us...
10ac08944986a1fd101f8f05263e92ed7ebbba94
To test, I failed the locker on purpose and received below error report in Hyperswitch which also includes JWE+JWS decrypted error message. ![image](https://github.com/user-attachments/assets/e2c5374d-529d-4184-8353-5b485d4180f8) Sandbox testing - Basic sanity tests which also involves saving card in locker wou...
[ { "file_path": "crates/router/src/core/admin.rs", "lines": [ " let store_resp = cards::add_card_to_hs_locker(\n" ] }, { "file_path": "crates/router/src/core/errors.rs", "lines": [ " #[error(\"Failed to delete card in card vault\")]\n", " DeleteCardFailed,\n", ...
[ { "file_path": "crates/router/src/core/admin.rs", "lines": [ " let store_resp = cards::call_to_locker_hs(\n" ] }, { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " ext_traits::{AsyncExt, Encode, StringExt, ValueExt},\n", " generate_id, ...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-5860
Bug: refactor(users): Populate optional fields in the user APIs Currently - list users in lineage - get user role details - list invitations APIs send `null` for role_name, entity_name etc... These fields should be populated with proper data.
diff --git a/crates/api_models/src/user.rs b/crates/api_models/src/user.rs index 7bb8409993d..7b22387b3c3 100644 --- a/crates/api_models/src/user.rs +++ b/crates/api_models/src/user.rs @@ -188,6 +188,7 @@ pub struct GetUserRoleDetailsResponseV2 { pub profile: Option<NameIdUnit<String, id_type::ProfileId>>, pu...
2024-09-11T12:21:48Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Populate entity name in list invitations API. - Add role nam...
246fdc84064367885596b33f5e0e66af78a97a3c
1. List invitations ``` curl 'http://localhost:8080/user/list/invitation' \ -H 'authorization: Bearer SPT with accept invite purpose' \ ``` ```json [ { "entity_id": "merchant_1726053750", "entity_type": "merchant", "entity_name": "First M...
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ " pub role_name: String,\n" ] }, { "file_path": "crates/api_models/src/user_role/role.rs", "lines": [ " pub role_name: String,\n" ] }, { "file_path": "crates/diesel_models/src/query/role.rs", "lines"...
[ { "file_path": "crates/api_models/src/user_role/role.rs", "lines": [ " pub role_name: Option<String>,\n" ] }, { "file_path": "crates/router/src/analytics.rs", "lines": [ " let role_info =\n", " RoleInfo::from_role_id(&state, &role_id, &a...
[ "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-5855
Bug: fix merchant payment method list 1. `collect_billing_details_from_wallets` field should be made true if either of `always_collect_billing_details_from_wallet_connector` ` collect_billing_details_from_wallet_connector` 2. `collect_shipping_details_from_wallets` field should be made true if either of `always_co...
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index c553840347d..8ab3bf50147 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -3656,23 +3656,29 @@ pub async fn list_payment_methods( ...
2024-09-11T08:13: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 --> 1. `collect_billing_details_from_wallets` field should be made ...
be346e5d963925ecbe1bbb77aa024f7eed66019e
-> Create a merchant account and mca -> Set the below config in the business profile ``` curl --location 'http://localhost:8080/account/merchant_1726040867/business_profile/pro_a6nz5AzJNeeczSAq4bjx' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " let collect_shipping_details_from_wallets =\n", " business_profile.as_ref().and_then(|business_profile| {\n", " if business_profile\n", " .always_collect_shipping_detail...
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " let collect_shipping_details_from_wallets = business_profile\n", " .as_ref()\n", " .and_then(|business_profile| {\n", " business_profile.always_collect_shipping_details_from_wal...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-5858
Bug: [FEATURE] [DEUTSCHEBANK] Integrate SEPA Payments ### Feature Description Integrate SEPA Payments for connector Deutsche Bank ### Possible Implementation https://testmerch.directpos.de/rest-api/apidoc/v2.1/index.html#chap_sdd ### Have you spent some time checking if this feature request has been raised befor...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index bda5fab29c0..acff517e107 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -4979,6 +4979,7 @@ "cryptopay", "cybersource", "datatrans", + "deutsch...
2024-09-06T10:29:05Z
## 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 --> Integrate SEPA Payments for connector Deutsche Bank https://te...
10ac08944986a1fd101f8f05263e92ed7ebbba94
1. Authorize: Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_2QpEeK0ByPRkb2DPBxHfad4i1WxQO3hZSuVzlFcg9mTrLFUHRpGfE0SCuQwZjGEb' \ --data '{ "amount": 9000, "currency": "EUR", ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"deutschebank\",\n", " \"deutschebank\",\n" ] }, { "file_path": "config/config.example.toml", "lines": [ "deutschebank.base_url = \"https://testmerch.directpos.de/rest-api\"\n", "deut...
[ { "file_path": "config/config.example.toml", "lines": [ "deutschebank.base_url = \"https://sandbox.directpos.de/rest-api/services/v2.1\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "deutschebank.base_url = \"https://sandbox.directpos.de/rest-api/...
[ "toml", "json", "rs" ]
30
juspay/hyperswitch
juspay__hyperswitch-5852
Bug: Adding information about decimal and non decimal currencies There is lack of information about decimal and non decimal currencies in the documentation.
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index ac4f3fe7b46..ac7f5dfd2cc 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -11596,7 +11596,7 @@ "amount": { "type": "integer", "format": "int64", - ...
2024-09-11T06:20:15Z
## 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...
034f736ea6e25ae2c75e74dedc12ac54f5979d68
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and ¥100 since ¥ i...
[ "json", "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5846
Bug: feat(payments): add support for profile aggregates Show count of aggregate payments status in the given time range for a particular profile
diff --git a/crates/hyperswitch_domain_models/src/payments/payment_intent.rs b/crates/hyperswitch_domain_models/src/payments/payment_intent.rs index e5b0e8b9120..62fb06fd522 100644 --- a/crates/hyperswitch_domain_models/src/payments/payment_intent.rs +++ b/crates/hyperswitch_domain_models/src/payments/payment_intent.rs...
2024-09-10T07:40: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 --> - Add support for profile level aggregates in payments. - For ...
296ca311c96cc032aaa9ad846299db24bacaeb56
Request : ``` curl --location 'http://localhost:8080/payments/profile/aggregate?start_time=2022-08-10T18%3A30%3A00Z' \ --header 'Authorization: Bearer JWT token' \ --data '' ``` Response : ``` { "status_with_count": { "failed": 5, "cancelled": 0, "processing": 0, "...
[ { "file_path": "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "lines": [ " profile_id_list: Option<Vec<id_type::ProfileId>>,\n" ] }, { "file_path": "crates/router/src/core/payments.rs", "lines": [ " profile_id_list: Option<Vec<id_type::ProfileId>>,\n...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " .get_intent_status_with_count(merchant.get_id(), &time_range)\n" ] }, { "file_path": "crates/router/src/db/kafka_store.rs", "lines": [ " .get_intent_status_with_count(merchant_id, time_range)\n" ...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-5876
Bug: [BUG] Nix build is broken ### Bug Description `nix build` is broken as you can see from the CI failure of https://github.com/juspay/hyperswitch/pull/5017 ### Expected Behavior All outputs of `flake.nix` should build. ### Actual Behavior Some outputs (eg: router) do not build ### Steps To Reproduce `nix -...
diff --git a/Cargo.nix b/Cargo.nix deleted file mode 100644 index 1c3c3a086f5..00000000000 --- a/Cargo.nix +++ /dev/null @@ -1,5948 +0,0 @@ -# This file was @generated by cargo2nix 0.11.0. -# It is not intended to be manually edited. - -args@{ - release ? true, - rootFeatures ? [ - "api_models/default" - "commo...
2024-09-11T19:50:00Z
Resolves #5876 This PR makes sure that `flake.nix` builds, and checks it in CI (uses self-hosted runners) going forward. It removes no longer used Nix code (they don't build). - [x] Add github workflow action to build flake outputs - [x] Remove packages that no longer build (see #5017)
3ddfe53838c6b039dc5f669ccd23d3035521d691
[ { "file_path": "flake.lock", "lines": [ " \"lastModified\": 1718428119,\n", " \"narHash\": \"sha256-WdWDpNaq6u1IPtxtYHHWpl5BmabtpmLnMAx0RdJ/vo8=\",\n", " \"rev\": \"e6cea36f83499eb4e9cd184c8a8e823296b50ad5\",\n", " \"lastModified\": 1726626348,\n", "...
[ { "file_path": "Cargo.nix", "lines": [ "# This file was @generated by cargo2nix 0.11.0.\n", "# It is not intended to be manually edited.\n", "\n", "args@{\n", " release ? true,\n", " rootFeatures ? [\n", " \"api_models/default\"\n", " \"common_utils/de...
[ "lock", "nix" ]
3
juspay/hyperswitch
juspay__hyperswitch-5838
Bug: [REFACTOR] update auth data for recon APIs ### Refactor Description Refactor the code to - pass only the required authentication data to recon APIs (remove UserFromToken which contains different resource IDs) - remove existing impls for fetching user from DB ### Have you spent some time checking if this...
diff --git a/crates/router/src/core/recon.rs b/crates/router/src/core/recon.rs index fa9944ee8ee..2c2dfc9c9f0 100644 --- a/crates/router/src/core/recon.rs +++ b/crates/router/src/core/recon.rs @@ -17,11 +17,10 @@ use crate::{ pub async fn send_recon_request( state: SessionState, - user_with_auth_data: authen...
2024-09-06T13:53:29Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Described in #5838 ### Additional Changes - [ ] This PR modifies the API contract - [ ] This PR m...
aa2f5d147561f6e996228d269e6a54c5d1f53a60
<details> <summary>1. Request a new JWT token for recon dashboard</summary> cURL Request curl --location 'http://localhost:8080/recon/token' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiOWZmNzcxNmItNzB...
[ { "file_path": "crates/router/src/core/recon.rs", "lines": [ " auth_data: authentication::AuthenticationDataWithUser,\n", " let user_in_db = &auth_data.user;\n", " let merchant_id = auth_data.merchant_account.get_id().clone();\n", " auth_data.merchant_acco...
[ { "file_path": "crates/router/src/core/recon.rs", "lines": [ " user_with_auth_data: authentication::UserFromTokenWithAuthData,\n", " let user = user_with_auth_data.0;\n", " let user_in_db = &user_with_auth_data.1.user;\n", " let merchant_id = user.merchant_id;\n", "...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-5842
Bug: feat(roles): New roles for profile level Create new roles for profile level roles. - profile_admin - profile_view_only - profile_operator - profile_developer - profile_iam
diff --git a/crates/router/src/analytics.rs b/crates/router/src/analytics.rs index 879db9a5a67..1fcfbdb5df9 100644 --- a/crates/router/src/analytics.rs +++ b/crates/router/src/analytics.rs @@ -419,7 +419,7 @@ pub mod routes { }, &auth::JWTAuth { permission: Permission::Analyti...
2024-09-09T13:52:12Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Make merchant account create profile level. - Create new rol...
bf1797fe7cf769eb6e89f75b132a35a6cd9003df
Invite user at any of the following roles: - profile_admin - profile_view_only - profile_iam_admin - profile_developer - profile_operator Dashboard features should work without 401s.
[ { "file_path": "crates/router/src/analytics.rs", "lines": [ " minimum_entity_level: EntityType::Organization,\n", " minimum_entity_level: EntityType::Profile,\n", " minimum_entity_level: EntityType::Organization,\n", " minim...
[ { "file_path": "crates/router/src/analytics.rs", "lines": [ " minimum_entity_level: EntityType::Merchant,\n", " minimum_entity_level: EntityType::Merchant,\n", " minimum_entity_level: EntityType::Merchant,\n", " minimum_enti...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-5831
Bug: chore: address Rust 1.81.0 clippy lints Address the clippy lints occurring due to new rust version 1.81.0 See https://github.com/juspay/hyperswitch/issues/3391 for more information.
diff --git a/crates/drainer/src/health_check.rs b/crates/drainer/src/health_check.rs index 10514108991..946489513b4 100644 --- a/crates/drainer/src/health_check.rs +++ b/crates/drainer/src/health_check.rs @@ -170,7 +170,7 @@ impl HealthCheckInterface for Store { logger::debug!("Redis set_key was successful"); ...
2024-09-07T05:19:45Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] 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...
d9485a5f360f78f308f4e70c361f33873c63b686
This PR addresses clippy lint due to new rust version. So basic sanity testing should suffice.
[ { "file_path": "crates/drainer/src/health_check.rs", "lines": [ " .get_key::<()>(\"test_key\")\n" ] }, { "file_path": "crates/router/src/connector/globalpay.rs", "lines": [ " Ok(Box::new(\n", " request\n", " .body\n", ...
[ { "file_path": "crates/drainer/src/health_check.rs", "lines": [ " .get_key(\"test_key\")\n" ] }, { "file_path": "crates/router/src/connector/globalpay.rs", "lines": [ " let details = std::str::from_utf8(request.body)\n", " .change_context(errors...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-5822
Bug: feat(analytics): Revert api_event metrics and filters back to merchant_id authentication `api_event_metrics` and `api_event_filters` APIs were modified to authenticate through AuthInfo where there are MerchantLevel, ProfileLevel and OrgLevel authentication. (https://github.com/juspay/hyperswitch/pull/5729) But...
diff --git a/crates/analytics/src/api_event/core.rs b/crates/analytics/src/api_event/core.rs index f3a7b154b90..305de7e69c8 100644 --- a/crates/analytics/src/api_event/core.rs +++ b/crates/analytics/src/api_event/core.rs @@ -21,7 +21,6 @@ use super::{ metrics::ApiEventMetricRow, }; use crate::{ - enums::AuthI...
2024-09-06T05:59:52Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Previously modified api_event_metrics and api_event_filters to ...
d3a1703bf59afc06e87e94433bc10a01e413259b
Spoke with dashboard team and removed the following api endpoints: - /analytics/v1/profile/metrics/api_events - /analytics/v1/profile/filters/api_events - /analytics/v1/org/metrics/api_events - /analytics/v1/org/filters/api_events
[ { "file_path": "crates/analytics/src/api_event/core.rs", "lines": [ " merchant_id: &common_utils::id_type::MerchantId,\n", " get_api_event_filter_for_dimension(dim, merchant_id, &req.time_range, ckh_pool)\n", " .await\n", " merchant_id: &common...
[ { "file_path": "crates/analytics/src/api_event/core.rs", "lines": [ " enums::AuthInfo,\n", " auth: &AuthInfo,\n", " get_api_event_filter_for_dimension(dim, auth, &req.time_range, ckh_pool).await\n", " auth: &AuthInfo,\n", " let auth_scoped = auth....
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-5847
Bug: [FEATURE] add translation to unified error messages in API response and payout link ### Feature Description Connector can fail due to numerous reasons and usually returns an error code along with an error message. These error messages are specific to the underlying connectors. However, these errors can be logi...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index acff517e107..e7dbbcdabe6 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -15207,13 +15207,17 @@ }, "unified_code": { "type": "string", - "d...
2024-09-05T09:45:42Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This adds `unified_code` and `unified_message` in the payout's API response. These values are looked up i...
2aa215440e0531e315e61ee30bbbc5a5685481b3
**Pre-requisites** 1. Ensure payout unified code and messages are inserted in `gateway_status_map` table 2. Ensure the translated messages for these unified code <> messages are inserted in `unified_translations` table <details> <summary>1. Create an invalid payout txn</summary> cURL curl --locati...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"(This field is not live yet)\\nError code unified across the connectors is received here in case of errors while calling the underlying connector\",\n", " \"example\": \"UE_000\",\n", ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"error code unified across the connectors is received here if there was an error while calling connector\",\n", " \"nullable\": true\n", " \"description\": \"error message u...
[ "json", "css", "sql", "rs", "js" ]
23
juspay/hyperswitch
juspay__hyperswitch-5816
Bug: feat(users): Add profile id in JWT and user_info Currently tokens doesn't have profile id. Backend should start sending it or else dashboard will not work at profile level.
diff --git a/crates/api_models/src/user.rs b/crates/api_models/src/user.rs index 4674abf3976..7bb8409993d 100644 --- a/crates/api_models/src/user.rs +++ b/crates/api_models/src/user.rs @@ -1,6 +1,6 @@ use std::fmt::Debug; -use common_enums::{PermissionGroup, RoleScope, TokenPurpose}; +use common_enums::{EntityType, ...
2024-09-05T11:52:56Z
## 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. This PR changes list users in lineage API so that it don't d...
dfebc29c2b1398ac8934bd350eefcd4fa4f10d84
``` curl --location 'http://localhost:8080/user/v2/signin' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "email", "password": "name" } ' ``` ``` { "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiZTY2NjM4OGYtMzE3OC00YmRiLTlhYTYtNjQwNjJkOTIyZTRlIiwicHVycG9zZS...
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ "use common_enums::{EntityType, PermissionGroup, RoleScope, TokenPurpose};\n", " pub profile_id: id_type::ProfileId,\n", " pub entity_type: EntityType,\n", " pub entity_type: EntityType,\n" ] }, { "file_p...
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ "use common_enums::{PermissionGroup, RoleScope, TokenPurpose};\n", " pub entity_type: common_enums::EntityType,\n" ] }, { "file_path": "crates/api_models/src/user_role/role.rs", "lines": [ " pub role_name: Str...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-5815
Bug: fix(user_roles): List users in lineage API failing List users in lineage API sends response like following: ```json [ { "email": "e1", "roles": [ { "role_id": "r1", "role_name": "name", } ] } ] ``` To get the role name, this API does a db call to get the role info in the JWT merchant scop...
diff --git a/crates/api_models/src/user.rs b/crates/api_models/src/user.rs index 4674abf3976..7bb8409993d 100644 --- a/crates/api_models/src/user.rs +++ b/crates/api_models/src/user.rs @@ -1,6 +1,6 @@ use std::fmt::Debug; -use common_enums::{PermissionGroup, RoleScope, TokenPurpose}; +use common_enums::{EntityType, ...
2024-09-05T11:52:56Z
## 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. This PR changes list users in lineage API so that it don't d...
dfebc29c2b1398ac8934bd350eefcd4fa4f10d84
``` curl --location 'http://localhost:8080/user/v2/signin' \ --header 'Content-Type: application/json' \ --data-raw '{ "email": "email", "password": "name" } ' ``` ``` { "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiZTY2NjM4OGYtMzE3OC00YmRiLTlhYTYtNjQwNjJkOTIyZTRlIiwicHVycG9zZS...
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ "use common_enums::{EntityType, PermissionGroup, RoleScope, TokenPurpose};\n", " pub profile_id: id_type::ProfileId,\n", " pub entity_type: EntityType,\n", " pub entity_type: EntityType,\n" ] }, { "file_p...
[ { "file_path": "crates/api_models/src/user.rs", "lines": [ "use common_enums::{PermissionGroup, RoleScope, TokenPurpose};\n", " pub entity_type: common_enums::EntityType,\n" ] }, { "file_path": "crates/api_models/src/user_role/role.rs", "lines": [ " pub role_name: Str...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-5809
Bug: [FEATURE] add support to forward x-request-id to keymanager service ### Feature Description To ease debugging the keymanager service, x-request-id from application should be forwarded in the header while calling encryption service. This will be used by the keymanager service for the requests instead of creatin...
diff --git a/crates/common_utils/Cargo.toml b/crates/common_utils/Cargo.toml index eee1bd573ef..c6e29801b2f 100644 --- a/crates/common_utils/Cargo.toml +++ b/crates/common_utils/Cargo.toml @@ -12,6 +12,7 @@ default = ["v1"] keymanager = ["dep:router_env"] keymanager_mtls = ["reqwest/rustls-tls"] encryption_service =...
2024-09-05T07:02:28Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description To ease debugging the keymanager service, x-request-id from application will be forwarded in the header w...
d3a1703bf59afc06e87e94433bc10a01e413259b
Manually enabling logging in the key manager. x-request-id from the router can be used for debugging key manger service. ![Screenshot 2024-09-05 at 12 29 43 PM](https://github.com/user-attachments/assets/46ae387d-1ed9-4958-a90d-9816b124d498) <img width="423" alt="Screenshot 2024-09-05 at 12 30 00 PM" src="https://git...
[ { "file_path": "crates/common_utils/Cargo.toml", "lines": [ "km_forward_x_request_id = [\"dep:router_env\", \"router_env/actix_web\"]\n" ] }, { "file_path": "crates/common_utils/src/keymanager.rs", "lines": [ "#[cfg(feature = \"km_forward_x_request_id\")]\n", "const X_REQUE...
[ { "file_path": "crates/common_utils/src/keymanager.rs", "lines": [ "\n", " HeaderMap::from_iter(\n", " vec![(\n", " HeaderName::from_str(CONTENT_TYPE)\n", " .change_context(errors::KeyManagerClientError::FailedtoConstructHeade...
[ "toml", "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-5806
Bug: feat(analytics): add card_network as a field in clickhouse payment_attempts table Add `card_network` as a field in clickhosue `payment_attempts.sql` file.
diff --git a/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql b/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql index 5c1ee8754c9..f5d0ca51fd7 100644 --- a/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql +++ b/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql @@ -42,...
2024-09-05T08:24:47Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added card_network as a field in payment_attempts clickhouse ta...
db04ded4a460abfb073167d59b3c51a4e7972c54
Made sample payments on sandbox dashboard and confirmed the data for card_network on clickhouse sandbox ![image](https://github.com/user-attachments/assets/e7c955ed-c331-4563-ad8d-32ab5fd605e4) ![image](https://github.com/user-attachments/assets/ce351d3d-9091-4f97-91fc-d77531e1d45a)
[ { "file_path": "crates/analytics/docs/clickhouse/scripts/payment_attempts.sql", "lines": [ " `card_network` Nullable(String),\n", " `card_network` Nullable(String),\n", " `card_network` Nullable(String),\n", " card_network,\n", " length(_error) = 0;\n" ] } ...
[ { "file_path": "crates/analytics/docs/clickhouse/scripts/payment_attempts.sql", "lines": [ " length(_error) = 0;\n" ] } ]
[ "sql" ]
1
juspay/hyperswitch
juspay__hyperswitch-5871
Bug: feat(analytics): Add metrics, filters and APIs for Analytics v2 Dashboard - Payments Page Add metrics, filters and APIs for Analytics v2 Dashboard - Payments page The following filters should be added: Payment Attempts: - Merchant_id - Card last 4 - Error Reason - Card Issuer Payment Intents: ...
diff --git a/crates/analytics/src/clickhouse.rs b/crates/analytics/src/clickhouse.rs index 37a011c9a5a..546b57f99af 100644 --- a/crates/analytics/src/clickhouse.rs +++ b/crates/analytics/src/clickhouse.rs @@ -130,9 +130,12 @@ impl AnalyticsDataSource for ClickhouseClient { fn get_table_engine(table: AnalyticsColle...
2024-09-12T08:10:00Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Adding metrics, filters and APIs for Analytics v2 Dashboard - P...
b7139483bb4735b7dfaf7e659ab33a16a90af1db
Curls for different metrics (which are newly created or modified): Payment Attempts based metrics: - sessionized_payment_processed_amount ```bash curl --location 'http://localhost:8080/analytics/v1/org/metrics/payments' \ --header 'Accept: */*' \ --header 'Accept-Language: en-US,en;q=0.9' \ --header 'Connectio...
[ { "file_path": "crates/analytics/src/clickhouse.rs", "lines": [ " | AnalyticsCollection::PaymentSessionized\n", " | AnalyticsCollection::RefundSessionized\n", " | AnalyticsCollection::PaymentIntentSessionized\n", " Self::PaymentSessionized ...
[ { "file_path": "crates/analytics/src/payment_intents.rs", "lines": [ "pub use self::core::{get_filters, get_metrics};\n" ] }, { "file_path": "crates/analytics/src/payment_intents/accumulator.rs", "lines": [ " pub smart_retried_amount: SumAccumulator,\n", "#[repr(transpar...
[ "rs" ]
55
juspay/hyperswitch
juspay__hyperswitch-5805
Bug: feat(payouts): Add profile level get filters API for payouts Currently payout get filter API gives filters whole merchant. Since dashboard is being moved to profile level, filter API at profile level should be needed.
diff --git a/crates/router/src/core/payouts.rs b/crates/router/src/core/payouts.rs index 515a7be959a..65490e2d270 100644 --- a/crates/router/src/core/payouts.rs +++ b/crates/router/src/core/payouts.rs @@ -947,10 +947,11 @@ pub async fn payouts_filtered_list_core( pub async fn payouts_list_available_filters_core( ...
2024-09-05T08:25:23Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - This PR adds a profile level get filters api for payouts. ...
db04ded4a460abfb073167d59b3c51a4e7972c54
``` curl --location 'http://localhost:8080/payouts/profile/filter' \ --header 'Content-Type: application/json' \ --header 'authorization: Bearer JWT with profile_id' \ --data '{"start_time":"2024-08-05T18:30:00Z","end_time":"2024-09-05T08:19:00Z"}' ``` Response will look like this ```json { "connector": ...
[ { "file_path": "crates/router/src/core/payouts.rs", "lines": [ " profile_id_list: Option<Vec<common_utils::id_type::ProfileId>>,\n", " let payouts = db\n", " let payouts = core_utils::filter_objects_based_on_profile_id_list(profile_id_list, payouts);\n", "\n", " ...
[ { "file_path": "crates/router/src/core/payouts.rs", "lines": [ " let payout = db\n", " payout.as_slice(),\n" ] }, { "file_path": "crates/router/src/routes/app.rs", "lines": [ " web::resource(\"/filter\").route(web::post().to(payouts_list_ava...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-5802
Bug: [BUG] Fix errors on Payment methods v2 ### Feature Description Fix errors on Payment methods v2 ### Possible Implementation Fix errors on Payment methods 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 re...
diff --git a/crates/router/Cargo.toml b/crates/router/Cargo.toml index e9c9d504b47..7da8327b5b8 100644 --- a/crates/router/Cargo.toml +++ b/crates/router/Cargo.toml @@ -36,7 +36,7 @@ v2 = ["customer_v2", "payment_methods_v2", "payment_v2", "common_default", "api_ v1 = ["common_default", "api_models/v1", "diesel_models...
2024-09-05T06:31: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 --> Build was failing so Fixed errors on payment_methods_v2 for the...
db04ded4a460abfb073167d59b3c51a4e7972c54
[ { "file_path": "crates/router/Cargo.toml", "lines": [ "payment_methods_v2 = [\"api_models/payment_methods_v2\", \"diesel_models/payment_methods_v2\", \"hyperswitch_domain_models/payment_methods_v2\", \"storage_impl/payment_methods_v2\"]\n" ] } ]
[ { "file_path": "crates/router/Cargo.toml", "lines": [ "payment_methods_v2 = [\"api_models/payment_methods_v2\"]\n" ] } ]
[ "toml" ]
1
juspay/hyperswitch
juspay__hyperswitch-5820
Bug: feat(users): Add profile level role and profile level authz - Create profile level users. - Create authorization checks for entity level in apis. default to merchant
diff --git a/crates/router/src/analytics.rs b/crates/router/src/analytics.rs index a6e94ed294a..7c4d1acc6bf 100644 --- a/crates/router/src/analytics.rs +++ b/crates/router/src/analytics.rs @@ -20,6 +20,7 @@ pub mod routes { GetRefundFilterRequest, GetRefundMetricRequest, GetSdkEventFiltersRequest, Get...
2024-09-05T13:54:50Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Created a profile level user. - Added entity level authorization in routes. <!-- Describe your change...
4d499038c03986a6f3ecee742c5add1c55789b01
Dashboard UI. 1. Login to dashboard. 2. Invite a user at profile level. 3. Login using profile level user. 4. Check if APIs are working.
[ { "file_path": "crates/router/src/analytics.rs", "lines": [ " use common_enums::EntityType;\n", " &auth::JWTAuth {\n", " permission: Permission::Analytics,\n", " minimum_entity_level: EntityType::Merchant,\n", " },\n", ...
[ { "file_path": "crates/router/src/analytics.rs", "lines": [ " &auth::JWTAuth(Permission::Analytics),\n", " &auth::JWTAuth(Permission::Analytics),\n", " &auth::JWTAuth(Permission::Analytics),\n", " &auth::JWTAuth(Permission::Analytics),\n", ...
[ "rs" ]
25
juspay/hyperswitch
juspay__hyperswitch-5782
Bug: skip 3DS in `network_transaction_id` flow for cybersource During the MIT with cybersource connector we check if the connector mandate details are present. If is present then we make a no_three_ds api request. Same check needs to be added in case of network transaction id flow as MIT can be done using card detai...
diff --git a/crates/router/src/connector/cybersource.rs b/crates/router/src/connector/cybersource.rs index 15242ddb119..806cf67b2da 100644 --- a/crates/router/src/connector/cybersource.rs +++ b/crates/router/src/connector/cybersource.rs @@ -901,7 +901,8 @@ impl ConnectorIntegration<api::Authorize, types::PaymentsAuthor...
2024-09-03T08:20:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> During the MIT with cybersource connector we check if the conne...
e3a9fb16c518d09313d00a23ece70a26d4728f63
-> Create mca of cybersource -> enable the `is_connector_agnostic_mit_enabled` config ``` curl --location 'http://localhost:8080/account/merchant_1725355756/business_profile/pro_jQJ4qqk9cMEsOfzx4jjP' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key:' \ --d...
[ { "file_path": "crates/router/src/connector/cybersource.rs", "lines": [ " && (req.request.connector_mandate_id().is_none()\n", " && req.request.get_optional_network_transaction_id().is_none())\n", " && (req.request.connector_mandate_id().is_none()\n", ...
[ { "file_path": "crates/router/src/connector/cybersource.rs", "lines": [ " && req.request.connector_mandate_id().is_none()\n", " && req.request.connector_mandate_id().is_none()\n", " && data.request.connector_mandate_id().is_none()\n" ] }, { "fil...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-5776
Bug: feat(user_role): add support to get user role details v2 Add support to return user role details v2 Request will take email and response will return something like ``` [ { role_id: "r1", role_name: "name", org: { name: "Juspay", id: "o1" }, merchant: { // Optional ...
diff --git a/crates/api_models/src/events/user.rs b/crates/api_models/src/events/user.rs index 8d1ae60b325..9b100a7321e 100644 --- a/crates/api_models/src/events/user.rs +++ b/crates/api_models/src/events/user.rs @@ -14,11 +14,11 @@ use crate::user::{ ChangePasswordRequest, ConnectAccountRequest, CreateInternalUse...
2024-09-02T20:08:54Z
## 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 get user role details ### Additional Changes - [ ] This PR modifies the API contract...
28e7a7fc5e49029dc5e7a367bb4d2a946ed1fe45
Request: ``` curl --location 'http://localhost:8080/user/user/v2' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer JWT' \ --data-raw '{ "email": "some_email" }' ``` Response ``` [ { "role_id": "org_admin", "org": { "name": null, ...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " GetUserRoleDetailsRequest, GetUserRoleDetailsResponse, GetUserRoleDetailsResponseV2,\n", " InviteUserRequest, ListUsersResponse, ReInviteUserRequest, RecoveryCodes, ResetPasswordRequest,\n", " RotatePasswordReques...
[ { "file_path": "crates/api_models/src/events/user.rs", "lines": [ " GetUserRoleDetailsRequest, GetUserRoleDetailsResponse, InviteUserRequest, ListUsersResponse,\n", " ReInviteUserRequest, RecoveryCodes, ResetPasswordRequest, RotatePasswordRequest,\n", " SendVerifyEmailRequest, Sig...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-5768
Bug: fix spell check for CI pull request Rename `ApplePayDecryptConifg` to `ApplePayDecryptConfig` as the CI spell checks are failing.
diff --git a/crates/router/src/configs/secrets_transformers.rs b/crates/router/src/configs/secrets_transformers.rs index 312a475b8ba..c7d08d6f5ac 100644 --- a/crates/router/src/configs/secrets_transformers.rs +++ b/crates/router/src/configs/secrets_transformers.rs @@ -137,7 +137,7 @@ impl SecretsHandler for settings::A...
2024-09-02T07:37:56Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> ### Additional Changes - [ ] This PR modifies the API co...
e4f1fbc5a5622a86c3e3c27ae20e4b7b05f0a7ef
[ { "file_path": "crates/router/src/configs/secrets_transformers.rs", "lines": [ "impl SecretsHandler for settings::ApplePayDecryptConfig {\n", " let applepay_decrypt_keys = settings::ApplePayDecryptConfig::convert_to_raw_secret(\n" ] }, { "file_path": "crates/router/src/configs/set...
[ { "file_path": "crates/router/src/configs/secrets_transformers.rs", "lines": [ "impl SecretsHandler for settings::ApplePayDecryptConifg {\n", " let applepay_decrypt_keys = settings::ApplePayDecryptConifg::convert_to_raw_secret(\n" ] }, { "file_path": "crates/router/src/configs/set...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-5773
Bug: [FEATURE] [DEUTSCHEBANK] Add template code ### Feature Description Template code needs to be added for new connector Deutsche Bank https://testmerch.directpos.de/rest-api/apidoc/v2.1/index.html ### Possible Implementation Template code needs to be added for new connector Deutsche Bank https://testmerch.dir...
diff --git a/config/config.example.toml b/config/config.example.toml index b54cd0df0d1..c02402c0471 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -202,6 +202,7 @@ coinbase.base_url = "https://api.commerce.coinbase.com" cryptopay.base_url = "https://business-sandbox.cryptopay.me" cybersou...
2024-09-02T11:57: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 --> Template code for new connector Deutsche Bank https://testmerc...
1d149716ba47d3e3f4c749687cff851e18ec77c0
Only template code added hence no testing required.
[ { "file_path": "config/config.example.toml", "lines": [ "deutschebank.base_url = \"https://sandbox.directpos.de/rest-api/services/v2.1\"\n", " \"deutschebank\",\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "deutschebank.base_url = \"https:/...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " bambora::Bambora, bitpay::Bitpay, fiserv::Fiserv, fiservemea::Fiservemea, fiuu::Fiuu,\n", " globepay::Globepay, helcim::Helcim, nexixpay::Nexixpay, novalnet::Novalnet,\n", " powertranz::Powertranz, stax...
[ "sh", "toml", "rs" ]
25
juspay/hyperswitch
juspay__hyperswitch-5796
Bug: feat(payments): show aggregate count of refund status
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 6b9ba4afd01..923881ae376 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -15715,6 +15715,22 @@ } } }, + "RefundAggregateResponse": { + "type": "ob...
2024-09-04T11:12:56Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Added new api for refunds status aggregate ### Additional Changes - [x] This PR modifies the API co...
aa2f5d147561f6e996228d269e6a54c5d1f53a60
Request ``` curl --location 'http://localhost:8080/refunds/aggregate?start_time=2022-08-28T18%3A30%3A00Z' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiZjNmYzEyNjYtZDQ2MS00NWU3LWFkMzEtODdlMDA4ZWVlYjZjIiwibWVyY2hhbnRfaWQiOiJtZXJjaGF...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"RefundAggregateResponse\": {\n", " \"type\": \"object\",\n", " \"required\": [\n", " \"status_with_count\"\n", " ],\n", " \"properties\": {\n", " \...
[ { "file_path": "crates/api_models/src/events/refund.rs", "lines": [ " RefundListFilters, RefundListMetaData, RefundListRequest, RefundListResponse,\n", " RefundManualUpdateRequest, RefundRequest, RefundResponse, RefundUpdateRequest,\n", " RefundsRetrieveRequest,\n" ] }, { ...
[ "json", "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-5765
Bug: [FEATURE] extend dynamic fields support for payout use cases ### Feature Description Dynamic fields helps SDK decide what fields are to be collected from the user. Dynamic fields are defined for a given pm<>pmt<>connector combination. These are attached in the pm list response. These fields are mapped in SDK a...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 6b9ba4afd01..256832c376d 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3534,6 +3534,14 @@ { "type": "object", "properties": { + "for...
2024-09-01T17:45:04Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR includes below changes - add dynamic fields support for payout widget (#5765) - expose `formLay...
d5fee45ead11e9a03fd6fc15dfd8cf91de27eefa
Tested locally <details> <summary>1. Create a payout widget which uses journey layout</summary> curl --location 'http://localhost:8080/payouts/create' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_6lYcIjzguBUudkK9bpoM3LZDod7RdE1wDJWzxwZhGLWWL6mlQIcfbUkXQgTAgj7e' \ --...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"form_layout\": {\n", " \"allOf\": [\n", " {\n", " \"$ref\": \"#/components/schemas/UIWidgetFormLayout\"\n", " }\n", " ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"type\": \"object\",\n", " \"description\": \"The billing address for the payout\",\n" ] }, { "file_path": "crates/api_models/src/payouts.rs", "lines": [ "use crate::{enums as api_enums...
[ "json", "css", "toml", "rs", "js" ]
23