12-13-2022 09:14 AM
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 C# code I have:
IAP.LaunchCheckoutFlow(product.Sku).OnComplete((res) => {
LaunchCheckoutFlowCallback(res, callback);
});
Everything up to this point - retrieving the add-on etc. - works perfectly, but then when I try to run this, a popup opens and instantly closes and then I get this error in the android logcat
[AndroidPlatformIntegration] In-app purchase failed. errorCode=0, httpStatusCode=0, errorMessage={"category":"user_canceled","code":0,"message":"The purchase has been canceled."}
and the Message<Purchase> (res) IsError is set to true in the LaunchCheckoutFlowCallback function, But I am not sure why.
This is a build from Unity, not an uploaded build and I haven't tested if that would work. But other than that I don't know why I am getting this error.
Thanks for any help!
04-26-2024 08:11 AM - edited 04-26-2024 08:24 AM
07-14-2024 06:58 PM
is there anyone who gets the solution?