- Document repository moved from CVS to git
- Add avs_code and cvv2_response to build_subs, they're standard fields
- Document best-practice eval of the submit() method in example
+ - Rework build_subs(), thanks to Michal Schwern, closes: CPAN#22073
3.02 Fri Aug 19 16:20:04 PDT 2011
- Fix fatal error calling ->info('supported_actions') on a gateway that
require 5.005;
-$VERSION = '3.03_01';
+$VERSION = '3.03_02';
$VERSION = eval $VERSION; # modperlstyle: convert the string into a number
# Remember subclasses we have "wrapped" submit() with _pre_submit()
cvv2_response
);
+__PACKAGE__->build_subs(@methods);
+
#fallback
sub _info {
my $class = shift;
croak("unknown processor $processor ($@)") if $@;
my $self = bless {processor => $processor}, $subclass;
- $self->build_subs(@methods);
if($self->can("set_defaults")) {
$self->set_defaults(%data);
unless ( $@ =~ m/^Can\'t locate/ );
} else {
my $risk_tx = bless( { processor => $fraud_detection }, $subclass );
- $risk_tx->build_subs(@methods);
if ($risk_tx->can('set_defaults')) {
$risk_tx->set_defaults();
}