Hi,
I’m encountering an issue with the latest Unity IAP v1.8.1, It’s always showing the Google Play IAP dialog instead the Amazon or Samsung Galaxy ones when these platforms are selected.
I initialized Unity IAP like this:
var storeModule = StandardPurchasingModule.Instance();
if (Application.platform == RuntimePlatform.Android)
{
if (MySelectedPlatform.Andoid == PlayStore)
{
storeModule = StandardPurchasingModule.Instance(AndroidStore.GooglePlay);
}
else if (MySelectedPlatform.Andoid == Amazon)
{
storeModule = StandardPurchasingModule.Instance(AndroidStore.AmazonAppStore);
}
else if (MySelectedPlatform.Andoid == Samsung)
{
storeModule = StandardPurchasingModule.Instance(AndroidStore.SamsungApps);
}
}
ConfigurationBuilder builder = ConfigurationBuilder.Instance(storeModule);
builder.AddProduct(iap.id, ProductType.Consumable, new IDs() {
{ iap.skuApple, AppleAppStore.Name},
{ iap.skuGooglePlay, GooglePlay.Name},
{ iap.skuAmazon, AmazonApps.Name}
});
UnityPurchasing.Initialize(this, builder);
I selected Windows → Unity IAP → Android → Select store at runtime.
And when I build I set the correct platform to be taken in account by Unity IAP.
Now that my app is released for GPlay, Amazon and Samsung, when user click on IAP purchase button, it always show the Google Play IAP dialog for all platforms instead of the Amazon and Samsung ones for these respective platforms!