Added the payment confirmation page
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
@page "/checkout"
|
||||
@inject NavigationManager Navigation
|
||||
|
||||
<div class="container py-5">
|
||||
<h2 class="fw-bold mb-4">Checkout</h2>
|
||||
@@ -63,7 +64,7 @@
|
||||
<span class="fw-bold">Total Due</span>
|
||||
<h4 class="fw-bold">R @((Subtotal + VatAmount + ShippingCost).ToString("F2"))</h4>
|
||||
</div>
|
||||
<button class="btn btn-dark w-100 py-3 rounded-pill">Complete Purchase</button>
|
||||
<button class="btn btn-dark w-100 py-3 rounded-pill" @onclick="CompletePurchase">Complete Purchase</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -102,4 +103,8 @@
|
||||
public int Price { get; set; }
|
||||
public int Quantity { get; set; }
|
||||
}
|
||||
private void CompletePurchase(MouseEventArgs args)
|
||||
{
|
||||
Navigation.NavigateTo("/payment-confirmation");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user