faker.providers.credit_card

class faker.providers.credit_card.Provider(generator)

Bases: faker.providers.BaseProvider

credit_card_expire(start='now', end='+10y', date_format='%m/%y')
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.credit_card_expire()
...
'01/27'
'09/27'
'03/21'
'12/24'
'03/29'
credit_card_full(card_type=None)
Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.credit_card_full()
...
'VISA 16 digit\nKatherine Fisher\n4876475938242192 10/24\nCVC: 892\n'
'VISA 13 digit\nJessica Nolan\n4781565938777 05/29\nCVC: 408\n'
'VISA 16 digit\nChristopher Larsen\n4097535139332879 01/22\nCVC: 158\n'
'JCB 16 digit\nTracy Turner\n3518583989471960 11/25\nCVC: 934\n'
'VISA 16 digit\nLori Johnson\n4471122018684831 03/24\nCVC: 969\n'
credit_card_number(card_type=None)

Returns a valid credit card number.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.credit_card_number()
...
'4604876475938242'
'5248924115781561'
'4387784080167'
'180009753513939'
'4871158714841859'
credit_card_provider(card_type=None)

Returns the provider’s name of the credit card.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.credit_card_provider()
...
'VISA 16 digit'
'JCB 16 digit'
'American Express'
'VISA 13 digit'
'Discover'
credit_card_security_code(card_type=None)

Returns a security code string.

Examples:
>>> Faker.seed(0)
>>> for _ in range(5):
...     fake.credit_card_security_code()
...
'604'
'764'
'593'
'421'
'489'