my %content = $self->content;
- $self->required_fields(qw(action card_number exp_date));
+ $self->required_fields(qw(action card_number expiration));
croak "Unsupported transaction type: $content{type}"
if $content{type} &&
$data{xxxCard_Number} =~ tr/- //d;
$data{xxxCard_Number} =~ s/^[^3-6]/4/ if $self->test_transaction;
- my ($y, $m) = $self->parse_expdate($content{exp_date});
+ my ($y, $m) = $self->parse_expdate($content{expiration});
$data{xxxCCYear} = sprintf '%.4u' => $y;
$data{xxxCCMonth} = sprintf '%.2u' => $m;
type => 'Visa', # Optional
card_number => '4111 1111 1111 1111',
- exp_date => '2004-07',
+ expiration => '2004-07',
cvv2 => '000', # Optional
name => "Fr\x{e9}d\x{e9}ric Bri\x{e8}re",
Credit card number. Spaces and dashes are automatically removed.
-=item exp_date (required)
+=item expiration (required)
Credit card expiration date. Since C<Business::OnlinePayment> does not specify
any syntax, this module is rather lax regarding what it will accept. The
type => 'Visa',
card_number => '4111 1111 1111 1111',
- exp_date => '2004-07',
+ expiration => '2004-07',
cvv2 => '000',
name => "Fr\N{LATIN SMALL LETTER E WITH ACUTE}d\N{LATIN SMALL LETTER E WITH ACUTE}ric Bri\N{LATIN SMALL LETTER E WITH GRAVE}re",
action => 'Normal Authorization',
card_number => '5111-1111-1111-1111',
- exp_date => '7/2004',
+ expiration => '7/2004',
name => "\x{201c}Fr\x{e9}d\x{e9}ric Bri\x{e8}re\x{201d}",
action => 'Normal Authorization',
card_number => '5111-1111-1111-1111',
- exp_date => '0704',
+ expiration => '0704',
name => "Fr\x{e9}d\x{e9}ric Bri\x{e8}re",
type => 'Visa',
card_number => '0000000000000000',
- exp_date => '2004/07',
+ expiration => '2004/07',
name => "Fr\x{e9}d\x{e9}ric Bri\x{e8}re",
address => '123 Nowhere',
action => 'Normal Authorization',
card_number => '5111-1111-1111-1111',
- exp_date => '0704',
+ expiration => '0704',
name => "Fr\x{e9}d\x{e9}ric Bri\x{e8}re",