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

feat(connector): [PowerTranz] Use connector_response_reference_id as reference to merchant (#2413)

Kritika Sharma0d703c7ab85c
diff --git a/crates/router/src/connector/powertranz/transformers.rs b/crates/router/src/connector/powertranz/transformers.rs
index 4703a81f30..4032f8019b 100644
--- a/crates/router/src/connector/powertranz/transformers.rs
+++ b/crates/router/src/connector/powertranz/transformers.rs
@@ -123,7 +123,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PowertranzPaymentsRequest
.to_string(),
three_d_secure,
source,
- order_identifier: item.payment_id.clone(),
+ order_identifier: item.connector_request_reference_id.clone(),
// billing_address,
// shipping_address,
extended_data,
@@ -239,6 +239,7 @@ pub struct PowertranzBaseResponse {
iso_response_code: String,
redirect_data: Option<String>,
response_message: String,
+ order_identifier: String,
}
impl ForeignFrom<(u8, bool, bool)> for enums::AttemptStatus {
@@ -297,7 +298,7 @@ impl<F, T>
let connector_transaction_id = item
.response
.original_trxn_identifier
- .unwrap_or(item.response.transaction_identifier);
+ .unwrap_or(item.response.transaction_identifier.clone());
let redirection_data =
item.response
.redirect_data
@@ -311,7 +312,7 @@ impl<F, T>
mandate_reference: None,
connector_metadata: None,
network_txn_id: None,
- connector_response_reference_id: None,
+ connector_response_reference_id: Some(item.response.order_identifier),
}),
Err,
);