my %content = $self->content;
+ # Backwards-compatible support for exp_date
+ if (exists $content{exp_date} && ! exists $content{expiration}) {
+ $content{expiration} = delete $content{exp_date};
+ $self->content(%content);
+ }
+
$self->required_fields(qw(action card_number expiration));
croak "Unsupported transaction type: $content{type}"