NAME

Faker::Provider::Payment - Faker Standard Payment Details Provider

VERSION

version 0.12

SYNOPSIS

use Faker;
use Faker::Provider::Payment;

my $faker   = Faker->new;
my $payment = Faker::Provider::Payment->new(factory => $faker);

say $payment->number;

DESCRIPTION

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.

METHODS

card_expiration

$payment->card_expiration;

# 09/16
# 11/16
# 05/17

The card_expiration method generates a random ficticious credit card expiration date.

card_number

$payment->card_number;

# 547099615390835
# 448549861731791
# 37848826954012

The card_number method generates a random ficticious credit card number.

vendor

$payment->vendor;

# Visa
# MasterCard
# American Express

The vendor method generates a random ficticious credit card vendor.

AUTHOR

Al Newkirk <anewkirk@ana.io>

COPYRIGHT AND LICENSE

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.