Skip to content

Commit

Permalink
Merge branch 'release/1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Jun 23, 2017
2 parents a9bef5d + a80ea63 commit 86cb97e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ if ($response->isSuccessful()) {

$bankTransactionRef = $response->getTransactionReference();
$websiteOrderId = $response->getTransactionId();
} elseif ($response->isPending()) {
// Do temporary things until we get a success/failed tranaction response.
} else {
echo $response->getMessage();
}
```
```
4 changes: 2 additions & 2 deletions src/Message/CompletePurchaseResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ protected function decomposeData()
*/
public function isSuccessful()
{
return $this->isValid() && in_array($this->getCode(), array('00', '60'));
return $this->isValid() && $this->getCode() === '00';
}

/**
Expand Down Expand Up @@ -203,4 +203,4 @@ public function getTransactionId()
{
return $this->fields['orderId'];
}
}
}

0 comments on commit 86cb97e

Please sign in to comment.