Skip to content

Commit

Permalink
Fix an issue where a failed void would present itself as Approved
Browse files Browse the repository at this point in the history
API oddness on Pacnet side...
  • Loading branch information
mfauveau committed Apr 16, 2015
1 parent 84201b2 commit a677d4e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Omnipay/Pacnet/Message/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,7 @@ public function __construct(RequestInterface $request, $data)

public function isSuccessful()
{
return isset($this->data['Status']) && in_array($this->data['Status'], array(
'Approved',
'Submitted',
'InProgress',
'Voided'
));
return $this->data['ErrorCode'] === '';
}

public function getCode()
Expand Down

0 comments on commit a677d4e

Please sign in to comment.