InApp purchase for window phone 8 in cocos2dx

You have to follow the tutorial from chenjc … it works on 2.2.3.

@siddharthshekar

Thnx, i will try that.

Hi, anybody tried to rate and review function in wp8+xaml game.
If anybody did it plz help me to do that.
Thanx in advance.

Yes !
MarketplaceReviewTask task = new MarketplaceReviewTask();
task.Show()
This will navigate the app to market review page.
Thanks

@chenjc

I am testing the IAP branch in https://github.com/koowolf/cocos2d-x/tree/IAP/cocos2dx/platform

I tried downloading and running it and I get an error. So I created a ne project in 2.2.3 and included the mockIAP.dll and project file.

It crashes right right b4 MockIAP.CheckIfInitialized() in CurrentApp.LoadListingInformationAsync(); Where do I init MockIAP???

I am not sure why this problem is arising… pls help

‘TaskHost.exe’ (Win32): Loaded ‘\Device\HarddiskVolume27\Windows\System32\System.Runtime.WindowsRuntime.ni.dll’.
‘TaskHost.exe’ (Win32): Loaded ‘\Device\HarddiskVolume27\Windows\System32\winmetadata\Windows.ni.winmd’.
First-chance exception at 0x77E31247 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131500, 0x00000000, 0x00000000, 0x00000000, 0x70AF0000).
First-chance exception at 0x77E31247 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131500, 0x00000000, 0x00000000, 0x00000000, 0x70AF0000).
First-chance exception at 0x77E31247 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131500, 0x00000000, 0x00000000, 0x00000000, 0x70AF0000).
First-chance exception at 0x77E31247 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131500, 0x00000000, 0x00000000, 0x00000000, 0x70AF0000).
‘TaskHost.exe’ (Win32): Loaded ‘\Device\HarddiskVolume27\Windows\System32\EN-US\mscorlib.debug.resources.dll’. Module was built without symbols.
First-chance exception at 0x77E31247 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, 0x00000000, 0x00000000, 0x70AF0000).
First-chance exception at 0x77E31247 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, 0x00000000, 0x00000000, 0x70AF0000).
Unhandled exception at 0x77E31247 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, 0x00000000, 0x00000000, 0x70AF0000).

Got it :slight_smile:

But unlike the original moocIAP I can’t clear purchases???

edit:: got clear to work also… had to change from portrait to landscape and it shows… (y).

If I change the product type to consumable… and if after purchasing it once I am not able to purchase it again!!!.. why so???

When will the wp8 version count in the main development trunk? :frowning:

I think 2.2.3 is the last version for 2.2.x … if they are working on 2.2.4 would really like plugin-x for wp8 also included… makes life so much easier… :slight_smile:

Hello. How do I connect to the project Windows Phone 8.1 microsoft store IAP’s ? I use cocos 3.6. The project with no C# or XAML folders, only proj.win8.1-universal. My game compiling and working fine, but i have add shop and ADS in my game.