Forum Discussion
Slixton
2 years agoStart Member
Test User IAP Checkout Flow Stopped Working
We've run into an issue when testing our IAP purchase flow. Up until this week, when we'd click on an In-App purchase (durable level addon), it would open the Meta App Lap Purchase window, where it ...
- 2 years ago
Hey hey, we just ran into this problem as well. Got in contact w/ an oculus dev, they confirmed that it should only be happening for org members and test users. Exact response was: "Confirmed with the team that this is an intended feature to help developers test their IAPs and was recently re-enabled. Members of the organization and test users are granted this special price. If you want to end-to-end test your new IAP flow, I recommend uploading the build to a release channel and add a non-member to that channel. They should be able to test the full flow. We are also looking into adding into ways of making it more clear in the checkout process that this the test pricing."
rajj.209779
1 year agoHonored Guest
Hi Slixton
this is because
One-Time Use Items: Consumable items are typically single-use items like in-game currency (coins or gems), health packs, or any other virtual goods that the user can "consume" and need to buy again once they're used up. After purchasing, these items are "consumed" so that the user can buy them again if they need more.
Releasing the Purchase for Repurchase: When an item is consumed, it tells the platform (Oculus, Google Play, etc.) that the item has been used up or redeemed. This action removes it from the user’s purchase history, allowing the user to purchase the item again.
Technical Process: When you call ConsumePurchase, it signals to the platform that the item has been "used" or "consumed" and should not be counted as owned by the user anymore. This is essential in games or apps where users frequently buy consumables like coins, health packs, or energy, as it allows the purchase to be available again.
so add following code in your IAP script , will resolve your issue.
private void ConsumePurchase(string sku)
{
IAP.ConsumePurchase(sku).OnComplete((Message msg) =>
{
if (msg.IsError)
{
Debug.LogError("Error consuming purchase: " + msg.GetError().Message);
}
else
{
Debug.Log("Purchase successfully consumed.");
}
});
}
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 3 years ago
- 3 months ago