One single transaction, a stream of transactionCallBack execution

Hi everyone,

I tried making a test in app purchase with my app. Google then cancelled my transaction stating that my account is still on hold. By that, I expected only one alert stating that transaction is cancelled but there was a lot of the same alert appearing like the transactionCallBack is called again and again and again. It does not stop.

I already made sure that store.finishTransaction is at the bottom as stated in the tutorial, I even made an alert after the store.finishTransaction is called to make sure that it goes to execute that line.

Can anyone help me with what is wrong?

Thanks,
Jazer
[import]uid: 186199 topic_id: 34735 reply_id: 334735[/import]

Looked at the log file:

and found this being generated over and over and over again:

01-09 11:57:45.483: D/Finsky(4760): [224] MarketBillingService.getPreferredAccount: com.lazywebguys.syncroz: Account from first account.

01-09 11:57:45.758: D/Finsky(4760): [1] MarketBillingService.sendResponseCode: Sending response RESULT_OK for request 6931756513175692703 to com.lazywebguys.syncroz.

I already tried deleting the app but when I installed it again, it keeps on receiving notifications from google and keeps on executing the alert. [import]uid: 186199 topic_id: 34735 reply_id: 138010[/import]

Hi Jazer,

It may be possible that you forgot to check the event phase on touch event.
So you may be calling store.purchase() function more than one time.

Can you make sure the touch event is handled properly. You can consider disabling the ‘BUY’ button
on began phase and enabling again on Transaction CallBack Function.

Thanks
Devon [import]uid: 40227 topic_id: 34735 reply_id: 138045[/import]

I have set the call back function this way:

onRelease = onButtonRelease

I was able to implement the same codes on an iOS build with no problem.

Thanks,
Jazer [import]uid: 186199 topic_id: 34735 reply_id: 138046[/import]

Looked at the log file:

and found this being generated over and over and over again:

01-09 11:57:45.483: D/Finsky(4760): [224] MarketBillingService.getPreferredAccount: com.lazywebguys.syncroz: Account from first account.

01-09 11:57:45.758: D/Finsky(4760): [1] MarketBillingService.sendResponseCode: Sending response RESULT_OK for request 6931756513175692703 to com.lazywebguys.syncroz.

I already tried deleting the app but when I installed it again, it keeps on receiving notifications from google and keeps on executing the alert. [import]uid: 186199 topic_id: 34735 reply_id: 138010[/import]

Hi Jazer,

It may be possible that you forgot to check the event phase on touch event.
So you may be calling store.purchase() function more than one time.

Can you make sure the touch event is handled properly. You can consider disabling the ‘BUY’ button
on began phase and enabling again on Transaction CallBack Function.

Thanks
Devon [import]uid: 40227 topic_id: 34735 reply_id: 138045[/import]

I have set the call back function this way:

onRelease = onButtonRelease

I was able to implement the same codes on an iOS build with no problem.

Thanks,
Jazer [import]uid: 186199 topic_id: 34735 reply_id: 138046[/import]

Did you find any solution? I also make sure my store.finishTransaction() is called, but still, the next purchase will still return A LOT of transaction.
And it seems like accumulating. Wonder if this is a bug of store.finishTransaction() [import]uid: 143031 topic_id: 34735 reply_id: 140886[/import]

Did you find any solution? I also make sure my store.finishTransaction() is called, but still, the next purchase will still return A LOT of transaction.
And it seems like accumulating. Wonder if this is a bug of store.finishTransaction() [import]uid: 143031 topic_id: 34735 reply_id: 140886[/import]