Windows 8 in-app purchase

Get help using Construct 2

Post » Tue Jan 29, 2013 12:18 am

How do i know if the purchase product has completed successfully. There is no method like "On Successful complete event" , only it has "Has product purchased" , but not sure how long should i wait before the purchase be completed.

My product is kind of "hints" pack where i need to add 50 hints if the purchase goes through succesffully if not 0 is added , hence the user will loose the purchase if it's completed in 2 secs as i haev 2 secs wait before i check.

Has anyone implemented this ? please advise how the behavior is ?
B
16
S
4
Posts: 248
Reputation: 2,267

Post » Wed Jul 17, 2013 6:02 pm

Did you get this sorted out? In test mode, nothing happens when I make a product purchase. I'm using "Has product purchased" inverted and not inverted.
B
19
S
3
G
2
Posts: 212
Reputation: 4,011

Post » Wed Jul 17, 2013 8:06 pm

IIRC for windows 8, the purchase downloads a license. So if "has product purchase" is firing, they have made the purchase.

There is not "consumables" in windows 8 but what you can do is set the product lifetime to 1 day so they can buy it again the next day. Then, you could set a variable to check if they already received the product, if not give it to them (ie: 50 hints) and then set it to "received" then once the product is no longer purchased (aka, consumed after 1 day) when "is purchased" fires, you can start checking again if it is purchased again simply add 50 more hints.
B
32
S
12
G
8
Posts: 422
Reputation: 7,407

Post » Thu Nov 07, 2013 5:37 am

@humanescape @kenhes There are consumables now in Windows 8.

Enable in-app purchase of consumables
B
8
S
3
G
1
Posts: 135
Reputation: 2,209


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests