diff --git a/MidrandBookshop/Components/Pages/Checkout.razor b/MidrandBookshop/Components/Pages/Checkout.razor index 8fdd8f0..1b307ee 100644 --- a/MidrandBookshop/Components/Pages/Checkout.razor +++ b/MidrandBookshop/Components/Pages/Checkout.razor @@ -1,4 +1,5 @@ @page "/checkout" +@inject NavigationManager Navigation

Checkout

@@ -63,7 +64,7 @@ Total Due

R @((Subtotal + VatAmount + ShippingCost).ToString("F2"))

- + @@ -102,4 +103,8 @@ public int Price { get; set; } public int Quantity { get; set; } } + private void CompletePurchase(MouseEventArgs args) + { + Navigation.NavigateTo("/payment-confirmation"); + } } \ No newline at end of file diff --git a/MidrandBookshop/Components/Pages/PaymentConfirmation.razor b/MidrandBookshop/Components/Pages/PaymentConfirmation.razor new file mode 100644 index 0000000..555af5f --- /dev/null +++ b/MidrandBookshop/Components/Pages/PaymentConfirmation.razor @@ -0,0 +1,40 @@ +@page "/payment-confirmation" + +
+
+
+ + +
+
+ + + + +
+

Order Confirmed

+

Thank you for shopping with Midrand Books. Your order has been received and is being processed.

+
+

Order Number

+
#MB-2026-8834
+
+
+ + + + + +

You will receive a confirmation email shortly at user@email.com.

+
+
+
\ No newline at end of file