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(connector): [Trustpay] Use `connector_request_reference_id` for merchant reference instead of `payment_id` (#2885)
Sakil Mostakc51c761677e8
diff --git a/crates/router/src/connector/trustpay/transformers.rs b/crates/router/src/connector/trustpay/transformers.rsindex c112b64401..cca0c2d989 100644--- a/crates/router/src/connector/trustpay/transformers.rs+++ b/crates/router/src/connector/trustpay/transformers.rs@@ -299,7 +299,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: get_full_name(params.billing_first_name, billing_last_name),- reference: item.payment_id.clone(),+ reference: item.connector_request_reference_id.clone(),redirect_url: return_url,billing_city: params.billing_city,billing_country: params.billing_country,@@ -377,7 +377,7 @@ fn get_bank_redirection_request_data(currency: item.request.currency.to_string(),},references: References {- merchant_reference: item.payment_id.clone(),+ merchant_reference: item.connector_request_reference_id.clone(),},debtor: get_debtor_info(item, pm, params)?,},@@ -1014,7 +1014,7 @@ impl TryFrom<&TrustpayRouterData<&types::PaymentsPreProcessingRouterData>>currency: currency.to_string(),init_apple_pay: is_apple_pay,init_google_pay: is_google_pay,- reference: item.router_data.payment_id.clone(),+ reference: item.router_data.connector_request_reference_id.clone(),})}}