This commit is contained in:
@@ -127,7 +127,7 @@ public partial class Checkout()
|
|||||||
var addItemsResult = await OrderService.AddItemsToOrderAsync(order.Value, [.. orderItems]);
|
var addItemsResult = await OrderService.AddItemsToOrderAsync(order.Value, [.. orderItems]);
|
||||||
|
|
||||||
// 4. Generate the signed Payfast form payload using your backend service
|
// 4. Generate the signed Payfast form payload using your backend service
|
||||||
var hostAddress = "https://localhost:7021";
|
var hostAddress = Navigation.BaseUri.TrimEnd('/');
|
||||||
|
|
||||||
CheckoutPayload = new Dictionary<string, string>
|
CheckoutPayload = new Dictionary<string, string>
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -4,8 +4,9 @@ public partial class RedirectToLogin
|
|||||||
{
|
{
|
||||||
protected override void OnInitialized()
|
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>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="LiteCharms.Features" Version="1.121.0" />
|
<PackageReference Include="LiteCharms.Features" Version="1.125.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<!-- UI -->
|
<!-- UI -->
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="ANM.Blazored.Toast" Version="0.1.1" />
|
<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 -->
|
<!-- Global Usings -->
|
||||||
<Using Include="Blazored.Toast.Services" />
|
<Using Include="Blazored.Toast.Services" />
|
||||||
|
|||||||
Reference in New Issue
Block a user