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): Fix PayJustNow In-Store Payments when merchant_order_reference_id is Same (#11210)
Anurag6dc0910c9334
diff --git a/crates/hyperswitch_connectors/src/connectors/payjustnowinstore.rs b/crates/hyperswitch_connectors/src/connectors/payjustnowinstore.rsindex a303916194..754d2c805f 100644--- a/crates/hyperswitch_connectors/src/connectors/payjustnowinstore.rs+++ b/crates/hyperswitch_connectors/src/connectors/payjustnowinstore.rs@@ -53,6 +53,7 @@ use crate::{constants::headers, types::ResponseRouterData, utils};const PAYJUSTNOWINSTORE_MERCHANT_TERMINAL_ID: &str = "X-PayJustNow-Merchant-Terminal-ID";const SIGNATURE: &str = "X-Signature";+const MERCHANT_REFERENCE_NON_UNIQUE: &str = "X-Merchant-Reference-Non-Unique";#[derive(Clone)]pub struct Payjustnowinstore {@@ -118,6 +119,10 @@ whereself.get_content_type().to_string().into(),),(SIGNATURE.to_string(), signature_hex.into_masked()),+ (+ MERCHANT_REFERENCE_NON_UNIQUE.to_string(),+ "true".to_string().into(),+ ),];let mut api_key = self.get_auth_header(&req.connector_auth_type)?;header.append(&mut api_key);