parent
664f574e53
commit
a161249e63
|
|
@ -53,6 +53,24 @@ namespace Guru
|
|||
Analytics.Tch02IAPRev(usdPrice);
|
||||
AdjustService.TrackIAPPurchase(usdPrice, productId);
|
||||
Analytics.IAPPurchase(usdPrice, productId);
|
||||
return;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(response))
|
||||
{
|
||||
if (response.Contains("500") || response.Contains("Internal Server Error"))
|
||||
{
|
||||
Debug.LogError(
|
||||
$"[IAP] GoogleOrderRequest failed: contact with guru backend server team. Make sure they'v connect order report to this project!");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"[IAP] GoogleOrderRequest failed: {response}");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"[IAP] GoogleOrderRequest failed: response is null or empty");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -616,7 +616,7 @@ namespace Guru
|
|||
if (productReceipt is GooglePlayReceipt google)
|
||||
{
|
||||
Debug.Log($"{Tag} --- Report Android IAP Order -> orderType:{orderType} productID:{productID} blevel:{blevel}");
|
||||
new GoogleOrderRequest(orderType, productID, subscriptionID, google.purchaseToken, blevel).Send();
|
||||
new GoogleOrderRequest(orderType, productID, subscriptionID, google.purchaseToken, blevel).SetTimeOut(5).Send();
|
||||
}
|
||||
}
|
||||
#elif UNITY_IOS
|
||||
|
|
|
|||
Loading…
Reference in New Issue