Skip to content

Commit

Permalink
Fix #65 by generating card numbers using the Numerify method (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswdr authored Oct 6, 2021
1 parent 6576feb commit 1880cd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payment.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func (p Payment) CreditCardType() string {

// CreditCardNumber returns a fake credit card number for Payment
func (p Payment) CreditCardNumber() string {
return strconv.Itoa(p.Faker.IntBetween(1000000000000000, 9999999999999999))
return p.Faker.Numerify("################")
}

// CreditCardExpirationDateString returns a fake credit card expiration date in string format for Payment
Expand Down

0 comments on commit 1880cd5

Please sign in to comment.