Skip to content

Commit

Permalink
add merchant_id in gpay session response for trustpay
Browse files Browse the repository at this point in the history
  • Loading branch information
prasunna09 committed Jan 29, 2024
1 parent dd0d2dc commit ff4f1ff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/router/src/connector/trustpay/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,7 @@ pub struct GooglePayTransactionInfo {
#[serde(rename_all = "camelCase")]
pub struct GooglePayMerchantInfo {
pub merchant_name: String,
pub merchant_id: String,
}

#[derive(Clone, Default, Debug, Deserialize)]
Expand Down Expand Up @@ -1290,7 +1291,7 @@ impl From<GooglePayTransactionInfo> for api_models::payments::GpayTransactionInf
impl From<GooglePayMerchantInfo> for api_models::payments::GpayMerchantInfo {
fn from(value: GooglePayMerchantInfo) -> Self {
Self {
merchant_id: None,
merchant_id: Some(value.merchant_id),
merchant_name: value.merchant_name,
}
}
Expand Down

0 comments on commit ff4f1ff

Please sign in to comment.