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(connector): use reference as payment_id in trustpay (#1444)

Abhishek Marrivagu3645c49b3830
diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rs
index 7b05ef3c59..d652ae86fc 100644
--- a/crates/router/src/connector/trustpay/transformers.rs
+++ b/crates/router/src/connector/trustpay/transformers.rs
@@ -231,7 +231,7 @@ fn get_card_request_data(
cvv: ccard.card_cvc.clone(),
expiry_date: ccard.get_card_expiry_month_year_2_digit_with_delimiter("/".to_owned()),
cardholder: ccard.card_holder_name.clone(),
- reference: item.attempt_id.clone(),
+ reference: item.payment_id.clone(),
redirect_url: return_url,
billing_city: params.billing_city,
billing_country: params.billing_country,