Yes, that’s what happens. I just finished uploading my log check. This is what I got:
So, I added this to my process purchase
public PurchaseProcessingResult ProcessPurchase(PurchaseEventArgs args)
{
SaveLoadController.AddToLog(new ErrorMessage()
{
AppVersion = Application.version,
Conditon = $"receipt:{ args.purchasedProduct.receipt}, transId: {args.purchasedProduct.transactionID}",
LogType = "InAppPurchasing",
TimeLogged = DateTime.Now
});
Debug.Log("Processing purchase of product: " + args.purchasedProduct.transactionID);
IAPProduct pd = GetIAPProductById(args.purchasedProduct.definition.id);
..
..
.
This will add to my log. When I check my logs I see two events, one is expected.
This one is good, it’s a non-consumable.
{
"Conditon" : "receipt:{\"Store\":\"GooglePlay\",\"TransactionID\":\"GPA.3369-6653-0221-11919\",\"Payload\":\"{\\\"json\\\":\\\"{\\\\\\\"orderId\\\\\\\":\\\\\\\"GPA.3369-6653-0221-11919\\\\\\\",\\\\\\\"packageName\\\\\\\":\\\\\\\"com.TwoXNoodles.IdleIndustry\\\\\\\",\\\\\\\"productId\\\\\\\":\\\\\\\"removeadsanddouble\\\\\\\",\\\\\\\"purchaseTime\\\\\\\":1576676135942,\\\\\\\"purchaseState\\\\\\\":0,\\\\\\\"developerPayload\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"developerPayload\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"is_free_trial\\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\\"has_introductory_price_trial\\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\\"is_updated\\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\\"accountId\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"}\\\\\\\",\\\\\\\"purchaseToken\\\\\\\":\\\\\\\"kjbafaboocliapgkjbiddblc.AO-J1Oys1-FLzaExCwVdDf1laW3Z4JRC2omA4ICWcf7xjJYRR8LgXD4Ji2Vj5XChFLiV-pavAqBh0wsE3cs7-g5F1Fmp6TbAh4O7UrG_hZ1MiGDtJW__r-iUB0hTmSWq2E3xIH_Jq-FLTpXf89MH0ZOEnt8V82DxUQ\\\\\\\"}\\\",\\\"signature\\\":\\\"fmFU1QNXmE+G\\\\\/\\\\\/vkcclYqjf1H1me4h\\\\\/209DAg+pU32lWsbYx9CXRUIi8ctmc9sFBtt3CMYJbohcVIG47z2AdhU5qe8H3kNZwE2X3RZYDOLpIQ\\\\\/78vD3Hqogca63wN\\\\\/gIMU4r1l4EmFQ5fV5YUSXmg5sFhcLbRgOW8l6paFMowV1aa1Oe0x69\\\\\/81W6C5rnyQMfYz2WxyWJRvN6X98iybpDmLHrQx6jCVvEcyZ+bAYRIgEnlrk8H8Nhu98RE2ov2kE\\\\\/n7aHesnXTJkyQBx4tI18qtb7awRkEnaMq2kuhfGCkrdRWhmJvOsn069kvzTVXdrEgiUamXI7HtPIlx1visQMA==\\\",\\\"skuDetails\\\":\\\"{\\\\\\\"skuDetailsToken\\\\\\\":\\\\\\\"AEuhp4LNW-I_1kC94RQ_Ks6LP-2pyxoQ-cOskAyhTGLIDnLJQXMA7e2NCjGUlnhW_gZh\\\\\\\",\\\\\\\"productId\\\\\\\":\\\\\\\"removeadsanddouble\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"inapp\\\\\\\",\\\\\\\"price\\\\\\\":\\\\\\\"$11.99\\\\\\\",\\\\\\\"price_amount_micros\\\\\\\":11990000,\\\\\\\"price_currency_code\\\\\\\":\\\\\\\"USD\\\\\\\",\\\\\\\"title\\\\\\\":\\\\\\\"Remove All Ads and Double Ad Reward (Idle Industry)\\\\\\\",\\\\\\\"description\\\\\\\":\\\\\\\"Remove all ads and double reward\\\\\\\"}\\\",\\\"isPurchaseHistorySupported\\\":true,\\\"isOwned\\\":true}\"}, transId: GPA.3369-6653-0221-11919",
"StackTrace" : null,
"LogType" : "InAppPurchasing",
"TimeLogged" : {
"ticks" : 637323050522951160
},
"AppVersion" : "493"
}
This one, is unexpected. This is a consumable.
"Conditon" : "receipt:{\"Store\":\"GooglePlay\",\"TransactionID\":\"endkflbkjgapjofnnpkmhljb.AO-J1Ox5r3STywnfOLgHb00zyTih1zLmlOztd77_EyzH3-kAPvF5HAGkxbLOoiXGUXDVdktAF75DUZvaBagt6_t4CCUMpNBrcvE8s-CSTgz2_cSb7hoak4AV4u269YnvCUF8NZXkhWdI\",\"Payload\":\"{\\\"json\\\":\\\"{\\\\\\\"productId\\\\\\\":\\\\\\\"purchase200000pu\\\\\\\",\\\\\\\"purchaseToken\\\\\\\":\\\\\\\"endkflbkjgapjofnnpkmhljb.AO-J1Ox5r3STywnfOLgHb00zyTih1zLmlOztd77_EyzH3-kAPvF5HAGkxbLOoiXGUXDVdktAF75DUZvaBagt6_t4CCUMpNBrcvE8s-CSTgz2_cSb7hoak4AV4u269YnvCUF8NZXkhWdI\\\\\\\",\\\\\\\"purchaseTime\\\\\\\":1595337368772,\\\\\\\"developerPayload\\\\\\\":\\\\\\\"{\\\\\\\\\\\\\\\"developerPayload\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\",\\\\\\\\\\\\\\\"is_free_trial\\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\\"has_introductory_price_trial\\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\\"is_updated\\\\\\\\\\\\\\\":false,\\\\\\\\\\\\\\\"accountId\\\\\\\\\\\\\\\":\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"}\\\\\\\"}\\\",\\\"signature\\\":\\\"aIOaYAdoacnu0RT\\\\\/brJZt1H7vMShYWdaL+OjwelDnwvfCyWXa94IkwntxTLSisymR94YL3pmWH0\\\\\/a7CbSIZTNzb41c\\\\\/DuUWftuIorRB0PntXrwj0RNUl+eZzVP1nSQjkGVplAc0QneAW06d\\\\\/TyD64vcZYOqSqvSsAw\\\\\/frsjBzv952dY6CBymYZQjSburEsBHszxHHCMJQq3hTA5qNE\\\\\/nK\\\\\/4isavHVpDsd6kX13Vn0031HJlwMf6xHFbHSWZe+9yPOamC3iyUiCzjsbcrIFaJ4H8A026Hum2YpKRdKBnWEpn41d9DJKUzA+McHRknHK+AVzAcPhmqMaLQlhu5VgZ3WQ==\\\",\\\"skuDetails\\\":\\\"{\\\\\\\"skuDetailsToken\\\\\\\":\\\\\\\"AEuhp4LAy4i5R7o0CBuk2zkKCjEVaJSa3jpAqCGmV9orIEKsQPJLzr8JSOnPsKIwnDh7\\\\\\\",\\\\\\\"productId\\\\\\\":\\\\\\\"purchase200000pu\\\\\\\",\\\\\\\"type\\\\\\\":\\\\\\\"inapp\\\\\\\",\\\\\\\"price\\\\\\\":\\\\\\\"$119.99\\\\\\\",\\\\\\\"price_amount_micros\\\\\\\":119990000,\\\\\\\"price_currency_code\\\\\\\":\\\\\\\"USD\\\\\\\",\\\\\\\"title\\\\\\\":\\\\\\\"Purchase 200000 Plutonium (Idle Industry)\\\\\\\",\\\\\\\"description\\\\\\\":\\\\\\\"Purchase 200000 Plutonium\\\\\\\"}\\\",\\\"isPurchaseHistorySupported\\\":true,\\\"isOwned\\\":true}\"}, transId: endkflbkjgapjofnnpkmhljb.AO-J1Ox5r3STywnfOLgHb00zyTih1zLmlOztd77_EyzH3-kAPvF5HAGkxbLOoiXGUXDVdktAF75DUZvaBagt6_t4CCUMpNBrcvE8s-CSTgz2_cSb7hoak4AV4u269YnvCUF8NZXkhWdI",
"StackTrace" : null,
"LogType" : "InAppPurchasing",
"TimeLogged" : {
"ticks" : 637323050733080990
},
"AppVersion" : "493"
}