What building a payment processor actually means

Building a payment processor means creating the infrastructure that moves money from a customer's bank account to a merchant's account when a transaction happens. You are not building a single piece of software — you are assembling a chain of connections to banks, card networks, settlement systems, and fraud detection tools, then writing the code that talks to all of them in the right order.

Most people who say they are building a payment processor are actually building one of three things: a payment gateway (the interface that accepts card details and sends them somewhere else), a payment processor (the system that talks to banks and card networks to move the money), or a complete platform that does both. The distinction matters because the technical work, the regulatory work, and the cost are completely different for each.

This guide covers what you need to know about the actual mechanics — the connections you need, the compliance you cannot skip, and the realistic timeline and cost. It is written for people building a processor or considering whether to build one instead of using an existing platform.

Key Takeaways

  • A payment processor needs connections to at least one acquiring bank, the card networks (Visa, Mastercard, American Express, Discover), and a settlement system that moves money between accounts.
  • You must obtain a merchant account from an acquiring bank and comply with PCI DSS (Payment Card Industry Data Security Standard), which requires specific security practices and regular audits.
  • Building a full processor takes 18 to 36 months and costs between $500,000 and $5 million depending on whether you handle card data directly or use a third-party tokenization service.
  • Most new processors do not handle card data themselves — they use a payment service provider (PSP) or payment processor as a backend and build the user interface and merchant tools on top.
  • Regulatory approval from your acquiring bank and card networks is the longest part of the process and cannot be rushed; expect 6 to 12 months of back-and-forth documentation.

The three layers of a payment processor

A working payment processor has three distinct layers, and each one requires different technical work and different partnerships.

The front layer is what merchants and customers see: the checkout page, the payment form, the dashboard where merchants see their transactions. This is the easiest part to build because it is just a web process. You can build this yourself with standard web frameworks.

The middle layer is the logic that decides what happens to a transaction: validation, fraud checks, routing to the right acquiring bank, retry logic if something fails, reconciliation between what you sent and what the bank confirmed. This is where most of the complexity lives. You write this code yourself, but it has to talk to systems you do not control.

The back layer is the actual movement of money: connections to acquiring banks, card networks, and settlement systems. You cannot build this yourself. You either become a licensed processor (which takes years and millions of dollars) or you use an existing processor as your backend and build the front and middle layers on top.

What you need from an acquiring bank

An acquiring bank is a bank licensed to move money from a customer's card to a merchant's account. You cannot process card payments without one. The bank does not have to be the one holding your merchant account — you can use a third-party payment processor as an intermediary — but somewhere in the chain, an acquiring bank has to be involved.

When you approach an acquiring bank, you need to show them: your business plan, your expected monthly transaction volume, your fraud prevention strategy, your technical architecture, and proof that you have PCI DSS compliance in place. Banks are risk-averse and move slowly. Expect them to ask for the same documents multiple times and to take 3 to 6 months just to say yes or no.

Some acquiring banks will let you use their infrastructure directly (you become a direct processor). Most will not — they will require you to use a payment service provider (PSP) or a third-party processor as an intermediary. This is actually the faster and cheaper route for most new processors. The PSP handles the connection to the bank and the card networks; you handle everything else.

PCI DSS compliance and what it actually requires

PCI DSS (Payment Card Industry Data Security Standard) is a set of security requirements that anyone handling card data has to follow. It is not optional and not a suggestion — your acquiring bank will not work with you without it, and the card networks audit for it.

The standard has 12 main requirements: a firewall, no default passwords, encryption of cardholder data, regular security testing, access controls, unique user IDs, restricted physical access to systems, logging and monitoring, regular security updates, and documented security policies. If you handle card data directly, you also need annual audits by a may have access to Security Assessor (QSA), which costs $10,000 to $50,000 per year depending on your transaction volume.

Most new processors avoid handling card data directly by using tokenization: the customer's card details go to a third-party service (like a PSP or a tokenization provider), which gives you back a token — a meaningless string of characters that represents the card. You store and use the token, not the card number. This dramatically reduces your PCI DSS burden. You still have to comply, but you do not need a QSA audit.

The compliance work is not a one-time thing. You have to maintain it continuously: update systems when security patches come out, monitor for unauthorized access, document everything, and respond to any breach within specific timeframes. Budget for a compliance officer or a consultant who understands payment systems.

The technical architecture: what talks to what

Here is the actual flow of a transaction through a payment processor:

  1. Customer enters card details on your checkout page (or your app).
  2. Your front-end code sends those details to your tokenization service (not to your own servers). The tokenization service returns a token.
  3. Your server stores the token and creates a transaction record in your database.
  4. Your server sends the token, the amount, and the merchant ID to your acquiring bank or PSP via a find API connection (usually HTTPS with mutual TLS authentication).
  5. The acquiring bank or PSP sends the transaction to the card network (Visa, Mastercard, etc.).
  6. The card network routes it to the customer's issuing bank (their bank).
  7. The issuing bank approves or declines and sends the response back through the card network to the acquiring bank to your PSP to your server.
  8. Your server updates the transaction record with the response and tells your front-end whether it succeeded.
  9. At the end of the day, the acquiring bank settles the money: it moves the funds from the issuing banks' accounts to your merchant account, minus fees.

You have to write code that handles every step after step 2. You need error handling for network failures, retry logic for timeouts, reconciliation logic to match what you sent against what the bank confirmed, and logging for debugging and compliance. You also need to handle webhooks — notifications from your PSP or bank that tell you when a transaction settles, when a chargeback happens, or when a refund completes.

The technical work is not trivial, but it is doable. The hard part is the integration work: every acquiring bank and every PSP has a slightly different API, slightly different error codes, slightly different timing. You have to write adapters for each one.

Regulatory approval and licensing

Whether you need a license depends on what you are doing. If you are building a payment gateway that sends transactions to an existing processor, you probably do not need a license — you are just a software company. If you are building a processor that touches the card networks directly or holds merchant funds, you may need to be registered as a Money Services Business (MSB) or a Money Transmitter, depending on your state and what you do with the money.

The regulatory landscape varies by state and by country. In the United States, you may need to register with FinCEN (Financial Crimes Enforcement Network) and comply with state money transmitter laws. In Europe, you may need to be licensed as a Payment Institution under PSD2 (Payment Services Directive 2). In other countries, the rules are different again.

Before you start building, talk to a lawyer who specializes in payment systems. The regulatory work can take 6 to 12 months and can cost $50,000 to $200,000 in legal fees alone. It is not something you can do after you have built the product.

Timeline and cost: what to actually budget

The timeline and cost depend heavily on whether you are building a full processor or using an existing one as your backend.

If you are using a PSP as your backend (the most common approach), you are looking at 6 to 12 months of development and $100,000 to $500,000 in engineering costs. You still need regulatory approval and PCI DSS compliance, which adds another 6 to 12 months and $50,000 to $150,000 in legal and compliance costs. Total: 12 to 24 months, $150,000 to $650,000.

If you are building a full processor from scratch — handling card data yourself, connecting directly to acquiring banks and card networks — you are looking at 24 to 36 months of development, $500,000 to $2 million in engineering costs, plus $200,000 to $500,000 in regulatory and compliance costs. You will also need to maintain relationships with multiple acquiring banks and handle settlement yourself. Total: 24 to 36 months, $700,000 to $2.5 million.

If you want to handle multiple currencies or multiple countries, add 6 to 12 months and $200,000 to $500,000 per currency or region. If you want to handle alternative payment methods (bank transfers, digital wallets, local payment methods), add another 3 to 6 months per method.

These are not small numbers, which is why most new payment companies do not build a processor from scratch. They use an existing processor as a backend and focus on building a better user experience or serving a specific industry.

The alternative: using an existing processor

If you are not sure you need to build your own processor, you probably do not. Using an existing processor (like Stripe, Square, PayPal, or a regional processor) as your backend is faster, cheaper, and lower-risk. You can build a payment gateway, a merchant dashboard, industry-specific tools, or a vertical-specific platform on top of an existing processor in 3 to 6 months with a team of 2 to 4 engineers.

The trade-off is that you are dependent on the processor you choose. You have to accept their fees, their terms of service, their API design, and their support. But for most use cases, that trade-off is worth it.

Building your own processor makes sense only if you have a specific reason: you need lower fees at scale, you need to serve a market the existing processors do not serve, you need to handle a payment method they do not support, or you are building a financial institution that needs to own the entire stack.

Frequently Asked Questions

Do I have to handle card data myself?

No. Using tokenization means the card data goes directly to a third-party service and never touches your servers. This is the standard approach and dramatically reduces your compliance burden. You work with tokens instead of actual card numbers.

How long does it take to get approved by an acquiring bank?

Typically 3 to 6 months for initial approval, then another 3 to 6 months of back-and-forth as they ask for more documentation, clarification, or changes to your setup. Banks move slowly. Plan for at least 6 months from first contact to live processing.

What is the difference between a payment gateway and a payment processor?

A payment gateway is the interface that accepts payment details and sends them somewhere else. A payment processor is the system that actually moves the money between banks. A gateway without a processor is useless; a processor without a gateway is invisible to customers. Most people building a "processor" are actually building a gateway on top of an existing processor.

Can I start processing payments before I have full regulatory approval?

No. You need approval from your acquiring bank before you can process any live transactions. You can build and test in a sandbox environment, but you cannot touch real money until the bank says you can.

What happens if I process a transaction and the customer disputes it?

The customer's bank initiates a chargeback. The acquiring bank notifies you, deducts the amount from your account, and gives you a window (usually 7 to 10 days) to provide evidence that the transaction was legitimate. If you cannot prove it, you lose the money and pay a chargeback fee (usually $15 to $100). You need systems in place to track evidence and respond to chargebacks automatically.