I'm attempting to test IAP by launching our app from the debugger. After calling ovr_IAP_LaunchCheckoutFlow, the user is taken out of the app and into Oculus home to complete the purchase. The user will see the following error message in the Rift:
"Something went wrong. We're working on getting it fixed as soon as we can."
- I've created a test user and assigned them one of the test credit card numbers. - I've added the test user to our Beta channel. - I have had that test user install the app from the Oculus store. - I have also added the regkey value for AllowDevSideloaded.
What I have not done is upload the build I'm attempting to debug to the Beta channel. From the documentation I've read though, this shouldn't be necessary.
So, is the error message I'm seeing a problem with the Oculus backend or is it something I'm doing wrong? All of our other IAP calls seems to function just fine.
To update, I had a chance this morning to upload my build to our Alpha channel. I verified that the test user is allowed to access the Alpha channel and that my IAP build was installed via the Oculus library.
I'm now suffering from the same situation as Twig, the only difference is that I'd read this thread before setting up the test user and made sure I used a (I believe) valid zip code, which was 98004 (which should be a Washington State code) when setting up the credit card details.
I don't know if it makes any difference, but I've tried with having my CoreChannel RegKey set to LIVE and ALPHA.
Like Twig, I've made sure I've done the following:
- I've created a test user and assigned them one of the test credit card numbers (with valid zip code) - I've added the test user to one of our channels. - I have had that test user install the app from the Oculus store. - I have also added the regkey value for AllowDevSideloaded.
Other IAP calls work fine, I can call ovr_IAP_GetProductsBySKU() and ovr_IAP_GetViewerPurchases() fine and recieve the expected information.
HI @Milly01 which test credit card number did you try? Was the error message the same as in the original post or was there an error code associated with ?
Please tag me, @juanoldinho, in your forum post/response if you need immediate assistance or want additional support or context on an issue you are having with our software or integrations.
Having an issue with our platform, services, or integrations?
Try using our new bug tool to report this and receive emailed updates as we proceed to address it internally.
Thanks for the reply. I used the 'Always Succeeds' credit card number. I haven't got an error code to hand right now as I was running through the app installed through the oculus store, I just get the generic "Something went wrong..." message.
I'll have to make some changes and create another build so I can show the error information on screen.
I know it has been a long time since I posted about this, I was pulled off the project, but back on it now. 🙂
The error information I receive when calling ovr_IAP_LaunchCheckoutFlow in the code are: code: 10 httpCode: -1 Message: Server response is not valid JSON
I've tried setting up new test users and made sure all the credit card information is correct etc. Is there any way to look at the back end to see what's going wrong? Do I need to send over any additional information?
Hi @Milly01 (and anyone on the Oculus staff that might be following this thread)
Did you ever get your issue sorted?
I'm facing the same issue (using the latest v1.20.0 platform sdk) . I'm testing a consumable IAP and get the same "Server response is not valid JSON" message back when I catch the ovrMessage_IAP_LaunchCheckoutFlow message after a purchase.
I also previously got the generic "Something went wrong..." message at the checkout screen the one time during testing but now it's just the "Server response is not valid JSON" in the ovrMessage_IAP_LaunchCheckoutFlow message.
And I'm also using the 'Always Succeeds' test credit card number with a test user I set up so I expect all confirmed purchases to be successful.
Interestingly enough, it does seem that the purchase goes through as I can see it in my test user's purchase history and if I try to go and purchase the same consumable IAP item again it says I've already purchased the item as I have not consumed it (something that I'm trying to do only when I get a successful purchase message back from the ovrMessage_IAP_LaunchCheckoutFlow message).
This is further confirmed by a call to ovr_IAP_GetViewerPurchases() when I relaunch the app which does pull up the previously purchased item as it was never previously consumed.