Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
makasim committed Sep 15, 2016
1 parent 464d46e commit 5b324af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Action/OffsiteCaptureAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,11 @@ public function execute($request)
}
}

if (is_array($response->getData())) {
$details->replace($response->getData());
$data = $response->getData();
if (is_array($data)) {
$details->replace($data);
} else {
$details['_data'] = $response->getData();
$details['_data'] = $data;
}

$details['_reference'] = $response->getTransactionReference();
Expand Down

0 comments on commit 5b324af

Please sign in to comment.