> For the complete documentation index, see [llms.txt](https://neomatrixcode.gitbook.io/faker/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://neomatrixcode.gitbook.io/faker/guide/providers/credit-card.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
