Skip to content

Commit

Permalink
Merge pull request #16 from xendit/fix/support-old-php-version
Browse files Browse the repository at this point in the history
suppord old PHP version
  • Loading branch information
hakiemaul authored Sep 25, 2020
2 parents 1c6ecc5 + b92629f commit 8bfea05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencart1.5.x/upload/catalog/model/payment/xendit.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function addOrder($order_info, $data, $environment = 'test', $type = 'inv
return $this->db->getLastId();
}

public function paidOrder($order_id, $date, $extra = [])
public function paidOrder($order_id, $date, $extra = array())
{
$date = date("Y-m-d H:i:s", strtotime($date));
$query = "UPDATE `" . DB_PREFIX . "xendit_order` SET `status` = 'PAID', `xendit_paid_date` = '$date'";
Expand Down

0 comments on commit 8bfea05

Please sign in to comment.