mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
fix(connector): [adyen] remove browser info for mit and [paypal] add refund key in headers (#5225)
This commit is contained in:
@ -2525,7 +2525,7 @@ impl<'a>
|
|||||||
let shopper_interaction = AdyenShopperInteraction::from(item.router_data);
|
let shopper_interaction = AdyenShopperInteraction::from(item.router_data);
|
||||||
let (recurring_processing_model, store_payment_method, shopper_reference) =
|
let (recurring_processing_model, store_payment_method, shopper_reference) =
|
||||||
get_recurring_processing_model(item.router_data)?;
|
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 additional_data = get_additional_data(item.router_data);
|
||||||
let return_url = item.router_data.request.get_return_url()?;
|
let return_url = item.router_data.request.get_return_url()?;
|
||||||
let payment_method_type = item
|
let payment_method_type = item
|
||||||
|
|||||||
@ -152,7 +152,7 @@ where
|
|||||||
.access_token
|
.access_token
|
||||||
.clone()
|
.clone()
|
||||||
.ok_or(errors::ConnectorError::FailedToObtainAuthType)?;
|
.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 auth = paypal::PaypalAuthType::try_from(&req.connector_auth_type)?;
|
||||||
let mut headers = vec![
|
let mut headers = vec![
|
||||||
(
|
(
|
||||||
|
|||||||
@ -353,11 +353,7 @@ pub async fn construct_refund_router_data<'a, F>(
|
|||||||
connector_customer: None,
|
connector_customer: None,
|
||||||
recurring_mandate_payment_data: None,
|
recurring_mandate_payment_data: None,
|
||||||
preprocessing_id: None,
|
preprocessing_id: None,
|
||||||
connector_request_reference_id: get_connector_request_reference_id(
|
connector_request_reference_id: refund.refund_id.clone(),
|
||||||
&state.conf,
|
|
||||||
&merchant_account.merchant_id,
|
|
||||||
payment_attempt,
|
|
||||||
),
|
|
||||||
#[cfg(feature = "payouts")]
|
#[cfg(feature = "payouts")]
|
||||||
payout_method_data: None,
|
payout_method_data: None,
|
||||||
#[cfg(feature = "payouts")]
|
#[cfg(feature = "payouts")]
|
||||||
|
|||||||
Reference in New Issue
Block a user