Skip to content

CreditCard entity

Generate coherent credit-card entities from locale-aware card and demographic data.

Why: Use CreditCard when payment tests need correlated card number, brand, holder, expiry, and security-code data; do not use generated cards as real payment credentials.

1
<variable name="value" entity="CreditCard"/>

Output: Typed CreditCard value.

Parameters

  • dataset: str | null; Default None — Country dataset used for holder and card-provider conventions.

Attributes

  • bank_code (str): Local bank code (e.g., BLZ).
  • bank_name (str): Name of the issuing bank.
  • bic (str): SWIFT/BIC identifier.
  • bin (str): Bank identification number.
  • card_holder (str): Card holder full name.
  • card_number (str): Card number valid for the card type.
  • card_provider (str): Card network provider name.
  • card_type (str): Card type, such as VISA or MASTERCARD.
  • credit_limit (float): Credit limit.
  • current_balance (float): Current outstanding balance.
  • cvc_number (str): Card verification code.
  • cvv (str): Card verification value.
  • expiration_date (datetime): Card expiration date.
  • iban (str | None): IBAN of the linked bank account, when available.
  • is_active (bool): Whether the card is active.
  • issue_date (datetime): Card issue date.

Limits

The available attributes and values depend on the registered entity, its dataset, and its documented constructor options.