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