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): [adyen] remove browser info for mit and [paypal] add refund key in headers (#5225)

SamraatBansal5ea09c7f9d50
diff --git a/crates/router/src/connector/adyen/transformers.rs b/crates/router/src/connector/adyen/transformers.rs
index 63c7bed5d0..d320475e61 100644
--- a/crates/router/src/connector/adyen/transformers.rs
+++ b/crates/router/src/connector/adyen/transformers.rs
@@ -2525,7 +2525,7 @@ impl<'a>
let shopper_interaction = AdyenShopperInteraction::from(item.router_data);
let (recurring_processing_model, store_payment_method, shopper_reference) =
get_recurring_processing_model(item.router_data)?;
- let browser_info = get_browser_info(item.router_data)?;
+ let browser_info = None;
let additional_data = get_additional_data(item.router_data);
let return_url = item.router_data.request.get_return_url()?;
let payment_method_type = item
diff --git a/crates/router/src/connector/paypal.rs b/crates/router/src/connector/paypal.rs
index ee6b6c818c..a80772c7c6 100644
--- a/crates/router/src/connector/paypal.rs
+++ b/crates/router/src/connector/paypal.rs
@@ -152,7 +152,7 @@ where
.access_token
.clone()
.ok_or(errors::ConnectorError::FailedToObtainAuthType)?;
- let key = &req.attempt_id;
+ let key = &req.connector_request_reference_id;
let auth = paypal::PaypalAuthType::try_from(&req.connector_auth_type)?;
let mut headers = vec![
(
diff --git a/crates/router/src/core/utils.rs b/crates/router/src/core/utils.rs
index fffe039dab..ad3ef4140a 100644
--- a/crates/router/src/core/utils.rs
+++ b/crates/router/src/core/utils.rs
@@ -353,11 +353,7 @@ pub async fn construct_refund_router_data<'a, F>(
connector_customer: None,
recurring_mandate_payment_data: None,
preprocessing_id: None,
- connector_request_reference_id: get_connector_request_reference_id(
- &state.conf,
- &merchant_account.merchant_id,
- payment_attempt,
- ),
+ connector_request_reference_id: refund.refund_id.clone(),
#[cfg(feature = "payouts")]
payout_method_data: None,
#[cfg(feature = "payouts")]