mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-04 05:59:48 +08:00
feat(connector): Plaid connector Integration (#3952)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -448,7 +448,6 @@ impl<F, T>
|
||||
pub struct PlaidAuthType {
|
||||
pub client_id: Secret<String>,
|
||||
pub secret: Secret<String>,
|
||||
pub merchant_data: Option<types::MerchantRecipientData>,
|
||||
}
|
||||
|
||||
impl TryFrom<&types::ConnectorAuthType> for PlaidAuthType {
|
||||
@ -458,16 +457,6 @@ impl TryFrom<&types::ConnectorAuthType> for PlaidAuthType {
|
||||
types::ConnectorAuthType::BodyKey { client_id, secret } => Ok(Self {
|
||||
client_id: client_id.to_owned(),
|
||||
secret: secret.to_owned(),
|
||||
merchant_data: None,
|
||||
}),
|
||||
types::ConnectorAuthType::OpenBankingAuth {
|
||||
api_key,
|
||||
key1,
|
||||
merchant_data,
|
||||
} => Ok(Self {
|
||||
client_id: api_key.to_owned(),
|
||||
secret: key1.to_owned(),
|
||||
merchant_data: Some(merchant_data.clone()),
|
||||
}),
|
||||
_ => Err(errors::ConnectorError::FailedToObtainAuthType.into()),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user