A virtual credit card is a computer-generated card number linked to your real credit card account that you use for online purchases instead of your actual card number. It carries the same 16-digit format, security code, and expiration date as any Visa, Mastercard, or American Express card, so merchants process it exactly like plastic. What sets it apart is control: you can cap the spending limit, lock it to a single merchant, or make it expire after one charge. If the merchant’s system is later breached, the stolen number is usually already useless.
What a Virtual Card Number Actually Is
Every virtual card contains the same three pieces of data as a physical card: a card number, a security code, and an expiration date. The card number is typically 16 digits and follows ISO/IEC 7812, the same international numbering standard every plastic card uses. The leading digits identify the payment network, and the rest are unique to that specific virtual instance. Because the format matches, any site or terminal that accepts the underlying brand will accept the virtual number.
The security code is three digits for Visa and Mastercard virtual cards. American Express virtual cards use four, matching their physical cards.1American Express. AMERICAN EXPRESS Virtual Card Number Frequently Asked Questions
The expiration date is where virtual cards diverge sharply from plastic. Most expire within a few months, and single-use cards expire the moment one transaction clears. That narrow window is the whole point. If a merchant’s database is breached six months after your purchase, the number inside it is already dead.
How a Virtual Card Payment Gets Processed
When you enter a virtual card number at checkout, the merchant’s payment processor sends it to the card network, which routes it to your issuing bank. The bank recognizes the virtual number and maps it internally to your real account. Before approving the charge, the issuer checks it against the rules you set when you created the card: Is the amount within your spending cap? Is the card still active? Is the merchant the one you locked it to?
If everything passes, the issuer sends an authorization code back through the network. The whole exchange takes a few seconds. Settlement, when money actually moves from your bank to the merchant’s, typically follows within one to three business days.
If the charge breaks one of your rules, the issuer declines it instantly. These are hard blocks, not warnings. You’ll usually see a generic decline on the merchant’s site and a more specific explanation in your bank’s app.
One point worth getting right: the federal law protecting you against unauthorized charges depends on whether the virtual card is funded by a credit line or a bank account. Virtual credit cards fall under the Truth in Lending Act, which caps your liability at $50 for unauthorized charges, and only when the issuer has met several notification requirements first.2Office of the Law Revision Counsel. 15 USC 1643 – Liability of Holder of Credit Card Most major issuers waive even that $50 under their own zero-liability policies. Virtual debit cards are governed instead by the Electronic Fund Transfer Act, where your liability can reach $500 if you don’t report the problem within two business days.3Office of the Law Revision Counsel. 15 USC 1693g – Consumer Liability A virtual credit card gives you the stronger protection.
Setting One Up
You generate a virtual card from your bank’s mobile app or a browser extension. You pick which account funds it, then set two things that matter: the spending limit and the card type.
The spending limit is a hard dollar ceiling. Set it to the exact amount of the purchase and the card becomes useless for anything else. Some people leave a small buffer for tax or shipping, but the tighter the cap, the less damage a stolen number can do.
The card type decides how long the number lives:
- Single-use cards expire the moment one charge clears. Good for a one-time purchase from a merchant you don’t plan to use again.
- Merchant-locked cards stay active indefinitely but only work at the vendor you tie them to. Charges from any other merchant decline automatically. This is the version to use for subscriptions.
Once you confirm the settings, the bank generates the card number, security code, and expiration date in real time and shows them on screen. You can paste them into a checkout form or save them to a digital wallet. Most apps let you nickname each card so you can tell at a glance which one went to which purchase.
Using a Virtual Card at Checkout
You type the number, security code, and expiration date into the merchant’s checkout fields the same way you would with plastic. The merchant submits the data through its payment processor, and authorization happens behind the scenes within seconds. You get a confirmation screen from the merchant and usually a push notification from your bank showing the merchant name and the exact amount. For a single-use card, that’s the end of its life. Any further attempt against that number will fail.
Merchant-locked cards work well for recurring subscriptions. The card processes each monthly charge, but no one else can bill it. If the subscription company is ever breached, the stolen number only works at that one place. If you want to cancel, pausing or deleting the virtual card guarantees no further charges, even if the merchant’s cancellation flow is slow or confusing.
Where Virtual Cards Don’t Work Well
Virtual cards are built for online checkout, and some situations still expect a physical card.
Car rental counters are the most common sticking point. Most rental companies require a physical credit card at the desk so they can match the cardholder name to your driver’s license, run a chip-based authorization for the deposit, and keep a card on file for damage or tolls after you return the vehicle. Virtual numbers often can’t satisfy those requirements.
Hotels create similar problems. Many front desks require a physical card swipe or chip insertion for the incidentals hold at check-in. Some accept mobile wallet payments; others insist on plastic. Calling ahead is the only reliable way to find out. Pay-at-the-pump terminals at gas stations can also be unpredictable because they often run a larger pre-authorization hold that may exceed a tightly capped virtual card.
Your issuer may also block certain merchant categories on virtual cards. Every merchant has a four-digit category code assigned by the card network, and issuers can disable entire categories at the card level.4Acquisition.GOV. 14-6. Merchant Authorization Controls (MAC) If gambling or cash-advance categories are blocked, those transactions will decline no matter how much credit you have available.
How Refunds Work When the Card Is Already Gone
Refunds catch most virtual card users off guard. A merchant can only send a refund back to the original card number used for the purchase. If that virtual card has expired or been deleted, the refund doesn’t disappear. Your issuer sees the incoming credit, recognizes which underlying account it maps to, and routes the money to your current card or linked bank account. You usually don’t need to do anything.
If you’ve closed the entire credit card account, not just the virtual number, the issuer will typically deposit the refund into the bank account that was linked to the card. In the rare case where both are closed, the issuer may mail a check to your address on file. The one practical catch is timing: a refund to a dead virtual number can take a few extra business days to appear while the bank reroutes the funds.
What You’re Protected Against, and What You Still Pay
The main advantage of a virtual card shows up before any fraud liability rule is triggered. If a merchant is breached and your virtual number is stolen, the thief ends up with a number that’s expired, locked to a merchant they aren’t, or capped at a limit that’s already been spent. You don’t need to cancel your real card, order a replacement, or update every subscription attached to the account.
If a fraudulent charge does post to a virtual credit card, federal law caps your liability at $50, and the issuer carries the burden of showing the conditions for that cap are met.2Office of the Law Revision Counsel. 15 USC 1643 – Liability of Holder of Credit Card Regulation Z restates the same cap and allows state law or your cardholder agreement to reduce it further.5eCFR. 12 CFR 226.12 – Special Credit Card Provisions
Fees are a different story. A virtual card inherits the fee structure of the account it draws from. If your underlying credit card charges a 2% to 3% foreign transaction fee, you’ll pay that same percentage on international purchases made with the virtual number. The virtual layer doesn’t add a fee, but it doesn’t shield you from one either. If foreign transaction fees matter, generate the virtual card from an account that doesn’t charge them.