From 81e3d9df901d1b874dcbd5cd01f0b5532ae981a1 Mon Sep 17 00:00:00 2001 From: DEEPANSHU BANSAL <41580413+deepanshu-iiitu@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:51:07 +0530 Subject: [PATCH] fix(bug): [IATAPAY] Fix PCM value for UPI_COLLECT (#6207) --- crates/router/src/connector/iatapay/transformers.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/router/src/connector/iatapay/transformers.rs b/crates/router/src/connector/iatapay/transformers.rs index fde80abd259b..9f3cb9fe6e8d 100644 --- a/crates/router/src/connector/iatapay/transformers.rs +++ b/crates/router/src/connector/iatapay/transformers.rs @@ -85,7 +85,7 @@ pub struct PayerInfo { #[derive(Debug, Serialize)] #[serde(rename_all = "UPPERCASE")] pub enum PreferredCheckoutMethod { - Vpa, + Vpa, //Passing this in UPI_COLLECT will trigger an S2S payment call which is not required. Qr, } @@ -102,6 +102,7 @@ pub struct IatapayPaymentsRequest { notification_url: String, #[serde(skip_serializing_if = "Option::is_none")] payer_info: Option, + #[serde(skip_serializing_if = "Option::is_none")] preferred_checkout_method: Option, } @@ -137,7 +138,7 @@ impl upi_data.vpa_id.map(|id| PayerInfo { token_id: id.switch_strategy(), }), - Some(PreferredCheckoutMethod::Vpa), + None, ), domain::UpiData::UpiIntent(_) => ( common_enums::CountryAlpha2::IN,