Forum Discussion
Disclaimer - I do not have expertise in this area. Please don't take this answer without verification.
This error message could be returned if the user who attempted to purchase this IAP was already entitled to the Consumable item but hadn't consumed that yet. This doc https://developer.oculus.com/documentation/native/ps-iap-s2s/ has details on how to retrieve it and consume.
- cheesepantz3 years agoProtege
I think you are onto something. Weird that the examples don't show this line of process for consumables.
Consumable purchases must be ingested by your app before they can be made available for purchase again.Launch the checkout flow for a SKU
To launch the checkout flow for a user to complete the purchase of a specified SKU, use the following method.
ovr_IAP_LaunchCheckoutFlow()
Consume a purchased item
To consume a purchased item on behalf of a user, which then marks the item as used, in-app, use the following method.
ovr_IAP_ConsumePurchase()
Will check it on my end see if player already has these items, but has not consumed it. So, the first time this checkout flow is called, it should return no error? Then, the second time, if its not consumed, it should return an error? We had errors happen always no matter what.
My thought is that we would want to consume it when the check out flow returns success message. But I never got a return message before. Will test some more. - cheesepantz3 years agoProtege
I can verify this is not the issue right now. Thanks for the extra knowledge. I did not have the consume aspect for consumables. Now I do. But I have both consumables and durable and both throw the error.
I also did a check on the account when I pass entitlement to see if I have anything bought that is not consumed. But I did not.- cheesepantz3 years agoProtege
I print out a list of all the items the player has purchased. Then consume all those items to make sure any consumable item is cleared from the list.
The problem is that, when I purchase an item oculus returns an error code 0. (I did not have the item purchased before this. Consumable or Durable)
When I check the list of purchased item, I see oculus granted me the item as purchased.
Because I received an error from oculus I did not consume the item.
1. Why does oculus return error code 0 and set the item as purchased?2. Why does oculus automatically close the accept buy window? When buying an item 3 dots appear and it looks like is about to do something, but then the request gets rejected.