Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(bug): [IATAPAY] Fix PCM value for UPI_COLLECT (#6207)

DEEPANSHU BANSAL81e3d9df901d
diff --git a/crates/router/src/connector/iatapay/transformers.rs b/crates/router/src/connector/iatapay/transformers.rs
index fde80abd25..9f3cb9fe6e 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<PayerInfo>,
+ #[serde(skip_serializing_if = "Option::is_none")]
preferred_checkout_method: Option<PreferredCheckoutMethod>,
}
@@ -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,