Skip to content

Commit

Permalink
fix(connector): [Trustpay] add merchant_id in gpay session response f…
Browse files Browse the repository at this point in the history
…or trustpay (#3532)
  • Loading branch information
prasunna09 authored Feb 2, 2024
1 parent 416ec1c commit 9b70a62
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 9b70a62

Please sign in to comment.