Forum Discussion
ellioteserin
3 years agoHonored Guest
In-app purchase failed. errorCode=0
Hi, I have been trying to integrate IAPs into a Unity VR project using the Oculus SDK. I have a free consumable add-on defined in the developer console (I haven't set up payment info) and then in my ...
Shaomai
3 years agoRetired Support
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.
cheesepantz
3 years agoMHCP Member
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.
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
- 3 years ago
- 6 months ago
- 4 years agoAnonymous