Google Wallet IAP for Chrome

Discussion and feedback on Construct 2

Post » Wed Apr 16, 2014 6:49 pm

Hi @Ashley

Is it possible to implement Google Wallet IAP so that we can use IAP object for Chrome Web Store games ?


https://developer.chrome.com/webstore/payments-iap

https://github.com/petele/IAPDemo


Thanks
B
84
S
24
G
14
Posts: 391
Reputation: 12,658

Post » Wed Apr 16, 2014 7:57 pm

Interesting, last I looked you needed to run your own server to handle IAP, but looks like this has changed. I'll look in to integrating this with the existing IAP object.
Scirra Founder
B
403
S
238
G
89
Posts: 24,660
Reputation: 196,167

Post » Sat Apr 26, 2014 10:42 am

This would be great! :)
Bl4ckSh33p-Soft - Custom Software and Indie Games
B
58
S
18
G
6
Posts: 756
Reputation: 9,591

Post » Mon Jun 16, 2014 7:19 pm

@Ashley

Can you update the manual on using IAP for Google Wallet ? The IAP was updated with experimental support in R169 but I kinda confuse about how to use it.
I was hoping that you update the manual or give some explanation on how to use it since now you just release stable version R173.

Thanks
B
84
S
24
G
14
Posts: 391
Reputation: 12,658

Post » Mon Jun 16, 2014 10:52 pm

@tumira - there's not much to update, it should work identically to the other platforms. Have you tried it?
Scirra Founder
B
403
S
238
G
89
Posts: 24,660
Reputation: 196,167

Post » Tue Jun 17, 2014 12:08 am

@Ashley

I was afraid that since you didn't mention anything in the stable release note that you cancelled or removed this feature. I'll try to test this feature again after I finished few things. Hopefully everything is going well.
B
84
S
24
G
14
Posts: 391
Reputation: 12,658

Post » Tue Jun 24, 2014 8:01 am

Ashley wrote:@tumira - there's not much to update, it should work identically to the other platforms. Have you tried it?


Ashley, I've tried to use the C2 IAP plugin for a Chromestore game, I call it to load items from the store first and then on button touch to trigger the purhcase of the items (same name as what's added on the store account of the game). No response for fail or success. Nada.

Would be great if Google Wallet IAP works for Chrome!
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Tue Jun 24, 2014 1:40 pm

@Silverforce - you need to use it the same as the other platforms (e.g. adding product IDs first) - see the manual entry for more info. You will probably also need to make sure you've added the product IDs to the app in the developer dashboard, and enabled IAP permission for your app. Once you've done all that does it work? If not are there any messages in the browser error console?
Scirra Founder
B
403
S
238
G
89
Posts: 24,660
Reputation: 196,167

Post » Tue Jun 24, 2014 1:52 pm

Ashley wrote:@Silverforce - you need to use it the same as the other platforms (e.g. adding product IDs first) - see the manual entry for more info. You will probably also need to make sure you've added the product IDs to the app in the developer dashboard, and enabled IAP permission for your app. Once you've done all that does it work? If not are there any messages in the browser error console?


I've added the product ids, as well as in the dashboard.

How do I add the IAP permission from the default export? Just edit the manifest.json under;

"permissions": [
"unlimitedStorage"

slot in what exactly? Just "IAP"?

I've used just the default Chrome export. I added products, request store listing prior to triggering a purchase.

Edit: googled it, add "payment"?.. i'll try this now.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Post » Wed Jun 25, 2014 6:12 am

@Ashley

Ok new build on Chrome with all the aforementioned applied. Does not work, no response.

Have you guys published a simple IAP Chrome app in-house to verify the IAP object works with Google Wallet for Chrome exported apps?

Here's the code, the usual calling it in on start of layout. I even added a second call in on accessing the shop to make sure, tried with both and with single on start layout.
ChromeIAP 01.jpg


User drags buy icon to trigger purchase. The Text triggers fine, but no triggering of purchase.
ChromeIAP 02.jpg


Both conditions for purchase success & fail. None trigger.
ChromeIAP 03.jpg


In the Chrome Dev Dashboard, added both IAP exact name, activated.
You do not have the required permissions to view the files attached to this post.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,616

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 14 guests