playMaker

Author Topic: Prime31 IOS StoreKit with PlayMaker  (Read 17747 times)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #15 on: June 14, 2013, 02:17:29 AM »
Hi,

 it's in the first post of this thread as an attachment. Never made it to the wiki page cause it's still an alpha, it needs proper testing and validation so if it works for you, let me know, and I can promote this to the wiki.

bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #16 on: June 14, 2013, 05:05:20 AM »
Ill be trying to use this next week - have a game that needs 5 coin packs so should be a good test for the actions.

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #17 on: June 26, 2013, 05:05:44 AM »
Finally had a crack at this and So far I think I understand most of it.
Just a few questions thought.

Just looking at the order in which you use the actions and where each one goes, so far I have -
Get can make payments => Request product data => Get product data => Purchase product
Is this correct - and where does the Validate receipt come in :S

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #18 on: June 26, 2013, 05:32:52 AM »
Hi,

 yes correct. The validate receipt comes when you want to check for what was purchased.

read very carefully these two links, it's explaining what are receipt validate and when to do it, how to do it.

http://www.raywenderlich.com/23266/in-app-purchases-in-ios-6-tutorial-consumables-and-receipt-validation

http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/StoreKitGuide/VerifyingStoreReceipts/VerifyingStoreReceipts.html

bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #19 on: June 26, 2013, 06:37:43 AM »
Awesome, thanks for the links too :)

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #20 on: October 24, 2013, 12:04:47 AM »
Finally taking a look at the transaction validation and have a question -\

For the Store kit Get Transaction Data By index, what exactly is the index? where does that come from? how do you get it?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #21 on: October 24, 2013, 01:20:55 AM »
Hi,

the index is simply the "row" in the list returned, so if you have 10 transaction, index 0 if the first transaction returned and 9 is the last.

 do not rely on this to reference transaction during validation, use the transaction id instead, this index is only here to iterate through them,

bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #22 on: October 24, 2013, 01:46:39 AM »
Ah ok, that makes sense. Next question (should be the last) what is the best way to get the transaction id of the current transaction that requires validation?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #23 on: October 24, 2013, 01:58:09 AM »
Hi,

You mean in terms of IAP logic or within PlayMaker custom actions? It's been a long time I haven't tackled IAP, and I can't really remember what was the process for retrieving pending transactions, but to get transactions id, you use the custom action StoreKitGetTransationDataByIndex after you called StorekitGetAllSavedTransactions OR StoreKitRestoreCompletedTransactions.

now, which one you want to call and what to do with them is something you'll ned to read in the Apple IAP doc.


In all cases, you'll have to host a server side system to monitor and buffer transactions if you really want to be secure.

 I should have more time next week to have a proper look with you if you want.

bye,

 Jean

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #24 on: October 24, 2013, 03:37:20 AM »
Security is rather laughable on mobile, if people want to pirate my game .. they will. I've worked on many top mobile games and all have been pirated at some point so I'm not so worried. I'll do some more reading up on it but if I don't have to validate purchases this will be a lot easier.

Marsh

  • Full Member
  • ***
  • Posts: 227
  • Comfort the disturbed, disturb the comfortable
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #25 on: December 15, 2013, 08:37:10 PM »
Sorry to bump such a old topic but is this fully working?

I am considering creating the plugin, but it would be a waste of time if their was already a working copy. Would anyone be interested in something like this?

escpodgames

  • Hero Member
  • *****
  • Posts: 687
    • Assets
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #26 on: December 15, 2013, 08:43:12 PM »
I have half implemented this but have yet to test it :S I hope it works. Otherwise a working version would be very helpful. Maybe testing this one first might be a good option?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #27 on: December 16, 2013, 06:07:05 AM »
Hi,

 Yes, it is working ( at the time of writing it was at least).

I would also suggest giving this solution a go and expand/rewrite if required.

bye,

 Jean

JieAlan

  • Playmaker Newbie
  • *
  • Posts: 24
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #28 on: July 18, 2014, 03:05:23 AM »
does this packge has new version,this one can't work now?
unity 4.3.3, xcode 5.1

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Prime31 IOS StoreKit with PlayMaker
« Reply #29 on: July 18, 2014, 08:15:43 AM »
Hi,

Prime31 assets are rock solid, so they definitly work. Can you paste the errors you get?

bye,

 Jean