# Credit card

{% hint style="info" %}
All parameters are optional. The sample parameters are the default values used by each function.
{% endhint %}

```rust
Faker.credit_card_security_code()
=> 607


Faker.credit_card_full()
=> JCB 16 digit Avril Sporer 3112592210219064 CVC 761


Faker.credit_card_full("amex")
=> American Express Denny Shanahan 379850328675328 CID 0011


Faker.credit_card_number()
=> 4846355085045639


Faker.credit_card_number("amex")
=> 379705418324270


Faker.credit_card_provider()
=> discover


Faker.generate_card_number()
=> 5205143464510379


Faker.generate_card_number("52",16)
=> 5273798972368375

```

The types of cards supported are:&#x20;

* `mastercard`-> *Mastercard*&#x20;
* `visa16` -> *VISA 16 digit*
* `visa13`-> *VISA 13 digit*
* `amex` -> *American Express*
* `discover` -> *Discover*
* `diners` -> *Diners Club / Carte Blanche*
* `jcb15` -> *JCB 15 digit*
* `jcb16` -> *JCB 16 digit*
* `voyager` -> *Voyager*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://neomatrixcode.gitbook.io/faker/guide/providers/credit-card.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
