In-App purchase works on testflight but not on release

Hello,

When I using Unity 2022.3.6f1 and com.unity.purchasing 4.9.3, everything is working, but when I update the Unity to 2022.3.8f1 many iPhone users reported that the IAP was paid but did not receive any product.

So I tested it on testflight, and the IAP is working fine, but when I tested released App on App Store, the payment was complete, but seems the game haven’t handling the product action.

My product is set by code using InitializePurchasing

    void Start()
    {
        // If we haven't set up the Unity Purchasing reference
        if (m_StoreController == null)
        {
            // Begin to configure our connection to Purchasing
            InitializePurchasing();
        }
    }

    public void InitializePurchasing()
    {
        // If we have already connected to Purchasing ...
        if (IsInitialized())
        {
            // ... we are done here.
            return;
        }

        //set product
        products.Add("product_name", new MyProduct()
        {
            type = ProductType.Consumable,
            action = () =>
            {
                //add product
            }
        });

        // Create a builder, first passing in a suite of Unity provided stores.
        var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance());

        // Add a product to sell / restore by way of its identifier, associating the general identifier
        // with its store-specific identifiers.
        foreach (KeyValuePair<string, MyProduct> kvp in products)
        {
            builder.AddProduct(kvp.Key, kvp.Value.type);
        }

        // Kick off the remainder of the set-up with an asynchrounous call, passing the configuration 
        // and this class' instance. Expect a response either in OnInitialized or OnInitializeFailed.
        UnityPurchasing.Initialize(this, builder);
    }

Any one have the same issue? and any Idea to fix it?

Thanks

I assume you’re running into the issue documented here ; i.e. upgrade to IAP package 4.9.4.

1 Like

Thank you.
I tried IAP package 4.9.4 (remove->install), but it is not work for me.

The problem is come from the CrossPlatformValidator and throw IAPSecurityException, seems similar as your issue, I will try to update to 4.9.4 and update the result here.

Thanks