repo
stringclasses
1 value
instance_id
stringlengths
22
24
problem_statement
stringlengths
24
24.1k
patch
stringlengths
0
1.9M
test_patch
stringclasses
1 value
created_at
stringdate
2022-11-25 05:12:07
2025-10-09 08:44:51
hints_text
stringlengths
11
235k
base_commit
stringlengths
40
40
test_instructions
stringlengths
0
232k
patch_line_additions
listlengths
0
217
patch_line_deletions
listlengths
0
218
file_extensions
listlengths
0
7
total_file_changes
int64
0
293
juspay/hyperswitch
juspay__hyperswitch-9313
Bug: [BUG] Nuvei 3ds + psync fix ### Bug Description - 3ds transaction done via hyperswitch was not marked as 3ds in nuvei system. Make a successful 3ds transaction and search the connector transaction id in nuvei dashboard , click `linkage` . InitAuth and Auth3d is not seen. ### Expected Behavior Actual 3ds cal...
diff --git a/crates/hyperswitch_connectors/src/connectors/nuvei.rs b/crates/hyperswitch_connectors/src/connectors/nuvei.rs index 259495d0545..9c906abeefc 100644 --- a/crates/hyperswitch_connectors/src/connectors/nuvei.rs +++ b/crates/hyperswitch_connectors/src/connectors/nuvei.rs @@ -53,6 +53,7 @@ use masking::ExposeIn...
2025-09-04T10:06:21Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - 3ds transaction were not actually 3ds transactions in Nuvei...
2edaa6e0578ae8cb6e4b44cc516b8c342262c082
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei.rs", "lines": [ " connectors::nuvei::transformers::{NuveiPaymentsResponse, NuveiTransactionSyncResponse},\n", " let response: NuveiPaymentsResponse = res\n", "impl ConnectorIntegration<Void, PaymentsCancelData, Pa...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei.rs", "lines": [ " let response: nuvei::NuveiPaymentsResponse = res\n", "impl ConnectorIntegration<CompleteAuthorize, CompleteAuthorizeData, PaymentsResponseData>\n", " for Nuvei\n", "{\n", " req...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-9322
Bug: Rename existing RevenueRecoveryRecordBack trait to InvoiceRecordBack After a payment is successful for a invoice, we need to record the invoice as paid with the subscription provider. this implementation is already done for revenue recovery usecase. making it generic so that subscription also can use it
diff --git a/crates/hyperswitch_connectors/src/connectors/chargebee.rs b/crates/hyperswitch_connectors/src/connectors/chargebee.rs index 19ec99fc1d0..5e2e23a8a90 100644 --- a/crates/hyperswitch_connectors/src/connectors/chargebee.rs +++ b/crates/hyperswitch_connectors/src/connectors/chargebee.rs @@ -13,28 +13,28 @@ use...
2025-09-09T10:54:34Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [X] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Make the RevenueRecoveryRecordBack functionality generic to m...
876ea3f61d599a4fdb9e509523619fe4a8c56c61
Only removing the feature flag and renamed it. compilation and PR checks should be sufficient
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/chargebee.rs", "lines": [ "use hyperswitch_domain_models::revenue_recovery;\n", " revenue_recovery::InvoiceRecordBack,\n", " revenue_recovery::InvoiceRecordBackRequest, AccessTokenRequestData,\n", " Pay...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/chargebee.rs", "lines": [ "use hyperswitch_domain_models::{\n", " revenue_recovery, router_flow_types::revenue_recovery::RecoveryRecordBack,\n", " router_request_types::revenue_recovery::RevenueRecoveryRecordBackRequest,\n"...
[ "rs" ]
21
juspay/hyperswitch
juspay__hyperswitch-9297
Bug: [Bug] Update Redis TTL for customer locks after token selection The revenue recovery workflow currently does not update the Redis TTL for a connector customer lock after the decider service selects the best PSP token. This behavior can lead to a customer lock expiring prematurely, which breaks the consistency o...
diff --git a/config/config.example.toml b/config/config.example.toml index b725be102c1..4ce52dfac4f 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -1241,6 +1241,7 @@ initial_timestamp_in_seconds = 3600 # number of seconds added to start job_schedule_buffer_time_in_seconds = 3600 ...
2025-09-04T11:57:18Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR implements an update mechanism for Redis Time-to-Live (...
ea2fd1d4768f83d8564477ef82940a5f33b0e3a1
For testing refer to this : https://github.com/juspay/hyperswitch/pull/8848 System Update the Redis TTL for a connector customer lock after a best Payment Processor Token is selected. Logs - "Connector customer lock TTL update with new expiry time" <img width="356" height="57" alt="Screenshot 2025-09-08 at 11 1...
[ { "file_path": "config/config.example.toml", "lines": [ "redis_ttl_buffer_in_seconds= 300 # buffer time in seconds to be added to redis ttl for Revenue Recovery\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "redis_ttl_buffer_in_seconds=300 # buffer tim...
[ { "file_path": "crates/router/src/core/revenue_recovery.rs", "lines": [ " let new_schedule_time =\n", " base_time.unwrap_or_else(common_utils::date_time::now) + additional_time;\n" ] }, { "file_path": "crates/router/src/core/revenue_recovery/types.rs", "lines": [ ...
[ "toml", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-9309
Bug: FEATURE: [Paysafe] Implement card 3ds flow - Implement card 3ds flow
diff --git a/crates/hyperswitch_connectors/src/connectors/paysafe.rs b/crates/hyperswitch_connectors/src/connectors/paysafe.rs index 64296c2ebe6..8d463966748 100644 --- a/crates/hyperswitch_connectors/src/connectors/paysafe.rs +++ b/crates/hyperswitch_connectors/src/connectors/paysafe.rs @@ -17,15 +17,15 @@ use hypersw...
2025-09-08T16:59:01Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Implement card 3ds flow for Paysafe ### Additional Changes - [ ] This PR modifies the API contract ...
5ab8a27c10786885b91b79fbb9fb8b5e990029e1
Create a card 3ds payment for paysafe ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: _' \ --data '{ "amount": 1500, "currency": "USD", "confirm": true, "capture_method": "automatic", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/paysafe.rs", "lines": [ " Authorize, Capture, CompleteAuthorize, PSync, PaymentMethodToken, PreProcessing,\n", " Session, SetupMandate, Void,\n", " AccessTokenRequestData, CompleteAuthorizeData, Payme...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/paysafe.rs", "lines": [ " Authorize, Capture, PSync, PaymentMethodToken, PreProcessing, Session, SetupMandate,\n", " Void,\n", " AccessTokenRequestData, PaymentMethodTokenizationData, PaymentsAuthoriz...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-9278
Bug: [BUG] payout status is not updated in outgoing webhook ### Bug Description When an incoming webhook request triggers an outgoing webhooks request, it is triggered with a stale status. ### Expected Behavior Outgoing webhooks triggered during incoming webhooks flow must contain the latest status. ### Actual B...
diff --git a/crates/router/src/core/webhooks/incoming.rs b/crates/router/src/core/webhooks/incoming.rs index 4d38ce2ed02..b248955de4d 100644 --- a/crates/router/src/core/webhooks/incoming.rs +++ b/crates/router/src/core/webhooks/incoming.rs @@ -1157,7 +1157,7 @@ async fn payouts_incoming_webhook_flow( ...
2025-09-04T12:28:47Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR fixes the state update for `payout_attempt` where latest status resides. This fixes the bug menti...
5e1fd0b187b99698936a8a0cb0d839a60b830de2
<details> <summary>1. Create a successful payout</summary> cURL curl --location --request POST 'http://localhost:8080/payouts/create' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_o0Eo3tL2RDhcX3AzI9w5G5IguQslT7UDDYHne7W6QqjdBbQboNBTbHhW2ZuHFLIJ' \ --data-...
[ { "file_path": "crates/router/src/core/webhooks/incoming.rs", "lines": [ " let mut payout_data = Box::pin(payouts::make_payout_data(\n", " payout_data.payout_attempt = updated_payout_attempt;\n", " let event_type: Option<enums::EventType> = payout_data.payout_attempt.s...
[ { "file_path": "crates/router/src/core/webhooks/incoming.rs", "lines": [ " let payout_data = Box::pin(payouts::make_payout_data(\n", " let event_type: Option<enums::EventType> = updated_payout_attempt.status.into();\n", " updated_payout_attempt\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9295
Bug: feat(webhooks): Provide outgoing webhook support for revenue recovery Provide outgoing webhook support for revenue recovery. Based on the retry status send out outgoing webhooks to the url in business profile in v2.
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index bb53eb1b6ee..52f75bbe8be 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -6170,6 +6170,11 @@ pub struct PaymentsResponse { #[serde(with = "common_utils::custom_serde::iso8601")] p...
2025-09-07T20:28:56Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR enables outgoing webhook support for revenue recovery. When the retries get succeeded that ar...
cadfcf7c22bfd1124f19e2f1cc1c98c3d152be99
1. create a billing profile with webhook.site url to monitor the webhooks. 2. Create an payment mca using this ``` curl --location 'http://localhost:8080/v2/connector-accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-merchant-id: {{merchant-id}}' --header ...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " /// Time when the payment was last modified\n", " #[schema(example = \"2022-09-10T10:11:12Z\")]\n", " #[serde(with = \"common_utils::custom_serde::iso8601\")]\n", " pub modified_at: PrimitiveDateTime,\n", ...
[ { "file_path": "crates/hyperswitch_domain_models/src/payments.rs", "lines": [ "#[derive(Clone)]\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src/revenue_recovery.rs", "lines": [ "use common_utils::{id_type, types as util_types};\n", " metadata: None,\...
[ "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-9284
Bug: [FEATURE] [ACI] Setup mandate and network token flow added and existing flows fixed Setup mandate and networkToken flow added for ACI connector. While doing payments, we were not validating the capture method in the request payload. Instead, we were directly treating it as automatic capture which was causing ca...
diff --git a/config/config.example.toml b/config/config.example.toml index d2bbb75a04e..b725be102c1 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -541,8 +541,8 @@ wallet.google_pay = { connector_list = "bankofamerica,authorizedotnet,cybersourc bank_redirect.giropay = { connector_list = "g...
2025-08-19T07:22:43Z
## Type of Change - [ ] Bugfix - [ ] New feature - [X] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Summary This PR enhances the ACI connector with comprehensive 3D Secure (3DS) authentication support and modernizes the test suite, porting behavioral improveme...
7355a83ef9316a6cc7f9fa0c9c9aec7397e9fc4b
<details> <summary>1. Cards payment </summary> ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_Tz5ePEgSZ0NRdEOsdx3cloAjMSV3KkPbsWubLbAlSsv0ndwsblQKTkZZMu3332yC' \ --data-raw '{ "amount": 654...
[ { "file_path": "config/config.example.toml", "lines": [ "card.credit.connector_list = \"aci,checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,payp...
[ { "file_path": "config/config.example.toml", "lines": [ "card.credit.connector_list = \"checkout,stripe,adyen,authorizedotnet,cybersource,datatrans,globalpay,worldpay,multisafepay,nmi,nexinets,noon,bankofamerica,braintree,nuvei,payme,wellsfargo,bamboraapac,elavon,fiuu,nexixpay,novalnet,paybox,paypal,x...
[ "toml", "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-9268
Bug: Fix UCS address precedence order for payment method billing addresses ## Problem The current implementation in the UCS (Unified Connector Service) transformers has incorrect precedence order when handling addresses. The unified payment method billing address should take priority over the shipping/billing addre...
diff --git a/crates/router/src/core/unified_connector_service/transformers.rs b/crates/router/src/core/unified_connector_service/transformers.rs index dec4281e7a9..9cc94c4a866 100644 --- a/crates/router/src/core/unified_connector_service/transformers.rs +++ b/crates/router/src/core/unified_connector_service/transformer...
2025-09-03T14:53:29Z
## Summary This PR fixes the billing address precedence order in the UCS (Unified Connector Service) transformers to ensure that unified payment method billing addresses take priority over billing addresses from payment requests. ## Changes - Changed billing address precedence: `unified_payment_method_billing....
4ab54f3c835de59cc098c8518938c746f4895bd1
[ { "file_path": "crates/router/src/core/unified_connector_service/transformers.rs", "lines": [ " shipping_address: shipping,\n", " billing_address: unified_payment_method_billing.or(billing),\n" ] } ]
[ { "file_path": "crates/router/src/core/unified_connector_service/transformers.rs", "lines": [ " shipping_address: shipping.or(unified_payment_method_billing.clone()),\n", " billing_address: billing.or(unified_payment_method_billing),\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9270
Bug: [FEATURE] Map NTID for nuvei Map NTID for Nuvei connector
diff --git a/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs index 791261d9ee0..b5bf5236330 100644 --- a/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/nuvei/tra...
2025-09-03T11:36:44Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Return Network transaction if from connector Response - NOT...
e30842892a48ff6e4bc0e7c0a4990d3e5fc50027
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs", "lines": [ " // NTID\n", " network_txn_id: response\n", " .external_scheme_transaction_id\n", " .as_ref()\n", " .map(|ntid| ntid.clone().expose()),\n"...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs", "lines": [ " network_txn_id: None,\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9258
Bug: [BUG] secure payment links don't render ### Bug Description Secure payment links are not instantiating and rendering the checkout widget. ### Expected Behavior Secure payment links should render the checkout widget. ### Actual Behavior Secure payment links are breaking the functionality. ### Steps To Repr...
diff --git a/crates/router/src/core/payment_link/payment_link_initiate/secure_payment_link_initiator.js b/crates/router/src/core/payment_link/payment_link_initiate/secure_payment_link_initiator.js index c539363c102..3a9e7f60336 100644 --- a/crates/router/src/core/payment_link/payment_link_initiate/secure_payment_link_i...
2025-09-03T10:49:24Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR fixes the bug where the encoded payment link details were being read without decoding them first....
e30842892a48ff6e4bc0e7c0a4990d3e5fc50027
Locally by creating secure payment links. <details> <summary>1. Update allowed domains in payment link config</summary> cURL curl --location --request POST 'https://sandbox.hyperswitch.io/account/merchant_1681193734270/business_profile/pro_E7pM8kGERopEKEhqwfWQ' \ --header 'Content-Type: app...
[ { "file_path": "crates/router/src/core/payment_link/payment_link_initiate/secure_payment_link_initiator.js", "lines": [ " var encodedPaymentDetails = window.__PAYMENT_DETAILS;\n", " var paymentDetails = decodeUri(encodedPaymentDetails);\n" ] } ]
[ { "file_path": "crates/router/src/core/payment_link/payment_link_initiate/secure_payment_link_initiator.js", "lines": [ " var paymentDetails = window.__PAYMENT_DETAILS;\n" ] } ]
[ "js" ]
1
juspay/hyperswitch
juspay__hyperswitch-9264
Bug: [BUG] Add extra field for Cybersource MIT payment for acquirer CMCIC ### Bug Description For acquirer CMCIC, Cybersource MIT payments needs the following field `paymentInformation.card.typeSelectionIndicator` ### Expected Behavior the said field should be present in MIT payments ### Actual Behavior the sai...
diff --git a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs index e39bc64c3f6..c877832521f 100644 --- a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs +++ b/crates/hyperswitch_connectors/src/co...
2025-09-03T13:09:14Z
…IT payments ## Type of Change <!-- Put an `x` in the boxes that apply --> - [X] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description For acquirer CMCIC, Cybersource MIT payments needs the following field `paymentInformati...
04578801b62245144c029accb6de5c23042480cb
<details> <summary>Create MIT for cards via cybersource</summary> **MIT curl** ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_jEdNDCtQGso72keWEtypBWmXAKaYNLmAcTTsutLbPwa8CY4p2I36w4wVkZziDTuK' \ ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "lines": [ "#[derive(Debug, Serialize)]\n", "#[serde(rename_all = \"camelCase\")]\n", "pub struct MandateCard {\n", " type_selection_indicator: Option<String>,\n", "}\n", " ca...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9255
Bug: [FEATURE] [SHIFT4] Pass metadata to connector ### Feature Description Pass metadata to connector Shift4 ### Possible Implementation Pass metadata to connector Shift4 ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a similar issue ### Ha...
diff --git a/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs b/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs index eeaf340e103..98793e691ff 100644 --- a/crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/shift4...
2025-09-03T09:33:08Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Pass metadata to connector Shift4. ### Additional Changes ...
e30842892a48ff6e4bc0e7c0a4990d3e5fc50027
Payment Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_eJHaeshBvRK6V5mOAoloL5aRczu82zuQt41YvafbbOxn5nDxMNIHOWsJ5TDCT8dJ' \ --data-raw '{ "amount": 5556, "currency": "USD", "co...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/shift4/transformers.rs", "lines": [ " fn get_metadata(&self) -> Result<Option<serde_json::Value>, Error>;\n", "\n", " fn get_metadata(\n", " &self,\n", " ) -> Result<Option<serde_json::Value>, error_st...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9257
Bug: [BUG] Enable nuvei applepay googlepay mandate features in sbx , prod and integ Update .toml files for sbx, prod and integ to enable mandates for applae pay and google_pay
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml index 0867ca7014a..15f3233e175 100644 --- a/config/deployments/integration_test.toml +++ b/config/deployments/integration_test.toml @@ -233,9 +233,9 @@ bank_debit.sepa = { connector_list = "gocardless,adyen,stripe,deutscheb...
2025-09-03T09:38:46Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add apple_pay and google_pay mandate support for nuvei in integ...
e30842892a48ff6e4bc0e7c0a4990d3e5fc50027
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "wallet.apple_pay.connector_list = \"stripe,adyen,cybersource,noon,bankofamerica,nexinets,novalnet,nuvei,authorizedotnet,wellsfargo\"\n", "wallet.google_pay.connector_list = \"stripe,adyen,cybersource,bankofamerica,noon,global...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "wallet.apple_pay.connector_list = \"stripe,adyen,cybersource,noon,bankofamerica,nexinets,novalnet,authorizedotnet,wellsfargo\"\n", "wallet.google_pay.connector_list = \"stripe,adyen,cybersource,bankofamerica,noon,globalpay,mu...
[ "toml" ]
4
juspay/hyperswitch
juspay__hyperswitch-9250
Bug: fix(users): Add Bad request response in openidconnect Currently, when users provide an invalid or expired code during SSO login, the system returns a 500 response. This is misleading, as the issue is with the client input rather than a server error. This change introduces a proper 400 BadRequest response to bet...
diff --git a/crates/router/src/services/openidconnect.rs b/crates/router/src/services/openidconnect.rs index ca20b021a56..69b890d657e 100644 --- a/crates/router/src/services/openidconnect.rs +++ b/crates/router/src/services/openidconnect.rs @@ -76,7 +76,14 @@ pub async fn get_user_email_from_oidc_provider( .ex...
2025-09-02T13:29:23Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Added a BadRequest response for SSO login when an invalid authorization code is provided. <!-- Describe ...
e30842892a48ff6e4bc0e7c0a4990d3e5fc50027
```sh curl --location '<BASE URL>/user/oidc' \ --header 'Content-Type: application/json' \ --data '{ "state": "<correct state>", "code": "<wrong code>" }' ``` This should give `400` instead of 500.
[ { "file_path": "crates/router/src/services/openidconnect.rs", "lines": [ " .map_err(|e| match e {\n", " oidc::RequestTokenError::ServerResponse(resp)\n", " if resp.error() == &oidc_core::CoreErrorResponseType::InvalidGrant =>\n", " {\n", ...
[ { "file_path": "crates/router/src/services/openidconnect.rs", "lines": [ " .change_context(UserErrors::InternalServerError)\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9240
Bug: [BUG] MIT for migrated wallet tokens does not go through ### Bug Description Creating MIT transactions for migrated wallets leads to unexpected behavior - <img width="1282" height="513" alt="Image" src="https://github.com/user-attachments/assets/cc889293-3916-4f0f-b2a8-8f034a373fee" /> Transaction is incorre...
diff --git a/crates/router/src/core/payments/operations/payment_confirm.rs b/crates/router/src/core/payments/operations/payment_confirm.rs index 0e343a437b6..bcd71636f05 100644 --- a/crates/router/src/core/payments/operations/payment_confirm.rs +++ b/crates/router/src/core/payments/operations/payment_confirm.rs @@ -662...
2025-09-02T09:51:17Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR updates the BIN lookup override logic in payment transf...
10cf161d14810cc9c6320933909e9cd3bfdc41ca
Locally <details> <summary>Run wallet migration</summary> cURL curl --location --request POST 'http://localhost:8080/payment_methods/migrate-batch' \ --header 'api-key: test_admin' \ --form 'merchant_id="merchant_1756795715"' \ --form 'merchant_connector_ids="mca_6wrjYYbE1zr...
[ { "file_path": "crates/router/src/core/payments/operations/payment_confirm.rs", "lines": [ " payment_method,\n" ] }, { "file_path": "crates/router/src/core/payments/operations/payment_create.rs", "lines": [ " payment_method,\n" ] }, { "file_path"...
[ { "file_path": "crates/router/src/core/payments/transformers.rs", "lines": [ "impl ForeignFrom<(Self, Option<&api_models::payments::AdditionalPaymentData>)>\n", " for Option<enums::PaymentMethodType>\n", " fn foreign_from(req: (Self, Option<&api_models::payments::AdditionalPaymentDat...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-9128
Bug: [FEATURE] allow wallet data migration ### Feature Description Currently, migration API is card-centric and performs validation assuming all the entries are for migrating cards. These validations make the wallet migration fail. ### Possible Implementation Make card expiry validation optional per payment met...
diff --git a/crates/payment_methods/src/core/migration/payment_methods.rs b/crates/payment_methods/src/core/migration/payment_methods.rs index 5c30698f615..494e1987e21 100644 --- a/crates/payment_methods/src/core/migration/payment_methods.rs +++ b/crates/payment_methods/src/core/migration/payment_methods.rs @@ -51,8 +5...
2025-09-01T11:38:08Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR updates the migration flow around card validation to skip card expiry validation for `PayPal` and...
c02d8b9ba9e204fa163b61c419811eaa65fdbcb4
Performing PayPal migration without specifying card details. <details> <summary>Run migration</summary> cURL curl --location --request POST 'http://localhost:8080/payment_methods/migrate-batch' \ --header 'api-key: test_admin' \ --form 'merchant_id="merchant_1756723897"' \ -...
[ { "file_path": "crates/payment_methods/src/core/migration/payment_methods.rs", "lines": [ " let card_bin_details = populate_bin_details_for_masked_card(\n", " card_details,\n", " &*state.store,\n", " req.payment_method_type.as_ref(),\n", " )\n", ...
[ { "file_path": "crates/payment_methods/src/core/migration/payment_methods.rs", "lines": [ " let card_bin_details =\n", " populate_bin_details_for_masked_card(card_details, &*state.store).await?;\n", " migration::validate_card_expiry(&card_details.card_exp_month, &card_details....
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9288
Bug: Updated openapi spec to include labels to wallet data Updated openapi spec to include labels to wallet data
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 34a8beee16f..7f0c797a151 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -3816,73 +3816,108 @@ impl GetAddressFromPaymentMethodData for BankDebitBilling { #[derive(Eq, PartialEq, Clone, De...
2025-09-04T13:20:49Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Updated openapi spec added labels to wallet data ### Additio...
5e1fd0b187b99698936a8a0cb0d839a60b830de2
<img width="641" height="637" alt="image" src="https://github.com/user-attachments/assets/c4d2f2a3-fb7c-46f7-98ed-01e8004d89d9" />
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " /// The wallet data for Ali Pay HK redirect\n", " #[schema(title = \"AliPayHkRedirect\")]\n", " AliPayHkRedirect(AliPayHkRedirection),\n", " #[schema(title = \"AliPayQr\")]\n", " #[schema(title = \"...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ " /// The wallet data for Ali Pay HK redirect\n", " AliPayHkRedirect(AliPayHkRedirection),\n", " /// The wallet data for Bluecode QR Code Redirect\n", " BluecodeRedirect {},\n", " /// The wallet data ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9129
Bug: [FEATURE] Checkout: Add Google Pay Predecrypt Flow ### Feature Description Add Google Pay Predecrypt Flow in Checkout ### Possible Implementation Add Google Pay Predecrypt Flow in Checkout ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find ...
diff --git a/config/config.example.toml b/config/config.example.toml index b69f959fbe3..cc3468029e4 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -475,7 +475,7 @@ force_cookies = true # Whether to use only cookies for JWT extra #tokenization configuration which describe to...
2025-09-01T11:34:56Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/9129) ## Description <!-- Describe your changes in d...
b26e845198407f3672a7f80d8eea670419858e0e
1. Payments - Create Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_lCkY35u2evZqwny1tXdtyZuu7VufIiJjFTJhuI0kMJAP8RL9XmyomvPqQDBzDvo1' \ --data-raw '{ "amount": 7445, "curren...
[ { "file_path": "config/config.example.toml", "lines": [ "checkout = { long_lived_token = false, payment_method = \"wallet\", apple_pay_pre_decrypt_flow = \"network_tokenization\",google_pay_pre_decrypt_flow = \"network_tokenization\" }\n" ] }, { "file_path": "config/deployments/integration...
[ { "file_path": "config/config.example.toml", "lines": [ "checkout = { long_lived_token = false, payment_method = \"wallet\", apple_pay_pre_decrypt_flow = \"network_tokenization\" }\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "checkout = { long_li...
[ "toml", "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-9120
Bug: [BUG] Setup fail : migration_runner exits with code 1 during standalone setup ### Bug Description While setting up Hyperswitch locally using the scripts/setup.sh script, the setup consistently fails during the migration_runner step. The database (pg) and Redis services start successfully and report as Healt...
diff --git a/.gitattributes b/.gitattributes index 176a458f94e..d7ed342927a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1,2 @@ * text=auto +*.patch text eol=lf \ No newline at end of file
2025-09-10T06:06:07Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR adds the following rule to `.gitattributes` to ensure...
2edaa6e0578ae8cb6e4b44cc516b8c342262c082
* Applied the change on a Windows environment with `core.autocrlf=true` and confirmed `.patch` files now use `\n` instead of `\r\n`. * Ran `scripts/setup.sh` and verified that the migration runner no longer exits with code 1. * Provided the `git checkout -- <patch>` fix to confirm re-checkout resets line endings to...
[ { "file_path": ".gitattributes", "lines": [ "*.patch text eol=lf\n" ] } ]
[]
[ "gitattributes" ]
1
juspay/hyperswitch
juspay__hyperswitch-9109
Bug: [FEAT: CONNECTOR] [PAYLOAD] Add setup mandate support ```sh curl --location 'https://api.payload.com/transactions' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Basic apiKey' \ --data-urlencode 'amount=0' \ --data-urlencode 'type=payment' \ --data-urlencode 'payment_met...
diff --git a/crates/hyperswitch_connectors/src/connectors/payload.rs b/crates/hyperswitch_connectors/src/connectors/payload.rs index 792fa493c4d..3967736fd06 100644 --- a/crates/hyperswitch_connectors/src/connectors/payload.rs +++ b/crates/hyperswitch_connectors/src/connectors/payload.rs @@ -33,7 +33,7 @@ use hyperswit...
2025-08-29T19:23:50Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [x] CI/CD ## Description <!-- Describe your changes in detail --> this pr introduces 0 dollar mandate (setup mandate) for paylo...
8ce36a2fd513034755a1bf1aacbd3210083e07c9
Payment Method Id: <details> <summary>CIT</summary> ```sh curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_uGs7ayYh5hoENIMQ43lMkQGC2i863OXlIg5XhqxcyfaKjNYcOtUv1YRrUTYuD1WW' \ --data-raw '{ "cur...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/payload.rs", "lines": [ " PaymentsSyncRouterData, RefundSyncRouterData, RefundsRouterData, SetupMandateRouterData,\n", " types::{self, PaymentsVoidType, Response, SetupMandateType},\n", " fn get_headers(\n", " ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/payload.rs", "lines": [ " PaymentsSyncRouterData, RefundSyncRouterData, RefundsRouterData,\n", " types::{self, PaymentsVoidType, Response},\n", " fn build_request(\n", " _req: &RouterData<SetupMandate, S...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-9139
Bug: feat(revenue_recovery): add support for data migration from merchant csv to Redis
diff --git a/Cargo.lock b/Cargo.lock index 196c7b9820b..82373eafbee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -459,6 +459,7 @@ dependencies = [ "common_enums", "common_types", "common_utils", + "csv", "deserialize_form_style_query_parameter", "error-stack 0.4.1", "euclid", @@ -470,6 +471,7 @@ dependencies...
2025-09-01T20:39:10Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> The format of csv:- <img width="1720" height="33" alt="Screens...
fde51e17d44e9feea3cc5866e0692a5c9adb1975
cURL:- ``` curl --location 'http://localhost:8080/recovery/data-backfill' \ --header 'Authorization: api_key =' \ --header 'x-profile-id: pro_PljcGfk8IckJFT1WdFsn' \ --header 'api-key:' \ --form 'file=@"/Users/aditya.c/Downloads/_first_100_rows.csv"' ``` Router log:- <img width="1064" height="747" alt="Scr...
[ { "file_path": "Cargo.lock", "lines": [ " \"csv\",\n", " \"tempfile\",\n" ] }, { "file_path": "crates/api_models/Cargo.toml", "lines": [ "v2 = [\"common_types/v2\", \"common_utils/v2\", \"tokenization_v2\", \"dep:reqwest\", \"revenue_recovery\"]\n", "revenue_recovery ...
[ { "file_path": "crates/api_models/Cargo.toml", "lines": [ "v2 = [\"common_types/v2\", \"common_utils/v2\", \"tokenization_v2\", \"dep:reqwest\"]\n", "revenue_recovery = []\n" ] }, { "file_path": "crates/router/src/core/revenue_recovery/types.rs", "lines": [ " // ...
[ "toml", "lock", "rs" ]
14
juspay/hyperswitch
juspay__hyperswitch-9247
Bug: [FEATURE]:[PAYSAFE] Integrate no 3ds card Integrate Paysafe connector - No 3ds Cards Flows - Payment - Psync - Capture - Void - Refund - Refund Sync
diff --git a/config/deployments/production.toml b/config/deployments/production.toml index 20040502e11..da17d2d3ff0 100644 --- a/config/deployments/production.toml +++ b/config/deployments/production.toml @@ -117,7 +117,7 @@ payload.base_url = "https://api.payload.com" payme.base_url = "https://live.payme.io/" payone...
2025-09-01T09:55:52Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Integrate Paysafe connector - No 3ds Cards Flows - Payment - Psync - Capture - Void - Refund - Re...
7ad5cd5531eee612d72c938f324c08682359a313
1. Create MCA for Paysafe connector ``` curl --location 'http://localhost:8080/account/merchant_1756845023/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: _' \ --data '{ "connector_type": "payment_processor", "connector_name": "paysafe",...
[ { "file_path": "config/deployments/production.toml", "lines": [ "paysafe.base_url = \"https://api.paysafe.com/paymenthub/\"\n" ] }, { "file_path": "crates/common_enums/src/connector_enums.rs", "lines": [ " Paysafe,\n", " Paysafe,\n", " | Self::Paysafe...
[ { "file_path": "config/deployments/production.toml", "lines": [ "paysafe.base_url = \"https://api.test.paysafe.com/paymenthub/\"\n" ] }, { "file_path": "crates/connector_configs/toml/development.toml", "lines": [ "[paysafe.connector_auth.HeaderKey]\n", "api_key = \"API Key\...
[ "toml", "rs" ]
17
juspay/hyperswitch
juspay__hyperswitch-9107
Bug: add configs for Calculate job
diff --git a/config/config.example.toml b/config/config.example.toml index e6bbef7fddf..0d5eb5f4fa3 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -1203,7 +1203,10 @@ max_retries_per_day = 20 max_retry_count_for_thirty_day = 20 [revenue_recovery.recovery_timestamp] # Timestamp configura...
2025-08-29T11:47:48Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add configs for calculate job ### Additional Changes - [ ] This PR modifie...
8cfa966d34e914c8df06f000b59fdad53d3f9902
[ { "file_path": "config/config.example.toml", "lines": [ "initial_timestamp_in_seconds = 3600 # number of seconds added to start time for Decider service of Revenue Recovery\n", "job_schedule_buffer_time_in_seconds = 3600 # buffer time in seconds to schedule the job for Revenue Recove...
[ { "file_path": "config/config.example.toml", "lines": [ "initial_timestamp_in_hours = 1 # number of hours added to start time for Decider service of Revenue Recovery\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "initial_timestamp_in_hours = 1...
[ "toml", "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-9103
Bug: [BUG] UCS PSync call fails for Cashtocode ### Bug Description Cashtocode does not support PSync. When a PSync call is processed via Hyperswitch, the RouterData remains unchanged (payment status is not modified). However, when the same PSync call goes via UCS, UCS returns an error response. This causes incon...
diff --git a/config/config.example.toml b/config/config.example.toml index 0d5eb5f4fa3..dcf5bb24fb6 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -1173,6 +1173,7 @@ url = "http://localhost:8080" # Open Router URL base_url = "http://localhost:8000" # Unified Connector Servic...
2025-08-29T07:07:24Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Cashtocode does not support PSync. When a PSync call is proc...
971e17e0f3f8db7ec134b55c786ee1c7429430cd
Make a evoucher payment through UCS for Cashtocode. <details> <summary>Enable Payments via UCS</summary> ```sh curl --location 'http://localhost:8080/configs/' \ --header 'Content-Type: application/json' \ --header 'api-key: ' \ --header 'x-tenant-id: public' \ --data '{ "key": "ucs_rollout_config_...
[ { "file_path": "config/config.example.toml", "lines": [ "ucs_psync_disabled_connectors = \"cashtocode\" # Comma-separated list of connectors to disable UCS PSync call\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "ucs_psync_disabled_connectors = \"c...
[ { "file_path": "crates/router/src/core/payments/flows/psync_flow.rs", "lines": [ "use std::collections::HashMap;\n" ] } ]
[ "toml", "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-9116
Bug: Connector changes for 3ds in v2 In v2, the `PreProcessing` and `CompleteAuthorize` flows will not be present. We will introduce new flows `PreAuthenticate`, `Authenticate` and `PostAuthenticate` to better represent the domain.
diff --git a/crates/hyperswitch_connectors/src/connectors/cybersource.rs b/crates/hyperswitch_connectors/src/connectors/cybersource.rs index 0a1061e2c15..6b610c32912 100644 --- a/crates/hyperswitch_connectors/src/connectors/cybersource.rs +++ b/crates/hyperswitch_connectors/src/connectors/cybersource.rs @@ -21,21 +21,2...
2025-08-31T00:39:56Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Add `PreAuthenticate`, `Authenticate` and `PostAuthenticate...
8ce36a2fd513034755a1bf1aacbd3210083e07c9
This PR only adds the code changes without actually wiring them to APIs, so it can't be tested as is. A separate PR will add new endpoints that use these flows, they will be tested there.
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/cybersource.rs", "lines": [ " Authenticate, PostAuthenticate, PreAuthenticate, PreProcessing,\n", " PaymentMethodTokenizationData, PaymentsAuthenticateData, PaymentsAuthorizeData,\n", " PaymentsCancelData, Pa...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/cybersource.rs", "lines": [ " PreProcessing,\n", " PaymentMethodTokenizationData, PaymentsAuthorizeData, PaymentsCancelData,\n", " PaymentsCaptureData, PaymentsIncrementalAuthorizationData, PaymentsPreProcess...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-9092
Bug: Remove delete_merchant call from DE
diff --git a/crates/router/src/core/admin.rs b/crates/router/src/core/admin.rs index 7d625a78396..3e41150e05a 100644 --- a/crates/router/src/core/admin.rs +++ b/crates/router/src/core/admin.rs @@ -1220,25 +1220,6 @@ pub async fn merchant_account_delete( is_deleted = is_merchant_account_deleted && is_merchant_k...
2025-08-28T08:21:26Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description When deleting a merchant account, the code previously included a direct call to the **Decision Engine (DE...
26930a47e905baf647f218328e81529951d4f563
**Curls and Responses** merchant_create ``` curl --location 'http://localhost:8080/accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' \ --data-raw '{ "merchant_id": "merchant_1756372072", "locker_id": "m0010", "merchant_name":...
[]
[ { "file_path": "crates/router/src/core/admin.rs", "lines": [ " // Call to DE here\n", " #[cfg(all(feature = \"dynamic_routing\", feature = \"v1\"))]\n", " {\n", " if state.conf.open_router.dynamic_routing_enabled && is_deleted {\n", " merchant_account...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9097
Bug: Subscription Create to return client secret and create payment intent automatically
diff --git a/crates/api_models/src/lib.rs b/crates/api_models/src/lib.rs index 3b343459e9e..7c48d626f2d 100644 --- a/crates/api_models/src/lib.rs +++ b/crates/api_models/src/lib.rs @@ -42,6 +42,8 @@ pub mod recon; pub mod refunds; pub mod relay; pub mod routing; +#[cfg(feature = "v1")] +pub mod subscription; pub mo...
2025-08-31T23:26:42Z
## Summary Add **Subscriptions API (v1/OLAP)** entrypoint to create a _subscription intent_ and optionally create/attach a customer, returning a `client_secret` and basic subscription payload. - New route: `POST /subscription/create` (behind `olap` + `v1`) - Creates a `subscription` row (using existing table) an...
85bc733d5b03df4cda4d2a03aa8362a4fd1b14d9
[ { "file_path": "crates/api_models/src/lib.rs", "lines": [ "#[cfg(feature = \"v1\")]\n", "pub mod subscription;\n" ] }, { "file_path": "crates/api_models/src/subscription.rs", "lines": [ "use common_utils::events::ApiEventMetric;\n", "use masking::Secret;\n", "us...
[ { "file_path": "crates/diesel_models/src/query/subscription.rs", "lines": [ " subscription_id: String,\n", " .and(dsl::subscription_id.eq(subscription_id.to_owned())),\n", " subscription_id: String,\n", " dsl::subscription_id\n", " ...
[ "sql", "rs" ]
21
juspay/hyperswitch
juspay__hyperswitch-9098
Bug: Subscription table and core change
diff --git a/crates/diesel_models/src/lib.rs b/crates/diesel_models/src/lib.rs index 246807a041a..caf979b2c5f 100644 --- a/crates/diesel_models/src/lib.rs +++ b/crates/diesel_models/src/lib.rs @@ -44,6 +44,7 @@ pub mod relay; pub mod reverse_lookup; pub mod role; pub mod routing_algorithm; +pub mod subscription; pu...
2025-09-01T13:07:55Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ### Additional Changes - [ ] This PR modifies the API contract - [x] This PR modifies the database schema - [ ] Th...
e30842892a48ff6e4bc0e7c0a4990d3e5fc50027
[ { "file_path": "crates/diesel_models/src/lib.rs", "lines": [ "pub mod subscription;\n" ] }, { "file_path": "crates/diesel_models/src/query.rs", "lines": [ "pub mod subscription;\n" ] }, { "file_path": "crates/diesel_models/src/query/subscription.rs", "lines": [ ...
[ { "file_path": "crates/router/src/types/storage.rs", "lines": [ " unified_translations::*, user::*, user_authentication_method::*, user_role::*,\n" ] } ]
[ "sql", "rs" ]
12
juspay/hyperswitch
juspay__hyperswitch-9078
Bug: (connector): [Netcetera] Fix message_extension field in Netcetera Response ### Bug Description Currently we are not recieving field **message_extension** in Netcetera's authentication response since the struct is incorrectly declared in the transformers file. **Current structure** ``` NetceteraAuthenticatio...
diff --git a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs b/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs index 7427cd8cd05..0c12d7415c3 100644 --- a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs +++ b/crates/hyperswitch_connectors/src/connecto...
2025-08-28T11:21:17Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [X] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR introduces the following struct fix for netcetera authentication response since `message_extensio...
26930a47e905baf647f218328e81529951d4f563
`message_extension` field for Netcetera's authentication response is only available in prod
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs", "lines": [ " .authentication_response\n", " .message_extension\n", " pub message_extension: Option<serde_json::Value>,\n" ] } ]
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs", "lines": [ " .authentication_request\n", " .and_then(|req| req.message_extension.as_ref())\n", " pub message_extension: Option<serde_json::Value>,\n" ] } ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9085
Bug: [FEATURE] NTID Support + googlepay & applepay mandate support ### Feature Description - Add NTID proxy support for nuvei. ( NOTE: Nuvei is not responding with NTID as of now hence we cant make ntid originated flow via nuvei to other connector. We are verifying NTID originated from other connector through n...
diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.toml index 21ac732394f..482da1feca0 100644 --- a/config/deployments/integration_test.toml +++ b/config/deployments/integration_test.toml @@ -209,9 +209,9 @@ bank_debit.sepa = { connector_list = "gocardless,adyen" } card.credit....
2025-08-29T04:32:45Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> 1. Add NTID proxy support for nuvei. ( NOTE: Nuvei is not respo...
9f0cd51cabb281de82b00734b532fea3cf6205fe
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "wallet.apple_pay.connector_list = \"adyen,cybersource,bankofamerica,novalnet,nuvei,authorizedotnet\"\n", "wallet.google_pay.connector_list = \"adyen,cybersource,bankofamerica,novalnet,nuvei,authorizedotnet\"\n", "connec...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "wallet.apple_pay.connector_list = \"adyen,cybersource,bankofamerica,novalnet,authorizedotnet\"\n", "wallet.google_pay.connector_list = \"adyen,cybersource,bankofamerica,novalnet,authorizedotnet\"\n", "connector_list = \...
[ "toml", "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-9101
Bug: Gift Card Balance check API for split payments We need to add an API to check balance for gift card. This API will be called by the SDK and based on the gift card balance and transaction amount, we will collect either only gift card details or gift card details + another payment method
diff --git a/crates/api_models/src/events/payment.rs b/crates/api_models/src/events/payment.rs index 2571ca53816..8a0af806334 100644 --- a/crates/api_models/src/events/payment.rs +++ b/crates/api_models/src/events/payment.rs @@ -181,6 +181,13 @@ impl ApiEventMetric for PaymentsCreateIntentRequest { } } +#[cfg(f...
2025-08-29T09:47:19Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Added `check-gift-card-balance` API - Added `GiftCardBalance...
f3ab3d63f69279af9254f15eba5654c0680a0747
1. Create-Intent Call 2. PML for payments call 3. Request: ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_019937e3515f7462b97fe6f5f6901191/check-gift-card-balance' \ --header 'api-key: dev_vzsdTpwwx2h18nUXDFGPaIJmPifOT7zsX9DkCIA3FZQyJgny7c7MrV6RTdgStgOB' \ --header 'Content-Type: applicati...
[ { "file_path": "crates/api_models/src/events/payment.rs", "lines": [ "#[cfg(feature = \"v2\")]\n", "impl ApiEventMetric for payments::GiftCardBalanceCheckResponse {\n", " fn get_api_event_type(&self) -> Option<ApiEventsType> {\n", " None\n", " }\n", "}\n", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyen.rs", "lines": [ " Accept, Defend, Evidence, Retrieve, Upload,\n", " PaymentMethodTokenizationData, PaymentsAuthorizeData, PaymentsCancelData,\n", " PaymentsCaptureData, PaymentsPreProcessingData, Paymen...
[ "rs" ]
26
juspay/hyperswitch
juspay__hyperswitch-9099
Bug: Subscription confirm API
diff --git a/crates/api_models/src/subscription.rs b/crates/api_models/src/subscription.rs index 7dff21205a2..4ed14a9c64e 100644 --- a/crates/api_models/src/subscription.rs +++ b/crates/api_models/src/subscription.rs @@ -1,7 +1,13 @@ -use common_utils::events::ApiEventMetric; +use common_types::payments::CustomerAccept...
2025-09-10T15:31:58Z
This pull request introduces a new subscription feature to the codebase, adding comprehensive support for subscription management via new API models, endpoints, and supporting logic. The changes include new data models, API routes, core business logic for creating and confirming subscriptions, and integration with cust...
b26e845198407f3672a7f80d8eea670419858e0e
1. create a customer ``` curl --location 'http://localhost:8080/customers' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_Ske75Nx2J7qtHsP8cc7pFx5k4dccYBedM6UAExaLOdHCkji3uVWSqfmZ0Qz0Tnyj' \ --data-raw '{ "email": "guest@example.com", "name": ...
[ { "file_path": "crates/api_models/src/subscription.rs", "lines": [ "use common_types::payments::CustomerAcceptance;\n", "use common_utils::{errors::ValidationError, events::ApiEventMetric, types::MinorUnit};\n", "use crate::{\n", " enums as api_enums,\n", " payments::{Add...
[ { "file_path": "crates/api_models/src/subscription.rs", "lines": [ "use common_utils::events::ApiEventMetric;\n", "/// - `InActive`: Subscription is inactive (e.g., cancelled or expired).\n" ] }, { "file_path": "crates/diesel_models/src/invoice.rs", "lines": [ " id: comm...
[ "sql", "rs" ]
20
juspay/hyperswitch
juspay__hyperswitch-9072
Bug: [BUG] Additional amount gets added again during incremental authorization ### Bug Description Additional amount gets added again during incremental authorization ### Expected Behavior Additional amount should get added once only during payments-create call ### Actual Behavior Additional amount gets added a...
diff --git a/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs b/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs index 4d1ae8bb920..c1ed78b5773 100644 --- a/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs +++ b/crates/hyperswitch_domain_models/src/payments/payment_attemp...
2025-08-27T16:11:09Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/9072) ## Description <!-- Describe your changes in d...
cf64d2a9dcef422e7d080e21a7e8644694337a51
Postman Test 1. Payments - Create Call (with Shipping Cost): Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_LrNckNcOPFASn7VpEoEhyyiRB48cyo9t1csS7YCdWl3jXZgegV7BLdyIZi0ZrS6Z' \ --da...
[ { "file_path": "crates/hyperswitch_domain_models/src/payments/payment_attempt.rs", "lines": [ " pub fn get_additional_amount(&self) -> MinorUnit {\n", " self.get_total_amount() - self.get_order_amount()\n", " }\n", "\n" ] }, { "file_path": "crates/router/src/...
[ { "file_path": "crates/router/src/core/payments/operations/payment_response.rs", "lines": [ " incremental_authorization_details.total_amount,\n", " amount: incremental_authorization_details.total_amount,\n" ] } ]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-9074
Bug: Batch update payment methods API We need to make update payment methods API which can update the fields of the records in payment methods table. It will consume a CSV file which will have batch update entries. Currently it should only update connector_mandate_id, network_transaction_id and mandate_status.
diff --git a/crates/api_models/src/payment_methods.rs b/crates/api_models/src/payment_methods.rs index 135e0ddc248..5803a5c6876 100644 --- a/crates/api_models/src/payment_methods.rs +++ b/crates/api_models/src/payment_methods.rs @@ -285,6 +285,14 @@ pub struct PaymentMethodMigrateResponse { pub network_transaction...
2025-08-28T05:46:42Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> We need to make update payment methods API which can update the...
10cf161d14810cc9c6320933909e9cd3bfdc41ca
``` curl --location 'http://localhost:8080/payment_methods/update-batch' \ --header 'api-key: test_admin' \ --form 'file=@"/Users/mrudul.vajpayee/Downloads/update_sample.csv"' \ --form 'merchant_id="merchant_1756355489"' ``` Sample output: ``` [ { "payment_method_id": "pm_RsWnXeiOhlaVseKdk0Mm", ...
[ { "file_path": "crates/api_models/src/payment_methods.rs", "lines": [ "#[derive(Debug, serde::Serialize, ToSchema)]\n", "pub struct PaymentMethodRecordUpdateResponse {\n", " pub payment_method_id: String,\n", " pub status: common_enums::PaymentMethodStatus,\n", " pub n...
[ { "file_path": "crates/hyperswitch_domain_models/src/payment_methods.rs", "lines": [ "use diesel_models::{enums as storage_enums, PaymentMethodUpdate};\n" ] }, { "file_path": "crates/router/src/routes/payment_methods.rs", "lines": [ " payment_methods::{self as payment_meth...
[ "rs" ]
9
juspay/hyperswitch
juspay__hyperswitch-9067
Bug: Use SignatureKey as auth_type for VGS connector We need to collect a 3rd key (vault_id) apart from `username` and `password` in case of VGS for SDK use case
diff --git a/crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs b/crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs index 4915e2da400..4f996c2ffbe 100644 --- a/crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/vgs/transformer...
2025-08-26T11:35:27Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Change VGS auth type from BodyKey to SignatureKey ### Addi...
30925ca5dd51be93e33ac4492b85c2322263b3fc
Request: ``` curl --location 'http://localhost:8080/v2/connector-accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-merchant-id: cloth_seller_v2_WmQmWko8QabakxqCypsz' \ --header 'x-profile-id: pro_vnTuyThRZPNGRWjIHrIt' \ --header 'Authorization: admin-...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs", "lines": [ " // vault_id is used in sessions API\n", " pub(super) _vault_id: Secret<String>,\n", " ConnectorAuthType::SignatureKey {\n", " api_key,\n", " ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs", "lines": [ " ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self {\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9065
Bug: [FEATURE] Add payment type to Get Intent Response (v2) ### Feature Description We need to return `payment_type` in `Get Intent`. Required by SDK ### Possible Implementation Add a field `payment_type` to Get Intent Response ### Have you spent some time checking if this feature request has been raised before?...
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 5660819cea8..fefbbed0f03 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -654,6 +654,10 @@ pub struct PaymentsIntentResponse { /// Whether to perform external authentication (if applic...
2025-08-26T11:00:47Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Add `payment_type` to Payments Get Intent response ### Add...
30925ca5dd51be93e33ac4492b85c2322263b3fc
Request: ``` curl --location 'http://localhost:8080/v2/payments/create-intent' \ --header 'api-key: dev_5DkqRwXafcKhIFXyzwGtSjrnqsQuFWELuWJsepMgoRrjY1AxF7lhtNGeeja9BEHt' \ --header 'Content-Type: application/json' \ --header 'x-profile-id: pro_RAH6QGkLhuQfmi97QhPZ' \ --header 'Authorization: api-key=dev_5DkqR...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ "\n", " /// The type of the payment that differentiates between normal and various types of mandate payments\n", " #[schema(value_type = PaymentType)]\n", " pub payment_type: api_enums::PaymentType,\n" ] },...
[]
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-9063
Bug: Change Underscore(_) to hyphen(-) in payment link locale. Change Underscore(_) to hyphen(-) in payment link locale.
diff --git a/crates/router/src/core/payment_link/locale.js b/crates/router/src/core/payment_link/locale.js index 1b2d5c4108b..46103ea9fc5 100644 --- a/crates/router/src/core/payment_link/locale.js +++ b/crates/router/src/core/payment_link/locale.js @@ -3,11 +3,11 @@ The languages supported by locale.js are: 1) Englis...
2025-08-26T10:04:02Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Change Underscore(_) to hyphen(-) in payment link locale accord...
8446ffbf5992a97d79d129cade997effc60fcd85
``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: **' \ --header 'Accept-Language: zh-hant' \ --data '{ "amount": 10, "setup_future_usage": "off_session", "currency": "EUR", "payment_lin...
[ { "file_path": "crates/router/src/core/payment_link/locale.js", "lines": [ " 4) British English (en-gb)\n", " 8) Belgian French (fr-be)\n", " 19) Traditional Chinese (zh-hant)\n", " \"en-gb\": {\n", " \"fr-be\": {\n", " \"zh-hant\": {\n", " var key = langu...
[ { "file_path": "crates/router/src/core/payment_link/locale.js", "lines": [ " 4) British English (en_gb)\n", " 8) Belgian French (fr_be)\n", " 19) Traditional Chinese (zh_hant)\n", " en_gb: {\n", " \n", " fr_be: {\n", " \n", "\n", " zh_...
[ "js" ]
1
juspay/hyperswitch
juspay__hyperswitch-9082
Bug: [FEATURE] Payment void endpoint for v2 ### Feature Description Add support for Payment Cancel in V2. ### Possible Implementation Add V2 payments_cancel flow by completing GetTracker, UpdateTracker, and Domain traits for payment cancel endpoint. ### Have you spent some time checking if this feature request...
diff --git a/crates/api_models/src/events/payment.rs b/crates/api_models/src/events/payment.rs index 8a0af806334..ad107225177 100644 --- a/crates/api_models/src/events/payment.rs +++ b/crates/api_models/src/events/payment.rs @@ -238,6 +238,22 @@ impl ApiEventMetric for payments::PaymentsResponse { } } +#[cfg(fe...
2025-08-29T06:04:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add V2 payments_cancel flow by endpoint `{{baseUrl}}/v2/payment...
213165968462168a59d5c56423a7c10aa04fc186
Request: ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_0199568c7d307cb093a2f9d517fec5cc/cancel' \ --header 'X-Profile-Id: pro_ICrZFKL8QL6GlxNOuGiT' \ --header 'Authorization: api-key=dev_lLeDL7DZk8Vf8vF7PTd53ces09iGYEerHYDBQzle5s1N1QPpzj3pKViOnv7VsQd5' \ --header 'Content-Type: application/jso...
[ { "file_path": "crates/api_models/src/events/payment.rs", "lines": [ "#[cfg(feature = \"v2\")]\n", "impl ApiEventMetric for payments::PaymentsCancelRequest {\n", " fn get_api_event_type(&self) -> Option<ApiEventsType> {\n", " None\n", " }\n", "}\n", "\n...
[ { "file_path": "crates/diesel_models/src/payment_attempt.rs", "lines": [ " // cancellation_reason: Option<String>,\n" ] }, { "file_path": "crates/router/src/core/payments.rs", "lines": [ " PaymentAttemptListData, PaymentCaptureData, PaymentConfirmData, PaymentIntentData,\n"...
[ "rs" ]
16
juspay/hyperswitch
juspay__hyperswitch-9056
Bug: Create Subscription with autocollection off Request to Subscription Povider to create subscription curl --location 'https://site/api/v2/customers/AzyUM7UusAXA7mMT/subscription_for_items' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Basic =' \ --data-urlencode 'billing_...
diff --git a/crates/hyperswitch_connectors/src/connectors/chargebee.rs b/crates/hyperswitch_connectors/src/connectors/chargebee.rs index b9006f9e82e..bf6f3fe637d 100644 --- a/crates/hyperswitch_connectors/src/connectors/chargebee.rs +++ b/crates/hyperswitch_connectors/src/connectors/chargebee.rs @@ -16,30 +16,38 @@ use...
2025-09-08T10:23:30Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Added Chargebee subscription creation request/response struct...
e2f1a456a17645b9ccac771d3608794c4956277d
Since the API handler is being implemented in a separate PR, this connector integration code cannot be called directly and was tested only by successful compilation of code <img width="996" height="805" alt="image" src="https://github.com/user-attachments/assets/2849b14f-c922-4f63-8ba0-68f5b3e21d29" /> <img width...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/chargebee.rs", "lines": [ " router_data_v2::flow_common_types::SubscriptionCreateData,\n", " subscriptions::{GetSubscriptionPlanPrices, GetSubscriptionPlans, SubscriptionCreate},\n", " subscriptions::{\n", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/chargebee.rs", "lines": [ " subscriptions::{GetSubscriptionPlanPrices, GetSubscriptionPlans},\n", " subscriptions::{GetSubscriptionPlanPricesRequest, GetSubscriptionPlansRequest},\n", " subscriptions::{GetSub...
[ "rs" ]
15
juspay/hyperswitch
juspay__hyperswitch-9062
Bug: [FEATURE] Implement comprehensive event logging for UCS (Unified Connector Service) operations Currently, UCS operations lack proper event logging and observability, making it difficult to debug issues, monitor performance, and track payment flows through the unified connector service.
diff --git a/crates/router/src/core/payments/flows/authorize_flow.rs b/crates/router/src/core/payments/flows/authorize_flow.rs index 1c689943d73..b9d9b9aa27e 100644 --- a/crates/router/src/core/payments/flows/authorize_flow.rs +++ b/crates/router/src/core/payments/flows/authorize_flow.rs @@ -20,7 +20,7 @@ use crate::{ ...
2025-08-25T13:37:59Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added comprehensive event logging for UCS operations to improve deb...
c02d8b9ba9e204fa163b61c419811eaa65fdbcb4
Enable UCS ``` curl --location 'http://localhost:8080/configs/' \ --header 'api-key: test_admin' \ --header 'Content-Type: application/json' \ --data ' { "key": "ucs_enabled", "value": "true" }' ``` Enable UCS authorize ```curl --location 'http://localhost:8080/configs/' \ --header 'api-key: test...
[ { "file_path": "crates/router/src/core/payments/flows/authorize_flow.rs", "lines": [ " handle_unified_connector_service_response_for_payment_repeat, ucs_logging_wrapper,\n", " Box::pin(call_unified_connector_service_repeat_payment(\n", " ))\n", " ...
[ { "file_path": "crates/router/src/core/payments/flows/authorize_flow.rs", "lines": [ " handle_unified_connector_service_response_for_payment_repeat,\n", " call_unified_connector_service_repeat_payment(\n", " )\n", " call_unified_connector_s...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-9055
Bug: Get Estimate for a plan price **Request to Subscription Povider to get estimate** curl --location '/api/v2/estimates/create_subscription_for_items' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Basic =' \ --data-urlencode 'billing_address%5Bline1%5D=PO Box 9999' \ --dat...
diff --git a/crates/hyperswitch_connectors/src/connectors/chargebee.rs b/crates/hyperswitch_connectors/src/connectors/chargebee.rs index bf6f3fe637d..b761dc9ebbf 100644 --- a/crates/hyperswitch_connectors/src/connectors/chargebee.rs +++ b/crates/hyperswitch_connectors/src/connectors/chargebee.rs @@ -22,14 +22,17 @@ use...
2025-09-10T07:59:34Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This pull request introduces support for fetching subscription ...
3bd78ac5c1ff120d6afd46e02df498a16ece6f5f
Compilation and PR checks are enough for now, as this is a new feature. Testing can be done after the external endpoint is added.
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/chargebee.rs", "lines": [ " subscriptions::{\n", " GetSubscriptionEstimate, GetSubscriptionPlanPrices, GetSubscriptionPlans,\n", " SubscriptionCreate,\n", " },\n", " GetS...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/chargebee.rs", "lines": [ " subscriptions::{GetSubscriptionPlanPrices, GetSubscriptionPlans, SubscriptionCreate},\n", " GetSubscriptionPlanPricesRequest, GetSubscriptionPlansRequest,\n", " Subscriptio...
[ "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-9054
Bug: Get Plan prices **Request to Subscription Povider to get plans prices** api/v2/item_prices?item_id[is]=cbdemo_enterprise-suite' **Response from Subscription Provider** ``` { "list": [ { "item_price": { "id": "cbdemo_enterprise-suite-INR-Daily", "name": "E...
diff --git a/crates/hyperswitch_connectors/src/connectors/chargebee.rs b/crates/hyperswitch_connectors/src/connectors/chargebee.rs index 1a021ef4961..b7ea2d591f5 100644 --- a/crates/hyperswitch_connectors/src/connectors/chargebee.rs +++ b/crates/hyperswitch_connectors/src/connectors/chargebee.rs @@ -25,21 +25,22 @@ use...
2025-09-01T12:30:05Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR adds support for the get plan prices endpoint for Charg...
4d5ce22678a4258491943b9bbeda5585ed528102
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/chargebee.rs", "lines": [ " subscriptions::{GetSubscriptionPlanPrices, GetSubscriptionPlans},\n", " subscriptions::{GetSubscriptionPlanPricesRequest, GetSubscriptionPlansRequest},\n", " AccessTokenRequestData...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/chargebee.rs", "lines": [ " subscriptions::GetSubscriptionPlans,\n", " subscriptions::GetSubscriptionPlansRequest, AccessTokenRequestData,\n", " PaymentMethodTokenizationData, PaymentsAuthorizeData, PaymentsC...
[ "rs" ]
7
juspay/hyperswitch
juspay__hyperswitch-9048
Bug: Error for successive config activation
diff --git a/crates/api_models/src/open_router.rs b/crates/api_models/src/open_router.rs index c2e6bc76c06..94d31a73787 100644 --- a/crates/api_models/src/open_router.rs +++ b/crates/api_models/src/open_router.rs @@ -251,7 +251,7 @@ pub struct DecisionEngineConfigSetupRequest { #[derive(Debug, Serialize, Deserialize, ...
2025-08-22T11:56:58Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Taged Issue https://github.com/juspay/hyperswitch-cloud/issues/10731 ### Summary This PR refactors **Decision Engi...
cb34ec51e0f2b4ba071602f5fe974429de542b80
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ " pub algorithm: DecisionEngineDynamicAlgorithmType,\n" ] }, { "file_path": "crates/router/src/core/routing.rs", "lines": [ "use helpers::{\n", " enable_decision_engine_dynamic_routing_setup, update_dec...
[ { "file_path": "crates/api_models/src/open_router.rs", "lines": [ " pub config: DecisionEngineDynamicAlgorithmType,\n" ] }, { "file_path": "crates/router/src/core/routing.rs", "lines": [ "use helpers::update_decision_engine_dynamic_routing_setup;\n", " ...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-9034
Bug: [BUG] CUSTOMERREQUEST refund reason not supported in Adyen ### Bug Description CUSTOMERREQUEST refund reason not supported in Adyen ### Expected Behavior CUSTOMERREQUEST refund reason should be supported in Adyen. ### Actual Behavior CUSTOMERREQUEST refund reason not supported in Adyen ### Steps To Reprod...
diff --git a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs index 63c1b0d8a32..f30732173a7 100644 --- a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/adyen/tra...
2025-08-22T11:28:33Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/9034) ## Description <!-- Describe your changes in d...
c90625a4ea163e03895276a04ec3a23d4117413d
Postman Test: Refunds: Request: ``` curl --location 'http://localhost:8080/refunds' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_KYKqKi3f1IgAl2wzfLwajdyMApB5XvTmX7SjYWpAcuLRnYxXToxXjDDuMoKPJ5h2' \ --data '{ "payment_id": "pay_rcvdW42PB...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "lines": [ " \"CUSTOMER REQUEST\" | \"CUSTOMERREQUEST\" => Ok(Self::CUSTOMERREQUEST),\n" ] } ]
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "lines": [ " \"CUSTOMER REQUEST\" => Ok(Self::CUSTOMERREQUEST),\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9053
Bug: Get Plans **Request to Subscription Povider to get plans** /api/v2/items?limit=5&type[is]=plan&item_family_id[is]=cbdemo_omnisupport-solutions' **Response from Subscription Provider** ``` { "list": [ { "item": { "id": "cbdemo_enterprise-suite", "name": "E...
diff --git a/crates/api_models/src/lib.rs b/crates/api_models/src/lib.rs index 3b343459e9e..c991f3c048b 100644 --- a/crates/api_models/src/lib.rs +++ b/crates/api_models/src/lib.rs @@ -42,6 +42,7 @@ pub mod recon; pub mod refunds; pub mod relay; pub mod routing; +pub mod subscription; pub mod surcharge_decision_con...
2025-08-30T12:04:48Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR includes connector integration for the get subscription...
144f38527e4bf5278947705f9fbbb707bf822109
PR can be tested once the API handlers for this endpoint are implemented
[ { "file_path": "crates/api_models/src/lib.rs", "lines": [ "pub mod subscription;\n" ] }, { "file_path": "crates/api_models/src/payments.rs", "lines": [ "\n", "#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]\n", "pub struct BillingCon...
[ { "file_path": "crates/api_models/src/payments.rs", "lines": [ "\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/chargebee.rs", "lines": [ "#[cfg(feature = \"v1\")]\n", "use error_stack::report;\n", " revenue_recovery, router_flow_types::revenu...
[ "sql", "rs" ]
70
juspay/hyperswitch
juspay__hyperswitch-9027
Bug: [BUG] There is a bug when the webhook response comes from ucs ### Bug Description There is a bug when the webhook response comes from ucs, the code was not able to deserialize the response ### Expected Behavior webhook response form ucs should be handle using ucs logic ### Actual Behavior a webhook failed ...
diff --git a/crates/api_models/src/webhooks.rs b/crates/api_models/src/webhooks.rs index a01ca3eeeea..bb58a0dc440 100644 --- a/crates/api_models/src/webhooks.rs +++ b/crates/api_models/src/webhooks.rs @@ -68,6 +68,67 @@ pub enum IncomingWebhookEvent { RecoveryInvoiceCancel, } +impl IncomingWebhookEvent { + /...
2025-08-22T05:20:49Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description while handling the response of UCS for webhooks Hyperswitch used to use the existing connector code (Psyn...
a589e2246447b7096fd335d444a24b2450c3e7c2
testing of the webhook can be done by the step in this merged PR:https://github.com/juspay/hyperswitch/pull/8814
[ { "file_path": "crates/api_models/src/webhooks.rs", "lines": [ "impl IncomingWebhookEvent {\n", " /// Convert UCS event type integer to IncomingWebhookEvent\n", " /// Maps from proto WebhookEventType enum values to IncomingWebhookEvent variants\n", " pub fn from_ucs_event_ty...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " if should_call_unified_connector_service(\n" ] }, { "file_path": "crates/router/src/core/unified_connector_service/transformers.rs", "lines": [ " let event_type = match response.event_type {\n", " ...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-9028
Bug: [FEATURE] CELERO CIT_MIT (ALPHACONNECTOR) ### Feature Description IMPLEMENT CIT & MIT for celero ### Possible Implementation - DOCS : https://sandbox.gotnpgateway.com/docs/api/transactions#cit-mit ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn...
diff --git a/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs b/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs index 2003ba59ae0..4e4c3f113cf 100644 --- a/crates/hyperswitch_connectors/src/connectors/celero/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/celero...
2025-08-22T07:29:35Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> CIT-MIT implementation for CELERO (alpha connector) DOCS ...
8446ffbf5992a97d79d129cade997effc60fcd85
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/celero/transformers.rs", "lines": [ "use common_utils::{id_type::CustomerId, pii::Email, types::MinorUnit};\n", " router_response_types::{MandateReference, PaymentsResponseData, RefundsResponseData},\n", "use hyperswitch_inter...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/celero/transformers.rs", "lines": [ "use common_utils::{pii::Email, types::MinorUnit};\n", " router_response_types::{PaymentsResponseData, RefundsResponseData},\n", "use hyperswitch_interfaces::{consts, errors};\n", " ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9047
Bug: Payment Intent and MCA changes for split payments - Add split_txns_enabled field in PaymentIntent - Add split_enabled field to MCA payment_method - Code changes to modify split_enabled for a payment method when creating or updating an MCA (similar to recurring_enabled) - PML changes to filter payment methods ba...
diff --git a/crates/api_models/src/admin.rs b/crates/api_models/src/admin.rs index 2e70e1a6c95..e7d70225884 100644 --- a/crates/api_models/src/admin.rs +++ b/crates/api_models/src/admin.rs @@ -2342,6 +2342,10 @@ pub struct ProfileCreate { /// It is used in payment processing, fraud detection, and regulatory compli...
2025-08-25T09:13:26Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Add split_txns_enabled field to business_profile DB, create+u...
9f0cd51cabb281de82b00734b532fea3cf6205fe
1. Business Profile Create Request (split_txns_enabled) ``` curl --location 'http://localhost:8080/v2/profiles' \ --header 'x-merchant-id: cloth_seller_v2_5WeDFMHDxeA6s3I9WReI' \ --header 'Authorization: admin-api-key=test_admin' \ --header 'Content-Type: application/json' \ --header 'api-key: test_admin' \...
[ { "file_path": "crates/api_models/src/admin.rs", "lines": [ "\n", " /// Enable split payments, i.e., split the amount between multiple payment methods\n", " #[schema(value_type = Option<SplitTxnsEnabled>, default = \"skip\")]\n", " pub split_txns_enabled: Option<common_enums...
[ { "file_path": "crates/hyperswitch_domain_models/src/payments/payment_intent.rs", "lines": [ "\n" ] } ]
[ "sql", "rs" ]
19
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
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Added Connector changes for VGS - Implemented `ExternalVault...
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...
[ { "file_path": "config/config.example.toml", "lines": [ "vgs.base_url = \"https://api.sandbox.verygoodvault.com/\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "vgs.base_url = \"https://api.sandbox.verygoodvault.com/\"\n" ] }, { "file_...
[ { "file_path": "config/config.example.toml", "lines": [ "vgs.base_url = \"https://sandbox.vault-api.verygoodvault.com\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "vgs.base_url = \"https://sandbox.vault-api.verygoodvault.com\"\n" ] }, { ...
[ "toml", "rs" ]
14
juspay/hyperswitch
juspay__hyperswitch-9016
Bug: [FEATURE] Automatic connector_payment_id hashing in v2 if length > 128 in v2 ### Feature Description Automatically hash connector_payment_id longer than 128 chars and store the original in connector_payment_data. ### Possible Implementation Implement hashing in PaymentAttemptUpdate conversion by using Connec...
diff --git a/crates/diesel_models/src/payment_attempt.rs b/crates/diesel_models/src/payment_attempt.rs index 0a085991815..7a1494ea923 100644 --- a/crates/diesel_models/src/payment_attempt.rs +++ b/crates/diesel_models/src/payment_attempt.rs @@ -743,57 +743,51 @@ pub enum PaymentAttemptUpdate { // error_message...
2025-08-21T13:30:48Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Implement hashing in PaymentAttemptUpdate conversion by using C...
f5db00352b90e99e78b631fa8b9cde5800093a9d
Request: ``` curl --location 'http://localhost:8080/v2/payments/12345_pay_0198ccb7376f74a38cad615be26fa5a8/confirm-intent' \ --header 'x-profile-id: pro_ODIfdcDxqoiMbqheIsJk' \ --header 'x-client-secret: cs_0198ccb737837d90b70939489421999b' \ --header 'Authorization: api-key=dev_uf0UlpOafwdX9RSG1PcLVpW7X2QBwM9h3...
[ { "file_path": "crates/diesel_models/src/payment_attempt.rs", "lines": [ " ResponseUpdate {\n", " status: storage_enums::AttemptStatus,\n", " connector: Option<String>,\n", " connector_payment_id: Option<String>,\n", " authentication_type: Option<...
[ { "file_path": "crates/diesel_models/src/payment_attempt.rs", "lines": [ " // ResponseUpdate {\n", " // status: storage_enums::AttemptStatus,\n", " // connector: Option<String>,\n", " // connector_transaction_id: Option<String>,\n", " // authentic...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-9015
Bug: [REFACTOR] propagate merchant_reference_id for PaymentsAuthorizeData propagate merchant_reference_id for PaymentsAuthorizeData in v2
diff --git a/crates/router/src/core/payments/transformers.rs b/crates/router/src/core/payments/transformers.rs index 348a364c569..cf91b2bcc36 100644 --- a/crates/router/src/core/payments/transformers.rs +++ b/crates/router/src/core/payments/transformers.rs @@ -406,7 +406,10 @@ pub async fn construct_payment_router_data...
2025-08-21T13:04:33Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR adds support for propagating merchant_reference_id for ...
a819b4639b1e4279b117f4693cb0716b08e5e2e9
enable UCS ``` curl --location 'http://localhost:8080/v2/configs/' \ --header 'Authorization: admin-api-key=test_admin' \ --header 'Content-Type: application/json' \ --data '{ "key": "ucs_rollout_config_cloth_seller1756197165_9PGBS852vwot2udmMevW_razorpay_upi_Authorize", "value": "1.0" }' ``` ...
[ { "file_path": "crates/router/src/core/payments/transformers.rs", "lines": [ " merchant_order_reference_id: payment_data\n", " .payment_intent\n", " .merchant_reference_id\n", " .map(|reference_id| reference_id.get_string_repr().to_owned()),\n"...
[ { "file_path": "crates/router/src/core/payments/transformers.rs", "lines": [ " merchant_order_reference_id: None,\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-9014
Bug: Add gsm api for v2 Add gsm api for v2
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index 8fbc29c6963..c874271285b 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -8385,6 +8385,8 @@ pub enum ErrorCategory { ProcessorDeclineUnauthorized, IssueWithPaymentMethod, Process...
2025-08-08T12:35:12Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Add support for hard-decline switch for revenue-recovery service. If we encounter a hard-decline we would...
a819b4639b1e4279b117f4693cb0716b08e5e2e9
- hit this curl ``` curl curl --location 'http://localhost:8080/v2/gsm' \ --header 'Authorization: admin-api-key=test_admin' \ --header 'Content-Type: application/json' \ --data '{ "connector": "authipay", "flow": "revenue_recovery", "sub_flow": "sub_flow", "code": "100", "message": "Insuffiecie...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " HardDecline,\n", " SoftDecline,\n", " | Self::FrmDecline\n", " | Self::HardDecline\n", " | Self::SoftDecline => false,\n" ] }, { "file_path": "crates/router/src/co...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " | Self::FrmDecline => false,\n" ] }, { "file_path": "crates/router/src/core/revenue_recovery/types.rs", "lines": [ "\n", " let db = &*state.store;\n", "\n" ] }, { "file_path"...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-9004
Bug: [BUG] Incremental authorization proceeds even when requested amount equals original ### Bug Description Incremental authorization proceeds even when requested amount equals original ### Expected Behavior Incremental authorization should not proceed when requested amount equals original ### Actual Behavior ...
diff --git a/crates/hyperswitch_connectors/src/connectors/stripe.rs b/crates/hyperswitch_connectors/src/connectors/stripe.rs index fc27effefca..b7810310369 100644 --- a/crates/hyperswitch_connectors/src/connectors/stripe.rs +++ b/crates/hyperswitch_connectors/src/connectors/stripe.rs @@ -1086,7 +1086,7 @@ impl ...
2025-08-20T13:37:11Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes these issues - [Issue 1](https://github.com/juspay/hyperswitch/issues/9003) [Issue 2](https://github.com/juspay...
e1fc14135cc3527cfb5afeccd4934bad8386c7b1
Postman Test 1. Payments - Create Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_jVOnDLj6Q2nOHSSL8NIMQUws6P8WIRE9QNZ6toLt4gB7DqXuObIkVwPiXLJsY16n' \ --data-raw '{ "amount": 65...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/stripe.rs", "lines": [ " let connector_req = stripe::StripeIncrementalAuthRequest { amount }; // Incremental authorization can be done a maximum of 10 times in Stripe\n", " .message\n", " .clo...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/stripe.rs", "lines": [ " let connector_req = stripe::StripeIncrementalAuthRequest { amount };\n", " .code\n" ] }, { "file_path": "crates/router/src/core/payments/operations/payments_incremental_authori...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-9003
Bug: [BUG] Error message not getting populated in Stripe Incremental Authorization Flow ### Bug Description Error message not getting populated in Stripe Incremental Authorization Flow ### Expected Behavior Error message should be populated in Stripe Incremental Authorization Flow ### Actual Behavior Error me...
diff --git a/crates/hyperswitch_connectors/src/connectors/stripe.rs b/crates/hyperswitch_connectors/src/connectors/stripe.rs index fc27effefca..b7810310369 100644 --- a/crates/hyperswitch_connectors/src/connectors/stripe.rs +++ b/crates/hyperswitch_connectors/src/connectors/stripe.rs @@ -1086,7 +1086,7 @@ impl ...
2025-08-20T13:37:11Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes these issues - [Issue 1](https://github.com/juspay/hyperswitch/issues/9003) [Issue 2](https://github.com/juspay...
e1fc14135cc3527cfb5afeccd4934bad8386c7b1
Postman Test 1. Payments - Create Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_jVOnDLj6Q2nOHSSL8NIMQUws6P8WIRE9QNZ6toLt4gB7DqXuObIkVwPiXLJsY16n' \ --data-raw '{ "amount": 65...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/stripe.rs", "lines": [ " let connector_req = stripe::StripeIncrementalAuthRequest { amount }; // Incremental authorization can be done a maximum of 10 times in Stripe\n", " .message\n", " .clo...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/stripe.rs", "lines": [ " let connector_req = stripe::StripeIncrementalAuthRequest { amount };\n", " .code\n" ] }, { "file_path": "crates/router/src/core/payments/operations/payments_incremental_authori...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-9000
Bug: [REFACTOR] Adyen's balance platform webhooks Webhooks for balance platform are different for different payout methods - Banks - https://docs.adyen.com/payouts/payout-service/pay-out-to-bank-accounts/payout-webhooks/ Cards - https://docs.adyen.com/payouts/payout-service/pay-out-to-cards/payout-webhooks/
diff --git a/crates/hyperswitch_connectors/src/connectors/adyenplatform.rs b/crates/hyperswitch_connectors/src/connectors/adyenplatform.rs index 78c8c4c8067..2158fece4c9 100644 --- a/crates/hyperswitch_connectors/src/connectors/adyenplatform.rs +++ b/crates/hyperswitch_connectors/src/connectors/adyenplatform.rs @@ -402...
2025-08-20T10:56:53Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR updates the webhooks for Adyen's BalancePlatform for payouts. Main changes - For status `book...
a56d78a46a3ee80cdb2b48f9abfd2cd7b297e328
<details> <summary>1. Create a successful card payout</summary> cURL curl --location --request POST 'http://localhost:8080/payouts/create' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_3ItwbKI2nwx45BPimAEaYP7QwnwKuC5a5GsG0aaow5wWefb62tXAcldZUrntn0jd' \ --...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyenplatform.rs", "lines": [ " webhook_body.data.category.as_ref(),\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs", "lines": [ " pub catego...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs", "lines": [ " AdyenplatformWebhookStatus::Authorised\n", " | AdyenplatformWebhookStatus::Booked\n", " | AdyenplatformWebhookStatus::Received => webhooks::Inc...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-9010
Bug: [FEATURE] extend PSP token provisioning through Adyen Platform ### Feature Description Enable processing payouts using Adyen stored payment method tokens (storedPaymentMethodId) in the AdyenPlatform connector. Currently, the connector only supports raw card details for payouts. This feature will add support fo...
diff --git a/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs b/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs index b04ca410d39..35636889d71 100644 --- a/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs +++ b/crates...
2025-08-22T15:11:48Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds support for Adyen tokenized card payouts in the AdyenPlatform connector. This enables proces...
ad05dc4176114dad3420a78af238d3842160e464
<details> <summary>1. Create a payment CIT</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_ACto5kMwzvZvAZCM5LMfFoDaBxAKHNeQkYVRuitCrf2Q30Drq...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs", "lines": [ " utils::{\n", " self, AddressDetailsData, PayoutFulfillRequestData, PayoutsData as _, RouterData as _,\n", " },\n", "#[derive(Debug, Serialize)]\n", "#[...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs", "lines": [ " utils::{self, AddressDetailsData, PayoutsData as _, RouterData as _},\n", " #[serde(rename = \"card\")]\n", " CardToken(AdyenCardTokenDetails),\n", "pub struct A...
[ "rs", "nix" ]
7
juspay/hyperswitch
juspay__hyperswitch-8998
Bug: [FEATURE] feat(router): verify service for applepay merchant registration v2 ### Feature Description verify service for applepay merchant registration in v2 ### Possible Implementation Add POST /v2/verify/apple-pay/{merchant_id} endpoint for verify domains with Apple ### Have you spent some time checking if...
diff --git a/crates/router/src/core/verification.rs b/crates/router/src/core/verification.rs index 3c1b95dd982..f7ed33be642 100644 --- a/crates/router/src/core/verification.rs +++ b/crates/router/src/core/verification.rs @@ -117,11 +117,16 @@ pub async fn get_verified_apple_domains_with_mid_mca_id( .unwrap_or_...
2025-08-20T09:01:30Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add Apple Pay merchant registration and verified domains retrie...
c09c936643170c595303293601d41c4207e12068
Request: ``` curl --location 'http://localhost:8080/v2/verify/apple-pay/cloth_seller_4hdx8pW2mxW0V6TZEQfm' \ --header 'x-client-secret: cs_0198af34cbcd72d0becd4db96e800bd9' \ --header 'x-profile-id: pro_833jt2bQKinLLA4pucBK' \ --header 'Authorization: api-key=dev_WH5clkiXgFqCpCDr62FCsFnjcRDZzIdwbvuuLK3sjC0nR3g6Y...
[ { "file_path": "crates/router/src/core/verification.rs", "lines": [ " let verified_domains = db\n", " .find_merchant_connector_account_by_id(\n", " key_manager_state,\n", " &merchant_connector_id,\n", " &key_store,\n", " )...
[ { "file_path": "crates/router/src/core/verification.rs", "lines": [ " let verified_domains = {\n", " let _ = merchant_connector_id;\n", " let _ = key_store;\n", " todo!()\n", " };\n" ] }, { "file_path": "crates/router/src/core/verification...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-8977
Bug: [FEATURE] add payment method filter in v2 ### Feature Description List all the available currencies and countries for the given connector and payment method type. ### Possible Implementation Add the filter route to the V2 PaymentMethods implementation. ### Have you spent some time checking if this feature r...
diff --git a/crates/router/src/routes/app.rs b/crates/router/src/routes/app.rs index 01455e9e17b..be17d98ff47 100644 --- a/crates/router/src/routes/app.rs +++ b/crates/router/src/routes/app.rs @@ -1344,38 +1344,52 @@ impl Payouts { } } -#[cfg(all(feature = "oltp", feature = "v2"))] +#[cfg(all(feature = "v2", an...
2025-08-18T10:55:59Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [X] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add the payment method filter route to the V2 PaymentMethods im...
f762f4f5854eeb7a78c78149075804ee4f07bb25
Request: ``` curl --location 'http://localhost:8080/v2/payment-methods/filter?connector=stripe&paymentMethodType=debit' \ --header 'Authorization: api-key=dev_4DIYNBJfJIQ2Tr1wLavfp48BJvXLtHmBWdkkALwWj6U91DAjP7h2RfQmhnDMATmB' \ --header 'x-profile-id: pro_9dDVfbJRfEb7o7qxBatP' \ --header 'api-key: dev_4DIYNBJfJIQ...
[ { "file_path": "crates/router/src/routes/app.rs", "lines": [ "#[cfg(all(feature = \"v2\", any(feature = \"olap\", feature = \"oltp\")))]\n", " #[cfg(feature = \"olap\")]\n", " {\n", " route =\n", " route.service(web::resource(\"/filter\")...
[ { "file_path": "crates/router/src/routes/app.rs", "lines": [ "#[cfg(all(feature = \"oltp\", feature = \"v2\"))]\n", " route = route\n", " .service(\n", " web::resource(\"\").route(web::post().to(payment_methods::create_payment_method_api)),\n", ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8993
Bug: refactor: [Netcetera] Handle response deserialization error
diff --git a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs b/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs index 8444c7b9dd3..b6e85aea3ce 100644 --- a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs +++ b/crates/hyperswitch_connectors/src/connecto...
2025-08-19T08:46:13Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Handle response deserialization error - three_ds_requestor_challenge_ind can be vector or string ##...
58abb604d7a89519befa296d59506857bbdb0b8b
Sanity flow with netcetra and cybersource Profile update ``` curl --location 'http://localhost:8080/account/merchant_1755510755/business_profile/pro_BwyTBsmG8NfDWCJNSozM' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_QBdrxdNVk1Qi1kfHVAxfkkN4It60LAsZB1Z...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs", "lines": [ " .and_then(|ind| match ind {\n", " ThreedsRequestorChallengeInd::Single(s) => Some(s.clone()),\n", " ThreedsRequestorChallen...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs", "lines": [ " .and_then(|v| v.first().cloned());\n", " pub three_ds_requestor_challenge_ind: Option<Vec<String>>,\n" ] }, { "file_path": "crates/hyperswitch_domain_models/src...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8971
Bug: refactor(routing): receive json value instead of string
diff --git a/crates/router/src/core/routing/helpers.rs b/crates/router/src/core/routing/helpers.rs index 0b1395ed4ba..98b71748b35 100644 --- a/crates/router/src/core/routing/helpers.rs +++ b/crates/router/src/core/routing/helpers.rs @@ -2481,7 +2481,7 @@ pub async fn enable_decision_engine_dynamic_routing_setup( c...
2025-08-14T14:11:07Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Refactoring to recieve json response instead of string Updated `ConfigApiClient::send_decision_engin...
aae1994ea147fa1ebdc9555f00b072bb9ed57abc
[ { "file_path": "crates/router/src/core/routing/helpers.rs", "lines": [ " routing_utils::ConfigApiClient::send_decision_engine_request::<_, serde_json::Value>(\n", " routing_utils::ConfigApiClient::send_decision_engine_request::<_, serde_json::Value>(\n", " routing_utils::ConfigApi...
[ { "file_path": "crates/router/src/core/routing/helpers.rs", "lines": [ " routing_utils::ConfigApiClient::send_decision_engine_request::<_, String>(\n", " routing_utils::ConfigApiClient::send_decision_engine_request::<_, String>(\n", " routing_utils::ConfigApiClient::send_decision_...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8969
Bug: [BUG] Logging sensitive information on deserialization failure ### Bug Description In `common_utils/src/ext_traits.rs` we are logging serde_json Values in plaintext when deserialization fails. This is a problem in cases where the JSON objects contain sensitive data. ### Expected Behavior Sensitive data is no...
diff --git a/crates/common_utils/src/ext_traits.rs b/crates/common_utils/src/ext_traits.rs index 6bdeae9b6d9..b60ef5a22f2 100644 --- a/crates/common_utils/src/ext_traits.rs +++ b/crates/common_utils/src/ext_traits.rs @@ -175,7 +175,13 @@ impl BytesExt for bytes::Bytes { .change_context(errors::ParsingError...
2025-08-18T04:03:57Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description - Modified `parse_value` method in `ValueExt` trait to log the JSON object after masking on deserializati...
b133c534fb1ce40bd6cca27fac4f2d58b0863e30
Tested by supplying malformed data to the method and verified it logs data after masking. Object: <img width="1079" height="49" alt="image" src="https://github.com/user-attachments/assets/a7f917af-b356-475d-b3d8-c29fcae29fc0" /> String: <img width="1079" height="47" alt="image" src="https://github.com/user-at...
[ { "file_path": "crates/common_utils/src/ext_traits.rs", "lines": [ " let value = serde_json::from_slice::<serde_json::Value>(self)\n", " .unwrap_or_else(|_| serde_json::Value::String(String::new()));\n", "\n", " format!(\n", " ...
[ { "file_path": "crates/common_utils/src/ext_traits.rs", "lines": [ " format!(\"Unable to parse {variable_type} from bytes {self:?}\")\n", " .attach_printable_lazy(|| format!(\"Unable to parse {type_name} from &[u8] {:?}\", &self))\n", " let debug = format!(...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8973
Bug: [REFACTOR] remove non mandatory fields for Adyen Platform payouts Hyperswitch mandates a few fields for AdyenPlatform connector which are not needed. These are needed to be made optional. List of fields - Billing address details
diff --git a/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs b/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs index 82c9afadeed..6c964aea20f 100644 --- a/crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs +++ b/crates...
2025-08-19T09:27:54Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR removes any non mandatory fields from AdyenPlatform connector for card and SEPA payouts. New l...
58abb604d7a89519befa296d59506857bbdb0b8b
Tested locally <details> <summary>[Negative] 1. Create SEPA payout with missing billing details</summary> cURL curl --location --request POST 'http://localhost:8080/payouts/create' \ --header 'Content-Type: application/json' \ --header 'api-key: dev_Rko4ofOnDKpn3Dbs0ZUz8PQ1qdIDgT183O...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs", "lines": [ "use hyperswitch_domain_models::types::{self, PayoutsRouterData};\n", "use masking::{ExposeInterface, Secret};\n", " address: Option<AdyenAddress>,\n", " email: Optio...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyenplatform/transformers/payouts.rs", "lines": [ "use hyperswitch_domain_models::types;\n", "use masking::Secret;\n", " address: AdyenAddress,\n", "impl<F> TryFrom<(&types::PayoutsRouterData<F>, enums::PayoutType)> for...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-9022
Bug: [FEATURE]: [Paysafe] add connector template code - add connector template code for Paysafe
diff --git a/config/config.example.toml b/config/config.example.toml index 0467346ec72..5fe3dbd05fa 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -276,6 +276,7 @@ payload.base_url = "https://api.payload.com" payme.base_url = "https://sandbox.payme.io/" payone.base_url = "https://payment....
2025-08-21T12:05:44Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Add connector template code for Paysafe ### Additional Changes - [ ] This PR modifies the API contr...
d18a94188ea93d07c4581888880088a9e676b1fd
No test required as it is template PR
[ { "file_path": "config/config.example.toml", "lines": [ "paysafe.base_url = \"https://api.test.paysafe.com/paymenthub/\"\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "paysafe.base_url = \"https://api.test.paysafe.com/paymenthub/\"\n" ] }, ...
[ { "file_path": "crates/connector_configs/toml/sandbox.toml", "lines": [ "key1 = \"Username\"\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors.rs", "lines": [ " paypal::Paypal, paystack::Paystack, paytm::Paytm, payu::Payu, phonepe::Phonepe,\n", " pl...
[ "sh", "toml", "rs" ]
22
juspay/hyperswitch
juspay__hyperswitch-8968
Bug: [FEATURE] Cypress test for UCS through Hyperswitch ### Feature Description there should be a cypress test supported for ucs through hyperswitch ### Possible Implementation make code changes in cypress folder and call ucs related api's ### Have you spent some time checking if this feature request has been ra...
2025-08-18T03:51:27Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> added cypress test for ucs by maintaing the flow Closes #8968 ...
e2d72bef7dc07540ee4d54bfc79b934bc303dca7
You can test it with `npm run cypress:ucs`
[]
[]
[]
0
juspay/hyperswitch
juspay__hyperswitch-8945
Bug: [BUG] Webhook source verification is `false` for NMI [Connector documentation](https://docs.nmi.com/reference/overview) php example says this: ```php function webhookIsVerified($webhookBody, $signingKey, $nonce, $sig) { return $sig === hash_hmac("sha256", $nonce . "." . $webhookBody, $signingKey); } ...
diff --git a/crates/hyperswitch_connectors/src/connectors/nmi.rs b/crates/hyperswitch_connectors/src/connectors/nmi.rs index 7ae21664e73..50e5db86e5a 100644 --- a/crates/hyperswitch_connectors/src/connectors/nmi.rs +++ b/crates/hyperswitch_connectors/src/connectors/nmi.rs @@ -9,6 +9,7 @@ use common_utils::{ types:...
2025-08-13T14:43:55Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> the problem is that we previously extracted `nonce` instead o...
6950c04eaebc0499040556d8bbf5c684aebd2c9e
<details> <summary>Setup webhooks for NMI connector and also the signature verification</summary> <img width="1212" height="130" alt="image" src="https://github.com/user-attachments/assets/3759cb84-57f6-441e-845e-d6c53868764a" /> <img width="385" height="30" alt="image" src="https://github.com/user-attachmen...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nmi.rs", "lines": [ "use hex;\n", " .get(2)\n", " // Decode hex signature to bytes\n", " hex::decode(signature).change_context(ConnectorError::WebhookSignatureNotFound)\n", " ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nmi.rs", "lines": [ " .get(1)\n", " return Ok(signature.as_bytes().to_vec());\n", " }\n", " Err(report!(ConnectorError::WebhookSignatureNotFound))\n", " .get(0)\n...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8947
Bug: [BUG] Payments in Integ Dashboard failing to load due to backward compatibility issue ### Bug Description Payments in Integ Dashboard failing to load due to backward compatibility issue ### Expected Behavior Payments in Integ Dashboard shouldn't fail to load. ### Actual Behavior Payments in Integ Dashboard...
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index ec8d55ed000..3b61b810baf 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -2850,6 +2850,7 @@ pub enum RequestIncrementalAuthorization { True, #[default] False, + Default, } ...
2025-08-13T20:34:28Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/8947) ## Description <!-- Describe your changes in d...
a0a4b9239dd2fff7a79fabe641ed9f71f56ef254
Postman Tests 1. Create a payment with old version confirm with new (old and new application should be able to retrieve) Payments - Create (with Confirm: false) Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/js...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ " Default,\n" ] } ]
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8963
Bug: refactor(euclid): add logs for euclid routing
diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rs index 0c0061e7918..44a4602ffa6 100644 --- a/crates/router/src/core/payments.rs +++ b/crates/router/src/core/payments.rs @@ -8103,6 +8103,7 @@ where .attach_printable("Invalid connector name received in 'routed_through'")?; ...
2025-08-14T11:42:09Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Added logs for routing engine. ### Additional Changes - [...
b797d93433d996e5d22269bcab1980c292b0121e
This PR only introduces logs, hence no testing is required.
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " logger::debug!(\"euclid_routing: predetermined connector present in attempt\");\n", " logger::debug!(\"euclid_routing: predetermined mandate connector\");\n", " logger::debug!(\"euclid_routing: pre-r...
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " logger::debug!(\"performing routing for token-based MIT flow\");\n", " logger::error!(\"no eligible connector found for the ppt_mandate payment\");\n", " logger::info!(\"using connector_m...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8934
Bug: Update traditional chinese locale for payent link expired Update traditional chinese locale for payent link expired
diff --git a/crates/router/src/core/payment_link/locale.js b/crates/router/src/core/payment_link/locale.js index 5a404c93a5b..e07285a1ef8 100644 --- a/crates/router/src/core/payment_link/locale.js +++ b/crates/router/src/core/payment_link/locale.js @@ -586,7 +586,7 @@ const locales = { }, zh_hant: { ex...
2025-08-12T16:23:43Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> We need to update traditional chinese locale for payment link e...
a0c2a6bc823fdeac193875a04ea04e7d9a81cbc2
use below curl for payment link create and wait for 60 secs for payment link to get expired: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: ***' \ --header 'Accept-Language: zh-Hant' \ --data '{ "a...
[ { "file_path": "crates/router/src/core/payment_link/locale.js", "lines": [ " refId: \"參考編號\",\n", " paymentLinkExpiredMessage: \"抱歉,此支付链接已过期。 请使用以下参考进行进一步调查。\",\n" ] } ]
[ { "file_path": "crates/router/src/core/payment_link/locale.js", "lines": [ " refId: \"參考編號:\",\n", " paymentLinkExpiredMessage: \"抱歉,此付款連結已過期。請使用以下參考進行進一步調查。\",\n" ] } ]
[ "js" ]
1
juspay/hyperswitch
juspay__hyperswitch-8924
Bug: [BUG] TrustPay Connector: Request Reference ID Length Validation Issue ### Bug Description Bug Description: Summary: The TrustPay connector implementation fails when the connector_request_reference_id exceeds TrustPay's API limits for merchant reference fields. Impact: - Payment requests may be rejec...
diff --git a/crates/hyperswitch_connectors/src/connectors/trustpay.rs b/crates/hyperswitch_connectors/src/connectors/trustpay.rs index d3a6a2cdf71..878c4ed0c1c 100644 --- a/crates/hyperswitch_connectors/src/connectors/trustpay.rs +++ b/crates/hyperswitch_connectors/src/connectors/trustpay.rs @@ -1364,4 +1364,13 @@ impl...
2025-08-12T11:08:39Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> The length of receipt for Trustpay order request should not ex...
f79cf784c15df183b11c4b8ad4a3523e9b5c2280
PaymentCreateIntent ``` { "amount_details": { "order_amount": 10000, "currency": "USD" }, "capture_method":"automatic", "customer_id": "{{customer_id}}", "authentication_type": "no_three_ds", "billing": { "address": { "line1": "1467", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/trustpay.rs", "lines": [ " #[cfg(feature = \"v2\")]\n", " fn generate_connector_request_reference_id(\n", " &self,\n", " _payment_intent: &hyperswitch_domain_models::payments::PaymentIntent,\n", " ...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8931
Bug: [FIX] : refund sync process scheduled time refund sync process scheduled time
diff --git a/crates/router/src/core/refunds.rs b/crates/router/src/core/refunds.rs index ed44f61b4da..3d8463c2554 100644 --- a/crates/router/src/core/refunds.rs +++ b/crates/router/src/core/refunds.rs @@ -4,7 +4,7 @@ use std::collections::HashMap; #[cfg(feature = "olap")] use api_models::admin::MerchantConnectorInfo;...
2025-08-12T14:24:25Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Before refund sync process tracker task was using pt_mapping_{connector} for sync retries (this is conf...
a0c2a6bc823fdeac193875a04ea04e7d9a81cbc2
Create a process tracker config for Adyen connector ``` curl --location 'http://localhost:8080/configs/pt_mapping_refund_sync_adyen' \ --header 'Content-Type: application/json' \ --header 'api-key: _____' \ --data '{ "key": "pt_mapping_refund_sync_adyen", "value": "{\"custom_merchant_mapping\":{},\"defau...
[ { "file_path": "crates/router/src/core/refunds.rs", "lines": [ " ext_traits::{AsyncExt, StringExt},\n", "use scheduler::{\n", " consumer::types::process_data, errors as sch_errors, utils as process_tracker_utils,\n", "};\n", " _ = retry_refund_sync_task(\n", ...
[ { "file_path": "crates/router/src/core/refunds.rs", "lines": [ " ext_traits::AsyncExt,\n", "use scheduler::{consumer::types::process_data, utils as process_tracker_utils};\n", " workflows::payment_sync,\n", " _ = payment_sync::retry_sync_task(\n", " let sche...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8928
Bug: [BUG] Fix incorrect consumer authenttication information fields ### Bug Description Fix consumer authenttication information request field 1. Rename consumer_authentication_information.pares_status_reason field to consumer_authentication_information.signed_pares_status_reason 2. Move cavv_algorithm from proces...
diff --git a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs index f080a76b051..ca41d12e9b8 100644 --- a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs +++ b/crates/hyperswitch_connectors/src/co...
2025-08-12T11:56:14Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Fix consumer authenttication information fields 1. Renamed _consumer_authentication_information.pares_st...
9de83ee767a14213ae114a6215d4c9e18df767f1
Steps: 1. Do a 3ds payment via cybersource and netcetera 2. Check cybersource request fields for signed_pares_status_reason, cavv_algorithm <img width="1496" height="359" alt="Screenshot 2025-08-12 at 5 22 54 PM" src="https://github.com/user-attachments/assets/82bcb9fc-4a0f-4dcf-a45b-fb7f6c4530c9" />
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "lines": [ " signed_pares_status_reason: Option<String>,\n", " /// This is the algorithm for generating a cardholder authentication verification value (CAVV) or universal cardholder authentication fi...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "lines": [ " let cavv_algorithm = Some(\"2\".to_string());\n", " cavv_algorithm,\n", " cavv_algorithm: Option<String>,\n", " pares_status_reason: Option<String>,\n", ...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8920
Bug: [BUG] [XENDIT] CVV needs to be optional ### Bug Description CVV should be made an optional field for the connector Xendit. ### Expected Behavior If we do not pass CVV payment is getting failed for Xendit PSP ### Actual Behavior If we do not pass CVV payment should still get succeeded for Xendit PSP ### St...
diff --git a/crates/hyperswitch_connectors/src/connectors/xendit.rs b/crates/hyperswitch_connectors/src/connectors/xendit.rs index ff84224a658..57c5978bdf3 100644 --- a/crates/hyperswitch_connectors/src/connectors/xendit.rs +++ b/crates/hyperswitch_connectors/src/connectors/xendit.rs @@ -626,31 +626,18 @@ impl Connecto...
2025-08-12T09:54:21Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> 1. CVV should be made an optional field for the connector Xen...
8bb8b2062e84e8d7116a9ca0e76c8ebd71b2b3ec
Testing CURL's: Payments Create: Request: ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_43StkeAliDdRysVQ1Bk58TfaGfqvDrRcQDIWNdnr9rx3WGPr7qnKR9ZQzdmf7P07' \ --data-raw '{ "amount": 6540000, ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/xendit.rs", "lines": [ " let response: xendit::XenditCaptureResponse = res\n", " RouterData::try_from(ResponseRouterData {\n", " .change_context(errors::ConnectorError::ResponseHandlingFailed)\n" ] }, ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/xendit.rs", "lines": [ " let response: xendit::XenditPaymentResponse = res\n", "\n", " let response_integrity_object = connector_utils::get_capture_integrity_object(\n", " self.amount_converter,\n",...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8919
Bug: [CHORE] fix typos in the repo there exist a few typos in the repo.
diff --git a/crates/api_models/src/admin.rs b/crates/api_models/src/admin.rs index 3bdc756dc89..2e70e1a6c95 100644 --- a/crates/api_models/src/admin.rs +++ b/crates/api_models/src/admin.rs @@ -3002,7 +3002,7 @@ pub struct ProfileUpdate { #[schema(value_type = Option<MerchantCountryCode>, example = "840")] pub...
2025-08-12T08:11:51Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> this pr fixes typos. ### Additional Changes - [ ] This ...
8bb8b2062e84e8d7116a9ca0e76c8ebd71b2b3ec
nothing to test.
[ { "file_path": "crates/api_models/src/admin.rs", "lines": [ " /// Indicates the state of revenue recovery algorithm type\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs", "lines": [ " challenge_cancel: None, // ...
[ { "file_path": "crates/api_models/src/admin.rs", "lines": [ " /// Inidcates the state of revenue recovery algorithm type\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs", "lines": [ " challenge_cancel: None, // ...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8914
Bug: [REFACTOR]: [NUVIE] Fix card 3ds Fix card 3ds for Nuvie connector
diff --git a/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs b/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs index 6d4b27f17e6..3e811b7dddf 100644 --- a/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/nuvei/tra...
2025-08-11T14:21:59Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Fix deserlization error for Nuvei card 3ds ### Additional Changes - [ ] This PR modifies the API c...
6950c04eaebc0499040556d8bbf5c684aebd2c9e
Create nuvie card 3ds ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_5iub419oM0WIf9pI6nHrCbopoQ5dSKQEJkyPJZCmYbqECx5KC61S7N1yl7c1IdKD' \ --data-raw '{ "amount": 15100, "currency": "EUR", ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs", "lines": [ "// The dimensions of the challenge window for full screen.\n", "const CHALLENGE_WINDOW_SIZE: &str = \"05\";\n", "// The challenge preference for the challenge flow.\n", "const CHALLENGE_P...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs", "lines": [ " pub message_extension: Vec<MessageExtensionAttribute>,\n", " _ => (None, None, None),\n", " Some(PaymentMethodData::Card(card)) => Ok(Self {\n", " ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8910
Bug: refactor(euclid): transform enum types to include sub-variants of payment method types
diff --git a/crates/router/src/core/payments/routing/utils.rs b/crates/router/src/core/payments/routing/utils.rs index d9d5ed1de26..f7eafcc28d1 100644 --- a/crates/router/src/core/payments/routing/utils.rs +++ b/crates/router/src/core/payments/routing/utils.rs @@ -18,7 +18,10 @@ use diesel_models::{enums, routing_algor...
2025-08-11T12:19:51Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR refactors the Euclid routing parameter transformation logic to **include sub-variants of paymen...
0e957854372f1e6a81ce72234b8a4fda16cb4b8d
Testing isn't required as this is just an enum mapping change.
[ { "file_path": "crates/router/src/core/payments/routing/utils.rs", "lines": [ " frontend::{\n", " ast::{self},\n", " dir::{self, transformers::IntoDirValue},\n", " },\n", " if let Some(pmt) = input.payment_method.payment_method_type {\n", " ...
[ { "file_path": "crates/router/src/core/payments/routing/utils.rs", "lines": [ " frontend::ast::{self},\n" ] } ]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8944
Bug: [BUG] Related to card ntw for ucs ### Bug Description missing card network for ucs ### Expected Behavior there should be American Express card network for UCS ### Actual Behavior card network was missing ### Steps To Reproduce Provide an unambiguous set of steps to reproduce this bug. Include code or co...
diff --git a/crates/external_services/src/grpc_client/unified_connector_service.rs b/crates/external_services/src/grpc_client/unified_connector_service.rs index 8db71c930f3..4f6313ea31a 100644 --- a/crates/external_services/src/grpc_client/unified_connector_service.rs +++ b/crates/external_services/src/grpc_client/unif...
2025-08-13T13:36:00Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Fixes #8944 Backport of juspay/hyperswitch/pull/8814 ### Additional Changes - [ ] This PR modifie...
c9c0559e81cfcc2616148efb317a8582fe02314a
[ { "file_path": "crates/external_services/src/grpc_client/unified_connector_service.rs", "lines": [ " PaymentServiceAuthorizeResponse, PaymentServiceTransformRequest,\n", " PaymentServiceTransformResponse,\n", "\n", " /// Failed to transform incoming webhook from gRPC Server\...
[ { "file_path": "crates/external_services/src/grpc_client/unified_connector_service.rs", "lines": [ " PaymentServiceAuthorizeResponse,\n", " .inspect_err(|error| logger::error!(?error))\n", " .inspect_err(|error| logger::error!(?error))\n", " .inspe...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-8908
Bug: [BUG] (connector): [Netcetera] Fix struct fields for Netcetera Authentication Response ### Bug Description current structure NetceteraAuthenticationSuccessResponse{ .... pub challenge_cancel: Option<String>, pub trans_status_reason: Option<String>, pub message_extension: Option<Vec<MessageExte...
diff --git a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs b/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs index 2025d29d10d..f080a76b051 100644 --- a/crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs +++ b/crates/hyperswitch_connectors/src/co...
2025-08-11T11:40:14Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [X] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Current structure ``` NetceteraAuthenticationSuccessResponse{ .... pub challenge_cancel: ...
0e957854372f1e6a81ce72234b8a4fda16cb4b8d
With the code changes, the expected behaviour is to, 1. Receive message_extension and trans_status_reason fields in Netcetera’s authentication response and store them in the authentication table. 2. Receive the challenge_cancel field from the Netcetera notification payload and store it in the authentication table...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "lines": [ " let network_score = (ccard.card_network\n", " == Some(common_enums::CardNetwork::CartesBancaires))\n", " .then_some(authn_data.message_ex...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "lines": [ " let network_score: Option<u32> =\n", " if ccard.card_network == Some(common_enums::CardNetwork::CartesBancaires) {\n", " match au...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8906
Bug: Improve UCS connector configuration format for better type safety and usability ## Problem Statement The current unified connector service (UCS) configuration uses an array format for specifying connectors that should use UCS only. This approach has several limitations: ### Current Issues 1. **Type Safety**:...
diff --git a/config/config.example.toml b/config/config.example.toml index d4ce454edfc..5783a70c370 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -1159,6 +1159,7 @@ url = "http://localhost:8080" # Open Router URL [grpc_client.unified_connector_service] base_url = "http://localh...
2025-08-11T10:41:24Z
# Refactor: Change UCS connector configuration from array to comma-separated string ## Summary This PR refactors the unified connector service (UCS) configuration to use a comma-separated string format instead of an array for specifying connectors that should use UCS only. This change improves configuration managemen...
07a6271b76f6986f30064d51113838d486f0f2c6
[ { "file_path": "config/config.example.toml", "lines": [ "ucs_only_connectors = \"paytm, phonepe\" # Comma-separated list of connectors that use UCS only\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "ucs_only_connectors = \"paytm, phonepe\" # Com...
[ { "file_path": "config/development.toml", "lines": [ "ucs_only_connectors = [\n", " \"razorpay\",\n", " \"phonepe\",\n", " \"paytm\",\n", " \"cashfree\",\n", "]\n" ] }, { "file_path": "crates/external_services/src/grpc_client/unified_connector_service.rs",...
[ "toml", "rs" ]
10
juspay/hyperswitch
juspay__hyperswitch-8884
Bug: [FEATURE] Add Apple Pay Payment Method In Barclaycard ### Feature Description Add Apple Pay Payment Method In Barclaycard ### Possible Implementation Add Apple Pay Payment Method In Barclaycard ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't ...
diff --git a/config/config.example.toml b/config/config.example.toml index 00f7ba33a59..fdb5c2a0e5e 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -702,6 +702,7 @@ paze = { currency = "USD,SEK" } credit = { currency = "USD,GBP,EUR,PLN,SEK" } debit = { currency = "USD,GBP,EUR,PLN,SEK" } g...
2025-08-08T20:13:37Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/8884) ## Description <!-- Describe your changes in d...
f5db00352b90e99e78b631fa8b9cde5800093a9d
Postman Test <details> <summary>Hyperswitch Decryption Flow </summary> 1. Payment Connector - Create Request: ``` curl --location 'http://localhost:8080/account/merchant_1755085109/connectors' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: d...
[ { "file_path": "config/config.example.toml", "lines": [ "apple_pay = { currency = \"ARS, CAD, CLP, COP, CNY, EUR, HKD, KWD, MYR, MXN, NZD, PEN, QAR, SAR, SGD, ZAR, UAH, GBP, AED, USD, PLN, SEK\" }\n" ] }, { "file_path": "config/deployments/integration_test.toml", "lines": [ "appl...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/barclaycard/transformers.rs", "lines": [ " payment_method_data::{GooglePayWalletData, PaymentMethodData, WalletData},\n", " ErrorResponse, RouterData,\n", " let commerce_indicator = get_commerce_indicator(network...
[ "toml", "rs" ]
11
juspay/hyperswitch
juspay__hyperswitch-8892
Bug: add support to store signature_network and is_regulated in payment attempts Extended the AdditionalCardInfo struct to include new fields: is_regulated (indicates if the issuer is regulated under interchange fee caps) and signature_network (the card's primary global brand).
diff --git a/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql b/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql index 16815e9a33d..ffe706cab08 100644 --- a/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql +++ b/crates/analytics/docs/clickhouse/scripts/payment_attempts.sql @@ -45,...
2025-08-11T07:13:40Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This pull request enhances how co-badged card information is ha...
5a09d7ec2ab66d901e29492521e63cc6a01281de
-> Enable debit routing for a profile -> Create adyen connector and enable local debit networks -> Make a card payment ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-feature: router-custom' \ --header 'x-tena...
[ { "file_path": "crates/analytics/docs/clickhouse/scripts/payment_attempts.sql", "lines": [ " `signature_network` Nullable(String),\n", " `is_issuer_regulated` Nullable(Bool),\n", " `signature_network` Nullable(String),\n", " `is_issuer_regulated` Nullable(Bool),\n", ...
[ { "file_path": "crates/analytics/src/payments/accumulator.rs", "lines": [ " type MetricOutput = (Option<u64>, Option<u64>, Option<u64>);\n", " let (debit_routed_transaction_count, debit_routing_savings, debit_routing_savings_in_usd) =\n", " self.debit_routing.collect()...
[ "sql", "rs" ]
16
juspay/hyperswitch
juspay__hyperswitch-8880
Bug: [FEATURE]: Add support for Webhooks through UCS ### Feature Description the Webhooks should go to Unified connector service and should be handled there ### Possible Implementation add webhook integration in hyperswitch ### Have you spent some time checking if this feature request has been raised before? - ...
diff --git a/crates/external_services/src/grpc_client/unified_connector_service.rs b/crates/external_services/src/grpc_client/unified_connector_service.rs index 8db71c930f3..4f6313ea31a 100644 --- a/crates/external_services/src/grpc_client/unified_connector_service.rs +++ b/crates/external_services/src/grpc_client/unif...
2025-08-01T07:07:02Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Added webhooks integration support in hyperswitch so that for webhooks hyperswitch can call UCS and get t...
8bbb76840bb5b560b0e4d0f98c5fd5530dc11cef
``` curl --location 'http://localhost:8080/webhooks/merchant_1753974582/mca_lwqSM0js79MQm1DGwYRj' \ --header 'Content-Type: application/json' \ --header 'X-ANET-Signature: sha512=38b0bc1ea66b14793e39cd58e93d37b799a507442d0dd8d37443fa95dec58e57da6db4742636fea31201c48e57a66e73a308a2e5a5c6bb831e4e39fe2227c00f' \ --hea...
[ { "file_path": "crates/external_services/src/grpc_client/unified_connector_service.rs", "lines": [ " PaymentServiceAuthorizeResponse, PaymentServiceTransformRequest,\n", " PaymentServiceTransformResponse,\n", "\n", " /// Failed to transform incoming webhook from gRPC Server\...
[ { "file_path": "crates/external_services/src/grpc_client/unified_connector_service.rs", "lines": [ " PaymentServiceAuthorizeResponse,\n", " .inspect_err(|error| logger::error!(?error))\n", " .inspect_err(|error| logger::error!(?error))\n", " .inspe...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-8874
Bug: chore: address Rust 1.89.0 clippy lints Address the clippy lints occurring due to new rust version 1.89.0 See https://github.com/juspay/hyperswitch/issues/3391 for more information.
diff --git a/crates/euclid_macros/src/inner/knowledge.rs b/crates/euclid_macros/src/inner/knowledge.rs index 49d645be72a..837a511f02d 100644 --- a/crates/euclid_macros/src/inner/knowledge.rs +++ b/crates/euclid_macros/src/inner/knowledge.rs @@ -301,35 +301,6 @@ impl Parse for Rule { } } -#[derive(Clone)] -enum ...
2025-08-08T07:57:33Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR addresses the clippy lints occurring due to new rust ve...
838de443d1ed8d0d509e86d75e3220bedc9121e8
1. just clippy <img width="552" height="237" alt="image" src="https://github.com/user-attachments/assets/11c34b90-2697-48c2-ad08-7436e83f6799" /> 2. just clippy_v2 <img width="548" height="223" alt="image" src="https://github.com/user-attachments/assets/42da0048-5e03-4302-8f1c-fd0885ce882d" />
[ { "file_path": "crates/router/src/core/payments.rs", "lines": [ " let routable_connectors = convert_connector_data_to_routable_connectors(\n", " std::slice::from_ref(connector),\n", " )\n", " .map_err(|e|...
[ { "file_path": "crates/euclid_macros/src/inner/knowledge.rs", "lines": [ "#[derive(Clone)]\n", "enum Scope {\n", " Crate,\n", " Extern,\n", "}\n", "\n", "impl Parse for Scope {\n", " fn parse(input: syn::parse::ParseStream<'_>) -> syn::Result<Self> {\...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8872
Bug: [FEATURE]: add support of passing metadata in adyen payment request add support of passing metadata in adyen payment request
diff --git a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs b/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs index 53ecbf882e6..df98be4c684 100644 --- a/crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs +++ b/crates/hyperswitch_connectors/src/connectors/adyen/tra...
2025-08-08T07:20:47Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> ### Additional Changes - [ ] This PR modifies the API co...
838de443d1ed8d0d509e86d75e3220bedc9121e8
Make a adyen payment request by passing metadata ``` curl --location 'http://localhost:8080/payments' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_gfSvA66FtTOYRAET2roFlwpZII7Im5qV58tVCQ8nmgfvCGW34H7KOatZrmImGpJi' \ --data-raw '{ "amount": 1000, ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "lines": [ " metadata: Option<serde_json::Value>,\n", " metadata: item.router_data.request.metadata.clone(),\n", " metadata: item.router_data.request.metadata.clone(),\n", " ...
[]
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8893
Bug: [FEATURE] nuvie : Avs,cvv check, postConfirmVoid,0$ txn ### Feature Description Add / fix nuvie related features ### Possible Implementation - Avs,cvv check, - postConfirmVoid - 0$ txn ### Have you spent some time checking if this feature request has been raised before? - [x] I checked and didn't find a s...
diff --git a/crates/hyperswitch_connectors/src/connectors/nuvei.rs b/crates/hyperswitch_connectors/src/connectors/nuvei.rs index 853b9fd968a..e02168e1f41 100644 --- a/crates/hyperswitch_connectors/src/connectors/nuvei.rs +++ b/crates/hyperswitch_connectors/src/connectors/nuvei.rs @@ -18,13 +18,13 @@ use hyperswitch_dom...
2025-07-28T08:38:26Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Added few Nuvie features - AVC,CVV : pass the response of AVC , CVV checks from Nuvie to Hypserswitch ...
4a8eea9aa559a4fff6013a13c0defec4796e922c
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei.rs", "lines": [ " AuthorizeSessionToken, CompleteAuthorize, PostCaptureVoid, PreProcessing,\n", " PaymentsCancelPostCaptureData, PaymentsCaptureData, PaymentsPreProcessingData,\n", " PaymentsSessionData...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei.rs", "lines": [ " AuthorizeSessionToken, CompleteAuthorize, PreProcessing,\n", " PaymentsCaptureData, PaymentsPreProcessingData, PaymentsSessionData, PaymentsSyncData,\n", " RefundsData, SetupMandateReq...
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8895
Bug: [FEATURE] Googlepay , applepay and partial authorization integration for nuvei ### Feature Description Add nuvie features ### Possible Implementation Add and fix the following features in nuvie Google pay decrypt flow Apple pay decrypt flow Google pay direct Partial Authorization Send sh...
diff --git a/crates/hyperswitch_connectors/src/connectors/nuvei.rs b/crates/hyperswitch_connectors/src/connectors/nuvei.rs index 3701a814103..7943479730d 100644 --- a/crates/hyperswitch_connectors/src/connectors/nuvei.rs +++ b/crates/hyperswitch_connectors/src/connectors/nuvei.rs @@ -1,5 +1,5 @@ pub mod transformers; ...
2025-08-19T07:19:30Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Add the following features in nuvie 1. Google pay decrypt flow...
c90625a4ea163e03895276a04ec3a23d4117413d
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei.rs", "lines": [ "use std::sync::LazyLock;\n", " types::{AmountConvertor, StringMajorUnit, StringMajorUnitForConnector},\n", "#[derive(Clone)]\n", "pub struct Nuvei {\n", " pub amount_convertor: &'static (d...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei.rs", "lines": [ "use std::{fmt::Debug, sync::LazyLock};\n", "#[derive(Debug, Clone)]\n", "pub struct Nuvei;\n", "\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs"...
[ "rs" ]
5
juspay/hyperswitch
juspay__hyperswitch-8864
Bug: [FEATURE] Reward PaymentMethod & CurrencyAuthKey for Hyperswitch <> UCS Integration ### Feature Description Add Reward payment method and CurrencyAuthKey auth type for HS <> UCS integration ### Possible Implementation Add Reward payment method and CurrencyAuthKey auth type for HS <> UCS integration ### Have...
diff --git a/Cargo.lock b/Cargo.lock index 474d6d6f1d5..5ce7eff9c8c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3041,6 +3041,7 @@ dependencies = [ "aws-sdk-sts", "aws-smithy-runtime", "base64 0.22.1", + "common_enums", "common_utils", "dyn-clone", "error-stack 0.4.1", @@ -3061,6 +3062,7 @@ dependencies = [...
2025-07-28T09:27:29Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This PR implements the following - Added support for Reward p...
8bb8b2062e84e8d7116a9ca0e76c8ebd71b2b3ec
<details> <summary>Create Payment Evoucher</summary> ```json { "amount": 1000, "currency": "USD", "confirm": true, "payment_method_data": "reward", "payment_method_type": "evoucher", "payment_method":"reward", "capture_method": "automatic", "browser_info": { "user...
[ { "file_path": "Cargo.lock", "lines": [ " \"common_enums\",\n", " \"serde_json\",\n", "source = \"git+https://github.com/juspay/connector-service?rev=2263c96a70f2606475ab30e6f716b2773e1fd093#2263c96a70f2606475ab30e6f716b2773e1fd093\"\n", "source = \"git+https://github.com/juspay/conn...
[ { "file_path": "Cargo.lock", "lines": [ "source = \"git+https://github.com/juspay/connector-service?rev=4387a6310dc9c2693b453b455a8032623f3d6a81#4387a6310dc9c2693b453b455a8032623f3d6a81\"\n", "source = \"git+https://github.com/juspay/connector-service?rev=4387a6310dc9c2693b453b455a8032623f3d6a81...
[ "toml", "lock", "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-8870
Bug: Retry Limit Tracking for Payment Processor Tokens in Revenue Recovery ## Background In the current **revenue recovery flow**, there is **no mapping between a customer and their payment methods**. However, card networks enforce **retry limits** — both daily and rolling 30-day — for each merchant–customer card...
diff --git a/config/config.example.toml b/config/config.example.toml index 00f7ba33a59..eb976ce8a39 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -1179,6 +1179,24 @@ billing_connectors_which_requires_invoice_sync_call = "recurly" # List of billin [revenue_recovery] monitoring_threshold_i...
2025-08-05T21:28:14Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This module implements a **Redis-backed system** for managing and selecting the best **payment processo...
f5db00352b90e99e78b631fa8b9cde5800093a9d
-- Curl ### Payment Processor curl ``` curl --location 'http://localhost:8080/v2/connector-accounts' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'x-merchant-id: {{}}' \ --header 'x-profile-id: {{}}' \ --header 'Authorization: admin-api-key=test_admin' \...
[ { "file_path": "config/config.example.toml", "lines": [ "redis_ttl_in_seconds=3888000 # ttl for redis for storing payment processor token details\n", "\n", "# Card specific configuration for Revenue Recovery\n", "[revenue_recovery.card_config.amex]\n", "max_retries_per_day = 2...
[ { "file_path": "config/deployments/integration_test.toml", "lines": [ "\n", "[revenue_recovery]\n", "monitoring_threshold_in_seconds = 60\n", "retry_algorithm_type = \"cascading\"\n", "\n" ] }, { "file_path": "config/deployments/production.toml", "lines": [ ...
[ "toml", "rs", "proto" ]
24
juspay/hyperswitch
juspay__hyperswitch-8859
Bug: feat(api): Adds support to change reveue_recovery_retry_algorithm_type using UpdateProfileAPI (V2) Add support to change `reveue_recovery_retry_algorithm_type` through ProfileUpdateAPI
diff --git a/crates/api_models/src/admin.rs b/crates/api_models/src/admin.rs index 22c1868f6ac..e7df178c1ed 100644 --- a/crates/api_models/src/admin.rs +++ b/crates/api_models/src/admin.rs @@ -2989,6 +2989,11 @@ pub struct ProfileUpdate { /// It is used in payment processing, fraud detection, and regulatory compli...
2025-08-06T18:04:41Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This Pr provides support to change `revenue_recovery_retry_algo...
e2bfce8974dec9348d5829c39ad1f9acd340b9e3
Create a Business Profile and hit the following api. ``` curl --location --request PUT '{{base_url}}/v2/profiles/{{profile_id}}' \ --header 'x-merchant-id: {{merchant_id}}' \ --header 'Authorization: {{admin_api_key}}' \ --header 'Content-Type: application/json' \ --header 'api-key: {{admin-api-key}}' \ --data...
[ { "file_path": "crates/api_models/src/admin.rs", "lines": [ "\n", " /// Inidcates the state of revenue recovery algorithm type\n", " #[schema(value_type = Option<RevenueRecoveryAlgorithmType>, example = \"cascading\")]\n", " pub revenue_recovery_retry_algorithm_type:\n", ...
[ { "file_path": "crates/hyperswitch_domain_models/src/business_profile.rs", "lines": [ " revenue_recovery_retry_algorithm_type: None,\n" ] } ]
[ "rs" ]
3
juspay/hyperswitch
juspay__hyperswitch-8851
Bug: [BUG] (connector): [Netcetera] Fix three_ds_requestor_challenge_ind field in Netcetera Response ### Bug Description Currently we are not recieving field **_three_ds_requestor_challenge_ind_** in Netcetera's authentication response since the struct is incorrectly declared in the transformers file. 1. **_three...
diff --git a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs b/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs index fc334d68167..01189f6b926 100644 --- a/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs +++ b/crates/hyperswitch_connectors/src/connecto...
2025-08-06T10:59:53Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description Currently we are not recieving field **_three_ds_requestor_challenge_ind_** in Netcetera's authentication...
640d0552f96721d63c14fda4a07fc5987cea29a0
Tested netcetera's challenge via local hyperswitch sdk. As expected, we are now able to get **_three_ds_requestor_challenge_ind_** field in the NetceteraAuthenticationSuccessResponse. <img width="2560" height="135" alt="Screenshot 2025-08-06 at 4 29 03 PM" src="https://github.com/user-attachments/assets/45fee6c0-...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs", "lines": [ "\n", " let challenge_code = response\n", " .authentication_request\n", " .as_ref()\n", " .and_then(|req| ...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs", "lines": [ " challenge_code: response.three_ds_requestor_challenge_ind,\n", " #[serde(rename = \"threeDSRequestorChallengeInd\")]\n", " pub three_ds_requestor_challenge_ind: Op...
[ "rs" ]
1
juspay/hyperswitch
juspay__hyperswitch-8863
Bug: [FEATURE] Add new calculate job for revenue-recovery
diff --git a/crates/diesel_models/src/process_tracker.rs b/crates/diesel_models/src/process_tracker.rs index 3aefb486810..962f917788d 100644 --- a/crates/diesel_models/src/process_tracker.rs +++ b/crates/diesel_models/src/process_tracker.rs @@ -255,6 +255,9 @@ pub mod business_status { /// This status indicates th...
2025-08-06T03:26:33Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> **CALCULATE WORKFLOW** CALCULATE WORKFLOW When we receive fai...
0b59b9086cd68eef346413a27d03fa61fb6bb1f7
How to test invoice queuing and card switching: Create a business profile - where the default revenue_recovery_algorithm_type would be Monitoring by default. (Need to update it to Cascading and Smart and test the flows. Create a Payment Processor (worldpayvantiv) ```curl --location 'http://localhost:8...
[ { "file_path": "crates/diesel_models/src/process_tracker.rs", "lines": [ " /// This status indicates the failure of a execute task\n", " pub const EXECUTE_WORKFLOW_FAILURE: &str = \"FAILED_EXECUTE_TASK\";\n", "\n", "\n", " /// For the CALCULATE_WORKFLOW\n", " ...
[ { "file_path": "crates/router/src/core/revenue_recovery.rs", "lines": [ "use api_models::{enums, process_tracker::revenue_recovery};\n", "use hyperswitch_domain_models::{payments::PaymentIntent, ApiModelToDieselModelConvertor};\n", " routes::{metrics, SessionState},\n" ] }, { ...
[ "rs" ]
8
juspay/hyperswitch
juspay__hyperswitch-8855
Bug: [FEATURE] Add Gateway System Tracking in Feature Metadata for Routing Stickiness # Add Gateway System Tracking in Feature Metadata for Routing Stickiness ## Problem Statement Currently, payment routing decisions between Direct routing (hyperswitch) and Unified Connector Service (UCS) are made independen...
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs index 41938fc23d3..32b6cdf4116 100644 --- a/crates/common_enums/src/enums.rs +++ b/crates/common_enums/src/enums.rs @@ -2220,6 +2220,34 @@ pub enum PaymentMethod { MobilePayment, } +/// Indicates the gateway system through which th...
2025-08-06T12:41:26Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates ## Description This change adds gateway system tracking in the feature metadata to enable routing stickiness and improve payment flow routing decisions....
d4d8236e3102505553334b3d395496ae97ee8e14
- Tested payment creation, confirmation, and sync operations with both Direct and UCS routing - Verified that routing decisions are properly logged and persisted in feature metadata - Confirmed that stickiness logic correctly routes subsequent operations through the same gateway system - Tested error scenarios to en...
[ { "file_path": "crates/common_enums/src/enums.rs", "lines": [ "/// Indicates the gateway system through which the payment is processed.\n", "#[derive(\n", " Clone,\n", " Copy,\n", " Debug,\n", " Default,\n", " Eq,\n", " PartialOrd,\n", ...
[ { "file_path": "crates/diesel_models/src/types.rs", "lines": [ "#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, FromSqlRow, AsExpression)]\n" ] }, { "file_path": "crates/external_services/src/grpc_client/unified_connector_service.rs", "lines": [ " None => Non...
[ "rs" ]
13
juspay/hyperswitch
juspay__hyperswitch-8845
Bug: [BUG] Fix Refund Reason Type in Adyen ### Bug Description The reason field in AdyenRefundRequest is currently of type Option<String>, which allows any arbitrary string to be passed as the refund reason. Adyen supports only a fixed set of values (FRAUD, CUSTOMER REQUEST, RETURN, DUPLICATE, OTHER). If an unsuppo...
diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.toml index 0b378a05718..3bba4ca57d0 100644 --- a/crates/connector_configs/toml/production.toml +++ b/crates/connector_configs/toml/production.toml @@ -114,6 +114,8 @@ payment_method_type = "apple_pay" payment_method_t...
2025-08-06T04:03:19Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD Closes this [issue](https://github.com/juspay/hyperswitch/issues/8845) ## Description <!-- Describe your changes in d...
c1d982e3009ebe192b350c2067bf9c2a708d7320
Postman Test A. Refund(with valid reason): Request: ``` curl --location 'http://localhost:8080/refunds' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: dev_Emxcc7NEApdtpDZyA54Hc0hN43a4wvBTlJ0wIGGeGquavEbsE4lhVWQcyPV8jMFu' \ --data '{ "payment...
[ { "file_path": "crates/connector_configs/toml/production.toml", "lines": [ "[[adyen.voucher]]\n", " payment_method_type = \"boleto\"\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "lines": [ "use std::str::FromStr;\n", "\...
[ { "file_path": "crates/hyperswitch_connectors/src/connectors/adyen/transformers.rs", "lines": [ " merchant_refund_reason: Option<String>,\n", " merchant_refund_reason: item.router_data.request.reason.clone(),\n" ] } ]
[ "toml", "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8841
Bug: refactor(euclid): refactor logs for evaluation of equality for dynamic routing evaluate response Improve the logs for better diffs between legacy and decision_engine's euclid.
diff --git a/crates/router/src/core/payments/routing.rs b/crates/router/src/core/payments/routing.rs index 547f49ce552..19ddeb7f15f 100644 --- a/crates/router/src/core/payments/routing.rs +++ b/crates/router/src/core/payments/routing.rs @@ -48,7 +48,6 @@ use rand::SeedableRng; use router_env::{instrument, tracing}; u...
2025-08-04T12:02:20Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [x] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR refactors the routing logic to improve how **logs are emitted and connector evaluation is handl...
d418e1e59e2f4fd725c07a70cccabb992e1c12c6
The testing guidelines are present in this [doc](https://docs.google.com/document/d/1Atb-5bIgA-H_H2lS2O-plhtGUqHK4fcQ1XDXWjrcTHE/edit?usp=sharing).
[ { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ " // Decision of de-routing is stored\n", " let de_evaluated_connector = if !state.conf.open_router.static_routing_enabled {\n", " logger::debug!(\"decision_engine_euclid: decision_engine routing not enabl...
[ { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ "use utils::perform_decision_euclid_routing;\n", " let de_euclid_connectors = if state.conf.open_router.static_routing_enabled {\n", " let routing_events_wrapper = utils::RoutingEventsWrapper::new(\n", ...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8842
Bug: [FEATURE]:Store the user query of the chat bot Store the user query and response from the ai service for the analysis. Allow the api only for internal user
diff --git a/config/config.example.toml b/config/config.example.toml index b725be102c1..134e0a49e84 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -1257,6 +1257,7 @@ allow_connected_merchants = false # Enable or disable connected merchant account [chat] enabled = false ...
2025-08-04T07:06:02Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Store the user query and response from the ai service for t...
d6e925fd348af9b69bd3a756cd21142eeccd180a
Hitting AI service, should store information in DB ``` curl --location 'http://localhost:8080/chat/ai/data' \ --header 'x-feature: integ-custom' \ --header 'x-chat-session-id: chat-dop' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer JWT' \ --data '{ "message": "total count...
[ { "file_path": "config/config.example.toml", "lines": [ "encryption_key = \"\" # Key to encrypt and decrypt chats\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "encryption_key = \"\" # Key to encryp...
[ { "file_path": "crates/api_models/src/chat.rs", "lines": [ "#[derive(Debug, serde::Deserialize, serde::Serialize)]\n" ] }, { "file_path": "crates/api_models/src/events/chat.rs", "lines": [ "use crate::chat::{ChatRequest, ChatResponse};\n", "common_utils::impl_api_event_type...
[ "sql", "toml", "rs" ]
34
juspay/hyperswitch
juspay__hyperswitch-8847
Bug: feat: Add schema to store chat request response - add schema for chat, to store request and response - store chats to chat schema asynchronously - encrypt the sensitive data - have endpoint to list the chat data and decrypt it properly
diff --git a/config/config.example.toml b/config/config.example.toml index b725be102c1..134e0a49e84 100644 --- a/config/config.example.toml +++ b/config/config.example.toml @@ -1257,6 +1257,7 @@ allow_connected_merchants = false # Enable or disable connected merchant account [chat] enabled = false ...
2025-08-04T07:06:02Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Store the user query and response from the ai service for t...
d6e925fd348af9b69bd3a756cd21142eeccd180a
Hitting AI service, should store information in DB ``` curl --location 'http://localhost:8080/chat/ai/data' \ --header 'x-feature: integ-custom' \ --header 'x-chat-session-id: chat-dop' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer JWT' \ --data '{ "message": "total count...
[ { "file_path": "config/config.example.toml", "lines": [ "encryption_key = \"\" # Key to encrypt and decrypt chats\n" ] }, { "file_path": "config/deployments/env_specific.toml", "lines": [ "encryption_key = \"\" # Key to encryp...
[ { "file_path": "crates/api_models/src/chat.rs", "lines": [ "#[derive(Debug, serde::Deserialize, serde::Serialize)]\n" ] }, { "file_path": "crates/api_models/src/events/chat.rs", "lines": [ "use crate::chat::{ChatRequest, ChatResponse};\n", "common_utils::impl_api_event_type...
[ "sql", "toml", "rs" ]
34
juspay/hyperswitch
juspay__hyperswitch-8811
Bug: [BUG] recurring payouts fail when address is needed ### Bug Description Recurring payouts are failing when billing details are not supplied during payout creation. ### Expected Behavior Billing details should be fetched from DB while making recurring payouts. ### Actual Behavior Billing details are not sto...
diff --git a/crates/router/src/core/payments/routing.rs b/crates/router/src/core/payments/routing.rs index c7784118847..e4ce038b3bd 100644 --- a/crates/router/src/core/payments/routing.rs +++ b/crates/router/src/core/payments/routing.rs @@ -175,7 +175,8 @@ pub fn make_dsl_input_for_payouts( billing_country: pa...
2025-09-04T09:52:17Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [x] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR adds capability for payouts to use billing address in payment_methods. 1. During first payout ...
5e1fd0b187b99698936a8a0cb0d839a60b830de2
Scenarios to test (for address) 1. Processing CIPT and using that token for processing payout 2. Processing a recurring payout and using that token for processing payout <details> <summary>1. Create payments CIT</summary> cURL curl --location --request POST 'http://localhost:8080/payments' \ ...
[ { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ " .and_then(|ba| ba.address.as_ref())\n", " .and_then(|addr| addr.country)\n" ] }, { "file_path": "crates/router/src/core/payouts.rs", "lines": [ "use hyperswitch_domain_models::{s...
[ { "file_path": "crates/router/src/core/payments/routing.rs", "lines": [ " .and_then(|bic| bic.country)\n" ] }, { "file_path": "crates/router/src/core/payouts.rs", "lines": [ "use hyperswitch_domain_models::payment_methods::PaymentMethod;\n", " pub billing_addr...
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-8844
Bug: [FEATURE] Add support for health check endpoint and setting up configs in v2 ### Feature Description v2 application needs to have an endpoint for setting up configs and health check endpoint. ### Possible Implementation Replicate the v1 implementation ### Have you spent some time checking if this feature re...
diff --git a/crates/api_models/src/health_check.rs b/crates/api_models/src/health_check.rs index a6261da1be0..e782a3a100c 100644 --- a/crates/api_models/src/health_check.rs +++ b/crates/api_models/src/health_check.rs @@ -14,6 +14,7 @@ pub struct RouterHealthCheckResponse { pub grpc_health_check: HealthCheckMap, ...
2025-08-05T06:19:58Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [x] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> Introduced` /v2/configs` and `/v2/health` endpoints and for v2 ...
90f3b09a77484a4262608b0a4eeca7d452a4c968
Manual. 1. Hit V2 health endpoint. ``` curl --location '{{base_url}}/v2/health/ready' \ --header 'Content-Type: application/json' \ --header 'x-tenant-id: public' \ --data '' ``` response: ``` { "database": true, "redis": true, "analytics": true, "opensearch": false, "outgoing_req...
[ { "file_path": "crates/api_models/src/health_check.rs", "lines": [ " pub unified_connector_service: Option<bool>,\n" ] }, { "file_path": "crates/router/src/core/health_check.rs", "lines": [ "\n", " async fn health_check_unified_connector_service(\n", " &s...
[ { "file_path": "crates/router/src/routes/app.rs", "lines": [ "#[cfg(any(feature = \"olap\", feature = \"oltp\"))]\n" ] }, { "file_path": "crates/router/src/routes/configs.rs", "lines": [ " &auth::AdminApiAuth,\n", " &auth::AdminApiAuth,\n", " &aut...
[ "rs" ]
6
juspay/hyperswitch
juspay__hyperswitch-8807
Bug: [FIX]: Take merchant ID from headers in API Key Revoke (v2) For `API Key - Revoke` in v2, the merchant ID is currently being passed in the path. We need to instead read the `X-Merchant-ID` header to get the merchant ID.
diff --git a/crates/router/src/core/api_keys.rs b/crates/router/src/core/api_keys.rs index d76b338dc36..34b421d9e14 100644 --- a/crates/router/src/core/api_keys.rs +++ b/crates/router/src/core/api_keys.rs @@ -425,18 +425,18 @@ pub async fn update_api_key_expiry_task( #[instrument(skip_all)] pub async fn revoke_api_ke...
2025-07-31T08:31:25Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [x] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> - Removed merchant ID from path in `API Keys - Revoke` - Chang...
794dce168e6b4d280c9c742a6e8a3b3283e09602
- V1: Request: ``` curl --location --request DELETE 'http://localhost:8080/api_keys/merchant_1753949938/dev_8Xwp8SIyp0R4ItROu0tR' \ --header 'Content-Type: application/json' \ --header 'Accept: application/json' \ --header 'api-key: test_admin' ``` Response: ```json { "merchant_id": "merchant_175...
[ { "file_path": "crates/router/src/core/api_keys.rs", "lines": [ " merchant_id: common_utils::id_type::MerchantId,\n", " .find_api_key_by_merchant_id_key_id_optional(&merchant_id, key_id)\n", " .revoke_api_key(&merchant_id, key_id)\n" ] }, { "file_path": "crates...
[ { "file_path": "crates/router/src/core/api_keys.rs", "lines": [ " merchant_id: &common_utils::id_type::MerchantId,\n", " .find_api_key_by_merchant_id_key_id_optional(merchant_id, key_id)\n", " .revoke_api_key(merchant_id, key_id)\n" ] }, { "file_path": "crates/...
[ "rs" ]
2
juspay/hyperswitch
juspay__hyperswitch-8804
Bug: [FEATURE] Request fields to be populated on top level ### Feature Description Few fields of request to be passed on to top level for certain operations ### Possible Implementation parse the value and then add it to the events ### Have you spent some time checking if this feature request has been raised befo...
diff --git a/crates/router/src/configs/secrets_transformers.rs b/crates/router/src/configs/secrets_transformers.rs index d4eb34838d6..4f53a2ef2df 100644 --- a/crates/router/src/configs/secrets_transformers.rs +++ b/crates/router/src/configs/secrets_transformers.rs @@ -547,5 +547,6 @@ pub(crate) async fn fetch_raw_secre...
2025-07-29T06:12:18Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [ ] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description <!-- Describe your changes in detail --> This feature allows based on deployment config , it is able to ...
1e6a088c04b40c7fdd5bc65c1973056bf58de764
Test 1 In ```development.toml``` ```bash [enhancement] "merchant_reference_id" = "txn_uuid" ``` <img width="540" height="732" alt="Screenshot 2025-07-29 at 11 40 30 AM" src="https://github.com/user-attachments/assets/8eb747d8-7bc7-441f-8cb3-e1d992ee1671" /> ```json { "tenant_id": "public", "merchant_i...
[ { "file_path": "crates/router/src/configs/secrets_transformers.rs", "lines": [ " enhancement: conf.enhancement,\n" ] }, { "file_path": "crates/router/src/configs/settings.rs", "lines": [ " #[serde(default)]\n", " pub enhancement: Option<HashMap<String, String>>...
[ { "file_path": "crates/router/src/services/api.rs", "lines": [ " let infra = state.infra_components.clone();\n" ] } ]
[ "rs" ]
4
juspay/hyperswitch
juspay__hyperswitch-8806
Bug: [BUG] Add additional authentication fields for 3ds external authentication ### Bug Description Cybersource payments via Netcetera are failing for a France based acquirer in prod with Carte Bancaires card, the below fields needs to be added to fix the same. 1. challenge_code 2. challenge_code_reason 3. challen...
diff --git a/crates/diesel_models/src/authentication.rs b/crates/diesel_models/src/authentication.rs index 915d661bad2..c844df0a699 100644 --- a/crates/diesel_models/src/authentication.rs +++ b/crates/diesel_models/src/authentication.rs @@ -1,4 +1,4 @@ -use common_utils::encryption::Encryption; +use common_utils::{encr...
2025-07-25T07:36:19Z
## Type of Change <!-- Put an `x` in the boxes that apply --> - [ ] Bugfix - [ ] New feature - [X] Enhancement - [ ] Refactoring - [ ] Dependency updates - [ ] Documentation - [ ] CI/CD ## Description This PR introduces the following changes 1. Added additional authentication fields for 3ds external aut...
f3c0a9bfb05af5c9c826799f0e16e9c9460870f5
### Card used for testing (mastercard with challenge flow) 5306 8899 4283 3340 ### Successful 3DS challenge completion flow _Tested using local hyperswitch sdk and hyperswitch backend_ [Test video](https://drive.google.com/file/d/1rV5mnly1WdvLk8Ff1_r16vAxBqgGJVUJ/view?usp=sharing) Connector Reque...
[ { "file_path": "crates/diesel_models/src/authentication.rs", "lines": [ "use common_utils::{encryption::Encryption, pii};\n", " pub challenge_code: Option<String>,\n", " pub challenge_cancel: Option<String>,\n", " pub challenge_code_reason: Option<String>,\n", " pub...
[ { "file_path": "crates/diesel_models/src/authentication.rs", "lines": [ "use common_utils::encryption::Encryption;\n" ] }, { "file_path": "crates/hyperswitch_connectors/src/connectors/cybersource/transformers.rs", "lines": [ " CompleteAuthorizeData, PaymentsAuthorizeData, ...
[ "sql", "rs" ]
26