$self->avs_code( $return{'AVSCode'} );
$self->cvv2_response( $return{'CVV2ResponseMsg'} );
- if ( $return{'Auth'} =~ /^\s*(\w+)\s*$/ ) {
+ if ( $return{'Auth'} =~ /^\s*(\w+)\s*$/ && lc($1) ne 'declined' ) {
$self->is_success(1);
$self->authorization( $return{'Auth'} );