faker.providers.credit_cardΒΆ

fake.credit_card_expire(start="now", end="+10y", date_format="%m/%y")
# '11/25'

fake.credit_card_full(card_type=None)
# 'Mastercard\nMichael Lloyd\n5264716846653096 04/27\nCVV: 365\n'

fake.credit_card_number(card_type=None)
# '4907478250318049'

fake.credit_card_provider(card_type=None)
# 'Mastercard'

fake.credit_card_security_code(card_type=None)
# '385'