Skip to content
This repository was archived by the owner on Jul 20, 2026. It is now read-only.

Commit e31645b

Browse files
Update Payment.php
1 parent cc782d1 commit e31645b

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/app/models/Payment.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,12 @@ class Payment extends BaseModel {
1212
* @param int $status Whether the payment failed, succeeded, is pending or was refunded
1313
*/
1414
public function createPayment($status) {
15-
$query = "INSERT INTO payment (date, mode_id, status_id)
16-
VALUES (:date, :mode_id, :status_id)";
15+
$query = "INSERT INTO payment (mode_id, status_id)
16+
VALUES (:mode_id, :status_id)";
1717

1818

1919
$stmt = $this->conn->prepare($query);
2020

21-
$stmt->bindValue(":date", date("Y-m-d"), PDO::PARAM_STR);
2221
$stmt->bindValue(":mode_id", 2, PDO::PARAM_INT);
2322
$stmt->bindValue(":status_id", $status, PDO::PARAM_INT);
2423

0 commit comments

Comments
 (0)