NAME

Business::CyberSource::CreditCard - A Credit Card Value Object

VERSION

version 0.004009

DESCRIPTION

This is a generic Credit Card object, it can be use outside of Business::CyberSource and will probably someday be split out of this distribution and have a new namespace.

ATTRIBUTES

account_number

This is the Credit Card Number

type

The card issuer, e.g. VISA, MasterCard. it is generated from the card number.

expiration

my $card = Business::CyberSource::CreditCard->new({
		account_number => '4111111111111111',
		expiration     => {
			year  => '2025',
			month => '04',
		},
	});

A DateTime object, you should construct it by passing a hashref with keys for month, and year, it will actually contain the last day of that month/year.

is_expired

Boolean, returns true if the card is older than expiration date plus one day. This is done to compensate for unknown issuer time zones as we can't be sure that all issuers shut cards of on the first of every month UTC. In fact I have been told that some issuers will allow renewed cards to be run with expired dates. Use this at your discretion.

security_code

The 3 digit security number on the back of the card.

holder

The full name of the card holder as printed on the card.

BUGS

Please report any bugs or feature requests on the bugtracker website https://github.com/xenoterracide/Business-CyberSource/issues

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

AUTHOR

Caleb Cushing <xenoterracide@gmail.com>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2011 by Caleb Cushing.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)