Faker::Provider::Payment - Faker Standard Payment Details Provider
version 0.12
use Faker; use Faker::Provider::Payment; my $faker = Faker->new; my $payment = Faker::Provider::Payment->new(factory => $faker); say $payment->number;
Faker::Provider::Payment is a Faker provider which provides fake payment data, e.g. credit card information, bank information, etc. Note: This is an early release available for testing and feedback and as such is subject to change.
$payment->card_expiration; # 09/16 # 11/16 # 05/17
The card_expiration method generates a random ficticious credit card expiration date.
$payment->card_number; # 547099615390835 # 448549861731791 # 37848826954012
The card_number method generates a random ficticious credit card number.
$payment->vendor; # Visa # MasterCard # American Express
The vendor method generates a random ficticious credit card vendor.
Al Newkirk <anewkirk@ana.io>
This software is copyright (c) 2014 by Al Newkirk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Faker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Faker
CPAN shell
perl -MCPAN -e shell install Faker
For more information on module installation, please visit the detailed CPAN module installation guide.