juspay/hyperswitch · error · ApiErrorResponse::InternalServerError

Bankofamerica requires SignatureKey auth type

Error message

Bankofamerica requires SignatureKey auth type

What it means

Error "Bankofamerica requires SignatureKey auth type" thrown in juspay/hyperswitch.

Source

Thrown at crates/router/src/core/unified_connector_service/connector_config.rs:1204

                    api_secret: api_secret.clone(),
                }),
                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::Authipay {
                    api_key: api_key.clone(),
                    api_secret: key1.clone(),
                }),
                _ => Err(err("Authipay requires SignatureKey or BodyKey auth type")),
            },
            Connector::Bankofamerica => match auth {
                ConnectorAuthType::SignatureKey {
                    api_key,
                    key1,
                    api_secret,
                } => Ok(Self::BankOfAmerica {
                    api_key: api_key.clone(),
                    merchant_account: key1.clone(),
                    api_secret: api_secret.clone(),
                }),
                _ => Err(err("Bankofamerica requires SignatureKey auth type")),
            },
            Connector::Bamboraapac => match auth {
                ConnectorAuthType::SignatureKey {
                    api_key,
                    key1,
                    api_secret,
                } => Ok(Self::Bamboraapac {
                    username: api_key.clone(),
                    password: api_secret.clone(),
                    account_number: key1.clone(),
                }),
                _ => Err(err("Bamboraapac requires SignatureKey auth type")),
            },
            Connector::Affirm => match auth {
                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::Affirm {
                    public_key: api_key.clone(),
                    private_key: key1.clone(),
                }),

View on GitHub (pinned to 3093f22cc4)

Solutions

  1. Configure the merchant connector account for Bankofamerica with the SignatureKey connector_auth_type
  2. Recreate/update the connector account credentials to match the SignatureKey schema

When it happens

Trigger: Thrown at crates/router/src/core/unified_connector_service/connector_config.rs:1149 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of juspay/hyperswitch@3093f22cc4 (2026-08-19). Data as JSON: /api/errors/5fd0268370d43af1. Report an issue: GitHub.