Open serhalp opened 3 years ago
Additional properties to consider:
last4
type
@risharma do we have any current use cases for those?
@risharma do we have any current use cases for those?
P.S.: I'm fixing to correctly generate last4 in https://github.com/goodeggs/garbanzo/pull/7766
Add some credit card factories nested under
fake.creditCard
:number
: generate a credit card number conforming to the format of the major U.S. credit card providersverificationCode
(or something other name): generate a CVV/CSC/etc. conforming to the format of the major U.S. credit card providersexpiry
generate a reasonable credit card expiry date in the MM/YYYY string formatAre these last two useful? Either way, I'd propose to nest the CC number method under
fake.creditCard.number()
for future extensibility.