From 1c92ba8e7f0e29ac72dc8b306765b06e1b358267 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 11 Jun 2020 21:28:36 +0000 Subject: [PATCH] --- devdocs/todo.txt | 6 ++++++ server/AyaNova/util/License.cs | 6 ++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/devdocs/todo.txt b/devdocs/todo.txt index e0188783..82a06f27 100644 --- a/devdocs/todo.txt +++ b/devdocs/todo.txt @@ -25,6 +25,12 @@ todo: FRESH TRIAL ONBOARD todo: FRESH PURCHASE ONBOARD continue on with the steps required to purchase and use in production +todo: chargeback license zapping + So need it to loop for while after a new purchase + maybe on a very long loop up to one year or something? + is it worth it to have this hassle, amount of fraud pretty low + maybe a check for updates route could handle this? + "Generally, consumers have to file a chargeback between 60 and 120 days from the time of the original purchase. After that happens, merchants have approximately 45 days to respond, if they wish to dispute it. " todo: Rockfish diff --git a/server/AyaNova/util/License.cs b/server/AyaNova/util/License.cs index d303fe86..679905d3 100644 --- a/server/AyaNova/util/License.cs +++ b/server/AyaNova/util/License.cs @@ -472,15 +472,13 @@ namespace AyaNova.Core { log.LogDebug($"Fetching license for DBID {LicenseDbId.ToString()}"); string sUrl = $"{LICENSE_SERVER_URL}rvf/{LicenseDbId.ToString()}"; - - try { - - //string RawTextKeyFromRockfish = await _Client.GetStringAsync(sUrl); string RawTextKeyFromRockfish = await ServiceProviderProvider.HttpClientFactory.CreateClient().GetStringAsync(sUrl); //FUTURE: if there is any kind of error response or REASON or LicenseFetchStatus then here is //where to deal with it + //todo: key should hang off json data object as text version of key + //that way we can put other objects on the data return object AyaNovaLicenseKey ParsedKey = Parse(RawTextKeyFromRockfish, log); if (ParsedKey != null)