Payment
creditCardType
Generate a credit card type.
creditCardNumber
Generate a credit card number with a given type. By default, a random type is used. Supported types are ‘Visa’, ’ MasterCard’, ‘American Express’, and ‘Discover Card’.
Optionally, a second and third parameter may be supplied. These define if the credit card number should be formatted, and which separator to use.
creditCardExpirationDate
Generate a credit card expiration date (DateTime
). By default, only valid dates are generated. Potentially invalid
dates can be generated by using false
as input.
creditCardExpirationDateString
Generate a credit card expiration date (string
). By default, only valid dates are generated. Potentially invalid dates
can be generated by using false
as input.
The string is formatted using m/y
. Optionally, a second parameter can be passed to override this format.
creditCardDetails
Generate an array
with credit card details. By default, only valid expiration dates will be generated. Potentially
invalid expiration dates can be generated by using false
as input.
iban
Generate an IBAN
string with a given country and bank code. By default, a random country and bank code will be used.
The country code format should be ISO 3166-1 alpha-2.
swiftBicNumber
Generate a random SWIFT/BIC number string
.