repo stringclasses 1
value | instance_id stringlengths 22 24 | problem_statement stringlengths 30 24.1k | patch stringlengths 0 1.9M | test_patch stringclasses 1
value | created_at stringdate 2022-11-25 05:12:07 2025-06-13 10:24:29 | hints_text stringlengths 0 228k | base_commit stringlengths 40 40 | test_instructions stringlengths 0 232k | filenames listlengths 0 300 |
|---|---|---|---|---|---|---|---|---|---|
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 |
## Description
<!-- Describe your changes in detail -->
- Updated OpenAPI spec path in `pr_labeler` CI job
- Modified `CODEOWNERS` file to remove deleted folder
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
... | 07c93f183b13b0bfd2fbcdede33906852b0fca79 | [] | |||
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 |
## Description
<!-- Describe your changes in detail -->
Deleting API Key needs Merchant ID. So, deleting it after deleting the merchant itself yields a error message in the response which goes like `"API key not provided or invalid API key used"`, but, its solely because the Merchant ID used is not authenticated bec... | 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... | [
"postman/collection-dir/stripe/PaymentConnectors/.meta.json"
] | |
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 |
## Description
Exposed endpoints for auth analytics under profile, merchant and org access levels.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one ... | d305fad2e6c403fde11b9eea785fddefbf3477df | [
"crates/analytics/src/auth_events/core.rs",
"crates/analytics/src/auth_events/filters.rs",
"crates/analytics/src/auth_events/metrics.rs",
"crates/analytics/src/auth_events/metrics/authentication_attempt_count.rs",
"crates/analytics/src/auth_events/metrics/authentication_count.rs",
"crates/analytics/src/au... | ||
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 |
## Description
<!-- Describe your changes in detail -->
- Moved both `v1` and `v2` API docs under `api-reference` directory
- Renamed `openapi_spec.json` files for v1 and v2
- Updated OpenAPI spec file paths in `openapi` crate
- Modified OpenAPI spec path in CI pipeline
## Motivation and Context
<!--
Why is... | 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" />
| [
"api-reference-v2/README.md",
"api-reference-v2/assets/images/image.png",
"api-reference-v2/essentials/error_codes.mdx",
"api-reference-v2/essentials/go-live.mdx",
"api-reference-v2/essentials/rate_limit.mdx",
"api-reference-v2/favicon.png",
"api-reference-v2/introduction.mdx",
"api-reference-v2/logo/... | |
juspay/hyperswitch | juspay__hyperswitch-8379 | Bug: [FEATURE] Add v2 kafka events for payment_intent, payment_attempt and refund
| diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs
index 7b14351a49a..ca382fa1479 100644
--- a/crates/api_models/src/payments.rs
+++ b/crates/api_models/src/payments.rs
@@ -5560,25 +5560,24 @@ impl From<&PaymentsRequest> for PaymentsCreateIntentRequest {
billing: request.bil... | 2025-06-12T06:01:54Z |
## Description
<!-- Describe your changes in detail -->
Added payment_intent payment_attempt and refund kafka events for v2
Other changes:
* populate connector_metadata in AuthorizaRouterData in v2.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an op... | 7b2919b46fda92aad14980280bc46c2c23d81086 |
Made a payment and refund and verified if proper events are logged into Kafka.
<img width="1728" alt="Screenshot 2025-06-12 at 9 48 33 AM" src="https://github.com/user-attachments/assets/91286bfd-8c83-4cb4-85cb-a672efb81daa" />
<img width="1728" alt="Screenshot 2025-06-12 at 9 48 18 AM" src="https://github.com/... | [
"crates/api_models/src/payments.rs",
"crates/common_enums/src/enums.rs",
"crates/hyperswitch_domain_models/src/payments.rs",
"crates/masking/src/secret.rs",
"crates/masking/src/serde.rs",
"crates/router/src/core/payments/transformers.rs",
"crates/router/src/services/kafka/payment_attempt.rs",
"crates/... | |
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 |
## Description
<!-- Describe your changes in detail -->
- Refactored routing events in dynamic_routing core.
- have also added routing events for Euclid and Debit Routing
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the is... | 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... | [
"crates/api_models/src/open_router.rs",
"crates/api_models/src/routing.rs",
"crates/router/src/core/errors.rs",
"crates/router/src/core/payments/routing.rs",
"crates/router/src/core/payments/routing/utils.rs",
"crates/router/src/core/routing/helpers.rs"
] | |
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 |
## Description
This PR introduces populating `connector_customer` field in `customers` table during payment method migration.
## Motivation and Context
Allows merchants to populate `connector_customer` per `merchant_connector_id` based on `connector_customer_id` passed in the request.
#
## Summary by CodeRabb... | 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... | [
"crates/api_models/src/payment_methods.rs",
"crates/common_types/src/customers.rs",
"crates/router/src/compatibility/stripe/customers.rs",
"crates/router/src/core/customers.rs",
"crates/router/src/routes/customers.rs",
"crates/router/src/routes/payment_methods.rs",
"crates/router/src/types/api/payment_m... | |
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 |
## Description
A new struct, UpdateScoreResponse, was introduced in the API models to represent responses from the Open Router. The payment routing logic was updated to parse responses directly into this struct, replacing the previous manual string conversion and error handling with structured deserialization.
##... | 67a42f0c27157f876698982a6b5f0a1cd3e15ffb |
Cannot be tested until open_router is enabled in runtime.
Tested locally - Response is getting deserialized

| [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/open_router.rs",
"crates/router/src/core/payments/routing.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Added click to pay feature for Trustpay.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one f... | 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... | [
"crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs",
"crates/hyperswitch_connectors/src/utils.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Moved customer saved PML route to OLAP in v2
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one... | 713c85d25d29259672da6efbfed0862e843ec542 |
Verified as working. No change in response.
| [
"crates/router/src/routes/app.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
- Moved `CustomerAcceptance`, `AcceptanceType`, `OnlineMandate` to `common_types`
- Removed unnecessary conversions from the code
- Changed `payment_attempt` domain model and diesel model in v2 to use strict type
## Motivation and Context
<!--
Why is th... | 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,
... | [
"Cargo.lock",
"crates/api_models/src/mandates.rs",
"crates/api_models/src/payments.rs",
"crates/common_types/Cargo.toml",
"crates/common_types/src/payments.rs",
"crates/diesel_models/src/payment_attempt.rs",
"crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs",
"crates/hyperswitch_dom... | |
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 |
## Description
<!-- Describe your changes in detail -->
This pull request introduces `merchant_category_code` field 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. O... | 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... | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/admin.rs",
"crates/api_models/src/open_router.rs",
"crates/common_enums/src/enums.rs",
"crates/diesel_models/src/business_profile.rs",
"crates/diesel_models/src/schema.rs",
"crates/diesel_models/src/schema_v2.rs",
"crates/euclid_wasm/src/lib... | |
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 |
## Description
<!-- Describe your changes in detail -->
Currently to list refunds in v2, we are using GET verb, but we are passing filters through body which is not correct. Since listing requests are generally GET requests, we pass filters through query params.
In the current scenario, passing filters through qu... | 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... | [
"api-reference-v2/openapi_spec.json",
"crates/openapi/src/routes/refunds.rs",
"crates/router/src/routes/app.rs"
] | |
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 |
## Description
This new Kafka Event consume the revenue recovery related events which will be constructed from both `RecoveryPaymentIntent` and `RecoveryPaymentAttempt` in revenue recovery flow. The events form Kafka will be picked up by vector and this be eventually batched and pushed to s3 based on the set config. ... | 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... | [
"config/config.example.toml",
"config/deployments/env_specific.toml",
"config/development.toml",
"config/docker_compose.toml",
"config/vector.yaml",
"crates/api_models/src/payments.rs",
"crates/diesel_models/src/types.rs",
"crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs",
"cr... | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR fixes 5xx thrown by JPMorgan connector during payments authorize and void call.
Connector expects the expiry month and year to be `i32` and not a `String` which is why it used to a 5xx due to deserialization failure.
And for Void, the connector ... | e58eeb1aa964c035af2e4fc54ad35adcc4dac157 |
Fixed and ran Cypress tests against the connector.

| [
"crates/hyperswitch_connectors/src/connectors/jpmorgan.rs",
"crates/hyperswitch_connectors/src/connectors/jpmorgan/transformers.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Removed country PM filters for payment processor authorizedotnet.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recomm... | 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... | [
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"loadtest/config/development.toml"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR fixes the required fields error in SDK.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting wit... | 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://... | [
"crates/payment_methods/src/configs/payment_connector_required_fields.rs"
] | |
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 |
## Description
This PR introduces
- modification of the behavior of appending the `payment_link_ui_rules` to the CSS instead of selecting and applying it to the retrieved elements at runtime.
- expose `color_icon_card_cvc_error` via API for SDK variables
## Motivation and Context
This change allows for styling... | 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' \
... | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/admin.rs",
"crates/api_models/src/payments.rs",
"crates/diesel_models/src/business_profile.rs",
"crates/diesel_models/src/payment_intent.rs",
"crates/hyperswitch_domain_models/src/lib.rs",
"crates/router/src/core/payment_link.rs",
"crates/ro... | |
juspay/hyperswitch | juspay__hyperswitch-8398 | Bug: [FEATURE] [AUTHIPAY] Integrate cards non-3ds payments
### Feature Description
cards non-3ds payments needs to be integrated for authipay
### Possible Implementation
cards non-3ds payments needs to be integrated for authipay
### Have you spent some time checking if this feature request has been raised before... | diff --git a/config/config.example.toml b/config/config.example.toml
index 10f796128f7..2b1916d41c2 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -189,6 +189,7 @@ airwallex.base_url = "https://api-demo.airwallex.com/"
amazonpay.base_url = "https://pay-api.amazon.com/v2"
applepay.base_url... | 2025-06-05T09:43:43Z |
## Description
Cards Non-3DS payments added for authipay
https://docs.fiserv.dev/public/reference/payments-intro
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend start... | c322eb9cabb2ca7a8ad0c3ed57192dde9bf7eaa4 | Tested using cargo build and cypress test
<img width="738" alt="Screenshot 2025-07-04 at 11 49 02 AM" src="https://github.com/user-attachments/assets/d4927935-5af6-4b14-88c4-dc1c9f723886" />
| [
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"config/payment_required_fields_v2.toml",
"crates/common_enums/src/connector_enums.rs",
"crates/... | |
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 |
## Description
<!-- Describe your changes in detail -->
Added `payment_experience` in Payment Method List for Payments Response
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd ... | 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... | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/payments.rs",
"crates/router/src/core/payments/payment_methods.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
I updated the readme for better navigation
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
updated the readme for improved developer experience
If it fixes an open issue, please link to the issue here.
If you... | 4a7c08fbc57f9712f1ff478d01d4929b9576b448 | [
"README.md"
] | ||
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 |
## Description
The following details are needed to be stored in the payment intent feature metadata as a part of transaction monitoring system for revenue recovery.
1. Card Network
2. Card Issuer
3. First Payment Gateway Error Code
4. First Network Error Code
5. First Network Advice Code
These will be... | 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... | [
"crates/api_models/src/payments.rs",
"crates/diesel_models/src/types.rs",
"crates/hyperswitch_connectors/src/connectors/chargebee/transformers.rs",
"crates/hyperswitch_connectors/src/connectors/recurly/transformers.rs",
"crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs",
"crates/... | |
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 |
## Description
<!-- Describe your changes in detail -->
Added health check for Decision engine service
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with... | 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
}... | [
"crates/api_models/src/health_check.rs",
"crates/router/src/core/health_check.rs",
"crates/router/src/routes/health.rs",
"crates/storage_impl/src/errors.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
This pull request introduces a new feature to the routing configuration: the ability to shuffle results on a tie during exploitation. This feature is implemented across multiple files, including API specifications, Rust models, and protocol buffer definitions. ... | 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... | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/routing.rs",
"crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs",
"proto/success_rate.proto"
] | |
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 |
## Description
This PR introduces a new migration API that facilitates migrating routing rules defined in Euclid (legacy engine) to the new `decision_engine`. It extracts routing algorithm definitions associated with a `profile_id`, parses them, converts them to the `Program` format used by the decision engine, and... | 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... | [
"config/development.toml",
"crates/api_models/src/events/routing.rs",
"crates/api_models/src/routing.rs",
"crates/diesel_models/src/routing_algorithm.rs",
"crates/router/src/core/payments/routing/utils.rs",
"crates/router/src/core/routing.rs",
"crates/router/src/routes/app.rs",
"crates/router/src/rout... | |
juspay/hyperswitch | juspay__hyperswitch-8230 | Bug: [CYPRESS] Fix Cypress connector failures
Wise
Elavon
Paybox
Datatrans
Facilitapay
Itaubank | 2025-06-03T12:45:52Z |
## Description
<!-- Describe your changes in detail -->
This PR fixes Cypress tests for Itaubank, Paybox and Datatrans.
Datatrans still fail. Datatrans fails because `ResponseCustom` needs a refactor while Paybox requires us to pass `FR` as country and upon fixing it, it started to say wrong creds.
Facilitap... | 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... | [] | ||
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 |
## Description
<!-- Describe your changes in detail -->
- Fixed spell checks
- Added `routing_approach` field in routing events API response
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have... | 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",
... | [
"crates/analytics/src/routing_events/events.rs",
"crates/api_models/src/routing.rs",
"crates/router/src/core/payments/routing.rs",
"crates/router/src/core/routing/helpers.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
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 requir... | 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... | [
"crates/router/src/core/payments.rs",
"crates/router/src/core/payments/retry.rs",
"crates/router/src/core/routing/helpers.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Apple pay payments for noon were failing due to PR#7921. Adding AED to the currency list for apple pay is a temporary fix for this failure.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue,... | 06c5215c0edf0ed47cc55fd5216c4642cc515f37 | [
"config/deployments/production.toml"
] | ||
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 |
## Description
<!-- Describe your changes in detail -->
Reverts https://github.com/juspay/hyperswitch/pull/7921
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starti... | 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... | [
"crates/router/src/core/payments.rs"
] | |
juspay/hyperswitch | juspay__hyperswitch-8203 | Bug: [CHORE] Bump Cypress dependencies
Current versions are out dated. | 2025-06-02T07:43:48Z |
## Description
<!-- Describe your changes in detail -->
This PR bumps Cypress and its dependencies to its latest versions.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd rec... | dbca363f44c0dbce277a337d64dfb82741d423c4 |
CI should pass.
| [] | ||
juspay/hyperswitch | juspay__hyperswitch-8389 | Bug: [FEATURE] Kv Redis feature for V2 models
### Feature Description
Extend kv support for v2 models
### Possible Implementation
Use existing construct to extend to v2 models
### 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/crates/diesel_models/src/kv.rs b/crates/diesel_models/src/kv.rs
index 6c0666e5903..ed984649e92 100644
--- a/crates/diesel_models/src/kv.rs
+++ b/crates/diesel_models/src/kv.rs
@@ -126,12 +126,7 @@ impl DBOperation {
)),
#[cfg(feature = "v2")]
Updateable::P... | 2025-06-02T04:50:28Z |
## Description
#8389
- Added Kv Redis support to - payment_intent V2, payment_attempt V2 models
- Added enable Kv route for v2 merchant-account
added enable kv api for v2 merchant account
`
curl --location 'https://<host>/v2/merchant-accounts/:mid/kv' \
--header 'Authorization: admin-api-key=***' \
--hea... | c5c0e677f2a2d43170a66330c98e0ebc4d771717 |
Locally tested kv writes and drainer functionality
| [
"crates/diesel_models/src/kv.rs",
"crates/diesel_models/src/payment_attempt.rs",
"crates/diesel_models/src/payment_intent.rs",
"crates/drainer/Cargo.toml",
"crates/hyperswitch_interfaces/Cargo.toml",
"crates/router/src/lib.rs",
"crates/router/src/routes/admin.rs",
"crates/router/src/routes/app.rs",
... | |
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 |
## Description
<!-- Describe your changes in detail -->
Improving API-Reference to include payment flows, and include better and correct description of some fields.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
... | b159a1d23dd37a038debaa0538355e14a3847249 | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/payments.rs",
"crates/common_enums/src/enums.rs",
"crates/openapi/src/routes/payments.rs"
] | ||
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 |
## Description
<!-- Describe your changes in detail -->
Merchant account creation on decision-engine is pre-requisite for making success based routing calls to it. Since toggle SR endpoint on Hyperswitch is the place where rule creation API of DE is being called, we can check whether merchant_account exists in DE, i... | 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' \
--... | [
"crates/api_models/src/routing.rs",
"crates/router/src/core/admin.rs",
"crates/router/src/core/routing.rs",
"crates/router/src/core/routing/helpers.rs"
] | |
juspay/hyperswitch | juspay__hyperswitch-8407 | Bug: ci(connector): [ARCHIPEL] configure test cases
Automate CI Checks by Fixing, Adding and Configuring Test Cases over:-
- [Postman](https://github.com/juspay/hyperswitch/pull/8360)
- [Cypress](https://github.com/juspay/hyperswitch/pull/8189) | 2025-05-30T16:25:08Z |
## Description
<!-- Describe your changes in detail -->
Enhancements for `archipel` Cypress Tests.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one f... | 8ccaac7c10e9366772e43d34f271d946cc4b3baa |
<img width="726" height="962" alt="image" src="https://github.com/user-attachments/assets/ee72bc01-69a1-4afb-ac76-8c3edec1c124" />
_PS: There is an issue with Incremental Auth, not anything related to the configs, but the spec itself, addressing it in another PR because that would affect 1 other connector as... | [] | ||
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 |
## Description
<!-- Describe your changes in detail -->
Audit trail for SR based Routing
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so... | 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... | [
"config/config.example.toml",
"config/deployments/env_specific.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/analytics/docs/clickhouse/scripts/connector_events.sql",
"crates/analytics/docs/clickhouse/scripts/routing_events.sql",
"crates/analytics/src/clickhouse.rs",
"crates/a... | |
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 |
## 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.
Supporting conversion functions (`co... | 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... | [
"crates/router/src/core/payments/routing/utils.rs",
"crates/router/src/core/routing.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
I have implemented a gRPC client that facilitates communication with the recovery-decider gRPC service. The client should be capable of initializing and managing the connection to the service, sending requests, and handling responses in accordance with the defi... | 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... | [
"Cargo.lock",
"config/config.example.toml",
"config/deployments/env_specific.toml",
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/external_services/Cargo.toml",
"... | |
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 |
## Description
<!-- Describe your changes in detail -->
Add `encoded_data` from `PaymentsRetrieveRequest` in `payment_attempt` inside `get_trackers` for PSync
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If... | d91cf70ae346cbf613ce5c1cfad2ae8a28c71d1c |
No visible changes in API response. Verified that payment status changes to `succeeded`.
| [
"crates/router/src/core/payments/operations/payment_get.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
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 merchant connector accou... | 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... | [
"crates/router/src/core/debit_routing.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
The S3 Source File Name in Postman Collection Runner Workflow has been changed because the Connector Auth File has been updated.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please lin... | b8e7a868ade62ff21498203d9e14edae094071d9 | [] | |||
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 |
## Description
Added exemption_requested and exemption_approved fields to the auth_events metrics, extended the auth-analytics API with new filters for 3DS Intelligence, and created a dedicated endpoint to serve SCA-exemption Sankey chart data.
## Motivation and Context
<!--
Why is this change required? What ... | 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: */*' ... | [
"crates/analytics/src/auth_events.rs",
"crates/analytics/src/auth_events/accumulator.rs",
"crates/analytics/src/auth_events/core.rs",
"crates/analytics/src/auth_events/filters.rs",
"crates/analytics/src/auth_events/metrics.rs",
"crates/analytics/src/auth_events/metrics/authentication_attempt_count.rs",
... | |
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 |
## Description
<!-- Describe your changes in detail -->
Original PR - https://github.com/juspay/hyperswitch/pull/8158
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend ... | a830a070ba6786201a26aeeb7cf21a2d44528684 | [
"crates/api_models/src/open_router.rs",
"crates/api_models/src/routing.rs",
"crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs",
"crates/router/src/core/payments/routing.rs",
"proto/success_rate.proto"
] | ||
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 |
## Description
<!-- Describe your changes in detail -->
This pull request introduces a new feature to support an "exploration percentage" parameter in success-based routing configurations and adds a "RoutingApproach" enum to define routing strategies. These changes span multiple files, including API specifications, ... | 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... | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/open_router.rs",
"crates/api_models/src/routing.rs",
"crates/external_services/src/grpc_client/dynamic_routing/success_rate_client.rs",
"crates/router/src/core/payments/routing.rs",
"proto/success_rate.proto"
] | |
juspay/hyperswitch | juspay__hyperswitch-8634 | Bug: [FEATURE] add profile acquirer module
### Feature Description
add profile acquirer create API, which allows us to create profile acquirer with the following fields
- profile_id
- acquirer_assigned_merchant_id
- merchant_name
- merchant_country_code
- network
- acquirer_bin
- acquirer_ica
- acquirer_fraud_rate
... | diff --git a/crates/api_models/src/admin.rs b/crates/api_models/src/admin.rs
index 5ab7eae75f0..07f3e2431fa 100644
--- a/crates/api_models/src/admin.rs
+++ b/crates/api_models/src/admin.rs
@@ -2427,6 +2427,10 @@ pub struct ProfileResponse {
#[schema(default = false, example = false)]
pub is_pre_network_tokeni... | 2025-05-27T11:08:05Z |
## Description
<!-- Describe your changes in detail -->
added merchant acquirer create and list module
### API Enhancements:
* Added a new endpoint `/profile_acquirers` for creating profile acquirers in `api-reference/openapi_spec.json`. Includes request and response schemas (`ProfileAcquirerCreate` and `Profil... | 5ce2ab2d059d48a0f8305d65f45c7960c6939803 |
Create a merchant account
Once done create merchant_acquirer
Request
```shell
curl --location 'localhost:8080/profile_acquirer' \
--header 'Content-Type: application/json' \
--header 'api-key: dev_rDKEInoZiJlNIfJPYNuqBMC2EOJjegGylLbzRMDw6kmSxV0FztdYfLcSoWZD6ZsT' \
--data '{
"acquirer_assigned_merchant... | [
"crates/api_models/src/admin.rs",
"crates/api_models/src/lib.rs",
"crates/api_models/src/profile_acquirer.rs",
"crates/common_types/src/domain.rs",
"crates/common_utils/src/events.rs",
"crates/common_utils/src/id_type.rs",
"crates/common_utils/src/id_type/profile_acquirer.rs",
"crates/common_utils/src... | |
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 |
## Description
<!-- Describe your changes in detail -->
Removed old add_connector.md file
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so... | 5642080025524ed2dee363984359aa9275036035 | [
"add_connector.md",
"add_connector_updated.md"
] | ||
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 |
## Description
<!-- Describe your changes in detail -->
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. For now,... | 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... | [
"crates/router/src/core/debit_routing.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
### Summary
This PR introduces Nordea as a new payment connector with support for SEPA bank debit payments. It also implements a new **Authentication Token Flow** mechanism that enables two-step OAuth authentication, which is required by certain connectors... | 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... | [
"Cargo.lock",
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/api_models/src/admin.rs",
"crates/common_enums/src/connector_enums.rs",
... | |
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 |
## 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/rust-clippy/master/index.html
# | 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... | [
"crates/external_services/src/email/ses.rs",
"crates/kgraph_utils/src/error.rs",
"crates/kgraph_utils/src/transformers.rs",
"crates/masking/src/serde.rs",
"crates/router/src/bin/router.rs",
"crates/router/src/core/payments/helpers.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Currently, we have two endpoints for retrieving payment information in v2:
- GET /payments/:id
- GET /payments/:id:/get-intent
The endpoint /payments/{payment_id} is called after confirmation, at which point a payment attempt always exists. Currently, pay... | 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... | [
"crates/hyperswitch_domain_models/src/payments.rs",
"crates/hyperswitch_domain_models/src/router_data.rs",
"crates/router/src/core/payments.rs",
"crates/router/src/core/payments/operations/payment_get.rs",
"crates/router/src/core/payments/operations/payment_response.rs",
"crates/router/src/core/payments/t... | |
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 |
## Description
<!-- Describe your changes in detail -->
Fixed Fiuu connector to properly handle and return `error_code` and `error_message` for failed FPX transactions. The connector was previously receiving error information during redirection back to Hyperswitch but was not populating these fields in API respons... | 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' \
--... | [
"crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Added support for `client_secret` authentication in `Payments - Get Intent`
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, w... | 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' \
--... | [
"crates/router/src/routes/payments.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
This pull request introduces a new feature for retrieving dynamic routing volume split configurations and includes related updates across multiple files. The changes primarily focus on adding a new API endpoint, defining associated data structures, and integrat... | 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... | [
"crates/api_models/src/events/routing.rs",
"crates/api_models/src/routing.rs",
"crates/openapi/src/openapi.rs",
"crates/router/src/core/routing.rs",
"crates/router/src/routes/app.rs",
"crates/router/src/routes/routing.rs"
] | |
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 |
## Description
This PR introduces support for listing both static and dynamic routing algorithms under a unified API interface. To accomplish this, it refactors how routing algorithms are represented and parsed, introducing clear separation between `StaticRoutingAlgorithm` and `DynamicRoutingAlgorithm`. The new enu... | 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... | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/admin.rs",
"crates/api_models/src/events/routing.rs",
"crates/api_models/src/payouts.rs",
"crates/api_models/src/routing.rs",
"crates/openapi/src/openapi.rs",
"crates/openapi/src/openapi_v2.rs",
"crates/router/src/compatibility/stripe/paymen... | |
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 |
## Description
<!-- Describe your changes in detail -->
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 RoutingAlgorithmUpdate.
Thi... | 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 '... | [
"crates/diesel_models/src/business_profile.rs",
"crates/hyperswitch_domain_models/src/business_profile.rs",
"crates/router/src/core/admin.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
This pull request modifies the default configuration for `SuccessBasedRoutingConfig` in the `crates/api_models/src/routing.rs` file. The changes adjust the values for aggregate sizes, success rate thresholds, and block duration to better align with updated rout... | 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... | [
"crates/api_models/src/routing.rs",
"crates/router/src/core/payments/routing.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Enhanced the script to pre-configure a user and a dummy connector in the control center for the local setup.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.... | 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" />
| [
"README.md",
"scripts/setup.sh"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
- Added a field `payment_token` to customer PML response
- During `/confirm-intent`, in case of card, an inactive payment method method is created before `call_conector_service`
- After the payment has completed, depending on its status the payment method is ... | 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... | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/events/payment.rs",
"crates/api_models/src/payment_methods.rs",
"crates/api_models/src/payments.rs",
"crates/diesel_models/src/payment_attempt.rs",
"crates/hyperswitch_domain_models/src/payment_method_data.rs",
"crates/hyperswitch_domain_model... | |
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 |
## Description
<!-- Describe your changes in detail -->
Added api-key auth for routing APIs
Earlier, all routing endpoints were only JWT auth based for release build and (api-key + JWT) for local development build. Have removed the feature flag based distinction and refactored auth for all routing endpoints to be (... | 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... | [
"crates/router/src/core/routing/helpers.rs",
"crates/router/src/routes/routing.rs"
] | |
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 |
## Description
This PR enables processing payment transactions via Adyen using network tokens and NTI
## Motivation and Context
This help merchants who has enabled processing network tokens in Adyen to use NetworkTokens along with NTI reference for processing MIT.
# | d91cf70ae346cbf613ce5c1cfad2ae8a28c71d1c | Cannot be tested locally.
| [
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml"
] | |
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 |
## Description
This PR contains changes for two connector integrations
1. Fiuu - omit `bank_code` from the refund request for enabling ORF feature from Fiuu's side
2. RedSys - fix the field for sending `browserJavascriptEnabled` field properly
## Motivation and Context
This change fixes the issues for Fiuu and... | e62f8ee8aba4ba05041b221e9af6f30100fdefcb | Can only be tested in production.
| [
"crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs",
"crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs"
] | |
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 |
## Description
This PR contains changes for two connector integrations
1. Fiuu - omit `bank_code` from the refund request for enabling ORF feature from Fiuu's side
2. RedSys - fix the field for sending `browserJavascriptEnabled` field properly
## Motivation and Context
This change fixes the issues for Fiuu and... | e62f8ee8aba4ba05041b221e9af6f30100fdefcb | Can only be tested in production.
| [
"crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs",
"crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Added Authorize, Capture, Void, Refund, PSync and RSync flow for cards payment method for Barclaycard. Also added connector specifications for the same connector.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
I... | 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",... | [
"api-reference-v2/openapi_spec.json",
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/common_enums/src/connector_enums.rs",
"crates/conn... | |
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 |
## Description
<!-- Describe your changes in detail -->
Implement `revolut_pay` for stripe
# | 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... | [
"api-reference-v2/openapi_spec.json",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"crates/api_models/src/payments.rs",
"crates/common_enums/src/enums.rs",
"crates/common_enums/src/transformers.rs",
"crates/connector_configs/toml/development.toml"... | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR updates all the typos in the repository. For reference, check: https://github.com/juspay/hyperswitch/actions/runs/15082629873/job/42401247676?pr=8056
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it ... | 8e9bad6457449ef2a435be03a9f97acc2dd2108a |
```sh
cargo +nightly fmt --all && just clippy && just clippy_v2
```
| [
"api-reference-v2/openapi_spec.json",
"config/dashboard.toml",
"crates/api_models/src/payments.rs",
"crates/common_types/src/payment_methods.rs",
"crates/common_utils/src/macros.rs",
"crates/common_utils/src/types.rs",
"crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs",
"crates/h... | |
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 |
## Description
<!-- Describe your changes in detail -->
Added baseurl for `VGS` connector in relevant deployment TOML files
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd reco... | 3d095cec0cfc96ef907694be99087cc3668ba4b7 | [
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml"
] | ||
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 |
## Description
<!-- Describe your changes in detail -->
Connector template code for new connector `Nordea`.
Developer Docs: https://developer.nordeaopenbanking.com/documentation
Login Dashboard: https://developer.nordeaopenbanking.com/login
## Motivation and Context
<!--
Why is this change required? What... | 151b57fa104259df174a38d863acab39277c8473 |
This is a template PR for Nordea, just checked for compilation. Nothing else to test.
| [
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/common_enums/src/connector_enums.rs",
"crates/connector_configs/src/connector.rs",
"crat... | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR integrates the decision engine config APIs
The integration sits in the dynamic routing config flows. Based on ENV, if decision engine is enabled, we would call DE instead of Dynamo.
## Motivation and Context
<!--
Why is this change required? What... | 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... | [
"crates/api_models/src/open_router.rs",
"crates/api_models/src/routing.rs",
"crates/openapi/src/openapi.rs",
"crates/router/src/core/admin.rs",
"crates/router/src/core/payments/routing.rs",
"crates/router/src/core/payments/routing/utils.rs",
"crates/router/src/core/routing.rs",
"crates/router/src/core... | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR adds support for API Event Metric logging, the events will be logged to clickhouse when a request/response is triggered.
In refunds v2, it will be for requests and responses for 4 apis
1. Refunds Create
2. Refunds Metadata Update
3. Refunds Retrie... | 3a451907a45035e40a04c335531a5b69414b3e04 |
- This will be tested when kafka and clickhouse is enabled for v2.
| [
"crates/api_models/src/events/refund.rs",
"crates/common_utils/src/events.rs",
"crates/diesel_models/src/refund.rs",
"crates/router/src/core/refunds_v2.rs",
"crates/router/src/routes/refunds.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Changed `async-bb8-diesel crate from custom [fork](https://github.com/jarnura/async-bb8-diesel) to crates.io [version](https://github.com/oxidecomputer/async-bb8-diesel)
## Motivation and Context
<!--
Why is this change required? What problem does it solv... | 46e830a87f60c1c2117c4b48a1c2ecbb6cf9e4d7 |
Ran clippy and tested multiple endpoints in the `router` binary
| [
"Cargo.lock",
"crates/diesel_models/Cargo.toml",
"crates/drainer/Cargo.toml",
"crates/router/Cargo.toml",
"crates/storage_impl/Cargo.toml"
] | |
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 |
## Description
This PR updates the regex used for forming the CompleteAuthorize URL for Worldpay post DDC submission.
Change made - the regex is updated to match any character except `/` for matching the query parameters. Earlier `/w` was being used which matched only the alphanumeric characters and underscore.
D... | 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... | [
"crates/router/src/services/api.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
added barclaycard template code
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting with one first so the... | e62f8ee8aba4ba05041b221e9af6f30100fdefcb |
Only template PR hence no testing required
| [
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/common_enums/src/connector_enums.rs",
"crates/connector_configs/src/connector.rs",
"crat... | |
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 |
## Description
<!-- Describe your changes in detail -->
Move stripe connector code form `router` crate to `hyperswitch_connectors` crate
- issue : https://github.com/juspay/hyperswitch/issues/8008
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue,... | 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... | [
"crates/hyperswitch_connectors/src/connectors.rs",
"crates/router/src/connector/stripe.rs",
"crates/router/src/connector/stripe/transformers.rs",
"crates/router/src/connector/stripe/transformers/connect.rs",
"crates/hyperswitch_connectors/src/constants.rs",
"crates/hyperswitch_connectors/src/default_imple... | |
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 |
## Description
This PR adds automatic validation for string length constraints defined in schema attributes. The validation prevents 5xx errors that occur when strings exceeding database column length limits are passed to the database.
The implementation:
1. Creates a proc macro `ValidateSchema` that reads `min_l... | 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... | [
"Cargo.lock",
"crates/api_models/src/payments.rs",
"crates/router/src/routes/payments.rs",
"crates/router/tests/macros.rs",
"crates/router_derive/Cargo.toml",
"crates/router_derive/src/lib.rs",
"crates/router_derive/src/macros.rs",
"crates/router_derive/src/macros/schema.rs",
"crates/router_derive/s... | |
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 |
## Description
<!-- Describe your changes in detail -->
Added all_keys_required in confirm and psync payload. If all_keys_required is passed as true, we will send the whole connector response.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, ... | 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... | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/payments.rs",
"crates/hyperswitch_connectors/src/utils.rs",
"crates/hyperswitch_domain_models/src/router_data.rs",
"crates/hyperswitch_interfaces/src/conversion_impls.rs",
"crates/router/src/compatibility/stripe/payment_intents.rs",
"crates/ro... | |
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 |
## Description
<!-- Describe your changes in detail -->
Added coingate, paystack connector specifications
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend starting w... | 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... | [
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/hyperswitch_connectors/src/connectors/coingate.rs",
"crates/hyperswitch_connectors/src/connectors/paystack.rs",
"loadtes... | |
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
## Description
<!-- Describe your changes in detail -->
Removed functions that are not used in other files and removed imports that are only referenced by the unused functions.
[crates/router/src/connector/utils.rs](https://github.com/juspay/hyperswitch/blob/3cdb9e174ca384704... | 3cdb9e174ca384704781a4c56e826c3a5e39d295 |
Only removed unused util functions hence no testing required.
| [
"crates/router/src/connector/utils.rs"
] | |
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 |
## Description
Fix the locale handling in the payment and payout links translation functionality to properly support language-location combinations like `es-ES`. Currently, the system is using the full locale value from the `Accept-Language` header without parsing it, causing translations for such locales to fail whe... | 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... | [
"crates/router/locales/en-GB.yml",
"crates/router/locales/fr-BE.yml",
"crates/router/src/core/payment_link/locale.js",
"crates/router/src/services/api/generic_link_response/context.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
this pr aims to fix the stripe bank redirect recurring mandate.
for context, `bancontact` recurring mandates happen via `sepa direct debit` and hence, stripe sends 2 connector mandate ids as shown below:
```json
{
"payment_method": "pm_somevalue_1",
... | 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... | [
"crates/router/src/connector/stripe/transformers.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR contains support for db calls that are used in refunds v2 core flows for non kv config.
There are 2 ways that HS use to interact with DB, using KV and without KV.
In code we represent it by `kv_store` feature flag.
## Motivation and Context
<!--
... | 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... | [
"crates/router/src/db/refund.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Update metadata gives `500` error for other connectors than stripe
Change this to `400`
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't ha... | 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... | [
"crates/router/src/core/payments/flows/update_metadata_flow.rs",
"crates/router/src/core/payments/transformers.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR introduces support for listing refunds in v2 apis.
Available filters for listing are as follows
- `payment_id`: Filter by a specific payment identifier.
- `refund_id`: Filter by a specific refund identifier.
- `limit`: Maximum number of refund rec... | 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... | [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/refunds.rs",
"crates/hyperswitch_domain_models/Cargo.toml",
"crates/hyperswitch_domain_models/src/refunds.rs",
"crates/openapi/src/openapi_v2.rs",
"crates/openapi/src/routes/refunds.rs",
"crates/router/Cargo.toml",
"crates/router/src/core/re... | |
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 |
## Description
<!-- Describe your changes in detail -->
This pull request introduces significant updates to the dynamic routing logic, focusing on enhancing the success-based routing mechanism and improving the integration with the "open router" service. Key changes include the addition of a new helper method, refac... | 18142a4fdb1f81e4b493067b669a68576bac5d08 |
Since the feature cannot be deployed in main pod, this can be tested through custom pod which I can help with
| [
"crates/api_models/src/routing.rs",
"crates/router/src/core/errors.rs",
"crates/router/src/core/payments.rs",
"crates/router/src/core/payments/operations/payment_response.rs",
"crates/router/src/core/payments/routing.rs",
"crates/router/src/core/routing/helpers.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR fixes Facilitapay payment method env that broke WASM.
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommen... | 31e109a9a1367ef53786c146604b31fca69b15ef |
WASM shouldn't break now.
closes #7957
| [
"crates/connector_configs/toml/development.toml",
"crates/connector_configs/toml/production.toml",
"crates/connector_configs/toml/sandbox.toml"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Context
https://github.com/juspay/hyperswitch/pull/7882 accidentally reverted changes made in https://github.com/juspay/hyperswitch/pull/7866, which was a merchant critical PR.
Reason:
- This might have occured due to incorrect resolution of merge conflict... | 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... | [
"crates/router/src/core/payment_methods/cards.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
Move the following connectors from `crates/router` to `crates/hyperswitch_connectors`
- signifyd
- threedsecureio
- wellsfargopayout
- wise
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open is... | 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' \
-... | [
"Cargo.lock",
"crates/hyperswitch_connectors/Cargo.toml",
"crates/hyperswitch_connectors/src/connectors.rs",
"crates/hyperswitch_connectors/src/connectors/signifyd.rs",
"crates/router/src/connector/signifyd/transformers.rs",
"crates/router/src/connector/signifyd/transformers/api.rs",
"crates/hyperswitch... | |
juspay/hyperswitch | juspay__hyperswitch-9023 | Bug: Vault connector changes
Need to implement Vault Retrieve for VGS | diff --git a/config/config.example.toml b/config/config.example.toml
index ab7f0ebdef8..e9e51123925 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -309,7 +309,7 @@ trustpayments.base_url = "https://webservices.securetrading.net/"
trustpay.base_url_bank_redirects = "https://aapi.trustpay.eu... | 2025-04-30T09:54:19Z |
## Description
<!-- Describe your changes in detail -->
- Added Connector changes for VGS
- Implemented `ExternalVaultInsertFlow` and `ExternalVaultRetrieveFlow` for VGS
- This allows Payment methods to be vaulted in VGS when `is_external_vault_enabled` is set to true in profile
- Updated VGS URL in TOML files
... | c90625a4ea163e03895276a04ec3a23d4117413d |
Confirm Request:
```
curl --location 'http://localhost:8080/v2/payments/12345_pay_0198d09ccd8a77729274a5c3858e13f3/confirm-intent' \
--header 'x-profile-id: pro_TVu6gSPZXAVEa2h0JCRe' \
--header 'x-client-secret: cs_0198d09cce0774338628683873a2db9d' \
--header 'Authorization: publishable-key=pk_dev_17e15cb353... | [
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/hyperswitch_connectors/src/connectors/vgs.rs",
"crates/hyperswitch_connectors/src/connecto... | |
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 |
## Description
<!-- Describe your changes in detail -->
Previously, the user's `lineage_context` (userid, org_id, merchant_id, profile_id, role_id, tenant_id) was cached in Redis.
This PR moves the storage and retrieval of `lineage_context` to the PostgreSQL `users` table instead of Redis.
This ensures permanent... | 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" />

#### Test Case 1: Lineage Context Caching on Login
1. Log in as a u... | [
"crates/api_models/src/user/theme.rs",
"crates/common_utils/src/types.rs",
"crates/common_utils/src/types/user.rs",
"crates/common_utils/src/types/user/core.rs",
"crates/common_utils/src/types/theme.rs",
"crates/diesel_models/src/query/user/theme.rs",
"crates/diesel_models/src/schema.rs",
"crates/dies... | |
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 |
## Description
<!-- Describe your changes in detail -->
Add a new route for updating the elimination routing config when it is toggled
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue... | 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... | [
"crates/api_models/src/events/routing.rs",
"crates/api_models/src/routing.rs",
"crates/router/src/core/routing.rs",
"crates/router/src/routes/app.rs",
"crates/router/src/routes/routing.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR changes the way we raise error if something goes wrong with generic filter. Currently we throw not found error which is wrong.
This feature is hard to test on hosted environments, as this requires to make some db changes so that we can get error in g... | 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... | [
"crates/diesel_models/src/query/generics.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR updates all **user-related Redis operations** to consistently use the **global Redis key prefix** (`global:`) instead of environment-specific prefixes like `public:` (V1) or `public_v2:` (V2).
Previously, different deployments used different prefix... | 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... | [
"crates/router/src/db.rs",
"crates/router/src/db/kafka_store.rs",
"crates/router/src/routes/app.rs",
"crates/router/src/services/authentication/blacklist.rs",
"crates/router/src/services/authorization.rs",
"crates/router/src/services/openidconnect.rs",
"crates/router/src/utils/user.rs",
"crates/router... | |
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 |
## 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 algorithms can be authored, activated, and evaluated via Euclid ... | 04dc14a93022d03d74b02ae244ee8bb8afa50c27 |
Here is the complete testing [guidelines](https://docs.google.com/document/d/1xL3EJdMoCLXP5epOeqNsNYvqFqlJyhxss3LahQQ5xGU/edit?usp=sharing).
| [
"api-reference-v2/openapi_spec.json",
"crates/api_models/src/routing.rs",
"crates/diesel_models/src/routing_algorithm.rs",
"crates/diesel_models/src/schema.rs",
"crates/router/src/core/payments/routing.rs",
"crates/router/src/core/payments/routing/utils.rs",
"crates/router/src/core/routing.rs",
"crate... | |
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 |
## Description
<!-- Describe your changes in detail -->
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.
Changes:
In thi... | 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... | [
"crates/api_models/src/open_router.rs",
"crates/api_models/src/payment_methods.rs",
"crates/common_enums/src/enums.rs",
"crates/hyperswitch_domain_models/src/payment_method_data.rs",
"crates/hyperswitch_domain_models/src/payment_methods.rs",
"crates/router/src/core/debit_routing.rs",
"crates/router/src/... | |
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 |
## Description
<!-- Describe your changes in detail -->
This PR modifies critical paths , specifically the `decide_connector` function and the `route_connector_v1_for_payments` function in the payments confirm flow.
These changes are made corresponding to a use case for Narvar. In case the connector specified in st... | 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... | [
"crates/router/src/core/payments.rs"
] | |
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 |
## Description
<!-- Describe your changes in detail -->
In the helper function `validate_payment_method_type_against_payment_method` added `Card` as a valid `PaymentMethodType` when `PaymentMethod` is `Card`
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an... | 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... | [
"crates/router/src/core/payments/helpers.rs"
] | |
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 |
## Description
- This PR adds support for updating the retry Algorithm from Monitoring to Smart , once the threshold is reached
- It also adds support in the process tracker workflow for revenue recovery , to consume schedule time for retry based on different retry algorithms
## Motivation and Context
<!--
... | 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
: Migrate [AdyenPlatform, Ebanx, GPayments, Netcetera, Plaid] from crates/router to crates/hyperswitch_connectors
Migrate connectors form router crate to hyperswitch_connectors crate | diff --git a/Cargo.lock b/Cargo.lock
index 068bb1cecb7..39154406f6e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3877,6 +3877,7 @@ dependencies = [
"strum 0.26.3",
"time",
"unicode-normalization",
+ "unidecode",
"url",
"urlencoding",
"uuid",
@@ -6551,7 +6552,6 @@ dependencies = [
"totp-rs",
"tracing-fut... | 2025-04-28T06:27:15Z |
## Description
<!-- Describe your changes in detail -->
Moving connectors from `crates/router` to `crates/hyperswitch_connectors`
1. adyenplatform
2. ebanx
3. gpayments
4. netcetera
5. plaid
issue: https://github.com/juspay/hyperswitch/issues/7916
## Motivation and Context
<!--
Why is this change req... | 31e109a9a1367ef53786c146604b31fca69b15ef |
**PLAID** REF PR : https://github.com/juspay/hyperswitch/pull/3952
1. create plaid MCA
```sh
curl --location 'http://localhost:8080/account/merchant_1745827786/connectors' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'x-feature: integ-custom' \
--header 'api-ke... | [
"Cargo.lock",
"crates/hyperswitch_connectors/Cargo.toml",
"crates/hyperswitch_connectors/src/connectors.rs",
"crates/router/src/connector/adyenplatform.rs",
"crates/router/src/connector/adyenplatform/transformers.rs",
"crates/router/src/connector/adyenplatform/transformers/payouts.rs",
"crates/hyperswit... | |
juspay/hyperswitch | juspay__hyperswitch-7912 | Bug: [FEATURE] : [CONNECTOR] Add paypal, trustpay, nomupay in feature matrix
Add paypal, trustpay, nomupay in feature matrix | diff --git a/config/config.example.toml b/config/config.example.toml
index 023298e9571..6b10aadfc87 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -703,6 +703,21 @@ duit_now = { country = "MY", currency = "MYR" }
[pm_filters.trustpay]
instant_bank_transfer = { country = "CZ,SK,GB,AT,DE,IT... | 2025-04-27T12:10:53Z |
## Description
<!-- Describe your changes in detail -->
Added paypal, trustpay, nomupay connectors in feature matrix
## Motivation and Context
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.
If you don't have an issue, we'd recommend s... | 288da4e43376f4e94521a9c356c9e890d2bf0405 |
```
curl --location 'http://localhost:8080/feature_matrix' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'api-key: dev_jQNBYCfN5R0473yldj23Yl7HsGbCctexthWkELSAMAGpjCxKAspb2fcQDP1KmMJz'
```
Response:
```
{
"connector_count": 2,
"connectors": [
... | [
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/production.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/hyperswitch_connectors/src/connectors/paypal.rs",
"crates/hyperswitch_connectors/src/conne... | |
juspay/hyperswitch | juspay__hyperswitch-7543 | Bug: add support for cost based debit routing
For every payment that occurs, there are three fees associated with the network:
1. Network Fee
Every network has its own network fee structure, which typically includes both a percentage (% of the amount) and a fixed fee. For each payment, the respective network will c... | diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json
index 76b65a1433e..b475142a570 100644
--- a/api-reference-v2/openapi_spec.json
+++ b/api-reference-v2/openapi_spec.json
@@ -7334,7 +7334,11 @@
"UnionPay",
"Interac",
"RuPay",
- "Maestro"
+ ... | 2025-04-25T13:45:19Z |
## Description
<!-- Describe your changes in detail -->
A debit card can be linked to multiple card networks, with one serving as the primary (international) network and the others as secondary (local) networks. In debit routing, payments will be processed through the local network based on the merchant's requiremen... | 34dd99d8050a84f0478cdb4fa0f0cc83608e52d9 |
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... | [
"api-reference-v2/openapi_spec.json",
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/api_models/src/lib.rs",
"crates/api_models/src/open_router.rs",
"crates/api_models/src/p... | |
juspay/hyperswitch | juspay__hyperswitch-7507 | Bug: Add support for co-badged cards info lookup for debit routing
A debit card can be linked to multiple card networks, with one serving as the primary (international) network and the others as secondary (local) networks. In debit routing, payments will be processed through the local network based on the merchant's... | diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.json
index 76b65a1433e..b475142a570 100644
--- a/api-reference-v2/openapi_spec.json
+++ b/api-reference-v2/openapi_spec.json
@@ -7334,7 +7334,11 @@
"UnionPay",
"Interac",
"RuPay",
- "Maestro"
+ ... | 2025-04-25T13:45:19Z |
## Description
<!-- Describe your changes in detail -->
A debit card can be linked to multiple card networks, with one serving as the primary (international) network and the others as secondary (local) networks. In debit routing, payments will be processed through the local network based on the merchant's requiremen... | 34dd99d8050a84f0478cdb4fa0f0cc83608e52d9 |
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... | [
"api-reference-v2/openapi_spec.json",
"config/config.example.toml",
"config/deployments/integration_test.toml",
"config/deployments/sandbox.toml",
"config/development.toml",
"config/docker_compose.toml",
"crates/api_models/src/lib.rs",
"crates/api_models/src/open_router.rs",
"crates/api_models/src/p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.