diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index 6b1c71f803..f931070e4b 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -2317,7 +2317,10 @@ pub struct GpayTransactionInfo { #[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)] pub struct GpayMerchantInfo { - /// The name of the merchant + /// The merchant Identifier that needs to be passed while invoking Gpay SDK + #[serde(skip_serializing_if = "Option::is_none")] + pub merchant_id: Option, + /// The name of the merchant that needs to be displayed on Gpay PopUp pub merchant_name: String, } diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rs index f4f1764736..c03f049658 100644 --- a/crates/router/src/connector/trustpay/transformers.rs +++ b/crates/router/src/connector/trustpay/transformers.rs @@ -1142,6 +1142,7 @@ impl From for api_models::payments::GpayTransactionInf impl From for api_models::payments::GpayMerchantInfo { fn from(value: GooglePayMerchantInfo) -> Self { Self { + merchant_id: None, merchant_name: value.merchant_name, } } diff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.json index 61faf9deeb..51e6494d8e 100644 --- a/openapi/openapi_spec.json +++ b/openapi/openapi_spec.json @@ -5537,9 +5537,14 @@ "merchant_name" ], "properties": { + "merchant_id": { + "type": "string", + "description": "The merchant Identifier that needs to be passed while invoking Gpay SDK", + "nullable": true + }, "merchant_name": { "type": "string", - "description": "The name of the merchant" + "description": "The name of the merchant that needs to be displayed on Gpay PopUp" } } },