Setup: mobile game for android.
After reading extension-iap tutorial, api reference, google’s tutorial on billing, looking at extension-iap demo project and checking out different topic on this forum, I still have some questions about implementing IAP using extension-iap.
-
Where to put
iap-finish(transaction)
andiap.acknowledge(transaction)
? API reference states “The transaction.state field must equal iap.TRANS_STATE_PURCHASED.”. So iftransaction.state
is something else, I do not have to finish or acknowledge the transaction? And what is the difference between those two? - Do I need to do anything special when the transaction.state is NOT PURCHASED, but something else?
-
Dealing with slow card responses. How to correctly deal with slow card responses? When testing slow test card, I sometimes get the same error as described in this post., but since a succesful transaction will still finish with
TRANS_STATE_PURCHASING
, I can live with that. My game will give the user the bought product only wheniap.TRANS_STATE_PURCHASING
message is fetched with iap-listener.
But what happens if the user exits the game before that happens? Will callingiap.list()
or settingiap.set_listener(iap_listener)
check for unverified purchases? If not, is there a way to do that?
Or will such transaction never be verified (and be refunded by google play after three days)…