Hi,
I am trying to write a config for my various builds from the same project. One of my builds doesn’t have IN-APP purchasing, so how to disable in-app purchasing programmatically.
Thanks for advance.
Hi,
I am trying to write a config for my various builds from the same project. One of my builds doesn’t have IN-APP purchasing, so how to disable in-app purchasing programmatically.
Thanks for advance.
Can you explain in more detail?
Thanks!
I have a project like this and I have several configurations, one with ads/in-app purchasing enabled and the other with them disabled and I want to write editor code to automate switching between them.

Ah, I understand now.
Sorry I don’t know. I do IAPs via third-party plugins.
old thread, but no answer was supplied and might be handy for anyone finding there way here, you should be able to use this to toggle the IAP purchasing service:
also… seems to be a much more extensive thread on the topic here: How to programmatically enable/disable Unity IAP at build time?
An update to my own suggestion, that I tried setting PurchasingSettings.enabled = true; in a compiler script and it doesn’t seem to do anything. The UnityConnectSettings.asset nor the ProjectSettings.asset do not get the purchase settings turned on, and the purchase service does not show ON as expected.