In App Purchase Module

Monkey Targets Forums/Windows 8/In App Purchase Module

maverick69(Posted 2013) [#1]
Today I've worked on in app purchases for Windows Phone 8. I've added it to my API in Fairlight:

https://bitbucket.org/joemanaco/fairlight/src/119d4d3a2a256b5cfb25889c821c9f13bb8a0757/src/payment/win8?at=master

The docs from Microsoft aren't very good for using in app purchases with the native api, so I don't know how stable they are. Please check also my notes at the bottom of my wiki:

https://bitbucket.org/joemanaco/fairlight/wiki/Payment


Xaron(Posted 2013) [#2]
That's awesome, I'll check it out!


maverick69(Posted 2013) [#3]
Hi, just wanted to let you know the my first app for windows 8 phone is live and the in app purchase module is working: http://www.windowsphone.com/s?appid=e235b384-51ad-4bef-a86d-bc3f64a88c89


Xaron(Posted 2013) [#4]
Well done! Thanks for letting us know!


programmer(Posted 2013) [#5]
Awesome! Thanks!


LinderBoss(Posted 2013) [#6]
That's great, I'll check it out!

How about a Windows 8 IAP module?


maverick69(Posted 2013) [#7]
I've added a kind of product state cache to fairlight some days ago (because the call against the winapi may slowdown the app significantly' if you do it each frame) - and it had a bug so the cache never got updated. fixed it with the latest commit.

Just want to let you know, in case some of you are using my code as it resulted in a MAJOR bug and it doesn't seem that microsoft is checking in app purchases in their review process cause an app of mine went live with this bug.


Xaron(Posted 2013) [#8]
Thanks for that! Have you updated your code in your first posting regarding that bug?


maverick69(Posted 2013) [#9]
Yes, I've updated the master branch on my bitbucket repository. I hope everythings fine now - have also fixed some other minor issues with the payment code.

Sorry for that, but I've found it quite hard to get into it because the documentation from Microsoft was mostly C# related and this whole C++/CX stuff was also very new to me.

Also, please note that I only tested it with v74a - and as Mark changed quite some things in the latest updates it's possible it won't run out of the box with the latest version (will have a look at it as soon as I've find some time).