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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
fix(core): add merchant_id to gpay merchant info (#2170)
SamraatBansal5643ecf07521
diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rsindex 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<String>,+ /// The name of the merchant that needs to be displayed on Gpay PopUppub merchant_name: String,}diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rsindex 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<GooglePayTransactionInfo> for api_models::payments::GpayTransactionInfimpl From<GooglePayMerchantInfo> 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.jsonindex 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"}}},