How Programmable Virtual Cards Enforce Spending Limits

Virtual debit cards and expense management comparison showing Ramp and Brex programmable cards with spending controls.

Table of Contents

Written by the Miracuves Editorial Team. Reviewed by Yash Narayan, SEO Associate, Miracuves.

Key Takeaways

  • Programmable describes the controls, not the funding. Ramp is a charge card on Visa and Brex issues corporate cards on Mastercard, both through partner banks; the same rules can sit on debit or prepaid cards.
  • Decide where each rule runs. Processor controls (categories, countries, amount limits) decline before your code is called; shared budgets and custom policy need your own decision service.
  • Your service has seconds, not minutes. Stripe Issuing allows 2 seconds and Marqeta Gateway JIT Funding 3 seconds, so choose in advance what happens on timeout.
  • Budgets drift by design. Spend aggregation can lag, and tips or fees post later, so the ledger must treat holds, captures and reversals as separate events.
  • Cards are the cheap part. Stripe lists 10 cents per US virtual card; the decision service, ledger, reconciliation and bank partner fees are where the cost sits.

If you are adding employee or vendor cards to an expense product, the hard part is not creating card numbers. It is deciding which spending rules the card processor enforces for you, which ones your own service has to decide in about two seconds, and how your ledger stays correct when a purchase settles for a different amount than it was approved for.

This guide walks through that stack the way a product lead or engineer meets it: the card types, the five layers behind every card, the authorization path with its published timeouts, the ledger events, PCI DSS scope and the economics. Ramp and Brex appear as reference points because both put spending controls at the center of their product, and Stripe Issuing and Marqeta serve as documented examples of issuing APIs. Facts are current as of November 2026.

What “programmable” means, and why Ramp and Brex are not debit cards

Programmable virtual debit card spending rules with spending limits, merchant categories, time periods, and card status controls.

A virtual card is a card number, expiry date and security code with no plastic behind it. It becomes programmable when software decides, card by card, whether a purchase may go through: how much, at which merchants or merchant categories, in which countries, during which period, and whether the card is still active.

Programmability describes the controls, not the funding. The same rules can sit on a debit, prepaid, charge or credit card, and that choice changes who carries the risk, how settlement works and what the program earns. The two best-known spend platforms are a good illustration, because neither is a debit product.

ProgramCard typeNetwork and issuerControls, as the company describes them
RampCorporate charge card; the full balance is due by each due dateVisa; issued by a partner bankCard limits, merchant and category rules, receipts and approvals in the Ramp app
BrexCorporate cardMastercard; issued by Emigrant Bank, Fifth Third Bank, N.A. or another bank named on the card, per the Brex card termsUnlimited virtual cards with controls by category, merchant and amount
Your own program on an issuing APIDebit, prepaid or charge, depending on the bank partner and funding modelThe network and sponsor bank you contract withProcessor spending controls plus your own real-time decision service

Sources: Ramp describes itself as a corporate charge card on the Visa network. Brex says it can issue unlimited virtual corporate cards on Mastercard, and its card terms name the issuing banks. In both cases a regulated bank issues the card while the company builds the software, underwriting rules and spend controls around it. That split is the model you will copy if you launch your own program.

A simple example: an advertising team gets a card capped at $4,000 a month (an illustrative figure, not a benchmark) that only works at the ad platforms it pays. A purchase anywhere else is declined at authorization, before money leaves the company, instead of being found weeks later in an expense report.

The five layers behind every card

A card screen in an app is not a payment product. Behind it sit five layers, and knowing who owns each one is the difference between shipping a card management interface and running a live card program.

Five-layer architecture of a programmable virtual card program: issuing institution, issuer processor, policy engine, ledger and expense app
An illustrative view of virtual card issuing infrastructure; actual responsibilities differ by issuing partner, processor and jurisdiction.
  1. Issuing bank. The regulated institution that issues the card under a network arrangement and carries the legal obligations. A software company does not become an issuer by building a card interface; it needs a program agreement with a bank.
  2. Issuer processor. Connects your program to the networks. It provisions cards, receives authorization requests, runs its own spending controls and sends you transaction events. Stripe Issuing and Marqeta are examples.
  3. Policy engine. Your service. It knows who owns a card, which budget it draws on and which rules apply, and it keeps a history of every policy change so finance can explain why a purchase was allowed or declined.
  4. Funding and ledger. The source of funds plus a record of holds, captures, reversals, refunds and settlement adjustments.
  5. Expense app. Turns transactions into what finance uses: receipts, budgets, policy exceptions and accounting entries.

Typical Virtual Card Infrastructure Flow

Business administrator creates a spending policy.

↓

Card management platform provisions a virtual card through an approved issuing integration.

↓

Employee or vendor submits a card payment.

↓

Payment network and issuer processor route the authorization request.

↓

Applicable policy and risk controls determine whether the request can proceed.

↓

Authorization response approves or declines the transaction.

↓

Transaction event processing updates expense records, budgets, and reporting systems.

Illustrative architecture. Actual authorization responsibilities and funding flows differ by issuing partner, processor, product, and jurisdiction.

Which controls the processor enforces and which you build

The first design decision is where each rule runs. Processor-level controls are cheap and fast because they decline a purchase before your code is called. Anything they cannot express has to live in your own decision service, which adds latency and a failure mode.

Stripe’s spending controls are a useful reference for what a processor typically handles. On a card or a cardholder you can set allowed or blocked merchant categories, allowed or blocked merchant countries, allowed or blocked card presence (online versus in person), and spending limits per authorization or over intervals such as daily, weekly or monthly, optionally per category. Blocking specific merchant IDs exists but is in private preview, so do not build a product promise on it without confirming access.

RuleUsually enforced byWatch out for
Per-purchase or periodic amount limitProcessorTips and fees posted later can push spend past the limit
Merchant category allow or block listProcessorA merchant’s category code may not describe everything it sells
Single named vendorProcessor where available, otherwise your serviceMerchant identifiers can change when a vendor switches payment provider
Shared team budget across many cardsYour serviceConcurrent purchases racing for the same remaining balance
Project end date or card expiryProcessor (card status) plus your schedulerRecurring charges that arrive after the project closes
Velocity (purchases per hour, repeated declines)Your service or the processor’s fraud toolsRules tight enough to block legitimate bursts, such as a team booking travel

Stripe’s documentation also lists three behaviors that surprise teams the first time a budget report disagrees with the card limits:

  • Spending aggregation is best effort, with a delay of up to 30 seconds between a purchase and its effect on the limit.
  • A new card with no spending limits gets a default limit of $500 per day, and every authorization is subject to a $10,000 limit you cannot configure. Stripe support can disable either.
  • Tips and fees can post later and take spending over a limit.

Design your budget logic and finance reports to expect these cases, and set explicit limits on every card you create so the default never decides for you.

The authorization path: six steps and two to three seconds

When a rule cannot run at the processor, your service joins the authorization itself. Issuing APIs publish their deadlines, and they are short. Using Stripe Issuing and Marqeta as documented examples, a purchase runs like this:

  1. The network routes it. The merchant’s request reaches the processor through the card network.
  2. Processor controls run. Blocked categories, merchant countries and spending limits are checked first and can decline the purchase before your systems are called.
  3. The webhook reaches you. Stripe sends an issuing_authorization.request event to your endpoint. If Stripe does not receive your approve or decline answer within 2 seconds, it approves or declines according to your timeout settings. With Marqeta’s Gateway JIT Funding, your gateway has three seconds to fund or deny the request; if it does not answer, Marqeta declines unless a stand-in mode is set up to approve.
  4. Your service decides. Check the card, cardholder, budget and policy using cached reads and a single write, then answer.
  5. Async jobs run. Receipt requests, accounting sync and notifications happen after the decision, never on the hot path.
  6. Later events arrive. Captures, incremental amounts, reversals and refunds come in as separate webhooks and update the ledger and budgets.
Six-step flow of a real-time virtual card authorization, from processor spending controls to a 2 to 3 second decision and later webhooks
Stripe Issuing allows 2 seconds and Marqeta Gateway JIT Funding 3 seconds for your response, per their published documentation.

The timeout setting is a product decision, not an engineering detail. Approving on timeout keeps employees able to pay during an outage but exposes funds; declining on timeout protects funds but strands a salesperson at a hotel desk. Stripe offers a fallback called Autopilot, in public preview, that decides on your behalf from predefined rules when your endpoint errors or times out. Whatever you choose, monitor it: Stripe marks such decisions with a webhook_timeout or webhook_error reason, and an approved purchase with that reason means your service was not the one deciding.

Your monitoring should also separate policy declines from technical declines. A purchase rejected for breaking a budget is the system working; a purchase rejected because the decision service was down is an incident.

Just-in-time funding

Just-in-time funding process for virtual debit cards showing authorization requests, policy checks, and on-demand fund access.

In a just-in-time (JIT) funding model, money moves to the card only when an authorization arrives and your gateway agrees to fund it, as in the Marqeta flow above. The card holds no idle balance, which narrows what a leaked card number can spend and keeps company funds in one place until they are needed.

JIT funding does not create money at the moment of purchase. The program still needs a funded account or credit line behind it and settlement terms its bank accepts. It also makes your gateway’s uptime part of whether any card works at all, which is why the timeout and fallback choices above matter more here than in a prefunded program.

The ledger: holds, captures and shared budgets

An approval is not the final number. The approved amount reserves spending capacity right away, while the capture can arrive later and for a different amount: a restaurant adds a tip, a hotel adjusts the final bill, a merchant reverses part of a hold. Your ledger has to record each of these as its own event and recompute the remaining budget from them, rather than overwriting one transaction row.

Four engineering problems come up in every program:

  • Shared budgets under concurrency. When ten cards draw on one team budget, two purchases can arrive in the same second and both see enough room. Pick one source of truth for the remaining amount and update it atomically inside the decision.
  • Duplicate and out-of-order events. Webhooks retry, and a capture can arrive before your system has finished processing its authorization. Store event IDs, verify signatures, and make every handler safe to run twice.
  • Idempotent card operations. A card-creation call that times out may still have created the card. Send idempotency keys where the API supports them and confirm the real outcome before retrying.
  • Card lifecycle state. Cards move through requested, active, frozen, expired and closed. The processor is the authority; if a close request fails, your app must not show the card as closed. Freezing a card also does not undo authorizations already approved.

From transaction to closed books

Card controls stop the wrong purchase. The expense layer is what saves finance time on the right ones, and it is where most of the product’s day-to-day value sits.

  • Capture. Each transaction event carries the amount, currency, merchant data, timestamps and status. Attach it to the cardholder, budget, project and policy that applied at the time, and keep pending and posted states apart.
  • Receipts. Prompt the cardholder right after the purchase and match the upload on merchant, date and amount. Tips and currency conversion will leave some mismatches for a person to check.
  • Categorization. Map spend to accounting categories from the card’s purpose first and the merchant category second. A card created for cloud hosting tells you more than the merchant’s category code does.
  • Exceptions. Route limit-increase requests, restricted-vendor attempts and missing receipts to different queues. A manager approving something in your app does not override a block set at the processor or bank.
  • Reconciliation. Match your records to processor reports, bank statements and the general ledger, including refunds, partial captures, settlement timing and currency conversion. A program that records every purchase but cannot reconcile settlement will fail its first audit.

One pattern that pays off quickly is one card per vendor. If cloud hosting, the support desk tool, analytics and ad spend each have their own card, every charge is attributed on arrival, an unexpected charge points to one relationship, and cancelling a subscription means closing one card without touching the others. The cost is inventory: hundreds of cards need owners, reviews and a rule for closing the ones nobody uses. Segment spend where it helps attribution, not to maximize the card count.

Measure the program on more than total spend. Useful numbers include policy decline rate, technical decline rate, missing-receipt rate, unreconciled transactions and cards with no activity in 90 days. A rising decline rate can mean good controls, badly configured policies or attempted misuse, so read it alongside the decline reasons.

Card data, PCI DSS and who owns compliance

Any system that stores, processes or transmits full card numbers falls under the Payment Card Industry Data Security Standard. The current version is PCI DSS v4.0.1, and the requirements that version 4 introduced as future-dated became mandatory after March 31, 2025.

For a virtual card product, the biggest scope decision is how cardholders see their card number and security code. Issuer-hosted components such as Stripe Issuing Elements render those details inside Stripe-hosted iframes, so the sensitive data never touches your servers, and the card object your code receives has the number removed. Building your own display or storage of card numbers brings those systems into PCI DSS scope and usually means a formal assessment.

Three more controls belong in the first release rather than a later one:

  • Role-based permissions that separate everyday card requests from high-risk actions such as raising program limits or creating API keys.
  • An audit log of card issuance, limit changes, overrides, freezes and permission changes, with who, when and why.
  • Step-up checks before showing sensitive details. Stripe, for example, requires two-factor authentication before any page that displays a card PIN through Issuing Elements.

Customer and business verification, sanctions screening and fraud monitoring are split between the bank, the processor and you, and the split is written into the program agreement. An issuing API or a ready-made app does not satisfy those obligations on its own; the requirements depend on the jurisdiction, the regulated entities and the business model, and they need legal review.

What a card program costs and earns

Founders usually ask two things first: what each card costs and how the program makes money. Issuing platforms publish part of the answer. Stripe’s US pricing lists 10 cents per virtual card and $3.50 per standard physical card, with shipping extra, so 10,000 virtual cards cost about $1,000 in creation fees before anything else. On revenue, Stripe’s guide to earning revenue by issuing cards describes a gross model (its example: a 1% share of $100,000 in monthly volume pays $1,000) and a net model (a share of interchange after bank and scheme fees).

Cost or revenue lineHow it is chargedWhat is published
Card creationPer cardStripe US: 10 cents per virtual card, $3.50 per standard physical card, shipping extra
Disputes, shipping and custom designsPer event or orderPriced separately by the provider
Interchange revenueShare of the fee paid on each purchaseGross and net revenue-share models; terms negotiated per program
Bank partner and complianceProgram fees, verification and screening checks, auditsQuoted by each bank and vendor
Engineering and operationsDecision service, ledger, reconciliation, supportDepends on team and scope

The card type changes the revenue side. Stripe notes that credit cards incur higher interchange than debit cards because the issuer takes on more risk. In the US, the Federal Reserve’s Regulation II limits debit interchange for issuers with $10 billion or more in assets; smaller issuers are exempt, and so are reloadable general-use prepaid cards that meet the rule’s conditions. Ramp and Brex both run corporate cards rather than debit, and if you plan a debit program, confirm early whether your bank partner is covered by the cap or exempt.

The debit cap itself is in flux. On October 26, 2026 the Eighth Circuit upheld a district court ruling that vacated the current debit fee cap because the Fed exceeded its authority in deciding which costs banks could include, and sent the rule back to the Fed to rewrite. The decision takes effect only when the court issues its mandate, further appeals are possible, and a similar challenge, Linney’s Pizza, is awaiting decision in the Sixth Circuit, where the district court sided with the Fed. As of November 2026, model debit interchange conservatively and revisit it once the Fed acts.

Treat all of this as a starting point. Bank minimums, compliance programs, fraud losses and support vary widely, and for most programs the decision service, ledger and reconciliation cost more than the cards.

Decisions to make before you write code

Start from one spending problem, not from a card design. Controlling software subscriptions, paying a known set of suppliers and giving field staff travel cards need different rules, funding models and partners, and trying to serve all three at launch multiplies the policy and support work.

Founder Decision Signals

Use Case

Identify whether your customers need employee cards, vendor payments, subscription controls, or broader financial account functionality.

Issuer Readiness

Confirm that the intended issuing institution and processor can support your target market and payment product.

Policy Enforcement

Determine which controls operate at authorization time and which require post-transaction review.

Operational Ownership

Define responsibility for reconciliation, fraud review, disputes, customer support, and lifecycle management.

Then answer these before choosing a processor:

  1. Which of your rules can the processor enforce, and which need a real-time decision service?
  2. What should happen to a purchase when that service is down: approve, decline or a fallback rule set?
  3. Prefunded balance or just-in-time funding, and who holds the money?
  4. Debit, prepaid or charge, and what does that do to interchange with your likely bank partner?
  5. Will card numbers ever touch your servers, or will you use issuer-hosted display?
  6. Who owns disputes, fraud review, reconciliation and cardholder support on day one?

The most common failure is promising controls the infrastructure does not deliver: marketing a hard limit that is really a post-transaction alert, or a vendor lock that depends on a feature still in preview. Write down, rule by rule, whether it is enforced at authorization or only monitored afterwards.

Where Miracuves fits

Miracuves builds the software side of this stack: the cardholder and admin apps, card management screens, role-based permissions, approval workflows, budgets and the integration with the issuing processor your bank partner supports. Our ready-made digital banking app is a starting point when cards are part of a broader account product, and our fintech app development team builds the custom pieces this guide describes, such as a real-time decision service, the event-driven ledger and reconciliation.

For eligible ready-made solutions, Miracuves offers a six-working-day software deployment, depending on the selected scope. That covers the software, not live card issuance: the bank partner, processor contract, compliance program and network approvals run on their own timelines, and for PCI DSS and the security controls in our part of the stack, we build to the controls and take you through the audit with a partner.

Miracuves
Simplify business spending with smarter virtual cards and automated expense controls.
Explore virtual debit card issuing integrations, programmable spending limits, employee expense tracking, merchant restrictions, approval workflows, real-time transaction monitoring, and secure payment infrastructure for a scalable fintech platform.
Fintech Solutions • Virtual Cards & Expense Management
Discuss virtual card issuing, spending controls, payment integrations, expense automation, and fintech platform architecture.

Frequently Asked Questions

What is a programmable virtual card?

It is a card number with no plastic behind it, connected to software rules that decide whether each purchase may go through. Typical rules cover amount limits, merchant categories, merchant countries, active periods and card status. The card underneath can be debit, prepaid, charge or credit; programmable describes the controls, not how the card is funded.

How do Ramp and Brex virtual cards work?

Both build spend-management software around cards issued by partner banks. Ramp describes its card as a corporate charge card on Visa that must be paid in full by each due date. Brex corporate cards run on Mastercard and are issued by Emigrant Bank, Fifth Third Bank, N.A. or another bank named on the card, and Brex lets companies create unlimited virtual cards with controls by category, merchant and amount.

What happens if my authorization webhook does not answer in time?

The processor decides for you. Stripe Issuing waits 2 seconds for your approve or decline answer, then applies your timeout settings. Marqeta gives a Gateway JIT Funding endpoint three seconds and declines by default unless a stand-in mode is configured to approve. Choose the fallback deliberately and monitor timeout reasons, because a missed deadline becomes a product decision.

What does it cost to launch a virtual card program?

Per-card fees are small: Stripe’s US pricing lists 10 cents per virtual card and $3.50 per standard physical card, with shipping extra. The larger costs are bank partner and compliance fees, fraud and dispute handling, and engineering for the decision service, ledger and reconciliation. On the revenue side, Stripe describes gross and net interchange-share models, with terms negotiated per program.

Is PCI DSS required to issue virtual cards?

Any system that stores, processes or transmits full card numbers is in PCI DSS scope, and the current version is 4.0.1. Many programs reduce scope by showing card details through issuer-hosted components such as Stripe Issuing Elements, which render the number in Stripe-hosted iframes so it never reaches your servers. Your bank partner and processor confirm which assessment applies.

Do I need a bank partner to issue virtual cards?

Yes. A live card program needs a regulated issuing bank, a card network arrangement and usually an issuer processor. Software can supply the card management screens, policy engine and admin workflows, but it does not authorize issuance on its own. Funding, compliance responsibilities and the program agreement must be in place before cards go live.

Disclaimer

Miracuves is an independent software development company. We are not affiliated with, connected to, sponsored by, or endorsed by any company or product named in this article.

Why this name

Terms such as “X Clone” are used descriptively. It is how the software industry refers to building a platform with functionality comparable to a known service, and how clients search for it.

Who built this

The entire design and codebase of our products is built by our own team. Our products contain no code, design, graphics, or content originating from any third-party website or applications.

Trademarks

All third-party names and marks referenced in this article are the property of their respective owners, referenced solely to identify the services discussed.

Tags

Connect

This field is for validation purposes and should be left unchanged.
Your Name(Required)