Credit card
Faker.credit_card_security_code()
=> 607
Faker.credit_card_full()
=> JCB 16 digit Avril Sporer 3112592210219064 CVC 761
Faker.credit_card_full("amex")
=> American Express Denny Shanahan 379850328675328 CID 0011
Faker.credit_card_number()
=> 4846355085045639
Faker.credit_card_number("amex")
=> 379705418324270
Faker.credit_card_provider()
=> discover
Faker.generate_card_number()
=> 5205143464510379
Faker.generate_card_number("52",16)
=> 5273798972368375
The types of cards supported are:
mastercard
-> Mastercardvisa16
-> VISA 16 digitvisa13
-> VISA 13 digitamex
-> American Expressdiscover
-> Discoverdiners
-> Diners Club / Carte Blanchejcb15
-> JCB 15 digitjcb16
-> JCB 16 digitvoyager
-> Voyager
Last updated
Was this helpful?