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): [Bitpay] Use `connector_request_reference_id` as reference to the connector (#2697)

Himanshu Singh7141b89d231b
diff --git a/crates/router/src/connector/bitpay/transformers.rs b/crates/router/src/connector/bitpay/transformers.rs
index c5c20608a7..5af20d6423 100644
--- a/crates/router/src/connector/bitpay/transformers.rs
+++ b/crates/router/src/connector/bitpay/transformers.rs
@@ -60,6 +60,7 @@ pub struct BitpayPaymentsRequest {
notification_url: String,
transaction_speed: TransactionSpeed,
token: Secret<String>,
+ order_id: String,
}
impl TryFrom<&BitpayRouterData<&types::PaymentsAuthorizeRouterData>> for BitpayPaymentsRequest {
@@ -279,6 +280,7 @@ fn get_crypto_specific_payment_data(
ConnectorAuthType::HeaderKey { api_key } => api_key,
_ => String::default().into(),
};
+ let order_id = item.router_data.connector_request_reference_id.clone();
Ok(BitpayPaymentsRequest {
price,
@@ -287,6 +289,7 @@ fn get_crypto_specific_payment_data(
notification_url,
transaction_speed,
token,
+ order_id,
})
}