Skip to content

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

fix: Include merchant reference in CreateIntentRequest (#1846)

Sangamesh Kulkarnidb55ed0f6dcb
diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rs
index 495189e898..e65c51a2bc 100644
--- a/crates/router/src/connector/trustpay/transformers.rs
+++ b/crates/router/src/connector/trustpay/transformers.rs
@@ -832,6 +832,7 @@ pub struct TrustpayCreateIntentRequest {
pub init_apple_pay: Option<bool>,
// If true, Google pay will be initialized
pub init_google_pay: Option<bool>,
+ pub reference: String,
}
impl TryFrom<&types::PaymentsPreProcessingRouterData> for TrustpayCreateIntentRequest {
@@ -878,6 +879,7 @@ impl TryFrom<&types::PaymentsPreProcessingRouterData> for TrustpayCreateIntentRe
currency: currency.to_string(),
init_apple_pay: is_apple_pay,
init_google_pay: is_google_pay,
+ reference: item.payment_id.clone(),
})
}
}