Skip to content

Commit

Permalink
fix(bug): [IATAPAY] Fix PCM value for UPI_COLLECT (#6207)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepanshu-iiitu authored Oct 3, 2024
1 parent be3cf2c commit 81e3d9d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/router/src/connector/iatapay/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}

Expand All @@ -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>,
}

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 81e3d9d

Please sign in to comment.