This commit is contained in:
2020-06-11 21:28:36 +00:00
parent a98dfbc08d
commit 1c92ba8e7f
2 changed files with 8 additions and 4 deletions

View File

@@ -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

View File

@@ -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)