[Solved] Using Amazon and GooglePlay Stores from the same project

Hi guys,

I’m wondering if it’s possible to select you android IAP store target at runtime, I found reference to this thread: [Solved] Unity IAP Select store at runtime - Unity Services - Unity Discussions which suggest you can by setting the target to “Select at runtime” except I can’t find that option within the Unity IAP menu in Window → Unity IAP → Android

Anybody know how to do this? Or if it’s possible to change it with a post-build script instead? I’ve tried using UnityPurchasingEditor.TargetAndroidStore(AndroidStore.AmazonAppStore) in a post-build script as suggested here Unity - Manual: Configuration for the Amazon Appstore but was unable to get that to compile. It says UnityPurchasingEditor not found, and AndroidStore not found.

Cheers

@TheADrain ,

The “Select at Runtime” option was removed because it was causing compatibility issues.

But you can still select a store in code. The process is described here: