This overview reflects widely shared professional practices as of May 2026; verify critical details against current official guidance where applicable.
The Stakes of Onboarding Architecture: Why Workflow Design Matters
Merchant onboarding is the gateway through which businesses enter your payment ecosystem. It encompasses everything from initial application and KYC verification to underwriting, integration, and go-live. The workflow you choose—modular or unified—directly impacts time-to-revenue, compliance risk, and operational scalability. Many teams underestimate the long-term consequences of this architectural decision. A modular approach, where each step (identity verification, risk assessment, contract signing) is handled by independent services, offers flexibility but can lead to fragmented user experiences and complex orchestration. A unified approach, where all steps are stitched into a single, linear flow, simplifies the merchant experience but may resist customization for diverse business types.
The Hidden Cost of Mismatched Workflows
Consider a mid-market payment facilitator that initially built a unified onboarding flow. As they expanded into high-risk verticals like gaming and nutraceuticals, they discovered that their single flow couldn't accommodate different KYC requirements (e.g., beneficial ownership disclosure for regulated industries). They were forced to add conditional branches, turning the unified flow into a tangled mess of if-else logic. Eventually, they migrated to a modular architecture, but the refactoring cost months of engineering time and delayed several product launches. This scenario is not uncommon; many industry surveys suggest that over 40% of payment companies revisit their onboarding architecture within two years of launch, often due to workflow inflexibility.
Why This Matters for Your Bottom Line
Onboarding workflow directly affects conversion rates. A unified flow that asks all questions upfront can overwhelm merchants, leading to drop-off. Conversely, a modular flow that requires multiple logins or disjointed steps can frustrate users. The optimal design balances completeness with progression. Additionally, compliance teams depend on the workflow to enforce regulatory checks at the right moments. In a modular system, missing a handoff between services (e.g., risk assessment not receiving updated KYC data) can create audit gaps. Understanding these stakes is the first step toward making an informed architectural choice. The following sections break down the core frameworks, execution patterns, and trade-offs of each approach.
Core Frameworks: Modular vs. Unified — How They Work
At its simplest, a modular onboarding system is composed of discrete, independently deployable services, each responsible for a specific function: identity verification (IDV), business verification, underwriting, document collection, and so on. These services communicate via APIs and are orchestrated by a workflow engine (like Temporal or AWS Step Functions). The unified approach, by contrast, presents a single user interface and backend process that handles all steps sequentially. The workflow is often hardcoded into a monolithic application or a tightly coupled set of services.
Modular Architecture: The Building Blocks
In a modular setup, each component can be developed, tested, and scaled independently. For example, you might use a third-party IDV service (like Onfido or Jumio) for identity checks, a homegrown risk model for underwriting, and a document management system for storing W-9s. The workflow engine coordinates these steps, handling retries, timeouts, and error states. This approach allows you to swap components without affecting the entire system. For instance, if you find a better IDV provider, you can change the API call in the workflow without touching the rest. However, the complexity of orchestration can be significant. You need to manage state across services, handle eventual consistency, and ensure that failures in one component don't orphan the onboarding attempt.
Unified Architecture: The Single Path
A unified onboarding system typically presents a wizard-like interface where merchants fill out forms, upload documents, and agree to terms in a single session. The backend processes these inputs in a predetermined order, often within a monolithic codebase. This approach simplifies development: there is no need for a workflow engine or inter-service communication. The user experience is seamless, as the merchant never leaves the flow. However, this tight coupling makes it difficult to adapt to new requirements. Adding a new step (e.g., a beneficial ownership attestation for a new regulation) requires modifying the entire flow, potentially introducing bugs. Scaling is also challenging; if the identity verification step becomes a bottleneck, you cannot independently scale it without scaling the entire application.
Comparison Table: Modular vs. Unified
| Dimension | Modular | Unified |
|---|---|---|
| Flexibility | High; components can be swapped or updated independently | Low; changes require modifying the entire flow |
| Complexity | High; orchestration, state management, error handling | Low; linear logic, simpler codebase |
| User Experience | Can be disjointed if not carefully designed | Seamless, single-session flow |
| Scalability | Individual components can scale independently | Must scale the entire application |
| Time to Market | Slower initial build; faster iteration later | Faster initial build; slower to adapt |
| Compliance | Easier to insert checks at specific points | Harder to modify for evolving regulations |
Execution and Workflows: A Repeatable Process for Each Approach
Building an onboarding workflow—whether modular or unified—requires a structured approach to design, implementation, and testing. The key difference lies in how you handle state, errors, and user progression. Below, we outline a step-by-step process for each architecture, highlighting the critical decisions along the way.
Step-by-Step: Designing a Modular Onboarding Workflow
Start by defining each step as an independent service. Common steps include: (1) Account creation (email/password or OAuth), (2) Identity verification (ID document upload + selfie), (3) Business verification (tax ID, registration documents), (4) Underwriting (risk scoring based on business type and volume), (5) Contract signing (e-signature), and (6) Integration setup (API keys, webhook configuration). For each step, define the input, output, and failure modes. Then, implement a workflow engine that orchestrates these steps. The engine should handle retries with exponential backoff, timeouts, and dead-letter queues for failed steps. A common pattern is to use a state machine where each service updates the onboarding status (e.g., 'idv_pending', 'idv_complete', 'underwriting_review'). The user interface should reflect the current state and allow merchants to resume from where they left off. For example, if identity verification times out, the merchant should receive an email with a link to retry that step without re-entering all previous data.
Step-by-Step: Designing a Unified Onboarding Workflow
In a unified approach, you design a single form that collects all required information sequentially. Start by mapping the data dependencies: for instance, you need the business name before you can check its registration status. The form should use conditional logic to show or hide fields based on earlier answers (e.g., if the business is a partnership, request partner details). The backend processes the entire form submission as a single transaction. If any step fails (e.g., identity verification returns an error), the entire submission is rejected, and the user must start over. To mitigate this, you can implement a 'save draft' feature that persists the form data and allows the user to resume later. However, this adds complexity similar to modular state management. For compliance, you may need to break the unified flow into stages: first collect basic information, then after initial approval, request additional documents. This staged approach is a hybrid between modular and unified.
Key Process Differences
The modular approach excels when you need to handle diverse merchant types or regulatory regimes. For example, a European merchant might require PSD2 compliance checks, while a US merchant needs only basic KYC. In a modular system, you can configure different workflows for different segments. The unified approach suits platforms with a homogeneous merchant base (e.g., all are small businesses in the same jurisdiction). The trade-off is speed of iteration: modular allows you to update one step (e.g., integrate a new IDV provider) without touching others, while unified requires a full regression test of the entire flow. In practice, many mature payment gateways adopt a hybrid model: a unified core for the common path, with modular extensions for edge cases.
Tools, Stack, and Economics: What You Need to Build and Run
The choice between modular and unified onboarding has significant implications for your technology stack, team structure, and operational costs. Below, we break down the typical tools, infrastructure, and economic trade-offs for each approach.
Technology Stack for Modular Onboarding
A modular system relies on several key components: a workflow engine (e.g., Temporal, Camunda, AWS Step Functions), a message broker for async communication (e.g., RabbitMQ, Kafka), a set of microservices (each with its own database or shared data store), and an API gateway. You will also need third-party integrations for IDV, document verification, and risk scoring. Common choices include Onfido, Jumio, LexisNexis, and Dun & Bradstreet. Each integration is a separate service with its own API contracts, rate limits, and error handling. The development team needs expertise in distributed systems, containerization (Docker, Kubernetes), and observability (logging, metrics, tracing). The initial build cost is higher due to infrastructure complexity and the need for a dedicated platform team. However, operational costs can be lower in the long run because you can scale only the bottleneck components (e.g., add more IDV worker instances) rather than the entire application.
Technology Stack for Unified Onboarding
A unified system can be built with a simpler stack: a monolithic application (e.g., Ruby on Rails, Django, or a serverless function with a single codebase), a relational database, and a few external API calls. The user interface can be a single-page application (React, Vue) that communicates with the backend via REST or GraphQL. Since all logic is in one place, development is faster and debugging is simpler. However, as the system grows, the monolith becomes harder to maintain. You may need to add background job queues (e.g., Sidekiq) for long-running tasks like document verification to avoid blocking the user. The team can be smaller but must be cross-functional. Operational costs are straightforward: you pay for the compute and database resources for the entire application. But scaling becomes expensive because you must scale the whole monolith even if only one part (e.g., the IDV step) is under load.
Economic Comparison
Let's consider a hypothetical mid-volume platform onboarding 10,000 merchants per month. For a modular system, the initial build might cost $500,000–$1,000,000 in engineering time and infrastructure, with ongoing monthly costs of $20,000–$50,000 for cloud services and third-party APIs. For a unified system, initial build costs might be $200,000–$400,000, with monthly costs of $10,000–$30,000. However, as the platform grows and needs to support new verticals or regulations, the modular system's flexibility can reduce the cost of changes. For example, adding a new IDV provider might cost $50,000 in a modular system versus $100,000 in a unified system due to the need to refactor the entire flow. Over three years, the total cost of ownership may be similar, but the modular system offers better risk mitigation and scalability.
Growth Mechanics: How Workflow Design Affects Traffic and Positioning
Your onboarding workflow is not just a technical detail; it is a growth lever. The speed and ease of onboarding directly impact conversion rates, time-to-first-transaction, and merchant referrals. Additionally, the workflow's flexibility determines how quickly you can enter new markets or verticals, which in turn drives traffic and revenue growth.
Conversion Rate Optimization through Workflow Design
A unified flow that asks for all information upfront can overwhelm merchants, especially those with complex business structures. Drop-off rates are often highest on pages that request multiple documents or sensitive data. By contrast, a modular flow that breaks the process into smaller, digestible steps can improve completion rates. For example, you can start with just an email and password, then prompt the merchant to complete identity verification within 48 hours. This 'progressive onboarding' reduces friction and allows merchants to explore the platform before committing. Many industry surveys suggest that progressive onboarding can increase completion rates by 20–30% compared to a single-form approach. However, the modular flow must be carefully designed to avoid losing context between steps; otherwise, merchants may forget to return.
Market Expansion and Verticalization
A modular architecture allows you to create different onboarding paths for different merchant segments. For instance, a travel agency might need additional verification for high-value bookings, while a SaaS company might need to integrate with a subscription billing platform. With a modular system, you can add these steps without affecting the core flow for other merchants. This enables rapid expansion into new verticals, which drives organic traffic as you become known for supporting diverse business types. A unified system, on the other hand, forces you to create separate instances or conditional branches for each vertical, which can become unmanageable. Over time, the ability to customize onboarding becomes a competitive differentiator, attracting merchants who cannot use one-size-fits-all solutions.
Positioning as a 'Spiced Gateway' Differentiator
On the Spiced Gateway platform, we emphasize workflow modularity as a core value proposition. By allowing merchants to choose their onboarding path—whether a fast track for low-risk businesses or a detailed flow for regulated industries—we position ourselves as a flexible, merchant-centric gateway. This positioning resonates with platforms that need to onboard diverse merchant bases without sacrificing compliance. In contrast, many competitors offer a single, rigid flow that forces merchants into a one-size-fits-all model. By highlighting the modular approach in marketing materials and documentation, we attract technical decision-makers who value flexibility. This targeted positioning drives highly qualified traffic from developers and product managers searching for customizable payment solutions.
Risks, Pitfalls, and Mitigations: What Can Go Wrong
Both modular and unified onboarding workflows come with their own set of risks. Understanding these pitfalls before you commit to an architecture can save months of rework and prevent compliance failures. Below, we identify the most common mistakes and how to mitigate them.
Pitfall #1: Underestimating Orchestration Complexity (Modular)
In a modular system, the workflow engine is the brain. If it is not designed robustly, you risk orphaned sessions, duplicate submissions, and inconsistent state. For example, if the identity verification service returns success but the workflow engine crashes before updating the database, the merchant may be stuck in a 'pending' state forever. Mitigation: use a workflow engine that supports exactly-once processing and automatic retries. Implement idempotency keys for each step so that retries do not cause duplicate records. Also, build a dashboard for operations teams to monitor and manually resolve stuck workflows. A common failure is forgetting to handle timeouts: if a merchant starts onboarding and walks away for a day, the session should be gracefully resumed, not discarded.
Pitfall #2: Creating a Brittle Monolith (Unified)
Unified systems often start simple but become brittle as features are added. Conditional logic (if business type == 'gaming', then show additional fields) can explode in complexity, making the codebase hard to understand and test. A single bug in the form logic can break onboarding for all merchant types. Mitigation: adopt a 'strangler fig' pattern—gradually extract components into separate services as the system grows. For instance, once identity verification becomes complex, move it into a dedicated service behind an API. This allows you to keep the unified front-end while modularizing the backend. Also, invest in comprehensive integration tests that cover all conditional branches.
Pitfall #3: Neglecting Compliance Handoffs
Both architectures must ensure that compliance checks happen in the correct order and that no step is skipped. In a modular system, it is possible for a risk assessment to run before identity verification is complete, leading to a false positive or negative. In a unified system, a change to the flow might accidentally bypass a required check. Mitigation: define a clear compliance state machine that enforces the order of operations. For example, do not allow underwriting to start until identity verification has a status of 'approved'. Use feature flags to gradually roll out new compliance checks and monitor for anomalies. Regular audits of the workflow logic are essential.
Pitfall #4: Over-Engineering for the First 100 Merchants
Many startups build a complex modular system before they have any merchants, only to find that the orchestration overhead outweighs the benefits. Mitigation: start with a unified flow for your initial MVP. Once you have validated the product and have a few hundred merchants, refactor to a modular architecture based on actual pain points (e.g., a specific step that requires frequent changes). This lean approach avoids wasted effort and allows you to iterate based on real data.
Decision Checklist and Mini-FAQ: Choosing Your Path
To help you decide between modular and unified onboarding, we have compiled a decision checklist and answers to common questions. Use this section as a quick reference when evaluating your architecture.
Decision Checklist
Answer the following questions to determine which approach best fits your current situation:
- How many merchant types do you onboard? If more than three distinct types (e.g., retail, SaaS, high-risk), lean modular.
- How frequently do compliance requirements change? If quarterly or more often, modular allows easier updates.
- What is your team's experience with distributed systems? If limited, start unified and plan for modular migration later.
- What is your target time-to-market? If you need to launch in under 3 months, unified is faster.
- How important is conversion rate optimization? If critical, consider progressive onboarding (modular or staged unified).
- Do you have dedicated platform/infrastructure engineers? If not, modular may strain your team.
- What is your expected growth rate? If you anticipate rapid scaling (10x in a year), modular scales better.
Mini-FAQ
Q: Can I start with a unified flow and later refactor to modular? A: Yes, this is a common and recommended path. Many successful payment gateways began with a monolith and extracted services as they grew. The key is to design the unified flow with clean internal boundaries (e.g., separate modules for each step) so that refactoring is easier.
Q: Do I need a workflow engine for a unified system? A: Not initially. A simple sequential process within your application is sufficient. However, if you later add steps that require async processing (e.g., document verification that takes minutes), you may need a background job queue.
Q: How do I handle partial completions in a unified flow? A: Implement a 'save draft' feature that stores form data in the database. Allow merchants to resume via a unique link. This adds state management complexity, but it is essential for improving conversion rates.
Q: Which approach is more cost-effective for a startup with 100 merchants? A: Unified is almost always more cost-effective for low volumes. The operational overhead of a modular system (multiple services, observability, team expertise) is not justified until you need to scale or customize.
Next Actions: From Decision to Implementation
By now, you have a clear understanding of the trade-offs between modular and unified merchant onboarding workflows. The final step is to translate your decision into an actionable plan. Below, we outline the key next actions for each path.
If You Choose Unified
Start by mapping the complete onboarding flow from the merchant's perspective. Identify all data points and documents required. Build a single-page form with conditional logic. Implement a 'save draft' feature and background job processing for time-consuming steps. Plan to monitor conversion rates and drop-off points using analytics. Set aside time every quarter to review the flow for potential improvements. If you anticipate future growth, design the codebase with clear module boundaries (e.g., separate classes for identity verification, underwriting) so that you can extract them later. Also, establish a process for adding new compliance requirements without breaking the existing flow—consider using a feature flag system.
If You Choose Modular
Begin by selecting a workflow engine (e.g., Temporal or AWS Step Functions) and defining the state machine for each merchant type. Start with a minimal set of services: identity verification, business verification, and underwriting. Implement each service with its own API, database, and deployment pipeline. Set up a message broker for communication between services. Invest in comprehensive observability: logs, metrics, and distributed tracing. Build a dashboard for the operations team to monitor and manually intervene in stuck workflows. Plan to iterate on the workflow based on merchant feedback—modularity allows you to A/B test different step orders or providers. Finally, document the integration contracts for each service so that new team members can understand the system.
General Recommendations
Regardless of your choice, involve compliance and risk teams early in the design process. Onboarding is not just a technical problem; it is a regulatory and business problem. Run a pilot with a small group of merchants to validate the workflow before full rollout. After launch, continuously monitor key metrics: time-to-complete, drop-off rates per step, error rates, and support tickets related to onboarding. Use this data to inform iterative improvements. Remember that your onboarding workflow is a living system that must evolve with your business and regulatory landscape. By making an informed architectural choice now and committing to ongoing optimization, you will build a gateway that scales with your success.
Comments (0)
Please sign in to post a comment.
Don't have an account? Create one
No comments yet. Be the first to comment!