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): [Rapyd] Add router_return_url in 3DS request (#1621)
Shankar Singh Ce913bfc4958d
diff --git a/crates/router/src/connector/rapyd/transformers.rs b/crates/router/src/connector/rapyd/transformers.rsindex f11e1c76b7..9e640bf67c 100644--- a/crates/router/src/connector/rapyd/transformers.rs+++ b/crates/router/src/connector/rapyd/transformers.rs@@ -4,6 +4,7 @@ use time::PrimitiveDateTime;use url::Url;use crate::{+ connector::utils::PaymentsAuthorizeRequestData,consts,core::errors,pii::Secret,@@ -20,6 +21,8 @@ pub struct RapydPaymentsRequest {pub payment_method_options: Option<PaymentMethodOptions>,pub capture: Option<bool>,pub description: Option<String>,+ pub complete_payment_url: Option<String>,+ pub error_payment_url: Option<String>,}#[derive(Default, Debug, Serialize)]@@ -125,6 +128,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for RapydPaymentsRequest {.change_context(errors::ConnectorError::NotImplemented("payment_method".to_owned(),))?;+ let return_url = item.request.get_return_url()?;Ok(Self {amount: item.request.amount,currency: item.request.currency,@@ -132,6 +136,8 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for RapydPaymentsRequest {capture,payment_method_options,description: None,+ error_payment_url: Some(return_url.clone()),+ complete_payment_url: Some(return_url),})}}