use vars qw($VERSION @ISA $me $DEBUG);
@ISA = qw(Business::OnlinePayment::HTTPS);
-$VERSION = '0.07';
+$VERSION = '0.08';
$me = 'Business::OnlinePayment::WesternACH';
$DEBUG = 0;
if(exists($content->{'command'})) {
croak 'get_returns: command is already set on this transaction';
}
- if ($content->{'returns_method'} eq 'requester') {
-# Obsolete, deprecated method supported for now as a fallback option.
+ if ( exists($content->{'returns_method'}) &&
+ $content->{'returns_method'} eq 'requester') {
+ # Obsolete, deprecated method supported for now as a fallback option.
$content->{'command'} = 'get_returns';
$self->submit;
if($self->is_success) {