Skip to content

Commit

Permalink
PATCH: fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnysideup committed Jan 31, 2018
1 parent 1cad0ce commit 4b84108
Showing 1 changed file with 9 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,15 @@ public function processPayment($data, $form)
}
}
if (
$ch && $responseData
(isset($responseData->captured) && $responseData->captured == true) &&
(isset($responseData->status) && $responseData->status == "succeeded")
$ch &&
$responseData &&
(
isset($responseData->captured) && $responseData->captured == true
)
&&
(
isset($responseData->status) && $responseData->status == "succeeded"
)
) {
$this->Status = "Success";
$returnObject = EcommercePayment_Success::create();
Expand Down

0 comments on commit 4b84108

Please sign in to comment.