I'm having a problem using a test account for IAPs on my app. I've created a couple test accounts but both of them have suddenly become unable to get to the store, getting stopped by a "Something went wrong" error before getting to the purchase confirmation screen.
I've tried the account on multiple networks and devices, and even created a new test account in case it was something going wrong with those accounts specifically but the same problems occurred throughout. Also I tried downloading free content on the store but that was met with a "Product currently unavailable error". I tried downloading the same free content on a non-testing account and they downloaded just fine.
Any advice on what might be causing this would be greatly appreciated.
For your first issue, if you use a non-test account (such as your actual developer account), does your app transition to Home asking you to confirm the purchase? I had this issue way back, but it was due to not have test channels enabled on my account. For test users to work properly for IAP, you need to have release channels enabled.
For your second issue, I believe somewhere in the docs it says that test accounts can only be used for your apps in your organization. This is probably due to the fact that they are set up to use the test credit cards.
For the first matter, release channels was already enabled unfortunately. I went to check with the non-test account as you suggested and the same issue of it getting stopped by a "Something went wrong" error, so I might have been mistaken and this is could be an issue with the IAP setup instead?
As for the second issue, that makes sense. I didn't need to be able to download the other apps I was just doing it to check things were fine with the rest of the store/account. I'm pretty sure I was able to download the free stuff before though, but that's not as bothersome an issue.
I have a similar problem. I added test users under Members > Developers and under Build > Alpha channel. When I try to purchase an item it shows an error message. When I try to buy the same item again it shows a message with title: Already purchased, and message: Your in-app purchase couldn't be completed... But when I try to get the list of purchased items I get empty list.
Did you add one of the test credit card numbers to your test accounts? It's under the testing IAP section in the doc. Test accounts appear to be automatically entitled to the app, but the IAP flow still expects there to be a credit card tied to the account.
@Emmersed
When you return to your app from Home, the returned Message should have a bunch of error code information in it. What does that read? Also, you could try messaging @johnbart_oculus if you can't figure it out. He's a platform developer.
Yes, I added test credit card number 4111 1177 1155 2927 (this one should always succeed). I get to the part where I have to enter the PIN number to finalize the transaction. After I enter the PIN the following message box appears:
Something went wrong.
We are working on getting it fixed as soon as we can.
If I try to buy the same product again the following message appears:
Already purchased
Your in-app purchase couldn't be completed. You can exit the app or contact Oculus Support for help.
But a call to get the list of purchased products returns empty.
At first I tought that something is wrong with product skus since they were in the following format: example-item-name. Then I changed skus to P001, P002, etc. to no avail. I tried with multiple test users, the only thing left is to try with an actual credit card.
I'd love to look into this. @tomazvovk , @emmersed Would you be willing to PM me the alias of the test users you're using, so I can pull logs on the server-side?
I upgraded Oculus Utilities from 1.5.0 to 1.6.0 and I can get the list of purhcased items which means, that purchases are successful despite the error message box:
Something went wrong.
We are working on getting it fixed as soon as we can.
Okay, I upgraded Oculus Platform SDK to 1.7.0 but the error above still exists. I even tried with a real credit card. The purchase is successful, even though Oculus store returns error.
I am using Unity 5.4.0f3, Utilities 1.6.0 and Platform 1.7.0.
Any suggestions?
I forgot to say, that I did send @josh.ruesch names of test users and he said that all calls returned success.
I upgraded Unity to 5.4.0p3, Utilities to 1.7.0 and Platform to 1.7.0 about two weeks ago, hoping that this would help. But it didn't. Last week I tried again to get the log file and this time it just worked. I didn't do anything in between. It just works.