FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Original HTTPS Page]

CCGenerator · GitHub

CCGenerator

ccgenerator.org

Free, open-source tools for payment testing. ccgenerator.org generates Luhn-valid test card numbers, validates BINs, and collects the sandbox cards Stripe, Adyen and Braintree publish. Dummy data for developers and QA: no bank issued these numbers, and no payment will ever clear on one.

Everything runs in your browser. No signup, no account, no upload — the numbers are generated on your machine with crypto.getRandomValues and never sent anywhere.


Generate a test card

The credit card number generator is the main tool: pick a network, get a complete card — number, expiry, CVV and cardholder name — with the correct prefix and length for that network.

Per-network pages, each with the ranges and rules that network actually uses:

Visa Mastercard American Express
Discover JCB Diners Club
Maestro UnionPay Troy

Also: bulk credit card generator for fixture files, debit card generator, virtual credit card generator, and a CVV generator when you only need the security code.

Check a number

  • Credit card validator — paste a number and see exactly why a form accepted or rejected it: the Luhn check digit, the detected network, whether the length is valid, and the full anatomy of the digits.
  • BIN lookup — what the first six to eight digits say about the issuer, the network and the card type.
  • BIN generator — build numbers from a specific BIN when you are testing issuer-specific routing.

Gateway sandbox cards

Test card numbers — the numbers each provider publishes, in one table, with the decline triggers and 3-D Secure cards: Stripe, Braintree, Adyen, Square, PayPal, Authorize.Net and iyzico.

These are the provider's own numbers, not generated ones. That distinction matters: why test cards fail on real payment systems.

Everything else a test fixture needs

IBAN generator · fake name and address generator · credit card image generator for mockups and documentation · all tools


The Chrome extension

CC Generator — test card numbers puts the same three things in the toolbar, one keyboard shortcut from any checkout form you are building:

  • Generate — 1 to 25 cards on any of nine networks; copy one, copy all, copy JSON, export CSV
  • Validate — Luhn check digit, network, length and digit anatomy
  • Test cards — the gateway sandbox numbers, ready to copy or fill
  • Autofill — writes number, expiry, CVC and cardholder name into the form on screen, from the popup, the right-click menu, or Alt+Shift+F

No host permissions, no content script running in the background, and no network requests of any kind. Source: ccgenerator-chrome, MIT licensed — every claim in that list can be read off the code.

The npm package

@ccgenerator/test-cards is the same engine as a dependency, for the test suite rather than the toolbar:

import { generate, validate, detectBrand } from '@ccgenerator/test-cards';

generate('mastercard');
// { network: 'mastercard', pan: '5312448763449521', cvv: '204',
//   expiryMonth: '09', expiryYear: '2029' }

detectBrand('2223 0031 2200 3222');  // 'mastercard'
validate('4111111111111112').errors; // ['luhn_failed']
npm install --save-dev @ccgenerator/test-cards

Zero dependencies, no network calls, no install scripts. Nine networks on the same ranges the site and the extension use — including 2-series Mastercard and the 19-digit Maestro and UnionPay formats most hand-rolled tables miss. Ships with TypeScript types. Source: ccgenerator-npm, MIT licensed.


How card numbers actually work

The guides behind the tools. Written to be read once and settle the question:

The Luhn algorithm The check digit every card number carries, and how it is computed — plus code examples in a dozen languages
Credit card number structure MII, IIN, account identifier, check digit — what each part of the number is for
BIN/IIN explained What the issuer prefix tells you, and what it does not
Card number length by network Including the 19-digit Maestro and UnionPay ranges most generators get wrong
Card brand detection regex Prefix rules for detecting the network client-side, and the ones that are commonly wrong
What is CVV Why it cannot be derived from the card number, by design

Testing a payment integration

Payment form testing checklist · Stripe test card numbers · PayPal sandbox testing · 3-D Secure testing · PCI DSS for developers · Card tokenization explained · Test data management for QA


What these numbers are not

A generated number satisfies the Luhn checksum and a network's published prefix and length rules. That is the whole of it. No bank issued it, it is attached to no account, it holds no funds, and it will be declined by every real payment system it is ever presented to.

Tools like this are often called a fake credit card generator, and the numbers are fake in the only sense that matters. If you came looking for working, live or funded card numbers, this is not that — and no honest tool is:


About

How this site works · Editorial policy · Editorial team · FAQ · Privacy policy · Contact

Pinned Loading

  1. ccgenerator-chrome ccgenerator-chrome Public

    Chrome extension for ccgenerator.org — generate Luhn-valid test card numbers, validate card structure, and autofill checkout forms with gateway sandbox cards. MV3, no network calls, test data only.

    JavaScript

Repositories

Loading
Type
Select type
All Public Sources Forks Archived Mirrors Templates
Language
Select language
All JavaScript PHP
Sort
Select order
Last updated Name Stars
Showing 4 of 4 repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…


Back | FazBrowse Home | New Git URL