Skip to content

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

fix(connector): [PowerTranz] resolve pr comments and add comments (#1726)

Arjun Karthik432a8e02e984
diff --git a/crates/router/src/connector/powertranz.rs b/crates/router/src/connector/powertranz.rs
index 0aed46cb6d..d2ef9a034e 100644
--- a/crates/router/src/connector/powertranz.rs
+++ b/crates/router/src/connector/powertranz.rs
@@ -274,7 +274,7 @@ impl
.get_redirect_response_payload()?
.parse_value("PowerTranz RedirectResponsePayload")
.change_context(errors::ConnectorError::ResponseDeserializationFailed)?;
- let spi_token = format!("\"{}\"", redirect_payload.spi_token);
+ let spi_token = format!(r#""{}""#, redirect_payload.spi_token);
let powertranz_req =
types::RequestBody::log_and_get_request_body(&spi_token, |spi_token| {
Ok(spi_token.to_string())
diff --git a/crates/router/src/connector/powertranz/transformers.rs b/crates/router/src/connector/powertranz/transformers.rs
index 81dd3a4e5d..5f738192b5 100644
--- a/crates/router/src/connector/powertranz/transformers.rs
+++ b/crates/router/src/connector/powertranz/transformers.rs
@@ -132,6 +132,8 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for ExtendedData {
fn try_from(item: &types::PaymentsAuthorizeRouterData) -> Result<Self, Self::Error> {
Ok(Self {
three_d_secure: ThreeDSecure {
+ /// Merchants preferred sized of challenge window presented to cardholder.
+ /// 5 maps to 100% of challenge window size
challenge_window_size: 5,
},
merchant_response_url: item.request.get_complete_authorize_url()?,