Some completed in-app purchases are not listet in my google play console order history

Hi,

I have implemented an event every time a user buys an IAP. But not every purchase is listed in my google play order history. The most transaction are visible immediately, and some are still not listed after a week. How is this possible? Here is the code of the iap listener:

local function iapListener(event) local transaction = event.transaction if ( transaction.state == "purchased" ) then -- deliver hints settings:addHints() -- we have to consume the hints in order to enable rebuying them store.consumePurchase( transaction.productIdentifier ) -- send event Analytics:sendBoughtHints(howManyHints, settings.openedLevels) elseif ( transaction.state == "cancelled" ) then --handle a cancelled transaction here elseif ( transaction.state == "failed" ) then --handle a failed transaction here local alert = native.showAlert( "Transaction failed", tostring( event.transaction.errorString ) , {"OK"} ) end end

HI @sunmils,

Where are you viewing the purchase history? Directly in your Google Play account, or through the analytics you’re using (I can’t know which you’re using, but whatever you’re calling with “Analytics:…” and so forth).

Brent

The Analytics call is just an coronium custom event. Through this event I get notice about purchases that are not listet in my order history within the google play console (play.google.com/apps/publish/…).

I can not imagine how this can be possible, cause the “purchased” event should only be triggered if the purchase went successful trough the play store process.

Thanks

Michael

Hi Michael,

So Google Play itself is not reporting your IAP history properly? That seems odd to say the least… especially after a reasonable amount of “update” time has elapsed…

Personally, I would add a check for “consumed” and do your event logging and finalise the transaction in that state.

if transaction.state == "consumed" then  settings:addHints()   store.finishTransaction( transaction )  Analytics:sendBoughtHints(howManyHints, settings.openedLevels)     end

Otherwise your IAPs can be permanently locked.

HI @sunmils,

Where are you viewing the purchase history? Directly in your Google Play account, or through the analytics you’re using (I can’t know which you’re using, but whatever you’re calling with “Analytics:…” and so forth).

Brent

The Analytics call is just an coronium custom event. Through this event I get notice about purchases that are not listet in my order history within the google play console (play.google.com/apps/publish/…).

I can not imagine how this can be possible, cause the “purchased” event should only be triggered if the purchase went successful trough the play store process.

Thanks

Michael

Hi Michael,

So Google Play itself is not reporting your IAP history properly? That seems odd to say the least… especially after a reasonable amount of “update” time has elapsed…

Personally, I would add a check for “consumed” and do your event logging and finalise the transaction in that state.

if transaction.state == "consumed" then  settings:addHints()   store.finishTransaction( transaction )  Analytics:sendBoughtHints(howManyHints, settings.openedLevels)     end

Otherwise your IAPs can be permanently locked.