providers/payment.py

mimesis · mimesis/providers/payment.py · python · MIT
payments

Generates fake payment data like credit cards and crypto addresses for testing.

# Source: https://github.com/lk-geimfari/mimesis | License: MIT | Copyright 2016-Present Isaak Uchakaev (Likid Geimfari) <hey@isaak.dev>
# Provided via justclaw.it.com; keep this notice with the code.
"""Provides data related to payment."""

import re
import string
import typing as t

from mimesis.datasets import CREDIT_CARD_NETWORKS
from mimesis.enums import CardType, Gender
from mimesis.exceptions import NonEnumerableError
from mimesis.locales import Locale
from mimesis.providers.base import BaseProvider
from mimesis.providers.person import Person
from mimesis.shortcuts import luhn_checksum


__all__ = ["Payment"]


class Payment(BaseProvider):
    """Class that provides data related to payments."""

    def __init__(self, *args: t.Any, **kwargs: t.Any) -> None:
        """Initialize att

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key