playMaker

Author Topic: In App Purchases iOS & Android  (Read 9952 times)

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
    • View Profile
In App Purchases iOS & Android
« on: March 03, 2014, 05:05:23 PM »
Unity In App Purchases for PlayMaker!



Requires Unity 4.3.4 or higher. (Can build lower if this is a issue)
*Requires PlayMaker
*Requires Prime31 In App Purchase iOS Plugin


This plugin implements the Prime31 In App Purchase plugin into PlayMaker.

It is no secret that iOS games make their money from In App Purchases. Turn your hobby or professional product into a revenue generating success!

In App Purchases can be a complicated and tricky process. With this plugins easy
to use step by step documentation implementation is a breeze. A full example scene is provided to guide you through the process. Simple add the corresponding PlayMaker action and you are good to go!




Download Links:
iOS
Bundle
Feel free to post questions or comments / bugs etc. Thanks for any support I receive. If you have a request for another Prime31 plugin or other let me know!

Check Out My Other Plugins!
In App Purchases
Social Plugin - Facebook and Twitter
Google Play Services - Achievements - Leaderboards - Cloud Saving
Vungle - Rich Video Ads
AdMob - Banner Ads from Google
« Last Edit: April 27, 2014, 05:35:44 AM by Marsh »

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
    • View Profile
Re: In App Purchases iOS
« Reply #1 on: March 04, 2014, 06:36:49 PM »
Just curious is no one interested in this or is anyone waiting for the App Store version?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 12098
  • Official Playmaker Support
    • View Profile
Re: In App Purchases iOS
« Reply #2 on: March 05, 2014, 12:14:39 AM »
Hi,

 Give it some time, it's not every day that such thing is needed. Keep advertizing with new samples or how tos, IAP is a best to tackle, especiall when implement securities, so maybe if you show how easy it is with a video or something, then you will likely hook people even more.

Bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 669
    • View Profile
    • Assets
Re: In App Purchases iOS
« Reply #3 on: March 05, 2014, 01:16:00 AM »
Just curious is no one interested in this or is anyone waiting for the App Store version?

Waiting for app store version so I can write a review for ya.

marcos

  • 1.2 Beta
  • Full Member
  • *
  • Posts: 199
    • View Profile
Re: In App Purchases iOS
« Reply #4 on: March 05, 2014, 07:55:09 AM »
Nice!

I'll also be picking this up from the Asset Store. I just simply want to have all of my add-ons in one place :) (Though granted, sometimes I won't have the option.)

Keen to see what you come up with next ;)

Mark

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
    • View Profile
Re: In App Purchases iOS
« Reply #5 on: March 05, 2014, 11:35:03 AM »
Cool, I was just told its under review hopefully it will be up soon :)

kici

  • Junior Playmaker
  • **
  • Posts: 63
    • View Profile
    • KZ Development
Re: In App Purchases iOS
« Reply #6 on: March 05, 2014, 07:09:29 PM »
But I have the "combo" version and would like to be able to use this asset as a combo...

can it do that, because it says iOS on the title so I assume its iOS only?

Let me know if you are planning to upgrade it for both.

Thanks

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
    • View Profile
Re: In App Purchases iOS
« Reply #7 on: March 05, 2014, 07:16:05 PM »
I am planning on making a bundle I am just swamped with a bunch of work in ym real job and with my packages.

If you download this it will work with your combo package. But only on iOS of course.

kici

  • Junior Playmaker
  • **
  • Posts: 63
    • View Profile
    • KZ Development
Re: In App Purchases iOS
« Reply #8 on: March 05, 2014, 07:37:31 PM »
Alright thanks,

I'll keep this forum thread opened that way I can see when you update it for a combo I will get it certainly.

Thanks

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
    • View Profile
Re: In App Purchases iOS & Android
« Reply #9 on: March 11, 2014, 03:59:02 PM »
Combo is now available. Thank you all for the wait.

foxhideous

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: In App Purchases iOS & Android
« Reply #10 on: March 19, 2014, 09:39:35 AM »
Was it taken down? I remember seeing it in the asset store yesterday but I can't seem to find it today.

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
    • View Profile
Re: In App Purchases iOS & Android
« Reply #11 on: March 19, 2014, 03:54:15 PM »
Im still waiting for them to approve it on the store, everytime I ask for a update they say oh yea any day now. So not sure whats up with it. You can buy it on the website if you want though.

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
    • View Profile
Re: In App Purchases iOS & Android
« Reply #12 on: March 31, 2014, 03:42:25 PM »
These are now on the Unity Asset store for anyone who was waiting for it to be official:

https://www.assetstore.unity3d.com/#/content/16003
https://www.assetstore.unity3d.com/#/content/15469

foxhideous

  • Playmaker Newbie
  • *
  • Posts: 8
    • View Profile
Re: In App Purchases iOS & Android
« Reply #13 on: April 05, 2014, 12:06:13 PM »
Got it on the asset store :)

Question, shouldn't "request product data" have a success or error state? Can you also provide a whole working sample where in you press a button and it goes through the whole process of checking and purchasing a non-consumable? I have something setup but I am not sure if it is the proper way to go about it since it goes thru a lot of checks.

Thanks!

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
    • View Profile
Re: In App Purchases iOS & Android
« Reply #14 on: April 05, 2014, 08:12:44 PM »
I have modified Request product data to return a success / failure state. It should be working but I do not currently have access to a mac so I can not test it.

Replace RequestProductData.cs with this: http://pastebin.com/N2QgcYzk
and Replace StoreKitHelper.cs with this: http://pastebin.com/n383En0J

What kind of example would you like? The current example scene does what you are asking. Simply fill in your product data state. Then fill in your Purchase Product 1 state. Now run the example scene and press request product data then Purchase Product 1. It should return a purchase successful / error / canceled.

Pause / Cancel / Resume Downloads / Restore purchases etc etc can be ignored for the current step you are in.