Repository Analysis

juspay/hyperswitch

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

1.3 Likely human-written View on GitHub
1.3
Adjusted Score
1.3
Raw Score
100%
Time Factor
2026-05-30
Last Push
42,793
Stars
Rust
Language
1,736,247
Lines of Code
12137
Files
2059
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 12HIGH 1MEDIUM 155LOW 1891

Pattern Findings

2059 matches across 13 categories. Click a row to expand file-level details.

Fake / Example Data927 hits · 941 pts
SeverityFileLineSnippet
LOWcrates/common_utils/src/payout_method_utils.rs73 #[schema(value_type = String, example = "John Doe")]
LOWcrates/common_utils/src/payout_method_utils.rs127 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/common_utils/src/payout_method_utils.rs158 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/common_utils/src/payout_method_utils.rs189 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/common_utils/src/payout_method_utils.rs313 #[schema(value_type = String, example = "John Doe")]
LOWcrates/common_utils/src/payout_method_utils.rs348 #[schema(value_type = String, example = "John Doe")]
LOWcrates/common_utils/src/payout_method_utils.rs362 #[schema(value_type = String, example = "John Doe")]
LOWcrates/test_utils/tests/connectors/nuvei_ui.rs122 Event::Trigger(Trigger::ChangeQueryParam("sender_holder", "John Doe")),
LOWcrates/test_utils/tests/connectors/nuvei_ui.rs136 Event::Trigger(Trigger::SendKeys(By::Id("ctl00_ctl00_mainContent_ServiceContent_txtCustomerName"), "John Doe
LOWcrates/diesel_models/src/payment_attempt.rs4863 "card_holder_name": "John Doe"
LOWcrates/openapi/src/routes/merchant_account.rs76 "primary_contact_person": "John Doe",
LOWcrates/openapi/src/routes/merchant_account.rs87 "key_1": "John Doe",
LOWcrates/openapi/src/routes/merchant_account.rs208 "primary_contact_person": "John Doe",
LOWcrates/openapi/src/routes/payment_method.rs19 "card_holder_name": "John Doe"
LOWcrates/openapi/src/routes/payments.rs208 "name": "John Doe",
LOWcrates/openapi/src/routes/customers.rs13 "name": "John Doe"
LOWcrates/openapi/src/routes/customers.rs58 "name": "John Doe"
LOWcrates/openapi/src/routes/customers.rs130 "name": "John Doe"
LOWcrates/openapi/src/routes/customers.rs165 "name": "John Doe"
LOWcrates/openapi/src/routes/customers.rs241 "name": "John Doe"
LOWcrates/openapi/src/routes/customers.rs275 "name": "John Doe"
LOWcrates/api_models/src/payment_methods.rs834 #[schema(value_type = String,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs838 #[schema(value_type = Option<String>,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs897 #[schema(value_type = String,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs901 #[schema(value_type = Option<String>,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs962 #[schema(value_type = Option<String>,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs966 #[schema(value_type = String,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs991 #[schema(value_type = String,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs995 #[schema(value_type = Option<String>,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs1031 #[schema(value_type = String,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs1035 #[schema(value_type = Option<String>,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs1078 #[schema(value_type = String, example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs1082 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs1141 #[schema(value_type = String,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs1145 #[schema(value_type = Option<String>,example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs1720 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs1959 #[schema(value_type=Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs4303 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs4307 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payment_methods.rs59 "card_holder_name": "John Doe"}))]
LOWcrates/api_models/src/payment_methods.rs566 "card_holder_name": "John Doe"}))]
LOWcrates/api_models/src/payouts.rs370 #[schema(value_type = String, example = "John Doe")]
LOWcrates/api_models/src/payouts.rs426 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payouts.rs453 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payouts.rs481 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payouts.rs570 #[schema(value_type = String, example = "John Doe")]
LOWcrates/api_models/src/payouts.rs580 #[schema(value_type = String, example = "John Doe")]
LOWcrates/api_models/src/payouts.rs672 #[schema(value_type = String, example = "John Doe")]
LOWcrates/api_models/src/payments.rs137 #[schema(max_length = 255, value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payments.rs188 #[schema(max_length = 255, value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payments.rs218 #[schema(max_length = 255, value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payments.rs2840 #[schema(value_type = String, example = "John Doe")]
LOWcrates/api_models/src/payments.rs2936 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payments.rs4501 #[schema(value_type = Option<String>, example = "Jane Doe")]
LOWcrates/api_models/src/payments.rs4605 #[schema(value_type = String, example = "John Doe")]
LOWcrates/api_models/src/payments.rs4895 #[schema(value_type = Option<String>, example = "John Doe")]
LOWcrates/api_models/src/payments.rs6941 #[schema(value_type = String, example = "Jane Doe")]
LOWcrates/api_models/src/payments.rs6983 #[schema(value_type = String, example = "Jane Doe")]
LOWcrates/api_models/src/payments.rs11682 "value": "user@example.com"
LOWcrates/api_models/src/payments.rs11731 "value": "user@example.com"
867 more matches not shown…
Over-Commented Block897 hits · 698 pts
SeverityFileLineSnippet
LOWcrates/storage_impl/src/platform_wrapper.rs1/// Platform wrapper for database operations
LOWcrates/common_utils/src/tokenization.rs1//! Module for tokenization-related functionality
LOWcrates/common_utils/src/new_type.rs21)]
LOWcrates/common_utils/src/new_type.rs41/// - Otherwise, keeps `unmasked_char_count` characters unmasked only at the end.
LOWcrates/common_utils/src/errors.rs1//! Errors and error specific types for universal use
LOWcrates/common_utils/src/errors.rs21 ///Failed to parse struct
LOWcrates/common_utils/src/errors.rs41 FloatToDecimalConversionFailure,
LOWcrates/common_utils/src/errors.rs81
LOWcrates/common_utils/src/errors.rs101 #[error("Failed to sign message")]
LOWcrates/common_utils/src/errors.rs121 #[error("Failed to create Qr code")]
LOWcrates/common_utils/src/ucs_types.rs1use crate::id_type;
LOWcrates/common_utils/src/ucs_types.rs41/// Represents a resource ID for the Unified Connector Service (UCS).
LOWcrates/common_utils/src/macros.rs441 .rsplit("::")
LOWcrates/common_utils/src/macros.rs461/// # Input Enum Format and Constraints
LOWcrates/common_utils/src/macros.rs481/// * `serde::Serialize` and `serde::Deserialize<'de>`: Although the macro implements
LOWcrates/common_utils/src/macros.rs501///
LOWcrates/common_utils/src/macros.rs521/// fn main() {
LOWcrates/common_utils/src/macros.rs541/// assert_eq!(explicit_invalid, Setting::Invalid); // "Invalid" string yields Invalid
LOWcrates/common_utils/src/payout_method_utils.rs221 pub bank_branch: Option<String>,
LOWcrates/common_utils/src/payout_method_utils.rs361 /// Account holder name
LOWcrates/common_utils/src/link_utils.rs141}
LOWcrates/common_utils/src/types/authentication.rs21 /// MerchantLevel: Authentication at the merchant level
LOWcrates/common_utils/src/id_type/global_id/customer.rs1use crate::errors;
LOWcrates/hyperswitch_domain_models/src/payments.rs801 /// The description of the order. This will be passed to connectors which support description.
LOWcrates/hyperswitch_domain_models/src/payments.rs841 pub frm_merchant_decision: Option<common_enums::MerchantDecision>,
LOWcrates/hyperswitch_domain_models/src/payments.rs861 pub merchant_reference_id: Option<id_type::PaymentReferenceId>,
LOW…s/hyperswitch_domain_models/src/connector_endpoints.rs201/// struct ConnectorParamsWithKeys
LOW…s/hyperswitch_domain_models/src/connector_endpoints.rs241 /// base url for file upload
LOW…ates/hyperswitch_domain_models/src/revenue_recovery.rs41 pub payment_method_type: common_enums::PaymentMethod,
LOW…erswitch_domain_models/src/payments/payment_attempt.rs261 /// The total amount for this payment attempt. This includes all the surcharge and tax amounts.
LOW…erswitch_domain_models/src/payments/payment_attempt.rs281
LOW…erswitch_domain_models/src/payments/payment_attempt.rs381 /// The unified code that is generated by the application based on the global status map record.
LOW…erswitch_domain_models/src/payments/payment_attempt.rs741 pub amount_details: AttemptAmountDetails,
LOW…_domain_models/src/router_request_types/fraud_check.rs81#[derive(Debug, Deserialize, Serialize, Clone, ToSchema)]
LOW…_domain_models/src/router_request_types/fraud_check.rs101 //tracking ID of the product
LOW…ates/hyperswitch_connectors/src/connectors/razorpay.rs721// .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?;
LOW…ates/hyperswitch_connectors/src/connectors/razorpay.rs741// hyperswitch_masking::Secret<serde_json::Value>,
LOWcrates/hyperswitch_connectors/src/connectors/zift.rs661}
LOWcrates/hyperswitch_connectors/src/connectors/zift.rs681 // Ok(format!("{}gates/xurl", self.base_url(connectors)))
LOWcrates/hyperswitch_connectors/src/connectors/zift.rs701
LOW…tes/hyperswitch_connectors/src/connectors/santander.rs1601 _req: &PaymentsCancelRouterData,
LOW…tes/hyperswitch_connectors/src/connectors/santander.rs1621 // self.base_url(connectors),
LOW…tes/hyperswitch_connectors/src/connectors/santander.rs1641
LOW…tes/hyperswitch_connectors/src/connectors/santander.rs1681 // let auth_details = SantanderAuthType::try_from(&req.connector_auth_type)?;
LOW…h_connectors/src/connectors/powertranz/transformers.rs101// first_name: Option<Secret<String>>,
LOW…erswitch_connectors/src/connectors/nordea/responses.rs121 /// Marked as required field in the docs, but connector does not send amount in payment_response.amount
LOW…erswitch_connectors/src/connectors/nordea/responses.rs141 pub indicative_exchange_rate: Option<ExchangeRate>,
LOW…erswitch_connectors/src/connectors/nordea/responses.rs161 pub requested_execution_date: Option<String>,
LOW…perswitch_connectors/src/connectors/nordea/requests.rs141 /// Address
LOW…perswitch_connectors/src/connectors/nordea/requests.rs161 /// Own message to be on the debtor's transaction.
LOW…perswitch_connectors/src/connectors/nordea/requests.rs281#[derive(Debug, Serialize, Deserialize, PartialEq)]
LOW…perswitch_connectors/src/connectors/nordea/requests.rs301 pub debitor_account: DebitorAccount,
LOW…perswitch_connectors/src/connectors/nordea/requests.rs321 /// pushed to the next valid bank day, or return an error if a non-banking day date was
LOW…witch_connectors/src/connectors/helcim/transformers.rs461// }
LOW…switch_connectors/src/connectors/globalpay/response.rs61 Declined,
LOW…switch_connectors/src/connectors/globalpay/requests.rs101 pub payment_token: Option<serde_json::Value>,
LOW…switch_connectors/src/connectors/globalpay/requests.rs121 /// merchant automatically and as soon as possible.
LOW…switch_connectors/src/connectors/globalpay/requests.rs141 /// A Customer NOT Present transaction is when the payer and the merchant are not
LOW…switch_connectors/src/connectors/globalpay/requests.rs181 PayByGoogle,
LOW…switch_connectors/src/connectors/globalpay/requests.rs201 #[default]
837 more matches not shown…
Decorative Section Separators136 hits · 382 pts
SeverityFileLineSnippet
MEDIUMcrates/redis_interface/src/test.rs22// ─── Helpers ──────────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs103// ─── Consumer Group Validation ────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs133// ─── Key Commands ─────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs535// ─── Get / Multiple Keys ──────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs754// ─── Serialization ────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs867// ─── TTL ──────────────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs931// ─── Hash Commands ────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs1176// ─── MSETNX ───────────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs1268// ─── Stream Commands ──────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs1586// ─── Consumer Group Commands ──────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs1757// ─── List Commands ────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs1792// ─── Lua Scripts ──────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs1867// ─── SCAN ─────────────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs1906// ─── Pub/Sub ──────────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs1975// ─── on_error / max_failure_threshold_seconds ─────────────────────────────────
MEDIUMcrates/redis_interface/src/test.rs2065// ─── Cluster-mode tests ──────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/types.rs14// ─── RedisValue — wrapper whose inner type depends on the active backend ─────
MEDIUMcrates/redis_interface/src/types.rs26// ─── Shared configuration types ─────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/types.rs130// ─── RedisEntryId ────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/types.rs161// ─── Reply type enums ────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/types.rs249// ─── Stream types ────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/types.rs271// ─── Stream trim types ────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/types.rs348// ─── RedisKey ────────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/types.rs370// ─── Tests (backend-neutral only) ────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs.rs17// ─── Cluster abstraction ────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs.rs59// ─── Subscriber client with auto-resubscribe ────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs.rs327// ─── Publisher client ────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs.rs351// ─── Connection pool ─────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs.rs567// ─── RedisSettings helpers (redis-rs backend only) ────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred.rs22// ─── RedisClient (publisher) ────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred.rs63// ─── SubscriberClient ────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred.rs166// ─── Connection pool ─────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred.rs318// ─── RedisConfig ─────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/types.rs8// ─── RedisValue impls ────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/types.rs133// ─── RedisEntryId ────────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/types.rs144// ─── Reply type trait impls ──────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/types.rs247// ─── Redis-rs-specific helpers ───────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/types.rs302// ─── Backend-specific tests ──────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/commands.rs43 // ─── Key Commands ────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/commands.rs505 // ─── Hash Commands ───────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/commands.rs843 // ─── Set Commands ────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/commands.rs860 // ─── Stream Commands ─────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/commands.rs1077 // ─── List Commands ───────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/commands.rs1223 // ─── Lua Scripting ───────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/redis_rs/commands.rs1252 // ─── Transactions ────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred/types.rs12// ─── RedisValue impls ────────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred/types.rs65// ─── RedisEntryId → XID ──────────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred/types.rs99// ─── Reply type trait impls ──────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred/types.rs180// ─── StreamCapKind / StreamCapTrim conversions ───────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred/types.rs200// ─── StreamTrimConfig → XCap ─────────────────────────────────────────────────
MEDIUMcrates/redis_interface/src/module/fred/types.rs210// ─── RedisScanType → fred ScanType ──────────────────────────────────────────
MEDIUMcypress-tests/mitm-proxy/mitm_replay.py26# ───── config ─────
MEDIUMcypress-tests/mitm-proxy/mitm_replay.py42# ───── cassette store ─────
MEDIUMcypress-tests/mitm-proxy/mitm_replay.py109# ───── response materialisation ─────
MEDIUMcypress-tests/mitm-proxy/mitm_replay.py141# ───── admin server ─────
MEDIUMcypress-tests/mitm-proxy/mitm_replay.py179# ───── boot ─────
MEDIUMcypress-tests/mitm-proxy/mitm_replay.py185# ───── mitmproxy hook ─────
MEDIUMcypress-tests/mitm-proxy/start_record.sh13# ── Verify required tooling is installed ──────────────────────────────────
MEDIUMcypress-tests/mitm-proxy/start_record.sh23# ── Generate mitmproxy CA cert on first run ────────────────────────────────
MEDIUMcypress-tests/mitm-proxy/start_record.sh39# ── Print env vars BEFORE blocking on mitmproxy ───────────────────────────
76 more matches not shown…
Hallucination Indicators12 hits · 120 pts
SeverityFileLineSnippet
CRITICAL…switch_connectors/src/connectors/adyen/transformers.rs3416 if let Some(auth_data) = value.0.router_data.request.authentication_data.as_ref() {
CRITICAL…nectors/unified_authentication_service/transformers.rs1029 let message_category = item.router_data.request.transaction_details.message_category.clone().map(|category| matc
CRITICALcrates/router/src/types/domain/types.rs17 global_tenant_id: app_state.conf.multitenancy.global_tenant.tenant_id.clone(),
CRITICALcrates/router/src/types/domain/types.rs41 global_tenant_id: state.conf.multitenancy.global_tenant.tenant_id.clone(),
CRITICALcrates/router/src/core/payments/flows/session_flow.rs247 let mut url = state.conf.connectors.applepay.base_url.to_owned();
CRITICALcrates/router/src/core/payment_methods/transformers.rs1383 modular_service_prefix: state.conf.micro_services.payment_methods_prefix.0.clone(),
CRITICALcrates/router/src/core/payment_methods/transformers.rs1909 modular_service_prefix: state.conf.micro_services.payment_methods_prefix.0.clone(),
CRITICALcrates/router/src/core/payment_methods/transformers.rs2020 modular_service_prefix: state.conf.micro_services.payment_methods_prefix.0.clone(),
CRITICALcrates/router/src/core/payment_methods/transformers.rs2073 modular_service_prefix: state.conf.micro_services.payment_methods_prefix.0.clone(),
CRITICALcypress-tests/cypress/support/commands.js3765 ).to.exist.and.to.be.a("string");
CRITICALpostman/collection-json/tunnel.postman_collection.json1376 " pm.expect(jsonData.refunds).to.be.an('array').and.to.have.lengthOf.at.least(1);",
CRITICAL…llection-dir/tunnel/Refund/Create-Refund/event.test.js32 pm.expect(jsonData.refunds).to.be.an('array').and.to.have.lengthOf.at.least(1);
Verbosity Indicators32 hits · 52 pts
SeverityFileLineSnippet
LOWcrates/hyperswitch_domain_models/src/type_encryption.rs1555 // Index 4 would be ':', but we need to check if this is found
LOWcrates/hyperswitch_domain_models/src/router_data.rs1136 // Step 1: Determine attempt_status using existing logic
LOWcrates/hyperswitch_domain_models/src/router_data.rs1145 // Step 2: Check if amount was captured
LOWcrates/hyperswitch_domain_models/src/router_data.rs1157 // Step 3: Map to intent status based on both attempt_status and amount_captured
LOWcrates/hyperswitch_domain_models/src/router_data.rs1592 // Step 1: Determine attempt_status using existing logic
LOWcrates/hyperswitch_domain_models/src/router_data.rs1602 // Step 2: Check if amount was captured
LOWcrates/hyperswitch_domain_models/src/router_data.rs1612 // Step 3: Map to intent status based on both attempt_status and amount_captured
LOWcrates/api_models/src/revenue_recovery_data_backfill.rs263 // Step 1: Open the file
LOWcrates/api_models/src/revenue_recovery_data_backfill.rs269 // Step 2: Parse CSV into typed records
LOWcrates/payment_methods/src/core/migration.rs154 // Step 1: Validate form-level conflicts
LOWcrates/payment_methods/src/core/migration.rs173 // Step 2: Parse CSV
LOWcrates/payment_methods/src/core/migration.rs180 // Step 3: Validate CSV vs Form conflicts
LOWcrates/payment_methods/src/core/migration.rs187 // Step 4: Prepare the merchant connector account IDs for return
LOWcrates/payment_methods/src/core/migration.rs201 // Step 5: Return the updated structure
LOWcrates/injector/src/injector.rs658 // Step 1: process the template
LOWcrates/injector/src/injector.rs670 // Step 2: determine content-type from headers
LOWcrates/injector/src/injector.rs678 // Step 3: send via the strategy
LOW…s/hyperswitch_interfaces/src/micro_service/executor.rs58 // Step 1: Build path and URL.
LOW…s/hyperswitch_interfaces/src/micro_service/executor.rs84 // Step 2: Build headers and inject trace/request/tenant context.
LOW…s/hyperswitch_interfaces/src/micro_service/executor.rs114 // Step 3: Attach body (if any).
LOW…s/hyperswitch_interfaces/src/micro_service/executor.rs119 // Step 4: Execute request and decode response.
LOW…src/workflows/payment_method_modular_forward_compat.rs30 // Step 1: Parse PT tracking payload and load merchant context (key store + account).
LOW…src/workflows/payment_method_modular_forward_compat.rs63 // Step 2: Populate v1 compat fields used by PM modular service.
LOW…src/workflows/payment_method_modular_forward_compat.rs87 // Step 3: Non-card payment methods do not require locker migration.
LOW…src/workflows/payment_method_modular_forward_compat.rs109 // Step 4: Fetch card payload from legacy locker only when locker_id is present.
LOW…src/workflows/payment_method_modular_forward_compat.rs126 // Step 5: Upsert the card into generic locker via direct AddVault call.
LOW…src/workflows/payment_method_modular_forward_compat.rs174 // Step 6: Migrate network token to generic locker when an NT locker id is present.
LOW…src/workflows/payment_method_modular_forward_compat.rs275 // Step 7: Mark process as completed once the required branch is done.
LOWcrates/router/src/services/authentication.rs883 // Step 1: Admin API Key and API Key Fallback (if allowed)
LOWcrates/router/src/services/authentication.rs901 // Step 2: Try Platform Auth
LOWcrates/router/src/services/authentication.rs1123 // Step 1: Admin API Key and API Key Fallback (if allowed)
LOWcrates/router/src/services/authentication.rs1139 // Step 2: Platform authentication
AI Slop Vocabulary13 hits · 39 pts
SeverityFileLineSnippet
MEDIUM…connectors/src/connectors/netcetera/netcetera_types.rs342/// Enum indicating whether the 3DS Requestor requests the ACS to utilize Decoupled Authentication.
MEDIUM…connectors/src/connectors/netcetera/netcetera_types.rs1519 /// characters and it shall have a canonical format as defined in IETF RFC 4122. This may utilize any of the specifi
MEDIUM…connectors/src/connectors/netcetera/netcetera_types.rs1550 /// limited to 36 characters and it shall be in a canonical format as defined in IETF RFC 4122. This may utilize any
MEDIUM…connectors/src/connectors/netcetera/netcetera_types.rs1571 /// canonical format as defined in IETF RFC 4122. This may utilize any of the specified
MEDIUMcrates/smithy/src/lib.rs1142 // Use more robust parsing that handles all serde attributes
MEDIUMcrates/smithy/src/lib.rs1236 // Use more robust parsing that handles all serde attributes
MEDIUMcrates/test_utils/src/newman_runner.rs314 // This will be replaced by a more robust and efficient account creation or reuse existing old account
MEDIUMcrates/api_models/src/payments.rs2129 /// The transaction authentication can be set to undergo payer authentication. By default, the authentication will b
MEDIUMcrates/api_models/src/payments.rs7303 /// The transaction authentication can be set to undergo payer authentication. By default, the authentication will b
MEDIUMcrates/hyperswitch_interfaces/src/api/gateway.rs7//! The gateway abstraction allows seamless switching between execution paths without
MEDIUMcypress-tests/cypress/support/redirectionHandler.js2851 // For embedded flows using an iframe - use robust detection:
MEDIUMcypress-tests/mitm-proxy/mitm_replay.py57 # (robust against legacy filenames without the seq suffix).
MEDIUMloadtest/k6/helper/k6-summary.js425 // TODO: something more robust?
Self-Referential Comments6 hits · 17 pts
SeverityFileLineSnippet
MEDIUM.typos.toml127 "CHANGELOG.md", # This file contains all the commits
MEDIUMscripts/notify_scarf.sh4# Define the URL and parameters
MEDIUMscripts/prestart_hook.sh12# Define the URL and parameters
MEDIUM…ithub/api-migration-compatibility/migration-rules.yaml2# This file defines SQL patterns that are considered breaking changes or warnings
MEDIUM.github/workflows/release-stable-version.yml127 # Create a lightweight tag to point to the checked out CalVer tag
MEDIUM.github/workflows/cypress-tests-runner.yml1013 # Create an isolated venv for mitmproxy so we don't touch the
Redundant / Tautological Comments13 hits · 16 pts
SeverityFileLineSnippet
LOWconfig/config.example.toml140use_xray_generator = false # Set this to true for AWS X-ray compatible traces
LOWconfig/docker_compose.toml26use_xray_generator = false # Set this to true for AWS X-ray compatible traces
LOWconfig/deployments/env_specific.toml160use_xray_generator = false # Set this to true for AWS X-ray compatible traces
LOWscripts/seed_superposition.sh35# Check if seed file exists
LOWscripts/hyperswitch-explore.sh648 # Check if migrations already applied
LOWscripts/hyperswitch-explore.sh742# Check if a port is in use
LOWscripts/hyperswitch-explore.sh670 # Check if already migrated
LOWscripts/create_default_user.sh17# Check if user needs to be created
LOWscripts/migration_runner_entrypoint.sh5# Check if DATABASE_URL is provided, otherwise construct it from individual components
LOWscripts/poststart_hook.sh44# Check if the response contains an error
LOWscripts/prestart_hook.sh6# Check if ONE_CLICK_SETUP is set to true; if so, skip execution
LOW.github/workflows/release-nightly-version-reusable.yml78 # Check if any tags exist on the current branch which contain the current UTC date
LOW.github/scripts/validate_migrations.sh15# Check if migration directory exists
Hyper-Verbose Identifiers16 hits · 16 pts
SeverityFileLineSnippet
LOW…ore/payment_link/payment_link_initiate/payment_link.js450function handleFormReadyForSubmission() {
LOW…ore/payment_link/payment_link_initiate/payment_link.js731function renderDynamicMerchantDetails(paymentDetails) {
LOW…ore/payment_link/payment_link_initiate/payment_link.js874function createHyperSwitchBrandingSVGElement(wrapperId) {
LOWcrates/router/src/services/api.rs1547 function submitCollectionReference(collectionReference) {{
LOWcypress-tests/cypress/support/redirectionHandler.js29function normalizeConnectorForRedirect(connectorId) {
LOWcypress-tests/cypress/support/redirectionHandler.js461function affirmPayLaterRedirection(
LOWcypress-tests/cypress/support/redirectionHandler.js2644function paymentLinkCardRedirection(
LOWcypress-tests/cypress/support/commands.js48function skipRedirectionInMockServer(commandName) {
LOWcypress-tests/cypress/support/commands.js81function createIndividualRolloutConfig(
LOWcypress-tests/cypress/support/commands.js481function cleanupProcessedRequestIds(
LOWcypress-tests/cypress/support/commands.js7009 function processResultsSequentially(
LOWcypress-tests/cypress/e2e/configs/Payment/Utils.js322function shouldProceedWithOperation(multipleConnector, multipleConnectors) {
LOWcypress-tests/cypress/e2e/configs/Payment/Utils.js372export function createMerchantConnectorAccount(
LOWcypress-tests/dashboard/dashboard.js999function setupFailedTestsCollapsible() {
LOWloadtest/k6/helper/k6-summary.js158function toFixedNoTrailingZerosTrunc(val, prec) {
LOWloadtest/k6/helper/k6-summary.js220function nonTrendMetricValueForSum(metric, timeUnit) {
Synthetic Comment Markers1 hit · 5 pts
SeverityFileLineSnippet
HIGHcypress-tests/cypress/e2e/configs/Payment/Authipay.js926 TRIGGER_SKIP: true, // Skip as requested by user
Example Usage Blocks3 hits · 4 pts
SeverityFileLineSnippet
LOWcypress-tests/mitm-proxy/start_record.sh4# Usage:
LOWcypress-tests/mitm-proxy/start_replay.sh4# Usage:
LOWscripts/hyperswitch-explore.sh6# Usage:
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippet
LOWcrates/events/src/lib.rs67#[must_use = "make sure to call `emit` or `try_emit` to actually emit the event"]
LOWscripts/add_connector.sh5 # Comment below line to stop undoing changes when the script is triggered, make sure you undo this change before pus
Deep Nesting1 hit · 1 pts
SeverityFileLineSnippet
LOWcypress-tests/mitm-proxy/mitm_capture.py142