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()
...
'04/27'
'11/27'
'05/21'
'02/25'
'05/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 12/24\nCVC: 892\n'
'VISA 13 digit\nJessica Nolan\n4781565938777 08/29\nCVC: 408\n'
'VISA 16 digit\nChristopher Larsen\n4097535139332879 04/22\nCVC: 158\n'
'JCB 16 digit\nTracy Turner\n3518583989471960 02/26\nCVC: 934\n'
'VISA 16 digit\nLori Johnson\n4471122018684831 05/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'