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

refactor(compatibility, connector): add holder name and change trust pay merchant_ref id to payment_id

Abhishek Marrivagud09154957667
diff --git a/crates/router/src/compatibility/stripe/payment_intents/types.rs b/crates/router/src/compatibility/stripe/payment_intents/types.rs
index 5860cc7230..10906a59c9 100644
--- a/crates/router/src/compatibility/stripe/payment_intents/types.rs
+++ b/crates/router/src/compatibility/stripe/payment_intents/types.rs
@@ -45,6 +45,7 @@ pub struct StripeCard {
pub exp_month: pii::Secret<String>,
pub exp_year: pii::Secret<String>,
pub cvc: pii::Secret<String>,
+ pub holder_name: Option<pii::Secret<String>>,
}
#[derive(Default, Serialize, PartialEq, Eq, Deserialize, Clone)]
@@ -84,7 +85,7 @@ impl From<StripeCard> for payments::Card {
card_number: card.number,
card_exp_month: card.exp_month,
card_exp_year: card.exp_year,
- card_holder_name: masking::Secret::new("stripe_cust".to_owned()),
+ card_holder_name: card.holder_name.unwrap_or("name".to_string().into()),
card_cvc: card.cvc,
card_issuer: None,
card_network: None,
diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rs
index c27524c559..155527b416 100644
--- a/crates/router/src/connector/trustpay/transformers.rs
+++ b/crates/router/src/connector/trustpay/transformers.rs
@@ -328,7 +328,7 @@ fn get_bank_redirection_request_data(
currency: item.request.currency.to_string(),
},
references: References {
- merchant_reference: item.attempt_id.clone(),
+ merchant_reference: item.payment_id.clone(),
},
},
callback_urls: CallbackURLs {