How do I do in app purchase in test mode?

Get help using Construct 2

Post » Tue Mar 29, 2016 9:26 am

Wishy wrote:any info on this, just been testing in app purchases too and google charged me too, I got everything on testmode and added a fresh google account to my testers


Please see here.
https://www.scirra.com/tutorials/5013/c ... out-paying

Note, your game must be in alpha/beta!

This works for all platforms, not only for CocoonIO

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
100
S
35
G
30
Posts: 1,136
Reputation: 28,085

Post » Wed Mar 30, 2016 1:58 pm

Thanks for the reply, but I already fixed it.
Your link didn't help at all though, as I know how to set up the IAP, and it was working correctly, apart from the fact that I got charged. I clearly wrote that it worked, that my app was in testmode AND that I got testaccounts. I did however not mentioned that my app was ALSO in Alpha test mode.


I thought the alpha channel was specifically for this kind of testing, and as long as I had the user’s Gmail address on the whitelist, the transaction wouldn’t post. Wrong. The whitelist is ignored for published APK versionCodes.

In fact, it’s even a bit worse than that – the whitelist is ignored for all versionCodes less than or equal to anything published. Let me illustrate that with a concrete example:

1. The production versionCode of my app is 9 – that’s my baseline, before I started implementing IAB.
2. After I had a first cut of IAB done – with versionCode 10 – I published it to my alpha-test group and had a whitelisted user try it. He got charged, because 10 wasn’t unpublished.
3. Learning from these mistakes, I uploaded a later version (13) to Google Play, but did not publish it. I then emailed the APK to some whitelisted testers, who successfully used the IAB feature without being charged.
4. Moving closer to release, I built versionCode 14 and published it to beta. I fully expect users of this version to be charged, and they are.
5. However: the next day, one of my whitelisted test group from step 3 – still on versionCode 13 – tried out the IAB and got charged for it. My best explanation for this is that, even though 13 is still unpublished, the whitelist is ignored, because 14 is published.

source: https://sterlingudell.wordpress.com/201 ... n-android/
B
25
S
11
G
9
Posts: 136
Reputation: 6,657

Post » Wed Mar 30, 2016 2:15 pm

Thanks for pointing that out.
You easily can see if you get charged or not.
It shows "This is a test purchase, you will not be charged" message if you try to purchase an item.

I know this has nothing to do with thing about the version codes. Just wanted to say that ;)
Image Image iTunes: Match3 | Google Play: Match3
B
100
S
35
G
30
Posts: 1,136
Reputation: 28,085

Previous

Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], FabianB and 15 guests