Skip to content

Commit

Permalink
fix issue with refunds #92
Browse files Browse the repository at this point in the history
remove type check for http response code
  • Loading branch information
nikoloff committed Jan 7, 2015
2 parents 7b4c18a + a42a995 commit 827751a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Paymill/Services/ResponseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -405,10 +405,10 @@ public function convertErrorToModel($response, $resourceName = null)
public function validateResponse($response)
{
$returnValue = false;
if ($response['header']['status'] === 200) {
if ($response['header']['status'] == 200) {
if (isset($response['body']['data']['response_code'])) {
$returnValue = false;
if ($response['body']['data']['response_code'] === 20000) {
if ($response['body']['data']['response_code'] == 20000) {
$returnValue = true;
}
} else {
Expand Down

0 comments on commit 827751a

Please sign in to comment.