From eeed6c08cc0c364c2b692f67e966401286f5d785 Mon Sep 17 00:00:00 2001 From: DualFroz Date: Thu, 27 Aug 2026 09:43:05 +0200 Subject: [PATCH] views: add checkout pages --- views/checkout/cancel.php | 12 ++++++++ views/checkout/index.php | 62 ++++++++++++++++++++++++++++++++++++++ views/checkout/success.php | 21 +++++++++++++ 3 files changed, 95 insertions(+) create mode 100644 views/checkout/cancel.php create mode 100644 views/checkout/index.php create mode 100644 views/checkout/success.php diff --git a/views/checkout/cancel.php b/views/checkout/cancel.php new file mode 100644 index 0000000..b7e0f02 --- /dev/null +++ b/views/checkout/cancel.php @@ -0,0 +1,12 @@ +
+
+
+

Checkout cancelled

+

No payment was taken. Your cart is still saved if you want to try again.

+ +
+
+
diff --git a/views/checkout/index.php b/views/checkout/index.php new file mode 100644 index 0000000..bd61394 --- /dev/null +++ b/views/checkout/index.php @@ -0,0 +1,62 @@ +
+
+

Checkout

+ + +
+

There is nothing to check out

+

Your cart is empty.

+ Browse the catalog +
+ +
+
+
+

Review your order

+
+ + + + + + + + + +
+ x + () +
+
+
+ + +
+ + Stripe test keys are not set yet, so payment is disabled. Add STRIPE_SECRET_KEY and STRIPE_PUBLISHABLE_KEY to your .env to enable Stripe Checkout. +
+ +
+ +
+

Summary

+
Subtotal
+ 0): ?> +
Discount ()-
+ +
Total due
+ +
+ + +
+

+ You will be redirected to Stripe's secure test checkout. +

+
+
+ +
+
diff --git a/views/checkout/success.php b/views/checkout/success.php new file mode 100644 index 0000000..7a2d22e --- /dev/null +++ b/views/checkout/success.php @@ -0,0 +1,21 @@ +
+
+ +
+ +

Payment received

+

Thank you. Order # is confirmed and now marked as paid.

+ +
+ +
+

Payment pending

+

We have not confirmed this payment yet. If you completed checkout, your order status will update shortly.

+ Go to your orders +
+ +
+