Skip to content

Commit

Permalink
psync added
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweta-Kumari-Sharma committed Nov 20, 2024
1 parent 3d5508c commit b338b35
Showing 1 changed file with 7 additions and 23 deletions.
30 changes: 7 additions & 23 deletions crates/router/src/core/payments/helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4540,29 +4540,13 @@ pub async fn get_additional_payment_data(
google_pay: None,
})),
},
// domain::PaymentMethodData::PayLater(_) => Ok(Some(
// api_models::payments::AdditionalPaymentData::PayLater { klarna_sdk: 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()),
Expand Down

0 comments on commit b338b35

Please sign in to comment.