#14413·hyperswitch

[FEATURE] Preferred-connector routing: pin returning customers to their last successful interac connector

Author: prajjwalkumar17Created Sep 24, 2026Updated Sep 29, 2026

Description

Merchants with multiple providers for the same payment method (interac via Gigadat / Loonio / Payper) want a returning customer's payment routed to the provider that last worked for them — provider familiarity measurably improves conversion for bank-redirect flows.

The Decision Engine cannot derive this per-customer signal from its existing analytics (success-rate keys carry no customer dimension), so orchestration should own the memory and pass a routing hint, while the Decision Engine keeps the final say via its health/elimination machinery.

Proposed design

  • A profile-level routing.preferred_connector_routing_enabled Superposition flag (default off).
  • A nullable preferred_routing_connector JSONB column (ordered array of connector:mca_id entries) on customers and payment_methods.
  • Write: on a successful interac payment, persist the connector that processed it — on the payment_methods row when the attempt has a payment_method_id, else on the customers row. Covers confirm, payments-sync, redirect-return, and webhook success paths.
  • Read: on confirm-time routing for interac payments on flag-on profiles, resolve the stored preference against the eligible static connector list and send it on the hybrid routing request as PaymentInfo.preferredGateway.
  • Both gates scoped to interac so an interac preference never steers the same customer's card or wallet payments.

Decision Engine counterpart: juspay/decision-engine#444 honors the hint as a pinned connector with elimination-only veto.

Generated with Claude Code