diff --git a/Oara/Network/Publisher/WebGains.php b/Oara/Network/Publisher/WebGains.php index 5bd9fb39..6df3b933 100755 --- a/Oara/Network/Publisher/WebGains.php +++ b/Oara/Network/Publisher/WebGains.php @@ -237,7 +237,11 @@ public function getTransactionList($merchantList = null, \DateTime $dStartDate = $transaction['commission'] = $transactionObject->commission; // Check both for status + paymentStatus if ($transactionObject->status == 'confirmed') { + if ($transactionObject->paymentStatus == 'paid' || $transactionObject->paymentStatus == 'cleared') { $transaction['status'] = \Oara\Utilities::STATUS_CONFIRMED; + } else { + $transaction['status'] = \Oara\Utilities::STATUS_PENDING; + } } elseif ($transactionObject->status == 'delayed') { $transaction['status'] = \Oara\Utilities::STATUS_PENDING; @@ -245,7 +249,7 @@ public function getTransactionList($merchantList = null, \DateTime $dStartDate = elseif ($transactionObject->status == 'cancelled') { $transaction['status'] = \Oara\Utilities::STATUS_DECLINED; } - if ($transactionObject->paymentStatus == 'paid') { + if ($transactionObject->paymentStatus == 'paid' || $transactionObject->paymentStatus == 'cleared') { $transaction['paid'] = true; } else {