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): [REDSYS] Fix base64 padding issue (#10757)
Vani Gupta0c68abc65ced
diff --git a/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs b/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rsindex 0ed35c5485..91150940b1 100644--- a/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/redsys/transformers.rs@@ -674,8 +674,7 @@ fn to_connector_response_data<T>(connector_response: &str) -> Result<T, Error>whereT: serde::de::DeserializeOwned,{- let decoded_bytes = BASE64_ENGINE- .decode(connector_response)+ let decoded_bytes = connector_utils::safe_base64_decode(connector_response.to_string()).change_context(errors::ConnectorError::ResponseDeserializationFailed).attach_printable("Failed to decode Base64")?;