use vars qw($VERSION $DEBUG @ISA $me);
@ISA = qw(Business::OnlinePayment::AuthorizeNet Business::OnlinePayment::HTTPS);
-$VERSION = '0.01';
+$VERSION = '0.02';
$DEBUG = 0;
$me='Business::OnlinePayment::AuthorizeNet::ARB';
'cancel recurring authorization'
=> 'ARBCancelSubscriptionRequest',
);
- $content{'action'} = $actions{lc($content{'action'})} || $content{'action'};
+ $content{'action'} = $actions{lc($content{'action'} || '')} || $content{'action'};
# TYPE MAP
my %types = ('visa' => 'CC',
'discover' => 'CC',
'check' => 'ECHECK',
);
- $content{'type'} = $types{lc($content{'type'})} || $content{'type'};
+ $content{'type'} = $types{lc($content{'type'} || '')} || $content{'type'};
$self->transaction_type($content{'type'});
# ACCOUNT TYPE MAP
'business checking' => 'businessChecking',
'business savings' => 'savings',
);
- $content{'account_type'} = $account_types{lc($content{'account_type'})}
+ $content{'account_type'} = $account_types{lc($content{'account_type'} || '')}
|| $content{'account_type'};
# MASSAGE EXPIRATION
startDate => 'start',
totalOccurrences => 'periods',
trialOccurrences => 'trialperiods',
- phoneNumber => 'phone',
);
tie my %account, 'Tie::IxHash', (
tie my %sub, 'Tie::IxHash',
$self->revmap_fields(
+ name => 'subscription_name',
paymentSchedule => \%schedule,
amount => 'amount',
trialAmount => 'trialamount',