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
fix(connector): Use SignatureKey for VGS auth_type (#9068)
Anurag Thakur1ff2ed9477a6
diff --git a/crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs b/crates/hyperswitch_connectors/src/connectors/vgs/transformers.rsindex 4915e2da40..4f996c2ffb 100644--- a/crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/vgs/transformers.rs@@ -74,15 +74,22 @@ impl<F> TryFrom<&VaultRouterData<F>> for VgsInsertRequest {pub struct VgsAuthType {pub(super) username: Secret<String>,pub(super) password: Secret<String>,+ // vault_id is used in sessions API+ pub(super) _vault_id: Secret<String>,}impl TryFrom<&ConnectorAuthType> for VgsAuthType {type Error = error_stack::Report<errors::ConnectorError>;fn try_from(auth_type: &ConnectorAuthType) -> Result<Self, Self::Error> {match auth_type {- ConnectorAuthType::BodyKey { api_key, key1 } => Ok(Self {+ ConnectorAuthType::SignatureKey {+ api_key,+ key1,+ api_secret,+ } => Ok(Self {username: api_key.to_owned(),password: key1.to_owned(),+ _vault_id: api_secret.to_owned(),}),_ => Err(errors::ConnectorError::FailedToObtainAuthType.into()),}