credit card methods
charlatan::BareProvider
-> CreditCardProvider
luhn_lookup
(list) luhn lookup, named list
Inherited methods
charlatan::BareProvider$bothify()
charlatan::BareProvider$lexify()
charlatan::BareProvider$numerify()
charlatan::BareProvider$print()
charlatan::BareProvider$random_digit()
charlatan::BareProvider$random_digit_not_zero()
charlatan::BareProvider$random_digit_not_zero_or_empty()
charlatan::BareProvider$random_digit_or_empty()
charlatan::BareProvider$random_element()
charlatan::BareProvider$random_element_prob()
charlatan::BareProvider$random_int()
charlatan::BareProvider$random_letter()
charlatan::BareProvider$randomize_nb_elements()
credit_card_type()
Returns a random credit card type
CreditCardProvider$credit_card_type(card_type = NULL)
card_type
(character) a card type, see credit_card_types
generate_number()
make a credit card number with specific starting numbers
CreditCardProvider$generate_number(prefix, length = 13)
prefix
the start of the CC number as a string, any number of digits.
length
the length of the CC number to generate. Typically 13 or 16
credit_card_provider()
credit card provider
CreditCardProvider$credit_card_provider(card_type = NULL)
card_type
(character) a card type, see credit_card_types
credit_card_number()
credit card number
CreditCardProvider$credit_card_number(card_type = NULL)
card_type
(character) a card type, see credit_card_types
credit_card_security_code()
credit card security code
CreditCardProvider$credit_card_security_code(card_type = NULL)
card_type
(character) a card type, see credit_card_types
clone()
The objects of this class are cloneable with this method.
CreditCardProvider$clone(deep = FALSE)
deep
Whether to make a deep clone.
z <- CreditCardProvider$new()
z$credit_card_provider()
z$credit_card_number()
z$credit_card_security_code()
z$generate_number(13)
Run the code above in your browser using DataLab