Book a free call

How Much Does It Cost to Develop a Payment Gateway?

Developing a payment gateway from scratch costs roughly $50,000 to $500,000, depending on scope, compliance and payment methods. Here is what drives the price.

Hertiv engineering teamReviewed by a senior engineer
7 min read
How Much Does It Cost to Develop a Payment Gateway?
On this page

Short answer

Developing a custom payment gateway costs roughly $50,000 to $500,000 or more, depending on scope. A basic gateway with one processor and card payments sits at the low end, while a production-grade gateway with several processors, fraud controls, multi-currency support and PCI DSS compliance sits at the high end, plus $25,000 to $80,000 a year in running costs.

What is a payment gateway, and what does it cost to build?

A payment gateway is the software that carries a card or wallet payment from checkout to the acquiring bank and back with an approval or a decline. It checks the card, routes the payment to the right processor, handles retries and refunds, and keeps a record of every transaction for settlement and reporting.

Developing one from scratch costs roughly $50,000 to $500,000 or more, according to published 2026 agency guides, and the range is wide because a gateway is not one product. A basic gateway that connects one processor and takes card payments is a small build. A production-grade gateway with several processors, fraud controls, multi-currency support and full compliance is a large one, and the two should not be priced the same way.

The choice that matters most is how much of the payment flow you build yourself. Connecting an existing processor is cheap. Renting a white-label gateway costs more but buys a ready system. Building from scratch costs the most and takes the longest, but gives full control over routing, pricing and the merchant experience. A white label gateway cost guide covers the middle option in detail, while this article prices the custom build.

What does the cost depend on?

The cost depends on scope: how many processors, payment methods, currencies and merchants the gateway must serve. The table below shows indicative planning ranges from published 2026 agency guides, from the cheapest route to the most expensive.

Route Scope Indicative range
Third-party integration Connect an existing processor into an app $5,000-$30,000
White-label gateway Branded gateway on existing infrastructure $20,000-$80,000
Custom gateway MVP Core processing, one or two processors, tokenization $50,000-$150,000
Production-grade gateway Several processors, fraud controls, reconciliation $150,000-$500,000
Enterprise platform Multi-region, smart routing, complex settlement $500,000 and up

The jump from an MVP to a production-grade gateway is where most budgets break. The MVP proves the payment flow works; the production build adds the parts that keep it working at volume, such as retries, reconciliation, fraud rules, monitoring and failover. Teams that price only the MVP and forget the production parts end up paying for them later, under pressure, when the gateway is already live.

What drives the price up?

Five factors drive the price up: the number of processors, the number of payment methods, the fraud and risk rules, the compliance scope and the uptime the gateway must hold. Each one adds work to the core engine and to the testing around it.

Cost driver Why it adds cost Cheaper alternative
More processors Each one needs its own integration and testing Start with one, add the second later
More payment methods Cards, wallets and bank transfers each have their own flow Launch with cards only
Fraud controls Rules, scoring and manual review queues take time to build Use a third-party fraud service first
Compliance scope Handling card data brings PCI DSS and audit work Tokenize through the processor to shrink scope
Uptime and scale Redundancy, monitoring and load testing cost real money Accept planned maintenance windows early on

Compliance scope is the driver teams underestimate most. Once a gateway stores or passes card data, it falls under PCI DSS, which brings encryption, access controls, logging and a yearly audit. Using the processor's tokenization to keep card data out of your own systems can shrink that scope a lot, and it is often the single biggest saving available to a new gateway.

The data security and compliance services cover how teams handle this scope in practice.

What are the ongoing costs after launch?

The build cost is only the first half of the bill. A gateway needs yearly compliance work, hosting, fraud tools and engineering time to keep up with changes from card networks and regulators. The table below shows indicative ranges from published 2026 agency guides.

Ongoing cost Indicative range Notes
PCI DSS certification $15,000-$70,000 Depends on scope; repeats on a cycle
Annual compliance and maintenance $25,000-$80,000 a year Audit, patching, rule updates
Cloud hosting $2,000-$15,000 a month Grows with volume and uptime needs
Fraud tools Priced per transaction or monthly Third-party scoring is often cheaper than building
Engineering support At least one engineer part-time Someone must own incidents and updates

Teams that budget only for the build and forget the running costs are the ones that stall after launch. A gateway that processes real money cannot be left unpatched, and card networks change their rules every year. Budget the first year of running costs alongside the build, and the total will not surprise anyone.

How do you estimate your own budget?

You estimate a payment gateway budget by fixing the scope first, then pricing each part, then adding the running costs. A budget built the other way round, by picking a number and fitting the scope to it, usually ends in a gateway that is missing the parts that matter.

  1. List the processors and payment methods. Write down exactly which processors, card types, wallets and currencies the first version must support.
  2. Decide the compliance scope. Work out whether card data touches your systems, and whether tokenization through the processor can shrink that scope.
  3. Price the core engine. The transaction engine, routing, retries and refunds are the largest single build item, usually a third or more of the build cost.
  4. Price security and compliance separately. Tokenization, encryption, fraud rules and the PCI DSS audit are not part of the core engine, so price them on their own line.
  5. Add a year of running costs. Add hosting, compliance, fraud tools and support time for the first year, so the total reflects what the first year really costs.
  6. Add a contingency of 15 to 20 percent. Payment integrations always surface surprises, usually in processor behaviour, so hold back a contingency rather than spending it.

The contingency is the line teams cut first and miss most. A processor that behaves differently in production than in its sandbox, or a card network rule that changes mid-build, can each add weeks. A 15 to 20 percent buffer absorbs those without a new funding round. For the payment side of the product, crypto payment gateway work covers gateways that also accept digital assets.

Example: a marketplace builds a mid-market gateway

Example (hypothetical): a marketplace with 400 sellers builds a custom gateway for card payments, with two processors, tokenization and basic fraud rules. It prices the build in five parts.

The core engine, including the transaction flow, routing, retries and refunds, costs $90,000. Security and compliance, including tokenization, encryption and fraud rules, costs $30,000. Design of the checkout and merchant dashboard costs $15,000. Integration and testing with the two processors costs $20,000. PCI DSS certification costs $25,000. The build total is $90,000 plus $30,000 plus $15,000 plus $20,000 plus $25,000, which is $180,000.

First-year running costs add $60,000, covering hosting, the fraud tool, maintenance and part-time support. The first-year total is $180,000 plus $60,000, which is $240,000. A 15 percent contingency on the build would add $27,000, bringing the planned total to $267,000. The numbers are hypothetical, but the arithmetic shows the shape of a real budget: the core engine is about half the build, and the first year of running costs adds about a third on top.

What are the common mistakes?

The most common mistakes in payment gateway builds are pricing only the happy path, ignoring PCI DSS scope, and launching without reconciliation or a plan for processor outages.

  • Pricing only the happy path. Retries, refunds, partial captures and chargebacks are half the work. A gateway that only handles successful payments is not finished.
  • Ignoring PCI DSS scope. Storing card data by accident, such as logging a full card number, expands the audit scope sharply. Keep card data out of your systems from day one.
  • No reconciliation. Without a daily check that gateway records match processor settlements, small gaps grow into missing money that nobody can explain.
  • One processor, no fallback. A single processor outage stops all payments. Even a basic fallback route keeps the business trading during an outage.
  • Cutting the contingency. Payment integrations always surprise. A budget with no buffer runs out at the worst moment, usually just before launch.

Key takeaways

  • A custom gateway costs roughly $50,000 to $500,000 or more, depending on scope
  • The MVP proves the flow; the production build adds retries, reconciliation and fraud controls
  • Compliance scope is the most underestimated driver, so tokenize through the processor where possible
  • Budget $25,000 to $80,000 a year in running costs alongside the build
  • Price the core engine, security, design, integration and PCI DSS on separate lines
  • Hold a 15 to 20 percent contingency for processor surprises

Frequently asked questions

How much does a basic payment gateway cost?

A basic custom gateway with one processor and card payments costs roughly $50,000 to $150,000 to build, according to published 2026 agency guides. A simple integration with an existing processor costs far less, roughly $5,000 to $30,000, because most of the payment flow already exists.

What is the most expensive part of building a gateway?

The core transaction engine is usually the largest single item, often a third or more of the build cost, because it handles routing, retries, refunds and settlement. Security and compliance come next, especially when the gateway stores or passes card data.

How long does it take to build a payment gateway?

A basic gateway takes about three to five months, a mid-market gateway about six to ten months, and an enterprise gateway ten to eighteen months or more, according to published 2026 guides. Compliance work and processor testing usually set the pace, not the coding.

Do I need PCI DSS compliance for a custom gateway?

Yes, if the gateway stores, processes or transmits card data. The certification costs roughly $15,000 to $70,000 depending on scope, and the work repeats on a cycle. Using the processor's tokenization can shrink the scope, because card data then stays out of your systems.

Is it cheaper to build or to use a white-label gateway?

White-label is cheaper up front, roughly $20,000 to $80,000 against $50,000 or more for a custom build, but it gives less control over routing, pricing and the merchant experience. Building makes sense when payment is core to the product, not just a checkout step.

What ongoing costs should I expect after launch?

Expect yearly compliance and maintenance of roughly $25,000 to $80,000, cloud hosting of $2,000 to $15,000 a month, fraud tool fees and part-time engineering support. Budget these alongside the build cost so the first year does not surprise anyone.

Found this useful? Share it.
Hertiv engineering team

Written from projects we build for clients: software products in production. Every post is reviewed by a senior engineer before publishing and updated when practice changes.

About HertivHow we work

Planning a custom payment gateway and want a realistic budget?

A senior engineer replies within one business day. Or see our Crypto Payment Gateway service.

Book a free call

Keep reading

All posts

Tell us what you want to build

A senior engineer reads every request and replies within one business day with questions, a rough range, or a call link.

  • NDA on request before any details
  • You own all code, models and IP
  • US, UK and EU time-zone overlap

Your email app should open with your message ready to send. If it does not, write to [email protected].

Prefer email? Write to [email protected]
Estimate costBook a call