From e6880959d98622adeeb0a789593efa9ad2c21e0e Mon Sep 17 00:00:00 2001 From: Khwezi Mngoma Date: Sat, 23 May 2026 17:12:14 +0200 Subject: [PATCH] Added the payment confirmation page --- .../Components/Pages/Checkout.razor | 7 +++- .../Pages/PaymentConfirmation.razor | 40 +++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 MidrandBookshop/Components/Pages/PaymentConfirmation.razor 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