Some issues with IAP on ios

Monkey Forums/Monkey Programming/Some issues with IAP on ios

Raul(Posted 2014) [#1]
That's strange and quite urgent that's why I am opening a topic here.

As I said here: http://www.monkey-x.com/Community/posts.php?topic=7708 I am experiencing some strange issues:

I have made the application on itunes, added the IAPs, uploaded the binary, rejected it.

The problem is that after I opening the store, when I try to setup an iap product, it returns NULL and if I try to buy it or access any stats: price, id, etc. the app is crashing.

I made this game for a client. I have access to the itunes and verified the settings. The app is now in Waiting for Upload. The IAPs are in Waiting for Review.

I really need some help here ASAP. :(


Danilo(Posted 2014) [#2]
For the crash, you always should check returned objects.
iap1 = _store.GetProduct("com.appbundle.10000credits")
iap2 = _store.GetProduct("com.appbundle.20000credits")		
If iap1 Then Print "Price: " + iap1.Price()
If iap2 Then Print "Price: " + iap2.Price()
    
If iap1
    ' OK
Else
    ' Error
EndIf

For the Why it returns NULL/0, don't know. Maybe wrong name, IAPs not approved, etc.


Raul(Posted 2014) [#3]
@Danilo,

I double checked the names.. 100 times.
IAPs are in Waiting for Review. They are not approved until the app is approved, but are in testing now :D