Modified pods in modules to reflect test for Success+ return values.
This commit is contained in:
parent
47b68fb3e8
commit
04de06bbf5
5 changed files with 5 additions and 5 deletions
|
@ -258,7 +258,7 @@ Example:
|
|||
...
|
||||
);
|
||||
|
||||
unless( $resp{Ack} ne 'Success' ) {
|
||||
unless( $resp{Ack} !~ /Success/ ) {
|
||||
for my $error ( @{$response{Errors}} ) {
|
||||
warn "Error: " . $error->{LongMessage} . "\n";
|
||||
}
|
||||
|
|
|
@ -155,7 +155,7 @@ Example:
|
|||
UniqueId => "123456",
|
||||
Note => "Enjoy the money. Don't spend it all in one place." } ] );
|
||||
|
||||
unless( $resp{Ack} eq 'Success' ) {
|
||||
unless( $resp{Ack} !~ /Success/ ) {
|
||||
die "Failed: " . $resp{Errors}[0]{LongMessage} . "\n";
|
||||
}
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ Example:
|
|||
CurrencyID => 'USD'
|
||||
);
|
||||
|
||||
unless( $resp{Ack} ne 'Success' ) {
|
||||
unless( $resp{Ack} !~ /Success/ ) {
|
||||
for my $error ( @{$response{Errors}} ) {
|
||||
warn "Error: " . $error->{LongMessage} . "\n";
|
||||
}
|
||||
|
|
|
@ -123,7 +123,7 @@ Example:
|
|||
RefundType => 'Partial',
|
||||
Amount => '15.00', );
|
||||
|
||||
unless( $resp{Ack} ne 'Success' ) {
|
||||
unless( $resp{Ack} !~ /Success/ ) {
|
||||
for my $error ( @{$response{Errors}} ) {
|
||||
warn "Error: " . $error->{LongMessage} . "\n";
|
||||
}
|
||||
|
|
|
@ -101,7 +101,7 @@ Example:
|
|||
my %resp = $pp->DoVoidRequest( AuthorizationID => $trans_id,
|
||||
Note => 'Sorry about that.' );
|
||||
|
||||
unless( $resp{Ack} ne 'Success' ) {
|
||||
unless( $resp{Ack} !~ /Success/ ) {
|
||||
for my $error ( @{$response{Errors}} ) {
|
||||
warn "Error: " . $error->{LongMessage} . "\n";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue