Description

Try my new Mobile Game Development Course 75% OFF!

EASY IAP FOR ANDROID

ALL CODE IS HEAVILY COMMENTED AND EXAMPLES ARE PROVIDED IN COMMENTS AS WELL

This is not designed for the Amazon store.

As for IOS I currently do not have a way to test on IOS so as of right now I am saying might be compatible with IOS. When I am able to test on IOS and know it works I will update. If you use this in IOS you will need to add a button that restores a users IAP they have made with the iap_restore_all() function.

The goal of this asset is make it easier for you the user to apply IAP for your Android or IOS games. There are 3 primary scripts in which this asset is made of.

scr_IapInit This is the script that will init your iap purchases instructions to add or remove purchases are provided in this script

scr_IapLoadPurchaseData This script loads weither or not the non consumable IAP has been purchased or not and loads ini values

scr_IapConsume this script runs in the iap event of the 3 buttons for purchases in this example and based on which purchase is made acts accordingly

IMPORTANT When using IAP you must go to global game settings go to IAP tab and enter your public id found in the google dev console open your app go to services and api and check enable IAP to add iap on google dev console you would go into your app go to in app products and add from there create your product ids Make sure you have all extensions for google installed to Gamemaker Studio. Almost all support e-mails I receive are related to this and solved by double checking the Google ext Extensions GooglePlayServicesExtension GooglePlayLicensingExtension and GooglePlayServicesIAPExtension are required. Make sure when testing your app you are NOT on your dev account.

End User Licence Agreement (EULA).

Version 2.0.0. Published October 16, 2016

Created with GameMaker: Studio v1.4.1763

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.


Gravatar

LEE S 24 December 2017

Great! i want gms2 version.

I am waiting for the gms2 version.


Gravatar

Anonymous 13 December 2017

Great and easy


Gravatar

Denis A 26 July 2017

Is not working with GM2

Would you like to provide some instruction on how I can fix that?

Logo

Synthetic Pixel Games (Publisher) 14 July 2018

I currently do not own Mobile Export for GMS2 so I am unable to provide you information about how to make it work with GMS2. This asset is NOT listed as a GMS2 project. There are changes in the implementation of IAP in GMS2. When I have the android export module I will make a version for GMS2.


Gravatar

Brian C 15 July 2017

Easy to understand and it works great!

Worked great for me on both iOS and Android!


Gravatar

Bastian P 25 April 2017

easy to implement and does its job

its very easy to build in, the code is perfectly commented. works almost out of the box. the service is friendly, helpful, fast and nice.


Gravatar

Robert R 24 March 2017

Logo

Synthetic Pixel Games (Publisher) 29 March 2017

Thanks for the awesome 5 stars.


Gravatar

Jozsef R 20 March 2017

Worked for me.

On Android perfectly worked. I think something is missing for me on IOS. Itunes everything set up. But when I clicked to buy button, I have to write my account's password and after when I write my password nothing happend. Do you have any ideas whats the problem for me? Any extension needed or something? IAPs approved in Itunes. (GM 1.4)

Tipp: You should write in comments that: GooglePlayServicesExtension and GooglePlayServicesIAPExtension are needed to work.

Secure Save isn't worked for me so I think your solution is better. (I didn't use non-consume IAP)

Logo

Synthetic Pixel Games (Publisher) 29 March 2017

Thank you for the 5 Stars. Currently I do not have access to an IOS device or service to do any troubleshooting. In asset description I advice about not being able to test on IOS. I do know you need to include a iap_restore_all() in your IOS apps with IAP. as a button. I have also updated the description to show those specific extensions. This asset was orginally written before the extensions was moved outside of GMS source.


Gravatar

Rudi K 11 January 2017

its ok

Async Save/load and secure save will be cleaner, but ok for fast use.


Gravatar

Stuart L 29 November 2016

Great Extension -Simple to use, well commented

Thanks for this. I set up IAP to remove ads from my game and this saved me so much time. All the scripts are clearly commented for whatever purpose you need IAP for.

Logo

Synthetic Pixel Games (Publisher) 04 December 2016

Thank you I am glad my IAP asset helped you! Thank you for the 5 star rating as well!


Gravatar

Vincent v 07 November 2016

Used to work but since Oct 18th update no longer

This asset used to work perfectly until Google Play Services / Licensing & APK Extensions updated. Now I got my iOS IAP working but Android no longer works.

Logo

Synthetic Pixel Games (Publisher) 28 February 2017

Nov 14th Can you tell me how it no longer works?? There should be no issues. What error messages are you getting? I need more to go on than "Its not working any more.". I've not encountered any issues on my side. Please let me know so I can fix if needed. Thanks.

Update December 4th This user has yet to even contact me. I have not been able to replicate any issues so it appears the asset is working fine. If any one has any issues please feel free to contact me. syntheticpixelgames@gmail.com

Also a suggestion is to make sure you have all extensions for google installed to Gamemaker Studio. Almost all support e-mails I receive are related to this and solved by double checking the Google extensions.


Gravatar

Jesse S 07 August 2017

5/5 Saved a lot of my time!

I struggled days trying to implement IAPs to my game. Then decided to check Marketplace and found this. After reading the tutorials and checking the examples, I got IAPs working maybe in less than 30 minutes! Everything was very easy and simple. Code was well commented. Many thanks for this! Couldn't be happier :) Really recommended to anyone wanting IAPs done easily!
EDIT: Works nicely with GM2. So far I've used this for Android games with no problems. Planning to buy Mac soon. I noticed in description that this should work for iOS games too but you haven't tested it though. Is this still untested with iOS games, does it work?

Logo

Synthetic Pixel Games (Publisher) 16 October 2016

Thank you so much for the awesome review I am happy you found this easy IAP asset helpful.


Gravatar

Burak A 14 October 2016

Good Demo

Easy to understand. Good Example. But i have a question. How does the "scr_IapInit" work? It isn't executed anywhere, but it magically works. I spent my time to look for it :D

This review was left for a previous version of this asset.

Logo

Synthetic Pixel Games (Publisher) 16 October 2016

Thanks for the awesome review. To answer your question its used in the init room. I have updated the read me to show the location of the scr_IapInit script for future reference.


Gravatar

Kevin C 23 August 2016

Fantastic!

Bought it had issues but it was my fault I was using the wrong .Apk.... The IAP file works flawlessly and very easy to implement aswell! I would recommend it.

This review was left for a previous version of this asset.

Logo

Synthetic Pixel Games (Publisher) 22 October 2016

Thank you for the awesome review. I am glad you found this asset helpful. Thanks again.


Gravatar

Alex A 05 February 2017

What changed?

What changed in version 2.0? I previously had IAP working with 1.0 but now it doesn't work and im not seeing any visible changes in 2.0?

Logo

Synthetic Pixel Games (Publisher) 12 April 2017

Thank you for the 5 stars and nothing changed. The last update was comment fixes. Also there seems to be a bug right now with GMS in regards to some IAP causing crashes. Its been fixed but wont be updated till the next release update for GMS.


Gravatar

Sandeep S 26 May 2016

Help Please!!!

Hi I just download IAP and add to my android project so my question is how do I make unlock character with IAP...

This review was left for a previous version of this asset.

Logo

Synthetic Pixel Games (Publisher) 14 June 2016

if you need assistance you need to use the contact developer button to send a message. Also to answer your question simply make a variable for the character to be true or false if true then be able to select character else can't select character. Have it set to true and saved when IAP purchase is complete.


Gravatar

Andre M 10 March 2016

Works great!

In app purchases at first seemed kind of rough in terms of where to start, but after purchasing this, it was really easy to follow the flow and overall make me confident in the whole setup process. Great little extension for iap, would recommend it to anyone. And as always, the code is easy to read and the comments are well fleshed out.

This review was left for a previous version of this asset.

Logo

Synthetic Pixel Games (Publisher) 21 March 2016

Thank you for the awesome Review! I am glad you found this asset helpful! :)


Gravatar

Justin C 26 January 2016

Easy, just like the title

Very well comments and read me. Made it extremely useful to add IAP. I did have an issue at first but after emailing the publisher, they sent an email back with a solution and all is well now. If you want to add IAP and not sure how to do it, I recommend this one.

This review was left for a previous version of this asset.

Logo

Synthetic Pixel Games (Publisher) 26 January 2016

I am glad you found this useful! Thank you very much for the awesome review! GL on all your endeavors.


Gravatar

Timothy R 06 August 2015

A life saver for me !!!

I have been strugging with IAP for many weeks. I have tried following the Yo Yo Games / GMS provided examples / test code with limited success. Decided to try your code and it works perfectly. One minor bit of constructive criticism ... in your scr_Iap_Consume script, the "rinse and repeat" approach uses an unnecessary amount of code to accomplish a task that might be better handled using a "switch" code block. Just my opinion. My guess is that you coded in the manner you did to make it clearer to users still struggling with GML.

This review was left for a previous version of this asset.

Logo

Synthetic Pixel Games (Publisher) 11 December 2015

Thank you very much for the awesome review! I'm glad it helped you out. Also yes you are correct I did it that to try and make it as clear as possible so people still new to gml and coding in general can get a better idea of whats going on.


Gravatar

ebenezer a 23 April 2015

It Works \(^o^)/

Great Asset, i can now have in app purchases in my games

I encountered a few problems but support was very quick to respond and very helpful.

This review was left for a previous version of this asset.

Logo

Synthetic Pixel Games (Publisher) 04 December 2016

Thank you for the awesome rating!

Package contents

Loading, please wait

What is the issue?

Back to Top