Implemented new subscription system and basic stripe support

This commit is contained in:
Marcel Baumgartner
2023-07-06 02:12:06 +02:00
parent ab529991fd
commit c0df8ac507
26 changed files with 1899 additions and 374 deletions

View File

@@ -6,6 +6,7 @@
@using Moonlight.App.ApiClients.Modrinth
@using Moonlight.App.ApiClients.Wings
@using Moonlight.App.Helpers
@using Stripe
@inherits ErrorBoundaryBase
@inject AlertService AlertService
@@ -105,6 +106,13 @@ else
{
await AlertService.Error(SmartTranslateService.Translate("This function is not implemented"));
}
else if (exception is StripeException stripeException)
{
await AlertService.Error(
SmartTranslateService.Translate("Unknown error from stripe"),
stripeException.Message
);
}
else
{
Logger.Warn(exception);