This commit is contained in:
@@ -126,8 +126,8 @@ public partial class Checkout()
|
||||
|
||||
var addItemsResult = await OrderService.AddItemsToOrderAsync(order.Value, [.. orderItems]);
|
||||
|
||||
// 4. Generate the signed Payfast form payload using your backend service
|
||||
var hostAddress = "https://localhost:7021";
|
||||
// 4. Generate the signed Payfast form payload using your backend service
|
||||
var hostAddress = Navigation.BaseUri.TrimEnd('/');
|
||||
|
||||
CheckoutPayload = new Dictionary<string, string>
|
||||
{
|
||||
|
||||
@@ -4,8 +4,9 @@ public partial class RedirectToLogin
|
||||
{
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
var returnUrl = Navigation.ToBaseRelativePath(Navigation.Uri);
|
||||
var relativePath = Navigation.ToBaseRelativePath(Navigation.Uri);
|
||||
var sanitizedRedirectPath = relativePath.StartsWith('/') ? relativePath : $"/{relativePath}";
|
||||
|
||||
Navigation.NavigateTo($"/login?returnUrl={Uri.EscapeDataString(returnUrl)}", forceLoad: true);
|
||||
Navigation.NavigateTo($"/login?redirectUri={Uri.EscapeDataString(sanitizedRedirectPath)}", forceLoad: true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,13 +18,13 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="LiteCharms.Features" Version="1.121.0" />
|
||||
<PackageReference Include="LiteCharms.Features" Version="1.125.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<!-- UI -->
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" />
|
||||
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.121.0" />
|
||||
<PackageReference Include="LiteCharms.Features.MidrandBooks" Version="1.125.0" />
|
||||
|
||||
<!-- Global Usings -->
|
||||
<Using Include="Blazored.Toast.Services" />
|
||||
|
||||
Reference in New Issue
Block a user