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): [Payjustnowinstore] Fix callback_url Placeholder Value (#10937)

Anurag1957a4e67455
diff --git a/crates/hyperswitch_connectors/src/connectors/payjustnowinstore/transformers.rs b/crates/hyperswitch_connectors/src/connectors/payjustnowinstore/transformers.rs
index 4a9212c96b..5d2dbcc6a2 100644
--- a/crates/hyperswitch_connectors/src/connectors/payjustnowinstore/transformers.rs
+++ b/crates/hyperswitch_connectors/src/connectors/payjustnowinstore/transformers.rs
@@ -121,9 +121,9 @@ impl TryFrom<&PayjustnowinstoreRouterData<&PaymentsAuthorizeRouterData>>
.merchant_order_reference_id
.clone()
.unwrap_or(item.router_data.payment_id.clone()),
- // Webhooks are not implemented yet for PJN In-Store, and `callback_url` is a mandatory field.
- // Since PJN Instore does not accept null or empty values, a placeholder is used here.
- callback_url: "callback_url".to_string(),
+ // callback_url is a required field but we don't listen to callbacks.
+ // PJN In-Store requires the value to be exactly "n/a"; any other placeholder will cause the payment to auto-refund.
+ callback_url: "n/a".to_string(),
items,
})
}