juspay/hyperswitch · error · error_stack::Report<ApiErrorResponse>
Paypal requires BodyKey or SignatureKey auth type
Error message
Paypal requires BodyKey or SignatureKey auth type
What it means
Error "Paypal requires BodyKey or SignatureKey auth type" thrown in juspay/hyperswitch.
Source
Thrown at crates/router/src/core/unified_connector_service/connector_config.rs:905
}
_ => Err(err("Truelayer requires BodyKey auth type")),
},
Connector::Paypal => match auth {
ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::Paypal {
client_id: key1.clone(),
client_secret: api_key.clone(),
payer_id: None,
}),
ConnectorAuthType::SignatureKey {
api_key,
key1,
api_secret,
} => Ok(Self::Paypal {
client_id: key1.clone(),
client_secret: api_key.clone(),
payer_id: Some(api_secret.clone()),
}),
_ => Err(err("Paypal requires BodyKey or SignatureKey auth type")),
},
Connector::Revolv3 => match auth {
ConnectorAuthType::HeaderKey { api_key } => Ok(Self::Revolv3 {
api_key: api_key.clone(),
}),
_ => Err(err("Revolv3 requires HeaderKey auth type")),
},
Connector::Fiservcommercehub => match auth {
ConnectorAuthType::MultiAuthKey {
api_key,
key1,
api_secret,
key2,
} => Ok(Self::Fiservcommercehub {
api_key: api_key.clone(),
secret: api_secret.clone(),
merchant_id: key1.clone(),
terminal_id: key2.clone(),View on GitHub (pinned to 3093f22cc4)
Solutions
- Configure the merchant connector account for Paypal with the BodyKey or SignatureKey connector_auth_type
- Recreate/update the connector account credentials to match the BodyKey or SignatureKey schema
When it happens
Trigger: Thrown at crates/router/src/core/unified_connector_service/connector_config.rs:860 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/b7b66acb5e0c7e7e.
Report an issue: GitHub.