Skip to content

Commit 08292da

Browse files
authored
Fix check pending bug (#85)
1 parent c58d3c9 commit 08292da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Moyasar/Mysr/Schedule/CheckPending.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private function processPayment($order)
6060

6161
$apiPayments = $this->moyasarHelper->getOrderPayments($order->getId());
6262
usort($apiPayments, function ($a, $b) {
63-
return new DateTime($a) < new DateTime($b) ? -1 : 1;
63+
return new DateTime($a['created_at']) < new DateTime($b['created_at']) ? -1 : 1;
6464
});
6565

6666
if (count($apiPayments) == 0) {

0 commit comments

Comments
 (0)