{"record":{"id":"b7b66acb5e0c7e7e","repo":"juspay/hyperswitch","slug":"paypal-requires-bodykey-or-signaturekey-auth-type","errorCode":null,"errorMessage":"Paypal requires BodyKey or SignatureKey auth type","messagePattern":"Paypal requires BodyKey or SignatureKey auth type","errorType":"validation","errorClass":"error_stack::Report<ApiErrorResponse>","httpStatus":500,"severity":"error","filePath":"crates/router/src/core/unified_connector_service/connector_config.rs","lineNumber":905,"sourceCode":"                }\n                _ => Err(err(\"Truelayer requires BodyKey auth type\")),\n            },\n            Connector::Paypal => match auth {\n                ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self::Paypal {\n                    client_id: key1.clone(),\n                    client_secret: api_key.clone(),\n                    payer_id: None,\n                }),\n                ConnectorAuthType::SignatureKey {\n                    api_key,\n                    key1,\n                    api_secret,\n                } => Ok(Self::Paypal {\n                    client_id: key1.clone(),\n                    client_secret: api_key.clone(),\n                    payer_id: Some(api_secret.clone()),\n                }),\n                _ => Err(err(\"Paypal requires BodyKey or SignatureKey auth type\")),\n            },\n            Connector::Revolv3 => match auth {\n                ConnectorAuthType::HeaderKey { api_key } => Ok(Self::Revolv3 {\n                    api_key: api_key.clone(),\n                }),\n                _ => Err(err(\"Revolv3 requires HeaderKey auth type\")),\n            },\n            Connector::Fiservcommercehub => match auth {\n                ConnectorAuthType::MultiAuthKey {\n                    api_key,\n                    key1,\n                    api_secret,\n                    key2,\n                } => Ok(Self::Fiservcommercehub {\n                    api_key: api_key.clone(),\n                    secret: api_secret.clone(),\n                    merchant_id: key1.clone(),\n                    terminal_id: key2.clone(),","sourceCodeStart":887,"sourceCodeEnd":923,"githubUrl":"https://github.com/juspay/hyperswitch/blob/3093f22cc46b46415cca152ea0b234277b251ecd/crates/router/src/core/unified_connector_service/connector_config.rs#L887-L923","documentation":"Error \"Paypal requires BodyKey or SignatureKey auth type\" thrown in juspay/hyperswitch.","triggerScenarios":"Thrown at crates/router/src/core/unified_connector_service/connector_config.rs:860 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3093f22cc46b46415cca152ea0b234277b251ecd","analyzedAt":"2026-08-19T10:36:43.745Z","contentChangedAt":"2026-08-19T10:36:43.745Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}