I was unable to get the official iAP object working. According to posts I read on the forum some of the conditions don't work with the offical iAP, like 'On purchase success'. According to a post I read by Kyatric you can get it working by using the 'has product id' condition, but I wasn't able to get it working with that.
So I switched to using the Cranberrygame CordovaiAP plugin. I have that working for Android, but I haven't yet succeeded in getting it to work for iOS.
I'll be working on this exact problem today. I *think* other people have the CordovaiAP working on iOS, but im currently looking into it.
Two useful example capx files can be found in this tutorial by Kyatric and the 'CordovaInApp' example posted by —
These two files should give you an idea of how to set up the events to get iAP working.
I'd be very interested to hear advice from anyone who has the CordovaiAP working with iOS.