Allow entering response code manually

This commit is contained in:
M66B
2020-08-25 10:04:25 +02:00
parent b770e11365
commit 0781b132b3
7 changed files with 112 additions and 4 deletions

View File

@@ -169,8 +169,12 @@ public class ActivityBilling extends ActivityBase implements /*PurchasesUpdatedL
}
static boolean activatePro(Context context, Uri data) throws NoSuchAlgorithmException {
String challenge = getChallenge(context);
String response = data.getQueryParameter("response");
return activatePro(context, response);
}
static boolean activatePro(Context context, String response) throws NoSuchAlgorithmException {
String challenge = getChallenge(context);
Log.i("IAB challenge=" + challenge);
Log.i("IAB response=" + response);
String expected = getResponse(context);