There are no payments in the database. Why not start with creating one, below?
";
+ }
+ ?>
+
+
+
+
+
+
Timeline
diff --git a/include/offers.php b/include/offers.php
index e06a4eb..165d88f 100644
--- a/include/offers.php
+++ b/include/offers.php
@@ -37,7 +37,7 @@ require('./header.php');
// ?toggle_payment_eligibility= Toggle the payment eligibility of the offer with id
// ?generate_invoice= Generate an invoice for the offer with id
// ?trash_invoice= Trash the invoice file
- // ?send_invoice= Send invoice to contact
+ // ?refesh_payment= Refresh the Braintree status of a payment
// ?delete= Delete the offer with id
//------------------------------------------------------------------------------
@@ -48,10 +48,8 @@ require('./header.php');
$offer = new Offer($_pdo, $id);
$offer->accepted = !$offer->accepted;
$alert = "
The status of offer #{$offer->id} has been set to ".($offer->accepted ? "accepted" : "unaccepted").".
";
- } catch (PDOException $e) {
- $alert = "
The status of the offer could not be changed due to a PDO error.
";
} catch (Exception $e) {
- $alert = "
The offer with id {$id} could not be found.
";
+ $alert = "
The acceptance status of offer {$id} could not be changed: {$e->getMessage()}.