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-8378
Bug: [FEATURE] allow configuring outgoing webhooks for different status as a part of payment and refund flows ### Feature Description This feature allows merchants to configure different states for triggered the outgoing webhooks during payment and refund flows. Currently, outgoing webhooks are triggered for prede...
diff --git a/crates/api_models/src/admin.rs b/crates/api_models/src/admin.rs index f12e6d5bd4a..00fccd4ed45 100644 --- a/crates/api_models/src/admin.rs +++ b/crates/api_models/src/admin.rs @@ -702,6 +702,58 @@ pub struct WebhookDetails { /// If this property is true, a webhook message is posted whenever a payment ...
2025-06-23T10:41:00Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This pull request introduces validation for webhook status configurations at the business profile level. ...
6fd7626c99e006bb7dcac864c30299bb8ef1d742
I. New behavior <details> <summary>1. Create Merchant Account with custom `webhook_details`</summary> cURL curl --location --request POST 'http://localhost:8080/accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: tes...
[ { "file_path": "crates/api_models/src/admin.rs", "lines": [ "\n", " /// List of payment statuses that triggers a webhook for payment intents\n", " #[schema(value_type = Vec<IntentStatus>, example = json!([\"succeeded\", \"failed\", \"partially_captured\", \"requires_merchant_action\"...
[ { "file_path": "crates/common_enums/src/transformers.rs", "lines": [ " AttemptStatus, Country, CountryAlpha2, CountryAlpha3, IntentStatus, PaymentMethod,\n", " PaymentMethodType,\n" ] }, { "file_path": "crates/euclid_wasm/Cargo.toml", "lines": [ "payouts = [\"api_mode...
[ "toml", "rs", "js" ]
18
juspay/hyperswitch
juspay__hyperswitch-8356
Bug: Create a profile level config to switch between routing engine Hyperswitch already has support to handle euclid rules, whereas the same support has been added in [decision engine](https://github.com/juspay/decision-engine) as part of the routing unification. To migrate hyperswitch merchants to start using the d...
diff --git a/crates/api_models/src/open_router.rs b/crates/api_models/src/open_router.rs index af91ece3f12..bec1f14fef6 100644 --- a/crates/api_models/src/open_router.rs +++ b/crates/api_models/src/open_router.rs @@ -186,6 +186,19 @@ pub struct DecisionEngineConfigSetupRequest { pub config: DecisionEngineConfigVar...
2025-06-16T07:49:21Z
- [ ] Bugfix - [ ] New feature - [X] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This pull request introduces a new field, `routing_result_source`, across various structs and enums in the codebase to specify ...
c99ec73885e0c64552f01826b20a1af7a934a65c
1. Create a merchant account, API key, profile, connector <details> <summary>2. Create Routing Rule </summary> Request curl --location 'http://localhost:8080/routing' \ --header 'X-Profile-Id: pro_Wt98jyZeU8jaQ3cr9zDP' \ --header 'api-key: dev_yUplJwLqvtAJiqOMmiamv78Xj9k1DkaEK3kxRExy4baMX4t...
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ "#[derive(Debug, Serialize, Deserialize, Clone)]\n", "pub struct GetDecisionEngineConfigRequest {\n", " pub merchant_id: String,\n", " pub config: DecisionEngineDynamicAlgorithmType,\n", "}\n", "\n", ...
[ { "file_path": "crates/hyperswitch_domain_models/src/business_profile.rs", "lines": [ " ext_traits::OptionExt,\n", "use crate::type_encryption::{crypto_operation, AsyncLift, CryptoOperation};\n", "\n" ] }, { "file_path": "crates/router/src/core/payments/routing.rs", "lin...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-8343
Bug: Fix(CI): Update api-reference path in `pr_labeler` PR #8333 modified the `api-reference` folder structure. Need to update it in `pr_labeler` job
2025-06-13T10:24:29Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> - Updated OpenAPI spec path in `pr_labeler` CI job - Modified ...
07c93f183b13b0bfd2fbcdede33906852b0fca79
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-8341
Bug: chore(ci): `adyen` and `stripe` postman tests are failing Multiple Test Cases have been failing on Postman, - Adyen: <span style="color:red">88 Failures</span> - Stripe: <span style="color:red">3 Failures</span> <img width="500" alt="Image" src="https://github.com/user-attachments/assets/522a3f3b-ef4d-450d-b...
diff --git a/postman/collection-dir/stripe/PaymentConnectors/.meta.json b/postman/collection-dir/stripe/PaymentConnectors/.meta.json index 6d68eeab4ab..c32be7223a6 100644 --- a/postman/collection-dir/stripe/PaymentConnectors/.meta.json +++ b/postman/collection-dir/stripe/PaymentConnectors/.meta.json @@ -5,7 +5,7 @@ ...
2025-06-13T04:05:49Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> Deleting API Key needs Merchant ID. So, deleting it after delet...
953bace38c1509c95fc8c1e2426fda72c65e3bf8
<img width="864" alt="image" src="https://github.com/user-attachments/assets/86d7ab3a-46b4-4476-804f-b200b3d67a05" /> The Remaining failures are because of outdated certificates and their keys. Once we update that it will be like the following <img width="493" alt="image" src="https://github.com/user-attachment...
[ { "file_path": "postman/collection-dir/stripe/PaymentConnectors/.meta.json", "lines": [ " \"Delete API Key\",\n", " \"Merchant Account - Delete\"\n" ] } ]
[ { "file_path": "postman/collection-dir/stripe/PaymentConnectors/.meta.json", "lines": [ " \"Merchant Account - Delete\",\n", " \"Delete API Key\"\n" ] } ]
[ "json" ]
1
juspay/hyperswitch
juspay__hyperswitch-8374
Bug: chore: resolve warnings in v2 Resolve warnings in v2 across all crates except router crate.
diff --git a/crates/api_models/src/admin.rs b/crates/api_models/src/admin.rs index 50ae919d4f8..f12e6d5bd4a 100644 --- a/crates/api_models/src/admin.rs +++ b/crates/api_models/src/admin.rs @@ -17,13 +17,12 @@ use serde::{Deserialize, Serialize}; use utoipa::ToSchema; use super::payments::AddressDetails; -#[cfg(feat...
2025-06-18T07:04:20Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR resolves the v2 warnings generated in crates common_uti...
305ca9bda9d3c5bf3cc97458b7ed07b79e894154
Testing not required.
[ { "file_path": "crates/api_models/src/admin.rs", "lines": [ "#[cfg(feature = \"v1\")]\n", "use crate::{profile_acquirer::ProfileAcquirerResponse, routing};\n" ] }, { "file_path": "crates/api_models/src/refunds.rs", "lines": [ "#[cfg(feature = \"v1\")]\n", "use crate::...
[ { "file_path": "crates/api_models/src/admin.rs", "lines": [ "#[cfg(feature = \"v1\")]\n", "use crate::routing;\n", " profile_acquirer::ProfileAcquirerResponse,\n" ] }, { "file_path": "crates/api_models/src/refunds.rs", "lines": [ "use crate::{\n", " admin:...
[ "rs" ]
50
juspay/hyperswitch
juspay__hyperswitch-8338
Bug: fix(analytics): refactor auth analytics to support profile,org and merchant level auth ### Feature Description Exposed the auth analytics under profile, merchant and org levels ### Possible Implementation Expose different endpoints for auth analytics sankey ### Have you spent some time checking if this feat...
diff --git a/crates/analytics/src/auth_events/core.rs b/crates/analytics/src/auth_events/core.rs index 41b7b724954..011633dce3d 100644 --- a/crates/analytics/src/auth_events/core.rs +++ b/crates/analytics/src/auth_events/core.rs @@ -27,7 +27,7 @@ use crate::{ #[instrument(skip_all)] pub async fn get_metrics( poo...
2025-06-12T13:12:53Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Exposed endpoints for auth analytics under profile, merchant and org access levels. ### Additional C...
d305fad2e6c403fde11b9eea785fddefbf3477df
[ { "file_path": "crates/analytics/src/auth_events/core.rs", "lines": [ " auth: &AuthInfo,\n", " let auth_scoped = auth.to_owned();\n", " &auth_scoped,\n", " auth: &AuthInfo,\n", " get_auth_events_filter_for_dimension(dim, auth, &req...
[ { "file_path": "crates/analytics/src/auth_events/core.rs", "lines": [ " merchant_id: &common_utils::id_type::MerchantId,\n", " let merchant_id_scoped = merchant_id.to_owned();\n", " &merchant_id_scoped,\n", " merchant_id: &common_utils::id_type::Mercha...
[ "rs" ]
17
juspay/hyperswitch
juspay__hyperswitch-8348
Bug: [FEAT] implement capture and webhooks flow in ACI implement capture and webhooks flow in ACI
diff --git a/config/deployments/production.toml b/config/deployments/production.toml index f9b884489ba..e044183a416 100644 --- a/config/deployments/production.toml +++ b/config/deployments/production.toml @@ -23,7 +23,7 @@ payout_connector_list = "nomupay,stripe,wise" # base urls based on your need. # Note: These are...
2025-06-16T03:44:04Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD closes this [issue](https://github.com/juspay/hyperswitch/issues/8348) ## Description <!-- Describe your changes in d...
4003c176f6dc1abd25b3b27182aedfea5c514e62
**NOTE**: This PR adds test cases for the ACI capture flow. Currently, the capture-related tests are failing with the error: `Cannot capture (PA value exceeded, PA reverted or invalid workflow?)` I've already raised this issue with the ACI team and am awaiting their response. Once resolved, we can revalidate the ...
[ { "file_path": "config/deployments/production.toml", "lines": [ "aci.base_url = \"https://eu-prod.oppwa.com/\"\n" ] }, { "file_path": "config/development.toml", "lines": [ "credit = { country = \"AD,AE,AT,BE,BG,CH,CN,CO,CR,CY,CZ,DE,DK,DO,EE,EG,ES,ET,FI,FR,GB,GH,GI,GR,GT,HN,HK,HR,...
[ { "file_path": "config/deployments/production.toml", "lines": [ "aci.base_url = \"https://eu-test.oppwa.com/\"\n" ] }, { "file_path": "config/development.toml", "lines": [ "credit = { not_available_flows = { capture_method = \"manual\" }, country = \"AD,AE,AT,BE,BG,CH,CN,CO,CR,CY...
[ "toml", "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-8371
Bug: [REFACTOR]: Move Dummy connector Movement of dummy connector form `router` crate to `hyperswitch_connectors` crate
diff --git a/crates/hyperswitch_connectors/Cargo.toml b/crates/hyperswitch_connectors/Cargo.toml index 9233aa9bc5f..9e4996d14cd 100644 --- a/crates/hyperswitch_connectors/Cargo.toml +++ b/crates/hyperswitch_connectors/Cargo.toml @@ -11,6 +11,11 @@ payouts = ["hyperswitch_domain_models/payouts", "api_models/payouts", "h...
2025-06-18T05:28:36Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Movement of dummy connector form `router` crate to `hyperswitch...
7b2919b46fda92aad14980280bc46c2c23d81086
Only dummy connector moved to crate hyoerswitch_connectors hence no testing required.
[ { "file_path": "crates/hyperswitch_connectors/Cargo.toml", "lines": [ "default = [\"dummy_connector\"]\n", "dummy_connector = [\n", " \"hyperswitch_interfaces/dummy_connector\",\n", " \"hyperswitch_domain_models/dummy_connector\",\n", "]\n" ] }, { "file_path":...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/dummyconnector/transformers.rs", "lines": [ "use common_utils::pii;\n", "use diesel_models::enums::Currency;\n", " connector::utils::RouterData,\n", " core::errors,\n", " services,\n", " types::{self...
[ "toml", "rs" ]
11
juspay/hyperswitch
juspay__hyperswitch-8306
Bug: [REFACTOR] change the response type of update gateway score api in open router
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index bb4db422556..d43ddadc54c 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -9482,6 +9482,7 @@ "customer_id", "payment_method_type", "payment_method_subtyp...
2025-06-10T13:16:06Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description A new struct, UpdateScoreResponse, was introduced in the API models to represent responses from the Open ...
67a42f0c27157f876698982a6b5f0a1cd3e15ffb
Cannot be tested until open_router is enabled in runtime. Tested locally - Response is getting deserialized ![image](https://github.com/user-attachments/assets/51117d21-74b2-4a34-811f-99d9c95e226f)
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"recurring_enabled\",\n", " \"description\": \"Indicates whether the payment method is eligible for recurring payments\",\n", " \"example\": true\n", " \"description\": \"Indi...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"Indicates whether the payment method supports recurring payments. Optional.\",\n", " \"example\": true,\n", " \"nullable\": true\n", " \"recurring_enabled\",...
[ "json", "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8325
Bug: feat(recovery-events): add revenue recovery topic and vector config to push these events to s3 Add new event for revenue recovery and write vector config to send data to aws s3.
diff --git a/config/config.example.toml b/config/config.example.toml index d90be9cae0a..36ab1d1713e 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -994,6 +994,7 @@ payout_analytics_topic = "topic" # Kafka topic to be used for Payouts an consolidated_events_topic = "topic" # Ka...
2025-06-09T10:54:43Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This new Kafka Event consume the revenue recovery related events which will be constructed from both `Rec...
20b37bdb7a25ec053e7671332d4837a0ad743983
At the time of this pr getting merged, Kafka is not enabled for V2 . So we cannot test it. It can be tested by the following steps once kafka is enabled for v2. Follow the steps in this pr #7461 and check the s3 attached to that kafka topic to find a file after waiting for one day. Sample Kafka Event : <img wi...
[ { "file_path": "config/config.example.toml", "lines": [ "revenue_recovery_topic = \"topic\" # Kafka topic to be used for revenue recovery events\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "revenue_recovery_topic = \"topic\" # Kafka t...
[ { "file_path": "config/vector.yaml", "lines": [ "enrichment_tables:\n", " sdk_map:\n", " type: file\n", " file:\n", " path: /etc/vector/config/sdk_map.csv\n", " encoding:\n", " type: csv\n", " schema:\n", " publishable_key...
[ "yaml", "toml", "rs" ]
21
juspay/hyperswitch
juspay__hyperswitch-8302
Bug: fix(router): Move Customer PML endpoint to OLAP (v2) [This PR](https://github.com/juspay/hyperswitch/pull/7241) added customer PML for v2, but the route was incorrectly added under OLTP instead of OLAP, need to fix
diff --git a/crates/router/src/routes/app.rs b/crates/router/src/routes/app.rs index a22d71a5d66..a9cda83bd41 100644 --- a/crates/router/src/routes/app.rs +++ b/crates/router/src/routes/app.rs @@ -1080,6 +1080,10 @@ impl Customers { web::resource("/total-payment-methods") ....
2025-06-10T08:28:04Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Moved customer saved PML route to OLAP in v2 ### Additional ...
713c85d25d29259672da6efbfed0862e843ec542
Verified as working. No change in response.
[ { "file_path": "crates/router/src/routes/app.rs", "lines": [ " .service(\n", " web::resource(\"/{id}/saved-payment-methods\")\n", " .route(web::get().to(payment_methods::list_customer_payment_method_api)),\n", " ...
[ { "file_path": "crates/router/src/routes/app.rs", "lines": [ " .service(\n", " web::resource(\"/{id}/saved-payment-methods\")\n", " .route(web::get().to(payment_methods::list_customer_payment_method_api)),\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8318
Bug: [FEATURE] include connector_customer creation during payment methods migration ### Feature Description `connector_customer` is a map of merchant_connector_id (key) and connector_customer_id (value) in `customers` table which stores the customer's ID created at connector's end. This is usually populated as a p...
diff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rs index 6b0e9dcb38d..5ecd2f71ef7 100644 --- a/crates/api_models/src/payment_methods.rs +++ b/crates/api_models/src/payment_methods.rs @@ -16,12 +16,10 @@ use masking::PeekInterface; use serde::de; use utoipa::{schema, ToSch...
2025-06-11T12:24:41Z
## 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 introduces populating `connector_customer` field in `customers` table during payment method migra...
0eab55d17aef3caa160878bc9b2be29deb37711d
Steps for testing - 1. Create a merchant account 2. Create a merchant's connector account <details> <summary>3. Run /migrate-form API</summary> cURL curl --location --request POST 'http://localhost:8080/payment_methods/migrate-batch' \ --header 'api-key: test_admin' \ --form 'm...
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ " admin, customers, enums as api_enums,\n", " pub connector_customer_id: Option<String>,\n", "#[derive(Debug, Clone, serde::Deserialize, serde::Serialize)]\n", "pub struct ConnectorCustomerDetails {\n", ...
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ "#[cfg(feature = \"v1\")]\n", "use crate::customers;\n", " admin, enums as api_enums,\n", "impl From<(PaymentMethodRecord, id_type::MerchantId)> for customers::CustomerRequest {\n", " customer_i...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-8324
Bug: [REFACTOR] Refactor routing events core ### Feature Description Refactor routing events core to include a framework for routing events ### Possible Implementation Refactor routing events core to include a framework for routing events ### Have you spent some time checking if this feature request has been rai...
diff --git a/crates/api_models/src/open_router.rs b/crates/api_models/src/open_router.rs index 33719e8a41b..af91ece3f12 100644 --- a/crates/api_models/src/open_router.rs +++ b/crates/api_models/src/open_router.rs @@ -58,14 +58,14 @@ pub struct PaymentInfo { // cardSwitchProvider: Option<Secret<String>>, } -#[de...
2025-06-11T13:58:14Z
## 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 routing events in dynamic_routing core. - have al...
1ed2f210b2fec95696b98cfbe67c620c8fe716ff
SR routing dynamo- <img width="1490" alt="image" src="https://github.com/user-attachments/assets/4877f130-136f-4d75-bb71-fe8a17445e52" /> Elimination and Contract based on dynamo - <img width="1728" alt="image" src="https://github.com/user-attachments/assets/ab090dae-8abb-4b02-99ce-a5a50aa9bf7d" /> <img width...
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ "#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]\n", "#[derive(Debug, Serialize, Deserialize, PartialEq, Clone)]\n", "#[derive(Debug, Serialize, Deserialize, Clone)]\n", "#[derive(Debug, Serialize, Deseriali...
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ "#[derive(Debug, Serialize, Deserialize, PartialEq)]\n", "#[derive(Debug, Serialize, Deserialize, PartialEq)]\n", "#[derive(Debug, Serialize, Deserialize)]\n", "#[derive(Debug, Serialize, Deserialize)]\n" ] }, ...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-8297
Bug: [FEATURE] add Click To Pay feature for Trustpay Connector ### Feature Description add Click To Pay feature for Trustpay Connector ### Possible Implementation add Click To Pay feature for Trustpay Connector ### Have you spent some time checking if this feature request has been raised before? - [x] I checked...
diff --git a/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs b/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs index f59cbe3313d..de40805ad4e 100644 --- a/crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/...
2025-06-10T10:07:34Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/8297) ## Description <!-- Describe your changes in d...
bc767b9131e2637ce90997da9018085d2dadb80b
Postman Test 1. Payment Connector - Create (Trustpay) Request: ``` curl --location 'http://localhost:8080/account/merchant_1749546439/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: {{api-key}}' \ --data '{ "connector_type": "paym...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs", "lines": [ " network_tokenization::NetworkTokenNumber,\n", " self, AddressDetailsData, BrowserInformationData, CardData, NetworkTokenData,\n", " PaymentsAuthorizeRequestData, PaymentsPr...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs", "lines": [ " self, AddressDetailsData, BrowserInformationData, CardData, PaymentsAuthorizeRequestData,\n", " PaymentsPreProcessingRequestData, RouterData as OtherRouterData,\n", " ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8288
Bug: [REFACTOR] Change refunds v2 list request verb Change refunds v2 list request verb from GET to POST
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index ab487354acd..0d27c061dc9 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3365,7 +3365,7 @@ } }, "/v2/refunds/list": { - "get": { + "post": { "tags":...
2025-06-09T13:05:01Z
## 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 to list refunds in v2, we are using GET verb, but we ...
4c73d74889472c1185fa85658ab462ea37f31f84
Create some payments and refunds before hand. - List all refunds API call ``` curl --location 'http://localhost:8080/v2/refunds/list' \ --header 'x-profile-id: pro_hB6oV5vfIHyqUVw1aetw' \ --header 'Content-Type: application/json' \ --header 'Authorization: api-key=dev_iNC2eYPgqnHNYoFG44nlmpp3ofzZqQ4wPOcx9r7IO...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"post\": {\n" ] }, { "file_path": "crates/openapi/src/routes/refunds.rs", "lines": [ " post,\n" ] }, { "file_path": "crates/router/src/routes/app.rs", "lines": [ " rout...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"get\": {\n" ] }, { "file_path": "crates/openapi/src/routes/refunds.rs", "lines": [ " get,\n" ] }, { "file_path": "crates/router/src/routes/app.rs", "lines": [ " route....
[ "json", "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8332
Bug: docs(openapi): Show API version selection dropdown in API Reference Add a version selection dropdown in API reference to allow exploring v2 APIs
diff --git a/api-reference-v2/README.md b/api-reference-v2/README.md deleted file mode 100644 index 61bc1f08938..00000000000 --- a/api-reference-v2/README.md +++ /dev/null @@ -1,45 +0,0 @@ -# Api Reference - -We use the [openapi specification](https://swagger.io/specification) for the api reference. The openapi file is...
2025-06-12T09:49:44Z
## 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 --> - Moved both `v1` and `v2` API docs under `api-reference` direc...
61c2e2c75fabdb03c5599df97240a030cb7b5b6a
Executed: ```bash cargo run -p openapi --features v1 ``` and verified `openapi_spec_v1.json` generated How the version dropdown looks like: <img width="599" alt="image" src="https://github.com/user-attachments/assets/41d0c676-9a80-4a7e-ac33-9f56d9f18703" />
[ { "file_path": "crates/openapi/src/main.rs", "lines": [ " let relative_file_path = \"api-reference/v1/openapi_spec_v1.json\";\n", " let relative_file_path = \"api-reference/v2/openapi_spec_v2.json\";\n" ] } ]
[ { "file_path": "api-reference-v2/README.md", "lines": [ "# Api Reference\n", "\n", "We use the [openapi specification](https://swagger.io/specification) for the api reference. The openapi file is generated from the code base [openapi_spec.json](openapi_spec.json).\n", "\n", "##...
[ "md", "json", "png", "yml", "rs", "mdx", "svg" ]
12
juspay/hyperswitch
juspay__hyperswitch-8295
Bug: add `merchant_category_code` in business profile Add support to accept `merchant_category_code` as input in the business profile. This is the four-digit code assigned based on business type to determine processing fees and risk level. This code can be used to make various decision during a payment flow. One suc...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 2e337c1f560..f1260390795 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -13195,6 +13195,18 @@ }, "additionalProperties": false }, + "MerchantCategoryCode"...
2025-06-10T06:34:54Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This pull request introduces `merchant_category_code` field in ...
713c85d25d29259672da6efbfed0862e843ec542
-> Update a business profile by passing merchant category code ``` curl --location 'http://localhost:8080/account/merchant_1749476401/business_profile/pro_1RkvEPVmDc3K9FSyjOOS' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ' \ --data '{ "merchant_cat...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"MerchantCategoryCode\": {\n", " \"type\": \"string\",\n", " \"enum\": [\n", " \"5411\",\n", " \"7011\",\n", " \"0763\",\n", " \"8111\",\n", ...
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ " pub merchant_category_code: common_enums::MerchantCategoryCode,\n" ] }, { "file_path": "crates/common_enums/src/enums.rs", "lines": [ "pub enum MerchantCategoryCode {\n" ] }, { "file_path": "crates...
[ "sql", "json", "rs" ]
16
juspay/hyperswitch
juspay__hyperswitch-8281
Bug: [BUG] [JPMORGAN] 5xx during Payments Authorize and Void - Card expiry should be be `i32` and not `String` - Void has a set of enum values to be passed and not random String values
diff --git a/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs b/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs index 00e9fb35e8e..9783324c042 100644 --- a/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs +++ b/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs @@ -306,6 +306,16 @@ impl C...
2025-06-08T17:53:11Z
## 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 5xx thrown by JPMorgan connector during payment...
e58eeb1aa964c035af2e4fc54ad35adcc4dac157
Fixed and ran Cypress tests against the connector. ![image](https://github.com/user-attachments/assets/036fb788-9d6d-4575-adf7-9e724556ae60)
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/jpmorgan.rs", "lines": [ " fn build_request(\n", " &self,\n", " _req: &RouterData<SetupMandate, SetupMandateRequestData, PaymentsResponseData>,\n", " _connectors: &Connectors,\n", " ) -> Cus...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs", "lines": [ "use masking::Secret;\n", " month: Secret<String>,\n", " year: Secret<String>,\n", " month: req_card.card_exp_month.clone(),\n", " year...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8277
Bug: [BUG] Unwanted country PM filters in Authorizedotnet ### Bug Description Country PM filters for payment processor authorizedotnet need to be removed as it is a global payment processor. ### Expected Behavior Payments with any billing country should be possible for authorizedotnet ### Actual Behavior Paymen...
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml index 10038b3aca7..e5b8c09a1d9 100644 --- a/config/deployments/integration_test.toml +++ b/config/deployments/integration_test.toml @@ -366,11 +366,11 @@ debit = { country = "AE, AF, AL, AO, AR, AT, AU, AW, AZ, BA, BB, BD, ...
2025-06-07T06:14:43Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Removed country PM filters for payment processor authorizedotne...
cb3aba8d5a0ed7080af54d15d7690ad4115c8a3d
Test Any Payment on Authorizedotnet with Billing Country other than US/Canada Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: API_KEY_HERE' \ --data '{ "amount": 1234, "currency": "USD...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "credit = {currency = \"CAD,USD\"}\n", "debit = {currency = \"CAD,USD\"}\n", "google_pay = {currency = \"CHF,DKK,EUR,GBP,NOK,PLN,SEK,USD,AUD,NZD,CAD\"}\n", "apple_pay = {currency = \"EUR,GBP,ISK,USD,AUD,CAD,BRL,CLP...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "credit = { country = \"US, CA\", currency = \"CAD,USD\"}\n", "debit = { country = \"US, CA\", currency = \"CAD,USD\"}\n", "google_pay = {country = \"AL,DZ,AS,AO,AG,AR,AU,AT,AZ,BH,BY,BE,BR,BG,CA,CL,CO,HR,CZ,DK,DO,EG,EE,F...
[ "toml" ]
6
juspay/hyperswitch
juspay__hyperswitch-8298
Bug: [REFCTOR]: Move CustomerAcceptance type to `common_types` `CustomerAcceptance` is currently defined separately in `api_models` and `hyperswitch_domain_models`. These types are exactly the same, so they can be moved to `common_types`. Additionally, in V2, we can use this strict type in `diesel_models` as well,...
diff --git a/Cargo.lock b/Cargo.lock index 42add100ade..d6037be06fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1794,8 +1794,10 @@ dependencies = [ "common_utils", "diesel", "euclid", + "masking", "serde", "serde_json", + "time", "utoipa", ] diff --git a/crates/api_models/src/mandates.rs b/crates/api_mo...
2025-06-10T07:59:02Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Moved `CustomerAcceptance`, `AcceptanceType`, `OnlineMandate`...
7338a8db8562bae749e32437fa36d8f036655fcd
V1 Payments Create + Confirm Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_YYBHtW1Ed85InL1L2TfWTZRUY7LCQxWotVQnOt5WjlMF6pMzEakhdpCzkj1AYaIa' \ --data-raw '{ "amount": 180000, ...
[ { "file_path": "Cargo.lock", "lines": [ " \"masking\",\n", " \"time\",\n" ] }, { "file_path": "crates/api_models/src/mandates.rs", "lines": [ "use common_types::payments as common_payments_types;\n", "use crate::enums as api_enums;\n", " pub customer_acceptan...
[ { "file_path": "crates/api_models/src/mandates.rs", "lines": [ "use crate::{enums as api_enums, payments};\n", " pub customer_acceptance: Option<payments::CustomerAcceptance>,\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " pub customer_accept...
[ "toml", "rs", "lock" ]
33
juspay/hyperswitch
juspay__hyperswitch-8275
Bug: [BUG] CPF info not getting populated for Facilitapay required fields <img width="907" alt="Image" src="https://github.com/user-attachments/assets/67f28a99-bff3-41fd-a770-110aa19e1bcb" /> <img width="1158" alt="Image" src="https://github.com/user-attachments/assets/5ceb4cd2-db27-4ff2-8252-2719c7a755e5" /> <img...
diff --git a/crates/payment_methods/src/configs/payment_connector_required_fields.rs b/crates/payment_methods/src/configs/payment_connector_required_fields.rs index 0a5dca9c0e2..478c2ea2448 100644 --- a/crates/payment_methods/src/configs/payment_connector_required_fields.rs +++ b/crates/payment_methods/src/configs/paym...
2025-06-06T11:06:04Z
## 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 the required fields error in SDK. ### Additi...
45d4ebfde33c778d3d6063c1c8d45ef6373a5afd
CPF now gets populated: ```curl curl --location 'http://localhost:8080/account/payment_methods?client_secret=pay_1iYxKKzKMLFXthlD6iAO_secret_i2gpOEtZadPHnlUpKR1Z' \ --header 'Accept: application/json' \ --header 'api-key: pk_dev_9caa65826ff740e78fcf292b7d96f31f' ``` ```json { "redirect_url": "https://...
[ { "file_path": "crates/payment_methods/src/configs/payment_connector_required_fields.rs", "lines": [ " RequiredField::PixCpf.to_tuple(),\n" ] } ]
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8272
Bug: [BUG] styling for elements in payment links using dynamic classes ### Bug Description `payment_link_ui_rules` has a set of CSS selectors and CSS properties defined - which are selected using JS after rendering the elements and CSS styles are applied directly to the elements. This is only done once. Whenever so...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index c68771b7170..f3d1eb16998 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -15633,6 +15633,11 @@ "type": "boolean", "description": "Boolean to control payment bu...
2025-06-06T08:16:38Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR introduces - modification of the behavior of appending the `payment_link_ui_rules` to the CSS in...
4fa7b12400b31396de0ace295118dc7192245bb1
Steps for testing - <details> <summary>1. Create a payment link with dynamic selectors in `payment_link_ui_rules`</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " },\n", " \"color_icon_card_cvc_error\": {\n", " \"type\": \"string\",\n", " \"description\": \"Hex color for the CVC icon during error state\",\n", " \"nullable\...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " pub payment_link_ui_rules: Option<HashMap<String, HashMap<String, String>>>,\n", " pub payment_link_ui_rules: Option<HashMap<String, HashMap<String, String>>>,\n" ] }, { "file_path": "crates/router/src/core/paymen...
[ "css", "json", "js", "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-8254
Bug: feat(router): Include `payment_experience` in PML for payments response (v2) Required by SDK
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index e3b41ce3899..6e1c321d250 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -21692,6 +21692,14 @@ "payment_method_subtype": { "$ref": "#/components/schemas/...
2025-06-05T05:56:25Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added `payment_experience` in Payment Method List for Payments ...
4a7c08fbc57f9712f1ff478d01d4929b9576b448
Request: ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_019740919d6a72c2b6984f9b99be203f/payment-methods' \ --header 'Content-Type: application/json' \ --header 'x-profile-id: pro_GKx8bxieFB51Nk5FMCi6' \ --header 'Authorization: publishable-key=pk_dev_e2eec08c40444d8e862c444d3df67cd2,client...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"payment_experience\": {\n", " \"allOf\": [\n", " {\n", " \"$ref\": \"#/components/schemas/PaymentExperience\"\n", " }\n", "...
[]
[ "json", "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8262
Bug: feat(core): consume card details from billing connectors and first error codes and store them in payment intent table Consume the card network and card iin from billing connectors and add them ton payment intent feature metadata
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index c37690a9f5a..ef4d417ddc6 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -8694,9 +8694,41 @@ pub struct PaymentRevenueRecoveryMetadata { /// The name of the payment connector through w...
2025-06-04T21:34:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description The following details are needed to be stored in the payment intent feature metadata as a part of transac...
9045eb5b65c21ee0c9746ee591b5f00bbce3b890
Can be tested by following the steps mentioned in this PR: #7461. Here are the test results: ``` { "redirect_response": null, "search_tags": null, "apple_pay_recurring_details": null, "payment_revenue_recovery_metadata": { "total_retry_count": 2, "payment_connector_transmission...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " #[schema(value_type = BillingConnectorPaymentMethodDetails)]\n", " /// Extra Payment Method Details that are needed to be stored\n", " pub billing_connector_payment_method_details: Option<BillingConnectorPaymentMetho...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs", "lines": [ " pub card_funding_type: StripeCardFundingTypeDetails,\n", "pub struct StripeCardFundingTypeDetails {\n", " charge_details.charge_id,\n", " cha...
[ "rs" ]
15
juspay/hyperswitch
juspay__hyperswitch-8249
Bug: feat: migration api for migrating routing rules to decision_engine ## Description Create migration apis to move to decision-engine for PL routing.
diff --git a/config/development.toml b/config/development.toml index d7fb9578c98..1c83278b3fd 100644 --- a/config/development.toml +++ b/config/development.toml @@ -1176,4 +1176,4 @@ connector_names = "stripe, adyen" # Comma-separated list of allowe [infra_values] cluster = "CLUSTER" -version = "HOSTN...
2025-06-03T19:01:23Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR introduces a new migration API that facilitates migrating routing rules defined in Euclid (lega...
953bace38c1509c95fc8c1e2426fda72c65e3bf8
``` curl --location --request POST 'http://127.0.0.1:8080/routing/rule/migrate?profile_id=pro_iqrbKSzgfIcVYUEwqy2J&limit=5&offset=0&merchant_id=merchant_1749113195' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' ``` Note: testing shouldn't be...
[ { "file_path": "config/development.toml", "lines": [ "version = \"HOSTNAME\"\n" ] }, { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingVolumeSplitResponse, RoutingVolumeSplitWrapper, RuleMigrationError, RuleMigrationQuery,\n", " RuleMigrati...
[ { "file_path": "config/development.toml", "lines": [ "version = \"HOSTNAME\"\n" ] }, { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingVolumeSplitResponse, RoutingVolumeSplitWrapper, SuccessBasedRoutingConfig,\n" ] }, { "file_path": "cra...
[ "toml", "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-8244
Bug: [FEATURE] Health check for Decision Engine service ### Feature Description Need health check for DE ### Possible Implementation Need health check for DE ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Have you read t...
diff --git a/crates/api_models/src/health_check.rs b/crates/api_models/src/health_check.rs index 4a1c009e43e..a6261da1be0 100644 --- a/crates/api_models/src/health_check.rs +++ b/crates/api_models/src/health_check.rs @@ -12,6 +12,8 @@ pub struct RouterHealthCheckResponse { pub outgoing_request: bool, #[cfg(fe...
2025-06-04T13:55:01Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added health check for Decision engine service ### Additio...
fd844c3dd50600a1b136ed2bf15db50048918275
Hit the health endpoint ``` curl "http://localhost:8080/health/ready" ``` Response - ``` { "database": true, "redis": true, "analytics": true, "opensearch": false, "outgoing_request": true, "grpc_health_check": { "dynamic_routing_service": false }, "decision_engine": true }...
[ { "file_path": "crates/api_models/src/health_check.rs", "lines": [ " #[cfg(feature = \"dynamic_routing\")]\n", " pub decision_engine: bool,\n" ] }, { "file_path": "crates/router/src/core/health_check.rs", "lines": [ "\n", " #[cfg(feature = \"dynamic_routing\"...
[]
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-8228
Bug: [FEATURE] Fix spell check ### Feature Description Need to fix spell check in router ### Possible Implementation Need to fix spell check in router ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the Cont...
diff --git a/crates/analytics/src/routing_events/events.rs b/crates/analytics/src/routing_events/events.rs index 27b2f251627..b6090a588d2 100644 --- a/crates/analytics/src/routing_events/events.rs +++ b/crates/analytics/src/routing_events/events.rs @@ -70,4 +70,5 @@ pub struct RoutingEventsResult { pub created_at:...
2025-06-03T12:43: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 --> - Fixed spell checks - Added `routing_approach` field in routi...
ec908d38acb6e6e6a5bc204dc4b47ec46248d00e
1. hit the routing analytics API ``` curl -H "api-key: dev_R5xpWKgvxcaxLcQateRbZKt8B9XkvqaPziIdwPHaPQrGTDTq5JRyncxPtOq9JNsj" "http://localhost:8080/analytics/v1/profile/routing_event_logs?type=Payment&payment_id=pay_evlgasQRCFOJplN3yWge" ``` Response - ``` [ { "merchant_id": "merchant_1748952604", ...
[ { "file_path": "crates/analytics/src/routing_events/events.rs", "lines": [ " pub routing_approach: Option<String>,\n" ] }, { "file_path": "crates/api_models/src/routing.rs", "lines": [ " pub routing_approach: RoutingApproach,\n" ] }, { "file_path": "crates/route...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " pub routing_apporach: RoutingApproach,\n" ] }, { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ " let event_resposne = api_routing::CalSuccessRateEventResponse {\n", " ...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-8230
Bug: [CYPRESS] Fix Cypress connector failures Wise Elavon Paybox Datatrans Facilitapay Itaubank
2025-06-03T12:45:52Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> This PR fixes Cypress tests for Itaubank, Paybox and Datatran...
45d4ebfde33c778d3d6063c1c8d45ef6373a5afd
|command|screenshot| |-|-| |`CYPRESS_CONNECTOR=itaubank npm run cypress:payments`|<img width="420" alt="image" src="https://github.com/user-attachments/assets/988695cf-97af-4c6d-88bc-8fdc04ae4caf" />| |`CYPRESS_CONNECTOR=datatrans npm run cypress:payments`|<img width="424" alt="image" src="https://github.com/use...
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-8240
Bug: refactor(dynamic_routing): add support for shuffle on tie flag to success_based routing
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index bb4db422556..9724050266d 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -9482,6 +9482,7 @@ "customer_id", "payment_method_type", "payment_method_subtyp...
2025-06-04T12:48: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 pull request introduces a new feature to the routing confi...
67a42f0c27157f876698982a6b5f0a1cd3e15ffb
1. Create merchant_account, api_key. 2. Toggle SR for the default profile_created above ``` curl --location --request POST 'http://localhost:8080/account/merchant_1748681084/business_profile/pro_3gHXWoq1Xh3AKi6tNZV1/dynamic_routing/success_based/toggle?enable=dynamic_connector_selection' \ --header 'Content-Ty...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"recurring_enabled\",\n", " \"description\": \"Indicates whether the payment method is eligible for recurring payments\",\n", " \"example\": true\n", " \"description\": \"Indi...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"Indicates whether the payment method supports recurring payments. Optional.\",\n", " \"example\": true,\n", " \"nullable\": true\n", " \"recurring_enabled\",...
[ "json", "rs", "proto" ]
4
juspay/hyperswitch
juspay__hyperswitch-8268
Bug: docs: API reference improvements API Reference needed some context on the payments flows, and improvements in some descriptions.
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index d88111cc43e..09346e388fd 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3990,7 +3990,7 @@ "properties": { "city": { "type": "string", - "de...
2025-05-31T21:42:29Z
## 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 --> Improving API-Reference to include payment flows, and include b...
b159a1d23dd37a038debaa0538355e14a3847249
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"The city, district, suburb, town, or village of the address.\",\n", " \"description\": \"The first line of the street address or P.O. Box.\",\n", " \"description\": \"The s...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"description\": \"The address city\",\n", " \"description\": \"The first line of the address\",\n", " \"description\": \"The second line of the address\",\n", " \"descriptio...
[ "json", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-8223
Bug: add retry support for debit routing In the case of debit routing flow, the routing output (`CallConnectorType`) will include both the connector and its associated card network. In our current implementation, we simply iterate over the connector list and pass the connector. With the updated requirement, we will ...
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs index 2cd9f507893..0994dadb5c5 100644 --- a/crates/router/src/core/payments.rs +++ b/crates/router/src/core/payments.rs @@ -1516,7 +1516,7 @@ fn get_connector_data_with_routing_decision( let routing_decision = ...
2025-06-03T09:48:41Z
## 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 --> In the case of debit routing flow, the routing output (`CallCon...
e6482fbe84e2e7bcbcafa7ab95c8ab573bc4bed7
Create a business profile and enable debit routing for it ``` curl --location 'http://localhost:8080/account/merchant_1748851578/business_profile/pro_gEwS6ve9KVqywWL0hmAq' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ' \ --data '{ "is_debit_routing...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " Some(debit_routing_output),\n" ] }, { "file_path": "crates/router/src/core/payments/retry.rs", "lines": [ " routing::helpers as routing_helpers,\n", " None,\n", " ...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " debit_routing_output,\n" ] }, { "file_path": "crates/router/src/core/payments/retry.rs", "lines": [ " let connector = if should_retry_with_pan {\n", " ...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8216
Bug: chore: Update apple pay currency filter configs Update apple pay currency filter configs as a temporary fix for failing PR #7921
diff --git a/config/deployments/production.toml b/config/deployments/production.toml index 16b0a3ad1d1..65399b000c7 100644 --- a/config/deployments/production.toml +++ b/config/deployments/production.toml @@ -246,7 +246,7 @@ ach = { country = "US", currency = "USD" } affirm = { country = "US", currency = "USD" } afte...
2025-06-03T07:32:25Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Apple pay payments for noon were failing due to PR#7921. Adding...
06c5215c0edf0ed47cc55fd5216c4642cc515f37
[ { "file_path": "config/deployments/production.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,IT,KZ,JE,LV,LI,LT,LU,MT,MD,MC,ME,NL,NO,PL,PT,RO,SM,RS,SK,SI,ES,SE,CH,UA,GB,AR,CO,CR,BR,MX,PE,BH,IL,JO,KW,PS,QA,SA,A...
[ { "file_path": "config/deployments/production.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,IT,KZ,JE,LV,LI,LT,LU,MT,MD,MC,ME,NL,NO,PL,PT,RO,SM,RS,SK,SI,ES,SE,CH,UA,GB,AR,CO,CR,BR,MX,PE,BH,IL,JO,KW,PS,QA,SA,A...
[ "toml" ]
1
juspay/hyperswitch
juspay__hyperswitch-8252
Bug: Improve Readme for better navigation Improve the Readme so it improves the navigation and format.
diff --git a/README.md b/README.md index 05764933882..a46baab5244 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,14 @@ <img src="./docs/imgs/hyperswitch-logo-light.svg#gh-light-mode-only" alt="Hyperswitch-Logo" width="40%" /> </p> -<h1 align="center">Open-Source Payments Orchestration</h1> +<h1 align="center"...
2025-06-04T21:52:44Z
## 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 --> I updated the readme for better navigation ### Additional Ch...
4a7c08fbc57f9712f1ff478d01d4929b9576b448
[ { "file_path": "README.md", "lines": [ "<h1 align=\"center\">Composable Open-Source Payments Infrastructure</h1>\n", "\n", "<p align=\"center\">\n", " <img src=\"https://raw.githubusercontent.com/juspay/hyperswitch/main/docs/gifs/quickstart.gif\" alt=\"Quickstart demo\" />\n", ...
[ { "file_path": "README.md", "lines": [ "<h1 align=\"center\">Open-Source Payments Orchestration</h1>\n", "<div align=\"center\" >\n", "Single API to access the payments ecosystem and its features\n", "</div>\n", " <!-- Uncomment when we reach >50% coverage -->\n", " <!-...
[ "md" ]
1
juspay/hyperswitch
juspay__hyperswitch-8208
Bug: [FIX] Add fallback connectors instead of active routing rule connectors if straight through connector is ineligible Add the fallback connectors to the list of eligible connectors instead of adding connectors configured in the active routing rule in case straight through connector is ineligible
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs index 0993a6eee3f..f9fea9cdfd7 100644 --- a/crates/router/src/core/payments.rs +++ b/crates/router/src/core/payments.rs @@ -6743,7 +6743,7 @@ where } if let Some(routing_algorithm) = request_straight_through { - let ...
2025-06-02T13:24:17Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Reverts https://github.com/juspay/hyperswitch/pull/7921 ### ...
33cd60e64288b2a6bb24cc27b9d319fdbeab46ef
1. Payment intent create ``` curl --location 'http://localhost:8080/vs/v1/payment_intents' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'User-Agent: helloMozilla/5.0 (Linux; Android 12; SM-S906N Build/QP1A.190711.020; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/80.0.39...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " let (mut connectors, check_eligibility) = routing::perform_straight_through_routing(\n", " payment_data.get_setup_mandate(),\n", " payment_data.get_payment_attempt(),\n", " ...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " let (connectors, check_eligibility) = routing::perform_straight_through_routing(\n", " let new_pd = payment_data.clone();\n", " new_pd.get_setup_mandate(),\n", " new_pd.g...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8196
Bug: refactor: add result type for Program ### Description This PR refactors the conversion from ast::Program<ConnectorSelection> to internal Program by introducing a fallible TryFrom implementation instead of an infallible From. This enables proper error propagation and logging during DSL conversion failures. Supp...
diff --git a/crates/router/src/core/payments/routing/utils.rs b/crates/router/src/core/payments/routing/utils.rs index e82ab1d8bee..01d066e5cf2 100644 --- a/crates/router/src/core/payments/routing/utils.rs +++ b/crates/router/src/core/payments/routing/utils.rs @@ -1,6 +1,9 @@ use std::collections::{HashMap, HashSet}; ...
2025-05-29T13:30:56Z
## 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 conversion from `ast::Program<ConnectorSelection>` to internal `Program` by intro...
b8e7a868ade62ff21498203d9e14edae094071d9
``` curl --location 'http://127.0.0.1:8080/routing' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_IpYFqCd4DHf7x4ER1GBQrW0mHOZzam3pYyuP2tSRb6q7qvTw7jvEjF7UzjwFPXWu' \ --data ' { "name": "Priority rule with fallback", "description": "It is my ADVANCED config", "profile_id": "p...
[ { "file_path": "crates/router/src/core/payments/routing/utils.rs", "lines": [ "use api_models::{\n", " routing as api_routing,\n", " routing::{ConnectorSelection, RoutableConnectorChoice},\n", "};\n", "\n", "impl TryFrom<ast::Program<ConnectorSelection>> for Program...
[ { "file_path": "crates/router/src/core/payments/routing/utils.rs", "lines": [ "use api_models::routing as api_routing;\n", "use api_models::routing::{ConnectorSelection, RoutableConnectorChoice};\n", "impl From<ast::Program<ConnectorSelection>> for Program {\n", " fn from(p: ast::...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8190
Bug: refactor(dynamic_routing): add logic for creating merchant account in decision engine
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index 46cd37bc68a..a5448b563b1 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -608,6 +608,8 @@ pub struct DynamicRoutingAlgorithmRef { pub dynamic_routing_volume_split: Option<u8>, pub eli...
2025-05-31T08:26:32Z
## 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 --> Merchant account creation on decision-engine is pre-requisite f...
33cd60e64288b2a6bb24cc27b9d319fdbeab46ef
1. Create merchant_account and API key in Hyperswitch. 2. Toggle SR for the default profile created above. ``` curl --location --request POST 'http://localhost:8080/account/merchant_1748681084/business_profile/pro_3gHXWoq1Xh3AKi6tNZV1/dynamic_routing/success_based/toggle?enable=dynamic_connector_selection' \ --...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " #[serde(default)]\n", " pub is_merchant_created_in_decision_engine: bool,\n", " pub fn update_merchant_creation_status_in_decision_engine(&mut self, is_created: bool) {\n", " self.is_merchant_created_in_d...
[ { "file_path": "crates/router/src/core/admin.rs", "lines": [ " // Call to DE here\n", " // Check if creation should be based on default profile\n", " #[cfg(all(feature = \"dynamic_routing\", feature = \"v1\"))]\n", " {\n", " if state.conf.open_router.enabled ...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-8203
Bug: [CHORE] Bump Cypress dependencies Current versions are out dated.
2025-06-02T07:43:48Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [x] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR bumps Cypress and its dependencies to its latest vers...
dbca363f44c0dbce277a337d64dfb82741d423c4
CI should pass.
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-8181
Bug: [FEATURE]: build gRPC Client Interface to initiate communication with recovery-trainer gRPC service Implement a gRPC client interface that facilitates communication with the recovery-trainer gRPC service. The client should be capable of initializing and managing the connection to the service, sending requests, ...
diff --git a/Cargo.lock b/Cargo.lock index c72b8f1b531..c38b3966051 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3055,12 +3055,14 @@ dependencies = [ "masking", "once_cell", "prost", + "prost-types", "quick-xml", "reqwest 0.11.27", "router_env", "rust-grpc-client", "serde", "thiserror 1.0.69", + "time...
2025-05-29T10:34:56Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> I have implemented a gRPC client that facilitates communication...
640d0552f96721d63c14fda4a07fc5987cea29a0
Decider gRPC server:- <img width="1227" alt="Screenshot 2025-06-11 at 01 16 34" src="https://github.com/user-attachments/assets/b4887ed0-4315-406e-b393-cbd9bf480c95" /> Decider gRPC client(HS):- <img width="1159" alt="Screenshot 2025-06-05 at 02 05 20" src="https://github.com/user-attachments/assets/bbddd857-2...
[ { "file_path": "Cargo.lock", "lines": [ " \"prost-types\",\n", " \"time\",\n", " \"prost-types\",\n" ] }, { "file_path": "config/config.example.toml", "lines": [ "[grpc_client.recovery_decider_client] # Revenue recovery client base url\n", "base_url = \"http://1...
[ { "file_path": "config/config.example.toml", "lines": [ "monitoring_threshold_in_seconds = 2592000 # 30*24*60*60 secs , threshold for monitoring the retry system\n", "retry_algorithm_type = \"cascading\" # type of retry algorithm\n" ] }, { "file_path": "config/deployments/integration...
[ "toml", "lock", "rs", "proto" ]
22
juspay/hyperswitch
juspay__hyperswitch-8212
Bug: [FEATURE] Audit trail for routing ### Feature Description Implement audit trail for routing ### Possible Implementation Implement audit trail for routing ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Have you read ...
diff --git a/config/config.example.toml b/config/config.example.toml index 16846d0c403..12a905e1f56 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -945,6 +945,7 @@ audit_events_topic = "topic" # Kafka topic to be used for Payment Au payout_analytics_topic = "topic" # Ka...
2025-05-30T11:58:03Z
## 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 --> Audit trail for SR based Routing ### Additional Changes ...
1eea83359c43e29f75caa92ad5fe2f22c8dc2829
1. toggle SR routing for profile 2. Create a payment ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_Gu8sdLTO7Dn8raa0FLbX0phVxHwt69RDLxBmgWoLbFv3ixqmVFflLtev8l7f2NC5' \ --data-raw '{ "amount": 654...
[ { "file_path": "config/config.example.toml", "lines": [ "routing_logs_topic = \"topic\" # Kafka topic to be used for Routing events\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "routing_logs_topic = \"topic\" # Kafka topic to b...
[ { "file_path": "crates/analytics/docs/clickhouse/scripts/connector_events.sql", "lines": [ "CREATE TABLE connector_events_queue (\n", ") ENGINE = Kafka SETTINGS kafka_broker_list = 'kafka0:29092',\n", "kafka_topic_list = 'hyperswitch-outgoing-connector-events',\n", "kafka_group_name ...
[ "sql", "toml", "rs" ]
27
juspay/hyperswitch
juspay__hyperswitch-8176
Bug: Properly Handle encoded_data in PSync flow [v2] PSync is failing for adyen with error: `validate_psync_reference_id failed`. We need to pass the `encoded_data` in payment_attempt
diff --git a/crates/router/src/core/payments/operations/payment_get.rs b/crates/router/src/core/payments/operations/payment_get.rs index ebf8205ea9b..716030c8f43 100644 --- a/crates/router/src/core/payments/operations/payment_get.rs +++ b/crates/router/src/core/payments/operations/payment_get.rs @@ -177,7 +177,7 @@ imp...
2025-05-29T10:29:06Z
## 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 --> Add `encoded_data` from `PaymentsRetrieveRequest` in `payment_a...
d91cf70ae346cbf613ce5c1cfad2ae8a28c71d1c
No visible changes in API response. Verified that payment status changes to `succeeded`.
[ { "file_path": "crates/router/src/core/payments/operations/payment_get.rs", "lines": [ " let mut payment_attempt = db\n", " payment_attempt.encoded_data = request\n", " .param\n", " .as_ref()\n", " .map(|val| masking::Secret::new(v...
[ { "file_path": "crates/router/src/core/payments/operations/payment_get.rs", "lines": [ " let payment_attempt = db\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8180
Bug: [FEATURE] Authentication Analytics Enhancement for 3DS Intelligence Engine ### Feature Description Add new query filters for refined 3DS analytics Expose exemption data (exemption_requested, exemption_approved) in the response Support Sankey-chart metrics by returning flow-ready data ### Possible Implementat...
diff --git a/crates/analytics/src/auth_events.rs b/crates/analytics/src/auth_events.rs index 3aa23d0793d..2ce5d52f9b1 100644 --- a/crates/analytics/src/auth_events.rs +++ b/crates/analytics/src/auth_events.rs @@ -2,7 +2,8 @@ pub mod accumulator; mod core; pub mod filters; pub mod metrics; +pub mod sankey; pub mod t...
2025-05-28T10:49:41Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Added exemption_requested and exemption_approved fields to the auth_events metrics, extended the auth-ana...
dbca363f44c0dbce277a337d64dfb82741d423c4
Tested it locally by ingesting some test data in authentications tables in CKH. CURL for /metrics/auth_events introduced two new fields authentication_exemption_approved_count and authentication_exemption_requested_count here ``` curl 'http://localhost:8080/analytics/v1/metrics/auth_events' \ -H 'Accept: */*' ...
[ { "file_path": "crates/analytics/src/auth_events.rs", "lines": [ "pub mod sankey;\n", "pub use self::core::{get_filters, get_metrics, get_sankey};\n" ] }, { "file_path": "crates/analytics/src/auth_events/accumulator.rs", "lines": [ " pub authentication_exemption_approved...
[ { "file_path": "crates/analytics/src/auth_events.rs", "lines": [ "pub use self::core::{get_filters, get_metrics};\n" ] }, { "file_path": "crates/analytics/src/auth_events/filters.rs", "lines": [ "use common_enums::DecoupledAuthenticationType;\n" ] }, { "file_path": "c...
[ "rs" ]
23
juspay/hyperswitch
juspay__hyperswitch-8174
Bug: filter debit networks based on merchant connector account configuration Once the open router call is completed for the co-badged card lookup in a debit routing flow, it returns all the debit networks eligible for the card. These networks must be validated against the merchant-enabled debit networks for each mer...
diff --git a/crates/router/src/core/debit_routing.rs b/crates/router/src/core/debit_routing.rs index adbd663c5c1..a929c146cec 100644 --- a/crates/router/src/core/debit_routing.rs +++ b/crates/router/src/core/debit_routing.rs @@ -2,7 +2,9 @@ use std::{collections::HashSet, fmt::Debug}; use api_models::{enums as api_e...
2025-05-29T09:01:11Z
## 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 --> Once the open router call is completed for the co-badged card l...
b159a1d23dd37a038debaa0538355e14a3847249
-> Create a profile and enable debit routing ``` curl --location 'http://localhost:8080/account/merchant_1748851578/business_profile/pro_gEwS6ve9KVqywWL0hmAq' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ' \ --data '{ "is_debit_routing_enabled": tru...
[ { "file_path": "crates/router/src/core/debit_routing.rs", "lines": [ "use common_utils::{\n", " errors::CustomResult, ext_traits::ValueExt, id_type, types::keymanager::KeyManagerState,\n", "};\n", " utils::id_type::MerchantConnectorAccountId,\n", " let db = state.store...
[ { "file_path": "crates/router/src/core/debit_routing.rs", "lines": [ "use common_utils::id_type;\n", " &debit_routing_config,\n", " &debit_routing_config,\n", " debit_routing_config: &settings::DebitRoutingConfig,\n", " le...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8200
Bug: [FEATURE] Introduce routing in V2 - Implement rule based profile level activation , straight through routing and default fallback in V2 apis.
diff --git a/crates/diesel_models/src/payment_intent.rs b/crates/diesel_models/src/payment_intent.rs index d200d352fa4..ae2710c50e9 100644 --- a/crates/diesel_models/src/payment_intent.rs +++ b/crates/diesel_models/src/payment_intent.rs @@ -346,6 +346,7 @@ pub struct PaymentIntentNew { pub force_3ds_challenge: Opt...
2025-04-03T06:58:20Z
## 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 --> Implemented rule based routing in payments v2. Straight throug...
b8e7a868ade62ff21498203d9e14edae094071d9
Please use this log for checking the final list of connectors decided by routing module - `final_selected_connectors_for_routing` - Straight through routing - Create a routing algo entry, with rule and use that routing id in payment intent create create routing algorithm - <img width="1030" alt="Screenshot...
[ { "file_path": "crates/diesel_models/src/payment_intent.rs", "lines": [ " pub routing_algorithm_id: Option<common_utils::id_type::RoutingId>,\n" ] }, { "file_path": "crates/diesel_models/src/schema_v2.rs", "lines": [ " #[max_length = 64]\n", " decision_engi...
[ { "file_path": "crates/hyperswitch_domain_models/src/business_profile.rs", "lines": [ " card_testing_secret_key: item\n", " .card_testing_secret_key\n", " .async_lift(|inner| async {\n", " crypto_operation(\n...
[ "toml", "rs", "sql" ]
20
juspay/hyperswitch
juspay__hyperswitch-8173
Bug: update(ci): update S3 Source File Name in Postman Collection Runner Workflow The S3 source file name in the Postman Collection Runner workflow needs to be updated due to changes in the Connector Auth File. This modification ensures that the correct file is referenced in CI/CD workflows, maintaining authenticati...
2025-05-29T08:10:44Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [x] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> The S3 Source File Name in Postman Collection Runner Workflow h...
b8e7a868ade62ff21498203d9e14edae094071d9
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-8168
Bug: [BUG] payout routing for Sepa transactions result in a 4xx error ### Bug Description Creating payout transactions for SEPA are resulting in a 4xx error with below message. ``` { "error": { "type": "invalid_request", "message": "No eligible connector was found for the current payment method...
diff --git a/crates/euclid/src/enums.rs b/crates/euclid/src/enums.rs index cfd410f0d3b..22fb997530c 100644 --- a/crates/euclid/src/enums.rs +++ b/crates/euclid/src/enums.rs @@ -123,7 +123,7 @@ pub enum MandateType { pub enum PayoutBankTransferType { Ach, Bacs, - Sepa, + SepaBankTransfer, } #[cfg(fe...
2025-07-28T04:52:10Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix ## Description This PR fixes SEPA payout routing failures by updating database configurations to use `sepa_bank_transfer` instead of `sepa` for payout flows. This was missed as part of the refactoring in https://github.com/juspay/hypersw...
7667ec1ca95f278d9d762294da170ae05eda6c56
<details> <summary>1. Create payout MCA with correct payment method types</summary> cURL curl --location --request POST 'http://localhost:8080/account/merchant_1753677780/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'a...
[ { "file_path": "crates/euclid/src/enums.rs", "lines": [ " SepaBankTransfer,\n" ] } ]
[ { "file_path": "crates/euclid/src/enums.rs", "lines": [ " Sepa,\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8161
Bug: refactor(success_based): add support for exploration
diff --git a/crates/api_models/src/open_router.rs b/crates/api_models/src/open_router.rs index f15d9cbcfeb..cfcb45ef97b 100644 --- a/crates/api_models/src/open_router.rs +++ b/crates/api_models/src/open_router.rs @@ -62,6 +62,7 @@ pub struct PaymentInfo { pub struct DecidedGateway { pub gateway_priority_map: Opti...
2025-05-27T18:08:26Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Original PR - https://github.com/juspay/hyperswitch/pull/8158 ...
a830a070ba6786201a26aeeb7cf21a2d44528684
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ " pub routing_approach: String,\n" ] }, { "file_path": "crates/api_models/src/routing.rs", "lines": [ " exploration_percent: Some(20.0),\n", " pub exploration_percent: Option<f64>,\n", ...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " self.specificity_level = new.specificity_level\n" ] }, { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ " logger::debug!(\n", " \"open_router deci...
[ "rs", "proto" ]
5
juspay/hyperswitch
juspay__hyperswitch-8144
Bug: [BUG] Confirm and PSync call not giving whole_connector_response when all_keys_required is true and connector gives an error ### Bug Description Confirm and PSync call not giving whole_connector_response when all_keys_required is true and connector gives an error ### Expected Behavior Confirm and PSync call ...
diff --git a/crates/router/src/services/api.rs b/crates/router/src/services/api.rs index 6ec0ff9fe75..41a12f35576 100644 --- a/crates/router/src/services/api.rs +++ b/crates/router/src/services/api.rs @@ -127,6 +127,27 @@ pub type BoxedBillingConnectorPaymentsSyncIntegrationInterface<T, Req, Res> = pub type BoxedVault...
2025-08-24T19:55:06Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/8144) ## Description <!-- Describe your changes in d...
7047c3faa1e71c7ad13592cd41b77be3cdc1a8a2
Postman Test 1. Payments - Create (with invalid creds, `confirm`: `true` and `all_keys_required`: `true`) Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_6zQcrKUzlenHXPheZtIUO3WbxTAi...
[ { "file_path": "crates/router/src/services/api.rs", "lines": [ "fn store_raw_connector_response_if_required<T, Req, Resp>(\n", " return_raw_connector_response: Option<bool>,\n", " router_data: &mut types::RouterData<T, Req, Resp>,\n", " body: &types::Response,\n", ") -...
[ { "file_path": "crates/router/src/services/api.rs", "lines": [ " if return_raw_connector_response == Some(true) {\n", " let mut decoded = String::from_utf8(body.response.as_ref().to_vec())\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8157
Bug: refactor(success_based): add support for exploration
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 039981f661b..fbabc864672 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -23374,9 +23374,13 @@ }, "specificity_level": { "$ref": "#/components/schemas...
2025-05-27T14:52:09Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This pull request introduces a new feature to support an "explo...
e637b214e348216d30c9af59cce85a1264badebf
1. Toggle success based routing for a profile, Check the business profile table in DB, get the routing_algorithm_id active for that profile and check in routing_algorithm table. it should have exploration set to 20.0 ``` curl --location --request POST 'http://localhost:8080/account/merchant_1747851996/business_pr...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " },\n", " \"exploration_percent\": {\n", " \"type\": \"number\",\n", " \"format\": \"double\",\n", " \"nullable\": true\n", " }\n" ] }, { ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " },\n", " \"additionalProperties\": false\n" ] }, { "file_path": "crates/api_models/src/routing.rs", "lines": [ "#[serde(deny_unknown_fields)]\n", " self.specificity_level = new.spec...
[ "json", "rs", "proto" ]
6
juspay/hyperswitch
juspay__hyperswitch-8140
Bug: Handle missing merchant_business_country by defaulting to US If the business profile does not have a country set, we cannot perform debit routing, because the merchant_business_country will be treated as the acquirer_country, which is used to determine whether a transaction is local or global in the open router...
diff --git a/crates/router/src/core/debit_routing.rs b/crates/router/src/core/debit_routing.rs index 5824946c3e7..adbd663c5c1 100644 --- a/crates/router/src/core/debit_routing.rs +++ b/crates/router/src/core/debit_routing.rs @@ -49,10 +49,17 @@ where let debit_routing_config = state.conf.debit_routing_config.c...
2025-05-26T11:30:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> If the business profile does not have a country set, we cannot ...
5642080025524ed2dee363984359aa9275036035
-> Update the business profile to set is_debit_routing_enabled to true whereas the merchant_business_country will still be null. ``` curl --location 'http://localhost:8080/account/merchant_1748264799/business_profile/pro_15JiSFiM9m6TM3yuxgMI' \ --header 'Content-Type: application/json' \ --header 'Accept: applica...
[ { "file_path": "crates/router/src/core/debit_routing.rs", "lines": [ " // If the business profile does not have a country set, we cannot perform debit routing,\n", " // because the merchant_business_country will be treated as the acquirer_country,\n", " // which is use...
[ { "file_path": "crates/router/src/core/debit_routing.rs", "lines": [ " if let Some((call_connector_type, acquirer_country)) = connector\n", " .clone()\n", " .zip(business_profile.merchant_business_country)\n", " {\n", " if business_profile...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8138
Bug: [REFACTOR] Payment Attempt as mandatory field in PaymentStatusData Payment Attempt as mandatory field in PaymentStatusData as the endpoint /payments/{payment_id} is called after confirmation.
diff --git a/crates/hyperswitch_domain_models/src/payments.rs b/crates/hyperswitch_domain_models/src/payments.rs index 047fe7fb2cf..42d1ef1a426 100644 --- a/crates/hyperswitch_domain_models/src/payments.rs +++ b/crates/hyperswitch_domain_models/src/payments.rs @@ -881,7 +881,7 @@ where { pub flow: PhantomData<F>,...
2025-05-23T13:44:25Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Currently, we have two endpoints for retrieving payment informa...
e272e7ab23845b664857ee729bb0eb7d05faac36
1. Payments Create 2. Payments Confirm 3. Payments Retrieve ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_0196fd5c3d7a7502a39002fd8ce86a03?force_sync=true' \ --header 'x-profile-id: pro_zpak30UxH06EvzDWoXsW' \ --header 'Authorization: api-key=dev_Qi7ZsoVS4uccUf9Zy3pbS3eqvHjledzayfBn3i74bi...
[ { "file_path": "crates/hyperswitch_domain_models/src/payments.rs", "lines": [ " pub payment_attempt: PaymentAttempt,\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/router_data.rs", "lines": [ " let total_amount = payment_data.payment_attempt.amount...
[ { "file_path": "crates/hyperswitch_domain_models/src/payments.rs", "lines": [ " pub payment_attempt: Option<PaymentAttempt>,\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/router_data.rs", "lines": [ " let total_amount = payment_data\n", " ...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-8122
Bug: [BUG] Fiuu connector does not return error_code and error_message for failed FPX transactions ### Bug Description Currently, Fiuu connector is not returning error_code and error_message for failed FPX transactions. This is returned during redirection back to HS but not during PSync. However, this is being not ...
diff --git a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs b/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs index 367f800a1d4..d05654265fd 100644 --- a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/fiuu/transfo...
2025-05-23T10:47:15Z
## 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 --> Fixed Fiuu connector to properly handle and return `error_code`...
caa07235029a012af4f7106515f64025cf68d12d
Steps for testing - <details> <summary>1. Add Fiuu connector and enable FPX</summary> cURL curl --location --request POST 'http://localhost:8080/account/merchant_1747931797/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "lines": [ "struct ErrorInputs {\n", " encoded_data: Option<String>,\n", " response_error_code: Option<String>,\n", " response_error_desc: Option<String>,\n", "}\n", "\n", "...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "lines": [ " code: response\n", " .error_code\n", " .unwrap_or(consts::NO_ERROR_CODE.to_owned()),\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8129
Bug: chore: address Rust 1.87.0 clippy lints Address the clippy lints occurring due to new rust version 1.87.0 See https://github.com/juspay/hyperswitch/issues/3391 for more information.
diff --git a/crates/external_services/src/email/ses.rs b/crates/external_services/src/email/ses.rs index f8e941b57b5..bc813b7d644 100644 --- a/crates/external_services/src/email/ses.rs +++ b/crates/external_services/src/email/ses.rs @@ -54,7 +54,7 @@ impl SESConfig { pub enum AwsSesError { /// An error occurred i...
2025-05-23T19:28:56Z
## Type of Change - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR addresses the clippy lints occurring due to new rust version 1.87.0 https://rust-lang.github.io...
e272e7ab23845b664857ee729bb0eb7d05faac36
CI checks should pass as this PR addresses clippy lints. 1. ran `rustc --version` <img width="381" alt="Screenshot 2025-05-24 at 5 18 56 AM" src="https://github.com/user-attachments/assets/dfb59d28-3085-4e96-b3b9-2bd635086356" /> 3. ran `just clippy` with new rust version (1.87.0) <img width="1004" alt="Screens...
[ { "file_path": "crates/external_services/src/email/ses.rs", "lines": [ " SendingFailure(Box<aws_sdk_sesv2::error::SdkError<SendEmailError>>),\n", " .map_err(|e| AwsSesError::SendingFailure(Box::new(e)))\n" ] }, { "file_path": "crates/kgraph_utils/src/error.rs", "lin...
[ { "file_path": "crates/external_services/src/email/ses.rs", "lines": [ " SendingFailure(aws_sdk_sesv2::error::SdkError<SendEmailError>),\n", " .map_err(AwsSesError::SendingFailure)\n" ] }, { "file_path": "crates/kgraph_utils/src/error.rs", "lines": [ " Cont...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-8118
Bug: [FEATURE]: Enable client_secret auth for payments - Get Intent [v2] Required for SDK
diff --git a/crates/router/src/routes/payments.rs b/crates/router/src/routes/payments.rs index 36c8b727b5a..2df62a36e17 100644 --- a/crates/router/src/routes/payments.rs +++ b/crates/router/src/routes/payments.rs @@ -232,10 +232,16 @@ pub async fn payments_get_intent( header_payload.clone(), ...
2025-05-23T08:40:35Z
## 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 support for `client_secret` authentication in `Payments -...
9f9fef492b775e22b2d489c3eb89ba3409fbd4ce
- Request: ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_0196fc47794a7a81b64346c96b71be4d/get-intent' \ --header 'x-profile-id: pro_pbRrpRVsI1yMUsyNhmrC' \ --header 'Authorization: publishable-key=pk_dev_41285e1d1b2a4998b1d9192874583289,client-secret=cs_0196fc4779ac7fe2826efc5ea6a2be24' \ --...
[ { "file_path": "crates/router/src/routes/payments.rs", "lines": [ " auth::api_or_client_auth(\n", " &auth::V2ApiKeyAuth {\n", " is_connected_allowed: false,\n", " is_platform_allowed: false,\n", " },\n", " ...
[ { "file_path": "crates/router/src/routes/payments.rs", "lines": [ " &auth::V2ApiKeyAuth {\n", " is_connected_allowed: false,\n", " is_platform_allowed: false,\n", " },\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8113
Bug: feat(dynamic_routing): add get api for dynamic routing volume split
diff --git a/crates/api_models/src/events/routing.rs b/crates/api_models/src/events/routing.rs index 750bfde2710..f1ba35bd9f3 100644 --- a/crates/api_models/src/events/routing.rs +++ b/crates/api_models/src/events/routing.rs @@ -7,8 +7,9 @@ use crate::routing::{ RoutingAlgorithmId, RoutingConfigRequest, RoutingDic...
2025-05-22T16:54:51Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This pull request introduces a new feature for retrieving dynam...
e637b214e348216d30c9af59cce85a1264badebf
1. Create merchant account and api_key 2. Using the default profile created during merchant account creation, hit below api to set volume split ``` curl --location --request POST 'http://localhost:8080/account/merchant_1747932999/business_profile/pro_kXrizzzc7yklUW8sfxXz/dynamic_routing/set_volume_split?split=50...
[ { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingVolumeSplitResponse, RoutingVolumeSplitWrapper, SuccessBasedRoutingConfig,\n", " SuccessBasedRoutingPayloadWrapper, ToggleDynamicRoutingPath, ToggleDynamicRoutingQuery,\n", " ToggleDynamicRoutingWrapper,...
[ { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " RoutingVolumeSplitWrapper, SuccessBasedRoutingConfig, SuccessBasedRoutingPayloadWrapper,\n", " ToggleDynamicRoutingQuery, ToggleDynamicRoutingWrapper,\n" ] } ]
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-8142
Bug: chore(docs): remove old add_connector.md file Remove old add_connector.md file
diff --git a/add_connector.md b/add_connector.md index 4d6e885b7ed..4ee8c895656 100644 --- a/add_connector.md +++ b/add_connector.md @@ -1,384 +1,314 @@ -# Guide to Integrate a Connector +# Guide to Integrating a Connector + +## Table of Contents + +1. [Introduction](#introduction) +2. [Prerequisites](#prerequisites) +...
2025-05-26T11:59:28Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Removed old add_connector.md file ### Additional Changes ...
5642080025524ed2dee363984359aa9275036035
[ { "file_path": "add_connector.md", "lines": [ "# Guide to Integrating a Connector\n", "\n", "## Table of Contents\n", "\n", "1. [Introduction](#introduction)\n", "2. [Prerequisites](#prerequisites)\n", "3. [Understanding Connectors and Payment Methods](#understandin...
[ { "file_path": "add_connector.md", "lines": [ "# Guide to Integrate a Connector\n", "This is a guide to contributing new connector to Router. This guide includes instructions on checking out the source code, integrating and testing the new connector, and finally contributing the new connector ba...
[ "md" ]
2
juspay/hyperswitch
juspay__hyperswitch-8134
Bug: [FEAT] [CONNECTOR: NORDEA] Implement SEPA Bank Debit ## Relevant Docs - [Access Authorization API](https://developer.nordeaopenbanking.com/documentation?api=Access%20Authorization%20API) (To get Access Token) - [Payments API SEPA Credit Transfer](https://developer.nordeaopenbanking.com/documentation?api=Payme...
diff --git a/Cargo.lock b/Cargo.lock index c38b3966051..474d6d6f1d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4048,6 +4048,7 @@ dependencies = [ "mime", "num-traits", "openssl", + "pem", "qrcode", "quick-xml", "rand 0.8.5", @@ -5692,9 +5693,9 @@ dependencies = [ [[package]] name = "pem" -version = "3...
2025-05-25T16:18:23Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [x] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> ### Summary This PR introduces Nordea as a new payment con...
06dc66c62e33c1c56c42aab18a7959e1648d6fae
<details> <summary>MCA</summary> ```curl curl --location 'http://localhost:8080/account/postman_merchant_GHAction_1752842696/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_DL49cxo4k5VbOYIabte7WgRsu9xTmB6in77WVBxdN8nPRWMqzFb5ISd3mGocJC...
[ { "file_path": "Cargo.lock", "lines": [ " \"pem\",\n", "version = \"3.0.5\"\n", "checksum = \"38af38e8470ac9dee3ce1bae1af9c1671fffc44ddfd8bd1d0a3445bf349a8ef3\"\n" ] }, { "file_path": "config/config.example.toml", "lines": [ "[pm_filters.nordea]\n", "sepa = { co...
[ { "file_path": "Cargo.lock", "lines": [ "version = \"3.0.4\"\n", "checksum = \"8e459365e590736a54c3fa561947c84837534b8e9af6fc5bf781307e82658fae\"\n" ] }, { "file_path": "config/config.example.toml", "lines": [ "connector_list = \"worldpayvantiv\"\n" ] }, { "file...
[ "toml", "lock", "rs" ]
61
juspay/hyperswitch
juspay__hyperswitch-8097
Bug: refactor(success_rate): update the default configs update the default settings of success based
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index c929bb3ea5d..e1802ab56f5 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -889,12 +889,12 @@ impl Default for SuccessBasedRoutingConfig { Self { params: Some(vec![DynamicRo...
2025-05-21T12:02:57Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This pull request modifies the default configuration for `Succe...
5f5998fb07dfd72c8360c97919dfa56ba25de205
1. Toggle success based routing for a profile, Check the business profile table in DB, get the routing_algorithm_id active for that profile and check in routing_algorithm table. it should have default config as above numbers ``` curl --location --request POST 'http://localhost:8080/account/merchant_1747851996/bus...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " min_aggregates_size: Some(5),\n", " max_aggregates_size: Some(8),\n", " duration_in_mins: None,\n", " max_total_count: Some(5),\n" ] }, { "f...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " min_aggregates_size: Some(2),\n", " max_aggregates_size: Some(3),\n", " duration_in_mins: Some(5),\n", " max_total_count: Some(2),\n" ] }, { ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8115
Bug: feat: list for dynamic routing ### Context **The dashboard required changes** - get api for dynamic routing is inplace - list active Dynamic routing - Refactor volume split response
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 956d6d6697c..5933e3d0538 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -8375,6 +8375,54 @@ }, "additionalProperties": false }, + "ContractBasedRoutingCon...
2025-05-22T11:13:41Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR introduces support for listing both static and dynamic routing algorithms under a unified API i...
e272e7ab23845b664857ee729bb0eb7d05faac36
### Curls for testing the flows: 1. Create a static rule: ``` curl --location 'http://127.0.0.1:8080/routing' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_IpYFqCd4DHf7x4ER1GBQrW0mHOZzam3pYyuP2tSRb6q7qvTw7jvEjF7UzjwFPXWu' \ --data ' { "name": "Priority rule with fallback", "d...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"ContractBasedRoutingConfig\": {\n", " \"type\": \"object\",\n", " \"properties\": {\n", " \"config\": {\n", " \"allOf\": [\n", " {\n", " ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"$ref\": \"#/components/schemas/RoutingAlgorithm\"\n", " \"$ref\": \"#/components/schemas/RoutingAlgorithm\"\n", " \"RoutingAlgorithm\": {\n", " \"oneOf\": [\n", " ...
[ "json", "rs" ]
17
juspay/hyperswitch
juspay__hyperswitch-8105
Bug: make `is_debit_routing_enabled` optional in profile general update is_debit_routing_enabled field is a business profile field introduced in this [pr](https://github.com/juspay/hyperswitch/pull/7470). It is made a mandatory field in the business profile update and is being set as false in case of RoutingAlgorith...
diff --git a/crates/diesel_models/src/business_profile.rs b/crates/diesel_models/src/business_profile.rs index 4cb36d5685c..0bc52b33189 100644 --- a/crates/diesel_models/src/business_profile.rs +++ b/crates/diesel_models/src/business_profile.rs @@ -178,7 +178,7 @@ pub struct ProfileUpdateInternal { pub card_testin...
2025-05-21T17:27:53Z
## 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 --> is_debit_routing_enabled field is a business profile field in...
6fc50b67295a5682b9433b17399c09a57be664f2
1. Create a business profile and set `is_debit_routing_enabled` to true ``` curl --location 'http://localhost:8080/account/merchant_1747852121/business_profile/pro_dJ37X4BXujuveLBLSZAV' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: <api-key>' \ --data '...
[ { "file_path": "crates/diesel_models/src/business_profile.rs", "lines": [ " pub is_debit_routing_enabled: Option<bool>,\n", " is_debit_routing_enabled: is_debit_routing_enabled\n", " .unwrap_or(source.is_debit_routing_enabled),\n", " pub is_debit_routi...
[ { "file_path": "crates/diesel_models/src/business_profile.rs", "lines": [ " pub is_debit_routing_enabled: bool,\n", " is_debit_routing_enabled,\n", " pub is_debit_routing_enabled: bool,\n", " is_debit_routing_enabled,\n" ] }, { "file_path": "cr...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8091
Bug: Pre-configuring an account in the local setup using docker Pre-configuring an account in the local setup using docker
diff --git a/README.md b/README.md index fd211f33552..05764933882 100644 --- a/README.md +++ b/README.md @@ -34,6 +34,9 @@ Single API to access the payments ecosystem and its features <a href="https://join.slack.com/t/hyperswitch-io/shared_invite/zt-2jqxmpsbm-WXUENx022HjNEy~Ark7Orw"> <img src="https://img.shiel...
2025-05-21T06:46:32Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Enhanced the script to pre-configure a user and a dummy connect...
7c1d893c91d22d7402504513d79fc94e0315dd10
<img width="1306" alt="Screenshot 2025-05-21 at 2 17 17 PM" src="https://github.com/user-attachments/assets/1ab1766c-c124-4a52-afb6-1e3aae48a6c1" /> <img width="606" alt="Screenshot 2025-05-21 at 2 17 30 PM" src="https://github.com/user-attachments/assets/03e03b28-71b3-4ebf-b8b7-642d6db1d1a7" />
[ { "file_path": "README.md", "lines": [ " <a href=\"https://deepwiki.com/juspay/hyperswitch\">\n", " <img src=\"https://deepwiki.com/badge.svg\" alt=\"Ask DeepWiki\">\n", " </a>\n" ] }, { "file_path": "scripts/setup.sh", "lines": [ "#!/usr/bin/env bash\n", "...
[ { "file_path": "scripts/setup.sh", "lines": [ "#! /usr/bin/env bash\n", "# Alias for docker to use podman\n", "alias docker=podman\n", " echo -e \"${BLUE}[INFO]${NC} $1\"\n", " echo -e \"${GREEN}[SUCCESS]${NC} $1\"\n", " echo -e \"${YELLOW}[WARNING]${NC} $1\"\n",...
[ "md", "sh" ]
2
juspay/hyperswitch
juspay__hyperswitch-8084
Bug: [FEATURE] Add api-key support for routing APIs ### Feature Description Need to add api-key auth for all routing APIs ### Possible Implementation Just need to change auth implementation on handler ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn'...
diff --git a/crates/router/src/core/routing/helpers.rs b/crates/router/src/core/routing/helpers.rs index c65a8c6b9ec..e5cbd1b653f 100644 --- a/crates/router/src/core/routing/helpers.rs +++ b/crates/router/src/core/routing/helpers.rs @@ -1752,10 +1752,13 @@ where let algo_type_enabled_features = algo_type.get_enabl...
2025-05-20T11:36:55Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added api-key auth for routing APIs Earlier, all routing endpo...
344dcd6e43022c3e5479629b57bff255b903d5b5
Test all routing APIs with api-key auth 1. Create routing config (`/routing`) 2. List routing config (`/routing`) 3. List active routing config (`/routing/active`) 4. List for profile (`/routing/list/profile`) 5. activate config (`routing/:id/activate`) 6. retrieve config (`routing/:id`) 7. deactivate (`routi...
[ { "file_path": "crates/router/src/core/routing/helpers.rs", "lines": [ " let routing_algorithm = db\n", " .find_routing_algorithm_by_profile_id_algorithm_id(&profile_id, &algo_type_algorithm_id)\n", " .await\n", " .to_not_found_response(errors:...
[ { "file_path": "crates/router/src/core/routing/helpers.rs", "lines": [ " return Err(errors::ApiErrorResponse::PreconditionFailed {\n", " message: format!(\"{} is already enabled\", dynamic_routing_type),\n", " }\n", " .into());\n" ] }, { "f...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8089
Bug: [FEATURE]: Save Payment Method on Payments Confirm (V2) Add functionality to save a payment method after a successful payment
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index e3b41ce3899..b0a60046574 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3043,7 +3043,7 @@ "content": { "application/json": { "schema": { -...
2025-05-21T05:40:55Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Added a field `payment_token` to customer PML response - Dur...
835a425ded2cf26b9a3f69f29c3a26a41603b2de
1. Confirm Intent Request: ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_01971c02c9f176a3b60be16df712bfc3/confirm-intent' \ --header 'x-client-secret: cs_01971c02ca147f11baea8a2521618052' \ --header 'x-profile-id: pro_W5FEDaNZ8OqqVDgFXgfg' \ --header 'Authorization: publishable-key=pk_dev_08...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"$ref\": \"#/components/schemas/PaymentMethodListResponseForSession\"\n", " \"CustomerPaymentMethodResponseItem\": {\n", " \"payment_token\",\n", " \"last_used_at\",\n", "...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"$ref\": \"#/components/schemas/PaymentMethodListResponse\"\n", " \"CustomerPaymentMethod\": {\n", " \"is_default\",\n", " \"psp_tokenization_enabled\"\n", " },\n...
[ "json", "rs" ]
26
juspay/hyperswitch
juspay__hyperswitch-8081
Bug: [CHORE] add adyen to the supported connectors list for network tokenization HS maintains a list of supported connectors for paying using network tokens and NTI. Adyen supports this, and needs to be added to the list - `network_tokenization_supported_connectors`
diff --git a/config/config.example.toml b/config/config.example.toml index 0c2fec16b27..16846d0c403 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -1039,7 +1039,7 @@ delete_token_url= "" # base url to delete token from token service check_token_status_url= "" # base url to chec...
2025-05-20T10:53:08Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR enables processing payment transactions via Adyen using network tokens and NTI ### Additional...
d91cf70ae346cbf613ce5c1cfad2ae8a28c71d1c
Cannot be tested locally.
[ { "file_path": "config/config.example.toml", "lines": [ "connector_list = \"adyen,cybersource\" # Supported connectors for network tokenization\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "connector_list = \"adyen,cybersource\"\n" ] }, { ...
[ { "file_path": "config/config.example.toml", "lines": [ "connector_list = \"cybersource\" # Supported connectors for network tokenization\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "connector_list = \"cybersource\"\n" ] }, { "file_pa...
[ "toml" ]
5
juspay/hyperswitch
juspay__hyperswitch-8077
Bug: [REFACTOR] enable ORF feature for Fiuu connector for FPX payment methods ORF feature for refunds allows skipping mandatory information required for refunds, like - beneficiary's name, bank code and other details. Currently, HS integration for Fiuu sends this field during refund initiation. This needs to be omi...
diff --git a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs b/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs index f2b5c982459..343fb99009d 100644 --- a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/fiuu/transfo...
2025-05-20T08:40:02Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR contains changes for two connector integrations 1. Fiuu - omit `bank_code` from the refund reque...
e62f8ee8aba4ba05041b221e9af6f30100fdefcb
Can only be tested in production.
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "lines": [ "use api_models::payments;\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs", "lines": [ " browser_javascript_enabled: Option<bool>,\n", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "lines": [ "use api_models::payments::{self, AdditionalPaymentData};\n", " #[serde(skip_serializing_if = \"Option::is_none\")]\n", " pub bank_code: Option<BankCode>,\n", " bank_code: ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8078
Bug: [BUG] failing 3DS transactions for Redsys ### Bug Description Redsys 3ds card transactions are failing in production with following error ``` Error code - SIS0653 Error message - Operacion de autenticacion rechazada, browserJavascriptEnabled no indicado ``` ### Expected Behavior Redsys 3ds card transactions...
diff --git a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs b/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs index f2b5c982459..343fb99009d 100644 --- a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/fiuu/transfo...
2025-05-20T08:40:02Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR contains changes for two connector integrations 1. Fiuu - omit `bank_code` from the refund reque...
e62f8ee8aba4ba05041b221e9af6f30100fdefcb
Can only be tested in production.
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "lines": [ "use api_models::payments;\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs", "lines": [ " browser_javascript_enabled: Option<bool>,\n", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs", "lines": [ "use api_models::payments::{self, AdditionalPaymentData};\n", " #[serde(skip_serializing_if = \"Option::is_none\")]\n", " pub bank_code: Option<BankCode>,\n", " bank_code: ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8070
Bug: [FEATURE] Add support for multiple retry algorithms in revenue recovery workflow #7 Add support for Process tracker revenue recovery workflow to support multiple retry algorithms. - The retry algorithm is a runtime config
diff --git a/config/config.example.toml b/config/config.example.toml index 6be49be237f..a81d79c52e8 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -1065,6 +1065,10 @@ url = "http://localhost:8080" # Open Router URL [billing_connectors_invoice_sync] billing_connectors_which_requi...
2025-04-28T09:12:37Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - This PR adds support for updating the retry Algorithm from Monitoring to Smart , once the threshold i...
344dcd6e43022c3e5479629b57bff255b903d5b5
- Create a MA and a Billing connector - The retry_Algorithm type in business profile will be switched to Monitoring - Once the time in the revenue_recovery_config is surpassed , the `retry_Algorithm type` field in business profile will be updated to Cascading ![Screenshot 2025-05-15 at 7 45 53 PM](https://github....
[ { "file_path": "config/config.example.toml", "lines": [ "[revenue_recovery]\n", "monitoring_threshold_in_seconds = 2592000 # 30*24*60*60 secs , threshold for monitoring the retry system\n", "retry_algorithm_type = \"cascading\" # type of retry algorithm \n", "\n" ] }, { "...
[ { "file_path": "config/deployments/production.toml", "lines": [ "click_to_pay = {connector_list = \"adyen, cybersource\"}\n" ] }, { "file_path": "config/deployments/sandbox.toml", "lines": [ "click_to_pay = {connector_list = \"adyen, cybersource\"}\n" ] }, { "file_pat...
[ "toml", "rs" ]
18
juspay/hyperswitch
juspay__hyperswitch-8055
Bug: [FEATURE] [CONNECTOR] Nordea Integrate a new connector Nordea. Developer Docs: https://developer.nordeaopenbanking.com/documentation Login Dashboard: https://developer.nordeaopenbanking.com/login
diff --git a/config/config.example.toml b/config/config.example.toml index 5bc55238294..52ee69bec10 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -245,6 +245,7 @@ nexixpay.base_url = "https://xpaysandbox.nexigroup.com/api/phoenix-0.0/psp/api/v nmi.base_url = "https://secure.nmi.com/" nom...
2025-05-16T09:39:31Z
## 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 --> Connector template code for new connector `Nordea`. Develo...
151b57fa104259df174a38d863acab39277c8473
This is a template PR for Nordea, just checked for compilation. Nothing else to test.
[ { "file_path": "config/config.example.toml", "lines": [ "nordea.base_url = \"https://api.nordeaopenbanking.com\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "nordea.base_url = \"https://api.nordeaopenbanking.com\"\n" ] }, { "file_path...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " nmi::Nmi, nomupay::Nomupay, noon::Noon, novalnet::Novalnet, nuvei::Nuvei, opayo::Opayo,\n", " opennode::Opennode, paybox::Paybox, payeezy::Payeezy, payme::Payme, payone::Payone,\n", " paypal::Paypal, pa...
[ "sh", "toml", "rs" ]
24
juspay/hyperswitch
juspay__hyperswitch-8045
Bug: [FEATURE] Decision Engine Config API integration ### Feature Description Need to integrate config APIs of Decision Engine with Hyperswitch ### Possible Implementation We'll update the dynamic routing config API flows to incorporate the decision engine calls as well. ### Have you spent some time checking if ...
diff --git a/crates/api_models/src/open_router.rs b/crates/api_models/src/open_router.rs index f80623efc64..f15d9cbcfeb 100644 --- a/crates/api_models/src/open_router.rs +++ b/crates/api_models/src/open_router.rs @@ -9,6 +9,7 @@ pub use euclid::{ }, }; use serde::{Deserialize, Serialize}; +use utoipa::ToSchema; ...
2025-05-15T12:16: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 --> This PR integrates the decision engine config APIs The integra...
d1fe2841c188a80b3bf46850540827844e1a426c
1. Create a merchant account (Call to Decision Engine should be made for merchant creation) <img width="791" alt="image" src="https://github.com/user-attachments/assets/d01b64a5-9767-4fb2-ae88-8ebbe187dafe" /> 2. Toggle SR config (Call to Decision Engine should be made for SR config creation) ``` curl --locatio...
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ "use utoipa::ToSchema;\n", "\n", "#[derive(Debug, Serialize, Deserialize, Clone)]\n", "pub struct DecisionEngineConfigSetupRequest {\n", " pub merchant_id: String,\n", " pub config: DecisionEngineConf...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ "use common_utils::{errors::ParsingError, ext_traits::ValueExt, pii};\n", "use crate::enums::{RoutableConnectors, TransactionType};\n" ] }, { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ ...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-8040
Bug: [REFACTOR] Refactor API Event Metric implementation for refunds v2 apis Refactor API Event Metric implementation for refunds v2 apis for logging and analytics.
diff --git a/crates/api_models/src/events/refund.rs b/crates/api_models/src/events/refund.rs index 08c6dd52c39..7a50af69284 100644 --- a/crates/api_models/src/events/refund.rs +++ b/crates/api_models/src/events/refund.rs @@ -22,13 +22,6 @@ impl ApiEventMetric for RefundRequest { } } -#[cfg(feature = "v2")] -imp...
2025-05-15T10:23:25Z
## 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 support for API Event Metric logging, the events w...
3a451907a45035e40a04c335531a5b69414b3e04
- This will be tested when kafka and clickhouse is enabled for v2.
[ { "file_path": "crates/api_models/src/events/refund.rs", "lines": [ " payment_id: Some(self.payment_id.clone()),\n", " Some(ApiEventsType::Refund {\n", " payment_id: None,\n", " refund_id: self.refund_id.clone(),\n", " })\n" ] ...
[ { "file_path": "crates/api_models/src/events/refund.rs", "lines": [ "#[cfg(feature = \"v2\")]\n", "impl ApiEventMetric for refunds::RefundsCreateRequest {\n", " fn get_api_event_type(&self) -> Option<ApiEventsType> {\n", " None\n", " }\n", "}\n", "\n", ...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-8026
Bug: [chore]: use crates.io version of async-bb8-diesel crate Currently we are using a [forked](https://github.com/jarnura/async-bb8-diesel) version of this dependency. We need to migrate to the crates.io version
diff --git a/Cargo.lock b/Cargo.lock index d2ae0213703..6df00ec7517 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -559,15 +559,16 @@ dependencies = [ [[package]] name = "async-bb8-diesel" -version = "0.1.0" -source = "git+https://github.com/jarnura/async-bb8-diesel?rev=53b4ab901aab7635c8215fd1c2d542c8db443094#53b4ab9...
2025-05-14T10:53:34Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [x] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Changed `async-bb8-diesel crate from custom [fork](https://gith...
46e830a87f60c1c2117c4b48a1c2ecbb6cf9e4d7
Ran clippy and tested multiple endpoints in the `router` binary
[ { "file_path": "Cargo.lock", "lines": [ "version = \"0.2.1\"\n", "source = \"registry+https://github.com/rust-lang/crates.io-index\"\n", "checksum = \"ebc03a2806f66f36513d65e0a7f34200382230250cadcf8a8397cfbe3f26b795\"\n", " \"futures 0.3.30\",\n" ] }, { "file_path": "crat...
[ { "file_path": "Cargo.lock", "lines": [ "version = \"0.1.0\"\n", "source = \"git+https://github.com/jarnura/async-bb8-diesel?rev=53b4ab901aab7635c8215fd1c2d542c8db443094#53b4ab901aab7635c8215fd1c2d542c8db443094\"\n", " \"tracing\",\n" ] }, { "file_path": "crates/diesel_models/C...
[ "toml", "lock" ]
5
juspay/hyperswitch
juspay__hyperswitch-8058
Bug: FIX[Config]: Add VGS baseurl to deployment toml files Need to add baseurl for VGS in `config/deployments/{integration_test, production, sandbox}.toml`
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml index 554e41b5021..79074230917 100644 --- a/config/deployments/integration_test.toml +++ b/config/deployments/integration_test.toml @@ -122,6 +122,7 @@ thunes.base_url = "https://api.limonetikqualif.com/" trustpay.base_url...
2025-05-16T12:01:10Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> Added baseurl for `VGS` connector in relevant deployment TOML f...
3d095cec0cfc96ef907694be99087cc3668ba4b7
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "vgs.base_url = \"https://sandbox.vault-api.verygoodvault.com\"\n" ] }, { "file_path": "config/deployments/production.toml", "lines": [ "vgs.base_url = \"https://sandbox.vault-api.verygoodvault.com\"\n" ] ...
[]
[ "toml" ]
3
juspay/hyperswitch
juspay__hyperswitch-8064
Bug: [CHORE] FIX TYPOS IN THE REPO Its been months since the typos in the repo being unaddressed. This has resulted in negligence leading to even more typos being introduced.
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 00e3e7bc4ff..956d6d6697c 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -9017,7 +9017,7 @@ ], "nullable": true }, - "encypted_payload": { ...
2025-05-17T07:43:29Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR updates all the typos in the repository. For referenc...
8e9bad6457449ef2a435be03a9f97acc2dd2108a
```sh cargo +nightly fmt --all && just clippy && just clippy_v2 ```
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"encrypted_payload\": {\n" ] }, { "file_path": "config/dashboard.toml", "lines": [ "maintenance_alert=\"\"\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"encypted_payload\": {\n" ] }, { "file_path": "config/dashboard.toml", "lines": [ "maintainence_alert=\"\"\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " ...
[ "json", "sql", "toml", "rs", "js" ]
27
juspay/hyperswitch
juspay__hyperswitch-8025
Bug: [BUG] Worldpay redirection flow stuck in endless DDC submission loop ### Bug Description Worldpay's redirection flow (3DS cards) is stuck in an endless loop of submit DDC form. This is happening for special cases where payment IDs contain non alphanumeric characters. For example - 100000091279-518099-32024532...
diff --git a/crates/router/src/services/api.rs b/crates/router/src/services/api.rs index 3fef01a8c21..4bc57cfdaa8 100644 --- a/crates/router/src/services/api.rs +++ b/crates/router/src/services/api.rs @@ -1733,7 +1733,7 @@ pub fn build_redirection_form( (PreEscaped(format!( ...
2025-05-14T10:49:54Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR updates the regex used for forming the CompleteAuthorize URL for Worldpay post DDC submission. C...
46e830a87f60c1c2117c4b48a1c2ecbb6cf9e4d7
Steps for testing - <details> <summary>1. Create a payment with non alphanumeric characters in payment ID</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --head...
[ { "file_path": "crates/router/src/services/api.rs", "lines": [ " var redirectPathname = window.location.pathname.replace(/payments\\/redirect\\/([^\\/]+)\\/([^\\/]+)\\/[^\\/]+/, \"payments/$1/$2/redirect/complete/worldpay\");\n", " ...
[ { "file_path": "crates/router/src/services/api.rs", "lines": [ " var redirectPathname = window.location.pathname.replace(/payments\\/redirect\\/(\\w+)\\/(\\w+)\\/\\w+/, \"payments/$1/$2/redirect/complete/worldpay\");\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8037
Bug: [FEATURE] Revolut pay wallet integration for stripe ### Feature Description Docs: https://docs.stripe.com/payments/revolut-pay API: https://docs.stripe.com/api/payment_methods/create?api-version=2025-04-30.basil ### Possible Implementation - integrate Revolut pay ### Have you spent some time checking if thi...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 956d6d6697c..1ef5d7ef462 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -16854,7 +16854,8 @@ "mifinity", "open_banking_pis", "direct_carrier_billing", ...
2025-05-18T11:17:59Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Implement `revolut_pay` for stripe ### Additional Changes ...
5642080025524ed2dee363984359aa9275036035
1. Enable revolut pay wallet in stripe https://dashboard.stripe.com/test/settings/payment_methods/pmc_1ROdpjB97BExDDPTOZMrPWhw <img width="1728" alt="Screenshot 2025-05-15 at 2 46 27 PM" src="https://github.com/user-attachments/assets/6a629470-4057-4940-aa31-7b15d4e1eee2" /> 2. test locally with stripe api if paym...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"instant_bank_transfer\",\n", " \"revolut_pay\"\n", " \"RevolutPayData\": {\n", " \"type\": \"object\"\n", " },\n", " },\n", " {\n", " ...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"instant_bank_transfer\"\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " | Self::SwishQr(_) => None,\n" ] }, { "file_path": "crates/hyperswitch_connectors/s...
[ "toml", "json", "rs" ]
51
juspay/hyperswitch
juspay__hyperswitch-8067
Bug: [FEATURE] [Barclaycard] Implement Card Flows ### Feature Description Implement card flows for Barclaycard ### Possible Implementation Implement card flows for Barclaycard ### 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 00e3e7bc4ff..08b4860a5f4 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -8016,6 +8016,7 @@ "bambora", "bamboraapac", "bankofamerica", + "barcl...
2025-05-19T04:39:22Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/8067) ## Description <!-- Describe your changes in d...
3a451907a45035e40a04c335531a5b69414b3e04
Postman Tests 1. Payment Connector - Create Request: ``` curl --location 'http://localhost:8080/account/merchant_1747726068/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ••••••' \ --data '{ "connector_type": "payment_processor",...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"barclaycard\",\n", " \"barclaycard\",\n" ] }, { "file_path": "config/config.example.toml", "lines": [ "barclaycard.base_url = \"https://api.smartpayfuse-test.barclaycard/\"\n" ] }, ...
[ { "file_path": "config/config.example.toml", "lines": [ "barclaycard.base_url = \"https://api.smartpayfuse-test.barclaycard/pts/v2/\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "barclaycard.base_url = \"https://api.smartpayfuse-test.barclaycard/...
[ "toml", "json", "rs" ]
19
juspay/hyperswitch
juspay__hyperswitch-8015
Bug: [FEATURE] Barclaycard: Add template PR ### Feature Description Barclaycard: Add template PR ### Possible Implementation Barclaycard: Add template PR ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Have you read the C...
diff --git a/config/config.example.toml b/config/config.example.toml index 6be49be237f..c735da47d89 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -188,6 +188,7 @@ authorizedotnet.base_url = "https://apitest.authorize.net/xml/v1/request.api" bambora.base_url = "https://api.na.bambora.com" ...
2025-05-13T11:10:18Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/8015) ## Description <!-- Describe your changes in d...
e62f8ee8aba4ba05041b221e9af6f30100fdefcb
Only template PR hence no testing required
[ { "file_path": "config/config.example.toml", "lines": [ "barclaycard.base_url = \"https://api.smartpayfuse-test.barclaycard/pts/v2/\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "barclaycard.base_url = \"https://api.smartpayfuse-test.barclaycard/...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " bamboraapac::Bamboraapac, bankofamerica::Bankofamerica, billwerk::Billwerk, bitpay::Bitpay,\n", " bluesnap::Bluesnap, boku::Boku, braintree::Braintree, cashtocode::Cashtocode,\n", " chargebee::Chargebee...
[ "sh", "toml", "rs" ]
24
juspay/hyperswitch
juspay__hyperswitch-7985
Bug: [BUG] Update Metadata for connectors other than stripe throws 500 ### Bug Description Update metadata gives 500 error for other connectors than stripe Need to change this to 400 ```sh curl --location 'http://localhost:8080/payments/pay_fvWhpXtZwWZSE1JfTUI4/update_metadata' \ --header 'Content-Type: application...
diff --git a/crates/router/src/core/payments/flows/update_metadata_flow.rs b/crates/router/src/core/payments/flows/update_metadata_flow.rs index 9281775e393..f9a6790356a 100644 --- a/crates/router/src/core/payments/flows/update_metadata_flow.rs +++ b/crates/router/src/core/payments/flows/update_metadata_flow.rs @@ -30,...
2025-05-08T08:53:44Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Update metadata gives `500` error for other connectors than str...
a4a564fee2782947e3d75ed20d4b18f9b45e7e8a
- Make a successful payment using any connector other than stripe - make update metadata request ```sh curl --location 'http://localhost:8080/payments/pay_X77ffJsUvEW94JadFVpw/update_metadata' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_bTSpZN98PG...
[ { "file_path": "crates/router/src/core/payments/flows/update_metadata_flow.rs", "lines": [ " Box::pin(\n", " transformers::construct_payment_router_data_for_update_metadata(\n", " state,\n", " self.clone(),\n", " co...
[ { "file_path": "crates/router/src/core/payments/flows/update_metadata_flow.rs", "lines": [ " Box::pin(transformers::construct_payment_router_data::<\n", " api::UpdateMetadata,\n", " types::PaymentsUpdateMetadataData,\n", " >(\n", " ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-7989
Bug: [BUG] recurring mandate through bancontact card bank redirect via stripe fails connector throws below error: ``` "The provided bancontact PaymentMethod cannot be used again. It was used in a previous PaymentIntent or SetupIntent to set up a sepa_debit PaymentMethod, which can be used for multiple payments. To ...
diff --git a/crates/router/src/connector/stripe/transformers.rs b/crates/router/src/connector/stripe/transformers.rs index 9d372a5415c..ad2e1d7e855 100644 --- a/crates/router/src/connector/stripe/transformers.rs +++ b/crates/router/src/connector/stripe/transformers.rs @@ -2071,7 +2071,7 @@ impl TryFrom<&types::SetupMan...
2025-05-08T11:33:59Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> this pr aims to fix the stripe bank redirect recurring mandat...
fafe4d99286f4aaf3965b23a9e06648f3a43b108
### bancontact_card <details> <summary>create payment intent</summary> request: ```curl curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Accept-Language: ja' \ --header 'api-key: dev_12v5OB2ziszoDZL6Nl9nxI...
[ { "file_path": "crates/router/src/connector/stripe/transformers.rs", "lines": [ " // Card flow for tokenization is handled separately because of API contact difference\n", "pub fn get_payment_method_id(\n", " latest_charge: Option<StripeChargeEnum>,\n", " payment_method_...
[ { "file_path": "crates/router/src/connector/stripe/transformers.rs", "lines": [ " // Card flow for tokenization is handled seperately because of API contact difference\n", " let connector_mandate_id = Some(payment_method_id.clone().expose());\n", " let ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8000
Bug: Feat(euclid): Hyperswitch integration with decision engine ## Description This PR integrates the Euclid-based decision engine with Hyperswitch’s dynamic routing infrastructure. It enables dual routing logic: legacy DSL-based evaluation and decision-engine-backed configurations. The integration ensures routing ...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index 12c30cc61f0..197f9fdbda8 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -21668,6 +21668,10 @@ } ], "nullable": true + }, + "d...
2025-04-29T10:13:40Z
## 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 integrates the Euclid-based decision engine with Hyperswitch’s dynamic routing infrastructure. ...
04dc14a93022d03d74b02ae244ee8bb8afa50c27
Here is the complete testing [guidelines](https://docs.google.com/document/d/1xL3EJdMoCLXP5epOeqNsNYvqFqlJyhxss3LahQQ5xGU/edit?usp=sharing).
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " },\n", " \"decision_engine_routing_id\": {\n", " \"type\": \"string\",\n", " \"nullable\": true\n" ] }, { "file_path": "crates/api_models/src/routing.rs", "lines"...
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ "#[derive(Debug, Copy, Clone, serde::Serialize, serde::Deserialize, strum::Display, ToSchema)]\n" ] }, { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ " execute_dsl_and_get_connector_...
[ "sql", "json", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-7988
Bug: [BUG] Add feature flags and db methods for refunds v2 to non kv config Add feature flags and db methods for refunds v2 to non kv config. Currently the compilation fails if we disable the `kv_store` feature flag
diff --git a/crates/router/src/db/refund.rs b/crates/router/src/db/refund.rs index 7d9a8703169..eead49c12da 100644 --- a/crates/router/src/db/refund.rs +++ b/crates/router/src/db/refund.rs @@ -91,7 +91,7 @@ pub trait RefundInterface { offset: i64, ) -> CustomResult<Vec<diesel_models::refund::Refund>, erro...
2025-05-08T10:19:43Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR contains support for db calls that are used in refunds ...
06c5215c0edf0ed47cc55fd5216c4642cc515f37
- Go to router crate's `Cargo.toml`, in default_common under features, remove `kv_store` - Use `just run_v2` to run the app. - Create Refund API Call ``` curl --location 'http://localhost:8080/v2/refunds' \ --header 'X-Profile-Id: pro_qxkJLjzL3XeuzDKGsp1S' \ --header 'Content-Type: application/json' \ --head...
[ { "file_path": "crates/router/src/db/refund.rs", "lines": [ " #[cfg(all(feature = \"v2\", feature = \"refunds_v2\", feature = \"olap\"))]\n", " #[cfg(all(feature = \"v2\", feature = \"refunds_v2\", feature = \"olap\"))]\n", " use hyperswitch_domain_models::refunds;\n", " ...
[ { "file_path": "crates/router/src/db/refund.rs", "lines": [ " #[cfg(all(feature = \"v2\", feature = \"refunds_v2\"))]\n", " #[cfg(all(feature = \"v2\", feature = \"refunds_v2\"))]\n", " #[cfg(feature = \"olap\")]\n", " #[cfg(feature = \"olap\")]\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-7995
Bug: [FEATURE]: Add coingate, paystack connector specifications ### Feature Description Add coingate, paystack connector specifications ### Possible Implementation Add coingate, paystack connector specifications ### Have you spent some time checking if this feature request has been raised before? - [x] I checke...
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml index 17d346b9518..42f9a1abeec 100644 --- a/config/deployments/integration_test.toml +++ b/config/deployments/integration_test.toml @@ -673,6 +673,12 @@ apple_pay = { country = "AD,AE,AG,AL,AM,AO,AR,AT,AU,AZ,BA,BB,BD,BE,BG,...
2025-05-09T11:30:58Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/7995) ## Description <!-- Describe your changes in d...
40fd473989b04f70c1dc78025a555a972ffe2596
Postman Test Request: ``` curl --location 'http://localhost:8080/feature_matrix' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ***' ``` Response: ``` { "connector_count": 2, "connectors": [ { "name": "COINGATE...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "[pm_filters.coingate]\n", "crypto_currency = { country = \"AL, AD, AT, BE, BA, BG, HR, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LT, LU, MT, MD, NL, NO, PL, PT, RO, RS, SK, SI, ES, SE, CH, UA, GB, AR, BR, CL, CO, CR, DO...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/coingate.rs", "lines": [ "use common_enums::{CaptureMethod, PaymentMethod, PaymentMethodType};\n", " router_response_types::{PaymentsResponseData, RefundsResponseData},\n", "impl ConnectorValidation for Coingate {\n", " ...
[ "toml", "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-7974
Bug: [FEATURE] add validations for API models ### Feature Description Some of the fields in API requests are passed as is to the DB for storing them. The problem is that DB mostly has length constraints which usually leads to 5xx in the API response. This behavior is incorrect as it should be a 4xx error (incorrec...
diff --git a/Cargo.lock b/Cargo.lock index 2f690549217..85eb9fb2345 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6586,6 +6586,7 @@ dependencies = [ "serde_json", "strum 0.26.3", "syn 2.0.100", + "url", "utoipa", ] diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index b313a3...
2025-05-12T12:20:56Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds automatic validation for string length constraints defined in schema attributes. The validat...
e62f8ee8aba4ba05041b221e9af6f30100fdefcb
<details> <summary>1. Added unit test cases for the macro</summary> <img width="1025" alt="Screenshot 2025-05-12 at 5 50 33 PM" src="https://github.com/user-attachments/assets/1659f4aa-6918-4db4-be3c-fd241dc0bf49" /> </details> <details> <summary>2. Pass invalid return_url (length exceeding 255 cha...
[ { "file_path": "Cargo.lock", "lines": [ " \"url\",\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ " router_derive::ValidateSchema,\n", " #[schema(value_type = Option<String>, example = \"https://hyperswitch.io\", max_length = 255)]\n", " ...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " #[schema(value_type = Option<String>, example = \"https://hyperswitch.io\")]\n", " #[schema(max_length = 255, example = \"mandate_iwer89rnjef349dni3\")]\n" ] } ]
[ "toml", "rs", "lock" ]
9
juspay/hyperswitch
juspay__hyperswitch-8008
Bug: refactor(connector): move stripe connector from router crate to hyperswitch_connectors Move code related to stripe connector from router crate to hyperswitch_connectors
diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rs index 009bec8c92a..b3b0f21b1b6 100644 --- a/crates/hyperswitch_connectors/src/connectors.rs +++ b/crates/hyperswitch_connectors/src/connectors.rs @@ -78,6 +78,7 @@ pub mod shift4; pub mod signifyd; pub mod s...
2025-05-13T05:06: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 --> Move stripe connector code form `router` crate to `hyperswitch_...
9d78c583f6c299ab9f63e551b887d1cb080106b4
- Create a stripe Connector account ```sh curl --location 'http://localhost:8080/account/merchant_1747113313/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-feature: integ-custom' \ --header 'api-key: ******* ' \ --data '{ "connector_type": "p...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ "pub mod stripe;\n", " square::Square, stax::Stax, stripe::Stripe, stripebilling::Stripebilling, taxjar::Taxjar,\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/stripe.rs", "lines...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " square::Square, stax::Stax, stripebilling::Stripebilling, taxjar::Taxjar,\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/stripe.rs", "lines": [ " request::RequestContent,\n"...
[ "rs" ]
15
juspay/hyperswitch
juspay__hyperswitch-7997
Bug: [FEATURE]: Send whole connector response in confirm and psync call ### Feature Description Send whole connector response in confirm and psync call ### Possible Implementation Add `all_keys_required` in confirm and psync payload. If `all_keys_required` is passed as `true`, send the whole connector response. ...
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index b475142a570..6d52decc7ca 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -16935,6 +16935,11 @@ "type": "boolean", "description": "If enabled provides list of a...
2025-05-09T13:20:44Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD closes this [issue](https://github.com/juspay/hyperswitch/issues/7997) ## Description <!-- Describe your changes in d...
140d15bcbd0e74ddaacd8dbe074b5ff755879ffa
Postman Test Confirm call (with `all_keys_required` passed as `true`) Request (taking AuthorizeDotNet as connector) ``` curl --location 'http://localhost:8080/payments/pay_MsmPKoZNKAk0zpoBuA5Z/confirm' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'all_key...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " },\n", " \"all_keys_required\": {\n", " \"type\": \"boolean\",\n", " \"description\": \"If enabled, provides whole connector response\",\n", " \"nullable\": true...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " Req: Send + Sync,\n", " Req: Send + Sync,\n", " Req: Send + Sync,\n", " Req: Send + Sync,\n", " matches!(\n", " payment_data.get_payment_intent().status,\n", " ...
[ "json", "rs" ]
80
juspay/hyperswitch
juspay__hyperswitch-7981
Bug: [BUG] consider only the language for locale for translations ### Bug Description `Accept-Language` header is meant for passing locales in the API requests. Sample - `es-ES` In application, the value of this header is consumed as is for language translations (for payment and payout links). However, the langu...
diff --git a/crates/router/locales/en-GB.yml b/crates/router/locales/en_gb.yml similarity index 100% rename from crates/router/locales/en-GB.yml rename to crates/router/locales/en_gb.yml diff --git a/crates/router/locales/fr-BE.yml b/crates/router/locales/fr_be.yml similarity index 100% rename from crates/router/locale...
2025-05-09T08:21:34Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Fix the locale handling in the payment and payout links translation functionality to properly support langu...
3cdb9e174ca384704781a4c56e826c3a5e39d295
<details> <summary>1. Create a payment link with es-ES in Accept-Language header</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'Accept-Language: es-ES...
[ { "file_path": "crates/router/src/core/payment_link/locale.js", "lines": [ "function getLanguage(localeStr) {\n", " var fallback_locale = 'en';\n", " var primaryLocale = (localeStr.toLowerCase() || fallback_locale).split(',')[0].trim();\n", " \n", " // Split into language a...
[ { "file_path": "crates/router/src/core/payment_link/locale.js", "lines": [ " function getTranslations(locale_str) {\n", " var fallback_locale = 'en';\n", " var locale = locale_str.toLowerCase().replace(/-/g, \"_\") || fallback_locale; // defaults if locale is not present in payment ...
[ "yml", "js", "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-7957
Bug: [BUG] Facilitapay env connector configs breaking WASM It is `BodyKey` and not `Bodykey`. Affected files: `crates/connector_configs/toml/production.toml` `crates/connector_configs/toml/sandbox.toml` `crates/connector_configs/toml/integration_test.toml` this isn't affecting the current wasm as Facilitapay is ...
diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.toml index eaf3101aa8c..d64b01368d1 100644 --- a/crates/connector_configs/toml/development.toml +++ b/crates/connector_configs/toml/development.toml @@ -5816,6 +5816,6 @@ api_secret="Secret Key" [facilitapay] [[fac...
2025-05-05T10:23:35Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR fixes Facilitapay payment method env that broke WASM....
31e109a9a1367ef53786c146604b31fca69b15ef
WASM shouldn't break now. closes #7957
[ { "file_path": "crates/connector_configs/toml/development.toml", "lines": [ "[facilitapay.connector_auth.BodyKey]\n" ] }, { "file_path": "crates/connector_configs/toml/production.toml", "lines": [ "[facilitapay.connector_auth.BodyKey]\n" ] }, { "file_path": "crates/co...
[ { "file_path": "crates/connector_configs/toml/development.toml", "lines": [ "[facilitapay.connector_auth.Bodykey]\n" ] }, { "file_path": "crates/connector_configs/toml/production.toml", "lines": [ "[facilitapay.connector_auth.Bodykey]\n" ] }, { "file_path": "crates/co...
[ "toml" ]
3
juspay/hyperswitch
juspay__hyperswitch-7952
Bug: [FIX] Re-revert changes done in `pr#7866` by `pr#7882` ### Context [PR#7882](https://github.com/juspay/hyperswitch/pull/7882) accidentally reverted changes made in [PR#7882](https://github.com/juspay/hyperswitch/pull/7866), which was a merchant critical PR. ### Proposed Fix Re revert the changes.
diff --git a/crates/router/src/core/payment_methods/cards.rs b/crates/router/src/core/payment_methods/cards.rs index 5749715e51b..c228975faac 100644 --- a/crates/router/src/core/payment_methods/cards.rs +++ b/crates/router/src/core/payment_methods/cards.rs @@ -3485,61 +3485,6 @@ pub async fn list_payment_methods( ...
2025-05-05T09:22:23Z
## 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 --> Context https://github.com/juspay/hyperswitch/pull/7882 accide...
31e109a9a1367ef53786c146604b31fca69b15ef
- Create MA and an MCA with wallets - Create a payment and Save one wallet (eg: Paypal) - Create a new payment intent - List the Merchant PML again, Paypal would still be there ##### cURL ```bash curl --location 'http://localhost:8080/account/payment_methods?client_secret={{client_secret}}' \ --header 'Accept...
[]
[ { "file_path": "crates/router/src/core/payment_methods/cards.rs", "lines": [ " // Filter out wallet payment method from mca if customer has already saved it\n", " customer\n", " .as_ref()\n", " .async_map(|customer| async {\n", " let wallet_pm_exi...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-7967
Bug: [FEATURE]: Add refunds list feature in v2 apis Add refunds list feature in v2 apis
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json index b6d6fb87e27..59d5f5437c2 100644 --- a/api-reference-v2/openapi_spec.json +++ b/api-reference-v2/openapi_spec.json @@ -3306,6 +3306,43 @@ ] } }, + "/v2/refunds/list": { + "get": { + "tags": [ + ...
2025-05-06T09:49:44Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR introduces support for listing refunds in v2 apis. A...
1e243fada10f430d317c666d81483ae3246afd83
Create some payments and refunds before hand. - List all refunds API call ``` curl --location --request GET 'http://localhost:8080/v2/refunds/list' \ --header 'x-profile-id: pro_PiIU0MSYNuU5kS96H0kV' \ --header 'Content-Type: application/json' \ --header 'Authorization: api-key=dev_nG2oG32R2dnadMOvkwfRyl0j1YB...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"/v2/refunds/list\": {\n", " \"get\": {\n", " \"tags\": [\n", " \"Refunds\"\n", " ],\n", " \"summary\": \"Refunds - List\",\n", " \"description\": \"To li...
[ { "file_path": "api-reference-v2/openapi_spec.json", "lines": [ " \"type\": \"string\",\n", " \"description\": \"The identifier for the refund\",\n", " \"nullable\": true\n", " },\n", " \"profile_id\": {\n",...
[ "toml", "json", "rs" ]
14
juspay/hyperswitch
juspay__hyperswitch-7939
Bug: [FEATURE]: Add support for updating elimination config ### Feature Description Add a new route for updating elimination config in the database when it is toggled. ### Possible Implementation Add a new route for updating elimination config in the database when it is toggled. ### Have you spent some time chec...
diff --git a/crates/api_models/src/events/routing.rs b/crates/api_models/src/events/routing.rs index 122d1f8d3c8..c9fa118f596 100644 --- a/crates/api_models/src/events/routing.rs +++ b/crates/api_models/src/events/routing.rs @@ -2,9 +2,10 @@ use common_utils::events::{ApiEventMetric, ApiEventsType}; use crate::routi...
2025-04-29T12:29: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 --> Add a new route for updating the elimination routing config whe...
9da96e890c5168692c2c2a73ac8c9b6f43ec7274
1. Toggle elimination routing request ``` curl --location --request POST 'http://localhost:8080/account/merchant_174600xxxx/business_profile/pro_h9ecR6baV3b1eDvfxxxB/dynamic_routing/elimination/toggle?enable=metrics' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'a...
[ { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " DynamicRoutingUpdateConfigQuery, EliminationRoutingPayloadWrapper,\n", " LinkedRoutingConfigRetrieveResponse, MerchantRoutingAlgorithm, ProfileDefaultRoutingConfig,\n", " RoutingAlgorithmId, RoutingConfigReques...
[ { "file_path": "crates/api_models/src/events/routing.rs", "lines": [ " DynamicRoutingUpdateConfigQuery, LinkedRoutingConfigRetrieveResponse, MerchantRoutingAlgorithm,\n", " ProfileDefaultRoutingConfig, RoutingAlgorithmId, RoutingConfigRequest, RoutingDictionaryRecord,\n", " Routin...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-7960
Bug: refactor(open_router): call elimination routing of open router if enabled instead of dynamo
diff --git a/crates/api_models/src/routing.rs b/crates/api_models/src/routing.rs index a683e3343aa..fddeda6088c 100644 --- a/crates/api_models/src/routing.rs +++ b/crates/api_models/src/routing.rs @@ -643,6 +643,17 @@ impl DynamicRoutingAlgorithmRef { self.dynamic_routing_volume_split = volume } + pu...
2025-05-05T12:20:16Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This pull request introduces significant updates to the dynamic...
18142a4fdb1f81e4b493067b669a68576bac5d08
Since the feature cannot be deployed in main pod, this can be tested through custom pod which I can help with
[ { "file_path": "crates/api_models/src/routing.rs", "lines": [ " pub fn is_success_rate_routing_enabled(&self) -> bool {\n", " self.success_based_algorithm\n", " .as_ref()\n", " .map(|success_based_routing| {\n", " success_based_rou...
[ { "file_path": "crates/router/src/core/errors.rs", "lines": [ " #[error(\"Failed to perform {algo} in open_router\")]\n", " OpenRouterCallFailed { algo: String },\n" ] }, { "file_path": "crates/router/src/core/payments.rs", "lines": [ " routing::perform...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-7936
Bug: [FIX]: Fix error message while using generic filter Fix error message while using generic filter
diff --git a/crates/diesel_models/src/query/generics.rs b/crates/diesel_models/src/query/generics.rs index e23f4026ccf..d5581932eae 100644 --- a/crates/diesel_models/src/query/generics.rs +++ b/crates/diesel_models/src/query/generics.rs @@ -441,7 +441,7 @@ where track_database_call::<T, _, _>(query.get_results_a...
2025-04-29T11:21:35Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR changes the way we raise error if something goes wrong ...
212ac27057762f9d4cd2073d93c2216f61711cfe
Tested it with dropping `organization_id` column in refund table while trying to create refund. According to current implementation, we are raising not found error which is incorrect because it is not displaying the right cause. <img width="1637" alt="Screenshot 2025-04-29 at 4 24 40 PM" src="https://github.com/use...
[ { "file_path": "crates/diesel_models/src/query/generics.rs", "lines": [ " .change_context(errors::DatabaseError::Others)\n" ] } ]
[ { "file_path": "crates/diesel_models/src/query/generics.rs", "lines": [ " .change_context(errors::DatabaseError::NotFound)\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-7928
Bug: refactor(routers,connectors) : Remove unused functions in `crates/router/src/connector/utils.rs` ## Analyze and Remove Unused Functions from `crates/router/src/connector/utils.rs` ### Description: There are functions in the crates/router/src/connector/utils.rs file that appear to be unused across the router ...
diff --git a/crates/router/src/connector/utils.rs b/crates/router/src/connector/utils.rs index e0034a63335..addb7dd7c8c 100644 --- a/crates/router/src/connector/utils.rs +++ b/crates/router/src/connector/utils.rs @@ -21,7 +21,6 @@ use common_utils::{ use diesel_models::{enums, types::OrderDetailsWithAmount}; use erro...
2025-05-09T09:28:34Z
crates/router/src/connector/utils.rs ## 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 --> Removed functions that ...
3cdb9e174ca384704781a4c56e826c3a5e39d295
Only removed unused util functions hence no testing required.
[]
[ { "file_path": "crates/router/src/connector/utils.rs", "lines": [ " mandates,\n", "use serde::Serializer;\n", "use time::PrimitiveDateTime;\n", "pub fn get_http_header<'a>(\n", " key: &str,\n", " headers: &'a http::HeaderMap,\n", ") -> CustomResult<&'a str,...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-7931
Bug: Modify User-related Redis Operations to Use Global Tenant Prefix Currently, user-related data in Redis (such as SSO IDs, TOTP codes, email token blacklists, lineage_context etc.) is using tenant-specific prefixes like `public:` or `public_v2:`. This causes issues when users use different versions or environment...
diff --git a/crates/router/src/db.rs b/crates/router/src/db.rs index b0d86839a5d..4120edb957f 100644 --- a/crates/router/src/db.rs +++ b/crates/router/src/db.rs @@ -155,8 +155,10 @@ pub trait GlobalStorageInterface: + user_role::UserRoleInterface + user_key_store::UserKeyStoreInterface + role::RoleInterf...
2025-04-29T10:47: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 --> This PR updates all **user-related Redis operations** to cons...
b04ccafe48394fad86bf072b2e3a74626cc26550
Used the dashboard and then signed out. <img width="520" alt="Screenshot 2025-04-29 at 3 52 37 PM" src="https://github.com/user-attachments/assets/6ea3fde2-5e1a-4afd-8855-434bfc99d7da" /> As it is evident in the screenshot, blacklist functions, and lineage context now use `global:` prefix while setting the key in r...
[ { "file_path": "crates/router/src/db.rs", "lines": [ " + RedisConnInterface\n", " fn get_cache_store(&self) -> Box<(dyn RedisConnInterface + Send + Sync + 'static)>;\n", "impl GlobalStorageInterface for Store {\n", " fn get_cache_store(&self) -> Box<(dyn RedisConnInterface +...
[ { "file_path": "crates/router/src/db.rs", "lines": [ "impl GlobalStorageInterface for Store {}\n", "impl GlobalStorageInterface for MockDb {}\n" ] }, { "file_path": "crates/router/src/db/kafka_store.rs", "lines": [ "impl GlobalStorageInterface for KafkaStore {}\n" ] }...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-7924
Bug: Fix: populating the docker related changes from main to stable release Some docker related changes were made in the main branch, these need to be included in the stable release too.
diff --git a/README.md b/README.md index 72ac7e0e3a7..3033263e578 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,8 @@ Single API to access the payments ecosystem and its features ## Table of Contents 1. [Introduction](#introduction) -2. [Architectural Overview](#architectural-overview) -3. [Try Hyperswitch](#...
2025-04-24T13:02:22Z
This PR contains the docker compose file changes for stable release. The PRs included in this file are - https://github.com/juspay/hyperswitch/pull/7762 - https://github.com/juspay/hyperswitch/pull/7839 - https://github.com/juspay/hyperswitch/pull/7841 - https://github.com/juspay/hyperswitch/pull/7653
a387bd4711a12c826f8ac0f66df17336778720c5
[ { "file_path": "README.md", "lines": [ "2. [Try Hyperswitch](#try-hyperswitch)\n", "3. [Architectural Overview](#architectural-overview) \n", "#### One-Click Setup (Recommended)\n", "\n", "You can run Hyperswitch on your system with a single command using our one-click setup sc...
[ { "file_path": "README.md", "lines": [ "2. [Architectural Overview](#architectural-overview) \n", "3. [Try Hyperswitch](#try-hyperswitch) \n", "<a href=\"#architectural-overview\">\n", " <h2 id=\"architectural-overview\">Architectural Overview</h2>\n", "</a>\n", "<img s...
[ "yml", "md", "sh" ]
6
juspay/hyperswitch
juspay__hyperswitch-7920
Bug: Refactor(routing): Fallback to current active routing algorithm Add connectors from the current active routing algorithm before fallback connectors
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs index 1b7249cfa44..1c0dd9a3499 100644 --- a/crates/router/src/core/payments.rs +++ b/crates/router/src/core/payments.rs @@ -6475,7 +6475,7 @@ where } if let Some(routing_algorithm) = request_straight_through { - let ...
2025-04-28T11:32:14Z
## 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 modifies critical paths , specifically the `decide_conn...
15df5ac651682b4e4403cea3b0ef58fd9a90f0ec
Stripe and Adyen created with credit disabled for stripe 1. Payment Connector Create - Stripe with credit card disabled ``` curl --location 'http://localhost:8080/account/merchant_1747224808/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: d...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " let (connectors, check_eligibility) = routing::perform_straight_through_routing(\n", " let new_pd = payment_data.clone();\n", " new_pd.get_setup_mandate(),\n", " new_pd.g...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " let (mut connectors, check_eligibility) = routing::perform_straight_through_routing(\n", " payment_data.get_setup_mandate(),\n", " payment_data.get_payment_attempt(),\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-7933
Bug: Persist Last Used Lineage Context in Database Instead of Redis Currently, the **last used lineage context** (org_id, merchant_id, profile_id, role_id, tenant_id) is cached temporarily in Redis with a 7-day TTL. While this improves user experience across sessions, it introduces problems like: - Redis is volatile...
diff --git a/crates/api_models/src/user/theme.rs b/crates/api_models/src/user/theme.rs index 29b6a5d81b9..0616a5aa220 100644 --- a/crates/api_models/src/user/theme.rs +++ b/crates/api_models/src/user/theme.rs @@ -2,7 +2,7 @@ use actix_multipart::form::{bytes::Bytes, text::Text, MultipartForm}; use common_enums::Entity...
2025-04-29T19:00:30Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Previously, the user's `lineage_context` (userid, org_id, merch...
839eb2e8fb436ec0a79fe0073923fcb060b42cfc
<img width="1732" alt="Screenshot 2025-04-29 at 11 45 43 PM" src="https://github.com/user-attachments/assets/77a3ab50-add4-4091-b291-0bbe178bf617" /> ![image](https://github.com/user-attachments/assets/1fc5ec61-3dc4-43e9-9fe1-af66fa7127c4) #### Test Case 1: Lineage Context Caching on Login 1. Log in as a u...
[ { "file_path": "crates/api_models/src/user/theme.rs", "lines": [ " types::user::{EmailThemeConfig, ThemeLineage},\n" ] }, { "file_path": "crates/common_utils/src/types.rs", "lines": [ "/// User related types\n", "pub mod user;\n" ] }, { "file_path": "crates/c...
[ { "file_path": "crates/api_models/src/user/theme.rs", "lines": [ " types::theme::{EmailThemeConfig, ThemeLineage},\n" ] }, { "file_path": "crates/common_utils/src/types.rs", "lines": [ "/// Enum for Theme Lineage\n", "pub mod theme;\n" ] }, { "file_path": "cr...
[ "sql", "rs" ]
27
juspay/hyperswitch
juspay__hyperswitch-7918
Bug: Fix: Validation failing in payment method session - confirm when payment_method_subtype is card Endpoint is returning error code 422 with message "Invalid payment_method_type provided"
diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rs index acdc8870285..37c3ade1018 100644 --- a/crates/router/src/core/payments/helpers.rs +++ b/crates/router/src/core/payments/helpers.rs @@ -2947,10 +2947,18 @@ pub fn validate_payment_method_type_against_payment_method(...
2025-04-28T10: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 --> In the helper function `validate_payment_method_type_against_pa...
5d26b85639913c1d9b9f3d26fe92c2bb3bc0a2a1
Request: ``` curl --location 'http://localhost:8080/v2/payment-methods-session/12345_pms_01967bcef78f75a08017231cb1264185/confirm' \ --header 'x-profile-id: pro_tvEpY9HoDhpoef5zuFhB' \ --header 'Authorization: publishable-key=pk_dev_cebd8389548b40edba3e0046680b54e8,client-secret=cs_01967bcef78f75a08017232bf96...
[ { "file_path": "crates/router/src/core/payments/helpers.rs", "lines": [ " #[cfg(feature = \"v1\")]\n", " #[cfg(feature = \"v2\")]\n", " api_enums::PaymentMethod::Card => matches!(\n", " payment_method_type,\n", " api_enums::PaymentMeth...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-7971
Bug: refactor(Connector): [signifyd,threedsecureio,wellsfargopayout,wise] move from routers to hyperswitch_connectors Move the following connectors from crates/router to crates/hyperswitch_connectors signifyd threedsecureio wellsfargopayout wise
diff --git a/Cargo.lock b/Cargo.lock index 39154406f6e..1c2f7d2c22e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3854,10 +3854,13 @@ dependencies = [ "hyperswitch_domain_models", "hyperswitch_interfaces", "image", + "iso_currency", + "isocountry", "josekit 0.8.6", "lazy_static", "masking", "mime", + "num-...
2025-05-05T09:17:29Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Move the following connectors from `crates/router` to `crates/h...
40fd473989b04f70c1dc78025a555a972ffe2596
### WISE ```sh curl --location 'http://localhost:8080/account/merchant_1746603147/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-feature: integ-custom' \ --header 'api-key: dev_vE5MxDUUu9eQJ7AMwI4vD9nVj3IlxZy1qdpct9JB7Mt3j2mbYF7jLyjMz8KvAq94' \ -...
[ { "file_path": "Cargo.lock", "lines": [ " \"iso_currency\",\n", " \"isocountry\",\n", " \"num-traits\",\n", " \"utoipa\",\n" ] }, { "file_path": "crates/hyperswitch_connectors/Cargo.toml", "lines": [ "iso_currency = \"0.4.4\"\n", "isocountry = \"0.3.2\"\n"...
[ { "file_path": "Cargo.lock", "lines": [ " \"iso_currency\",\n", " \"isocountry\",\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " recurly::Recurly, redsys::Redsys, riskified::Riskified, shift4::Shift4, square::Square,\n", " ...
[ "toml", "lock", "rs" ]
24
juspay/hyperswitch
juspay__hyperswitch-7929
Bug: add debit routing support for saved card flow Once debit routing is performed for a card and the card is saved in the payment, we can also store the debit routing output. This allows us to reuse the saved data in future saved card flows instead of re-running the debit routing process.
diff --git a/crates/api_models/src/open_router.rs b/crates/api_models/src/open_router.rs index ce0960f04ea..f80623efc64 100644 --- a/crates/api_models/src/open_router.rs +++ b/crates/api_models/src/open_router.rs @@ -1,6 +1,6 @@ use std::{collections::HashMap, fmt::Debug}; -use common_utils::{id_type, types::MinorUn...
2025-04-29T07:15:49Z
## 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 --> Once debit routing is performed for a card and the card is save...
b0ad3ef5cde30078aa5f51258b9ff6e190079417
Tested locally by creating dummy co-badged card bin dump -> Create a merchant account and business profile -> Enable debit routing and provide merchant business country for the business profile ``` curl --location 'http://localhost:8080/account/merchant_1745690754/business_profile/pro_OiJkBiFuCYbYAkCG9X02' \ --h...
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ "use common_utils::{errors, id_type, types::MinorUnit};\n", "use crate::{\n", " enums::{Currency, PaymentMethod},\n", " payment_methods,\n", "};\n", "impl From<&DebitRoutingOutput> for payment_methods...
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ "use common_utils::{id_type, types::MinorUnit};\n", "use crate::enums::{Currency, PaymentMethod};\n" ] }, { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ "impl From<CardDetailFromLocker>...
[ "rs" ]
24
juspay/hyperswitch
juspay__hyperswitch-7910
Bug: refactor(connector): [stripebilling] Change BillingConnectorPaymentSync from charges api to payment intents api. Change the url from charge api to stripes payment intent api.
diff --git a/crates/hyperswitch_connectors/src/connectors/stripebilling.rs b/crates/hyperswitch_connectors/src/connectors/stripebilling.rs index 3fe121a1fc3..39a8e5a0dae 100644 --- a/crates/hyperswitch_connectors/src/connectors/stripebilling.rs +++ b/crates/hyperswitch_connectors/src/connectors/stripebilling.rs @@ -599...
2025-04-24T12:52:11Z
## 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 changes the url of billing connector payment sync flow from using stripe charge api to stripe p...
54e910582fac9bd6fe300a9a96926adf5123403e
To test this You can follow the steps of this PR: #7461 Tested it locally. And the logs are as following. <img width="1290" alt="Screenshot 2025-04-24 at 6 10 52 PM" src="https://github.com/user-attachments/assets/7803e047-7ef5-4f58-85a5-f00313f3ab04" /> <img width="1296" alt="Screenshot 2025-04-24 at 6 11 02 PM" ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/stripebilling.rs", "lines": [ " \"{}v1/payment_intents/{}?expand[0]=latest_charge\",\n", " let response: stripebilling::StripebillingBillingConnectorPaymentSyncResponseData = res\n", " .parse_struct::...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/stripebilling.rs", "lines": [ " \"{}v1/charges/{}\",\n", " let response: stripebilling::StripebillingRecoveryDetailsData = res\n", " .parse_struct::<stripebilling::StripebillingRecoveryDetailsData>(\n...
[ "rs" ]
2