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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
feat(Connector): Plaid connector configs (#5545)
Gitanjli885428bd1eee
diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rsindex ed36dbca49..6cc32fe955 100644--- a/crates/connector_configs/src/connector.rs+++ b/crates/connector_configs/src/connector.rs@@ -3,7 +3,7 @@ use std::collections::HashMap;#[cfg(feature = "payouts")]use api_models::enums::PayoutConnectors;use api_models::{- enums::{AuthenticationConnectors, Connector},+ enums::{AuthenticationConnectors, Connector, PmAuthConnectors},payments,};use serde::Deserialize;@@ -269,6 +269,15 @@ impl ConnectorConfig {}}+ pub fn get_pm_authentication_processor_config(+ connector: PmAuthConnectors,+ ) -> Result<Option<ConnectorTomlConfig>, String> {+ let connector_data = Self::new()?;+ match connector {+ PmAuthConnectors::Plaid => Ok(connector_data.plaid),+ }+ }+pub fn get_connector_config(connector: Connector,) -> Result<Option<ConnectorTomlConfig>, String> {diff --git a/crates/euclid_wasm/src/lib.rs b/crates/euclid_wasm/src/lib.rsindex eed5c38af9..ab36031339 100644--- a/crates/euclid_wasm/src/lib.rs+++ b/crates/euclid_wasm/src/lib.rs@@ -327,6 +327,14 @@ pub fn get_authentication_connector_config(key: &str) -> JsResult {Ok(serde_wasm_bindgen::to_value(&res)?)}+#[wasm_bindgen(js_name = getPMAuthenticationProcessorConfig)]+pub fn get_pm_authentication_processor_config(key: &str) -> JsResult {+ let key: api_model_enums::PmAuthConnectors = api_model_enums::PmAuthConnectors::from_str(key)+ .map_err(|_| "Invalid key received".to_string())?;+ let res = connector::ConnectorConfig::get_pm_authentication_processor_config(key)?;+ Ok(serde_wasm_bindgen::to_value(&res)?)+}+#[wasm_bindgen(js_name = getRequestPayload)]pub fn get_request_payload(input: JsValue, response: JsValue) -> JsResult {let input: DashboardRequestPayload = serde_wasm_bindgen::from_value(input)?;