Credit card

All parameters are optional. The sample parameters are the default values used by each function.

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-> Mastercard

  • visa16 -> VISA 16 digit

  • visa13-> VISA 13 digit

  • amex -> American Express

  • discover -> Discover

  • diners -> Diners Club / Carte Blanche

  • jcb15 -> JCB 15 digit

  • jcb16 -> JCB 16 digit

  • voyager -> Voyager

Last updated