我正在尝试在Xamarin.iOS中实施inapp购买。它显示了两个不同帐户的不同行为。对于一个帐户inApp产品显示为有效且对另一个开发者帐户无效。我检查了证书,产品ID和捆绑ID。一切似乎都没问题。
public InAppPurchaseManager PurchaseManager = new InAppPurchaseManager();
void Initialization()
{
PurchaseManager.PurgeProducts();
if (PurchaseManager.CanMakePayments)
{
}
else
{
using (var alert = new UIAlertView("Error!", "Sorry but you cannot make purchases from the In App Billing store. Please try again later.", null, "OK", null))
{
alert.Show();
}
}
PurchaseManager.QueryInventory(new string[] { productID });
PurchaseManager.ReceivedValidProducts += PurchaseManager_ReceivedValidProducts;
PurchaseManager.ReceivedInvalidProducts += PurchaseManager_ReceivedInvalidProducts;
PurchaseManager.InAppProductPurchased += PurchaseManager_InAppProductPurchased;
}
private void PurchaseManager_ReceivedInvalidProducts(string[] productIDs)
{
}
private void PurchaseManager_ReceivedValidProducts(List<InAppProduct> products)
{
_
}
答案 0 :(得分:0)
问题在于帐户。我没有为inapp购买设置帐户设置,例如提供税务信息和其他内容。要启用来自帐户的inapp购买,管理员必须汇总所需的法律文件以启用inapp购买:)
日Thnx