transaction.state == "consumed" in iOS

Hi there,

I am a newbie and I’m developing a game with IAP .

I’ve done the android IAP but when I moving to the iOS IAP.

I found that there’s no transaction.state == “consumed” event in iOS compare to android.

Is there any advisement for me or any sample code related to the IAP of iOS?

Best 

Vincent

Hi Vincent,

With iOS, you don’t need to worry about “consuming” products yourself. If you buy a consumable product like a “coin pack”, it’s just handled as a “purchased” product and you can move on.

Brent

P.S. - Not sure how you’re handling your IAP setup, but I highly advise IAP Badger. It just makes IAP vastly easier in almost every way, and even includes an “inventory” system and basic obfuscation methods to deter casual hackers. I am not associated with the developer in any way, I’m simply stating my opinion based on my highly favorable and pleasant experience using IAP Badger within a personal project.

Hi Brent , 

Thanks for your quick reply

I’ll try it 

Best

Vincent

Hi Brent,

By using the IAP Badger,

How can I make sure the transaction is sucessfully so I can give the gold to user?

Best

Vincent

Hi Vincent,

Take a look at the documention for IAP Badger. I managed to figure out a basic setup for one of my side projects in under 45 minutes… a pretty miraculous thing, considering the overwhelming complexity that in-app purchasing typically entails.

They even have basic templates for download, I think… I crafted my own based on the docs, but even that was pleasantly easy. :slight_smile:

http://happymongoosegames.co.uk/iapbadger.php

Brent

Hi Brent,

Thank, It’s done!

Best

Vincent

Hi Vincent,

With iOS, you don’t need to worry about “consuming” products yourself. If you buy a consumable product like a “coin pack”, it’s just handled as a “purchased” product and you can move on.

Brent

P.S. - Not sure how you’re handling your IAP setup, but I highly advise IAP Badger. It just makes IAP vastly easier in almost every way, and even includes an “inventory” system and basic obfuscation methods to deter casual hackers. I am not associated with the developer in any way, I’m simply stating my opinion based on my highly favorable and pleasant experience using IAP Badger within a personal project.

Hi Brent , 

Thanks for your quick reply

I’ll try it 

Best

Vincent

Hi Brent,

By using the IAP Badger,

How can I make sure the transaction is sucessfully so I can give the gold to user?

Best

Vincent

Hi Vincent,

Take a look at the documention for IAP Badger. I managed to figure out a basic setup for one of my side projects in under 45 minutes… a pretty miraculous thing, considering the overwhelming complexity that in-app purchasing typically entails.

They even have basic templates for download, I think… I crafted my own based on the docs, but even that was pleasantly easy. :slight_smile:

http://happymongoosegames.co.uk/iapbadger.php

Brent

Hi Brent,

Thank, It’s done!

Best

Vincent