diff --git a/crates/router/src/connector/klarna/transformers.rs b/crates/router/src/connector/klarna/transformers.rs index c301ecea4c1..b0ea2fc4df7 100644 --- a/crates/router/src/connector/klarna/transformers.rs +++ b/crates/router/src/connector/klarna/transformers.rs @@ -308,8 +308,8 @@ impl TryFrom<&KlarnaRouterData<&types::PaymentsAuthorizeRouterData>> for KlarnaA merchant_urls: MerchantURLs { terms: return_url.clone(), checkout: return_url.clone(), - confirmation: return_url.clone(), - push: return_url, + confirmation: "https://google.com".to_string(), + push: "https://google.com".to_string(), }, auto_capture: request.is_auto_capture()?, shipping_address: get_address_info(item.router_data.get_optional_shipping()) diff --git a/crates/router/src/core/payments/helpers.rs b/crates/router/src/core/payments/helpers.rs index f9bf4e7b2b4..eacc6a9f03d 100644 --- a/crates/router/src/core/payments/helpers.rs +++ b/crates/router/src/core/payments/helpers.rs @@ -4540,26 +4540,12 @@ pub async fn get_additional_payment_data( google_pay: None, })), }, - domain::PaymentMethodData::PayLater(pay_later) => match pay_later { - domain::PayLaterData::KlarnaSdk { token: _ } => Ok(Some( - api_models::payments::AdditionalPaymentData::PayLater { - klarna_sdk: None, - klarna_checkout: None, - }, - )), - domain::PayLaterData::KlarnaCheckout {} => Ok(Some( - api_models::payments::AdditionalPaymentData::PayLater { - klarna_sdk: None, - klarna_checkout: None, - }, - )), - _ => Ok(Some( - api_models::payments::AdditionalPaymentData::PayLater { - klarna_sdk: None, - klarna_checkout: None, - }, - )), - }, + domain::PaymentMethodData::PayLater(_) => Ok(Some( + api_models::payments::AdditionalPaymentData::PayLater { + klarna_sdk: None, + klarna_checkout: None, + }, + )), domain::PaymentMethodData::BankTransfer(bank_transfer) => Ok(Some( api_models::payments::AdditionalPaymentData::BankTransfer { details: Some((*(bank_transfer.to_owned())).into()),