Skip to content

Commit

Permalink
fix(router): replace underscore by hyphen in Samsung pay session call (
Browse files Browse the repository at this point in the history
  • Loading branch information
ShankarSinghC authored Oct 14, 2024
1 parent ca086d0 commit 7f1bbbf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/router/src/core/payments/flows/session_flow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,13 +567,15 @@ fn create_samsung_pay_session_token(
})?,
};

let formatted_payment_id = router_data.payment_id.replace("_", "-");

Ok(types::PaymentsSessionRouterData {
response: Ok(types::PaymentsResponseData::SessionResponse {
session_token: payment_types::SessionToken::SamsungPay(Box::new(
payment_types::SamsungPaySessionTokenResponse {
version: "2".to_string(),
service_id: samsung_pay_wallet_details.service_id,
order_number: router_data.payment_id.clone(),
order_number: formatted_payment_id,
merchant_payment_information:
payment_types::SamsungPayMerchantPaymentInformation {
name: samsung_pay_wallet_details.merchant_display_name,
Expand Down

0 comments on commit 7f1bbbf

Please sign in to comment.