We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c58d3c9 commit 08292daCopy full SHA for 08292da
Moyasar/Mysr/Schedule/CheckPending.php
@@ -60,7 +60,7 @@ private function processPayment($order)
60
61
$apiPayments = $this->moyasarHelper->getOrderPayments($order->getId());
62
usort($apiPayments, function ($a, $b) {
63
- return new DateTime($a) < new DateTime($b) ? -1 : 1;
+ return new DateTime($a['created_at']) < new DateTime($b['created_at']) ? -1 : 1;
64
});
65
66
if (count($apiPayments) == 0) {
0 commit comments