Hi,
I was integrating Unity IAP to implement my one and only IAP purchase (ad removal) into the Android-version of my game. Testing the purchase however causes a NRE in the receipt validation, any ideas what might be wrong?
Interestingly, I tested various things like changing the API level from .Net 2.0 subset I was using to full .Net 2.0 without any difference. Then I decided to try with IL2CPP backend for fun (more like how the game generally works on it), and the receipt validation worked immediately! Does anybody have any idea what might be causing the NRE when using Mono?
Ah, it’s related to stripping. I was originally using Strip Bytecode, then I tried Strip Assemblies (still fails). When disabling all stripping it works. Now to find out what’s getting stripped and how to preserve it… Probably some of those cryptography classes.
EDIT: With this link.xml the problem is solved. Now to see if I can loosen it, probably, just takes time experimenting…
API level doesn’t matter, but are you sure you tried without stripping? For me it definitely works, also when preventing the cryptography classes from being stripped with link.xml I posted above. And for some reason IL2CPP was able to correctly strip things without this breaking, so this only matters to Mono.
I don’t have IAP in my iOS version, so cannot comment on that (except IL2CPP is used there so might work?).