Setting the AutoFinishTransaction is false in the in-app sdk will not cause a callback event

cocos2d-x version: Lua 3.15

sdkbox version: Lua 2.4.3

Setting the AutoFinishTransaction is false in the in-app sdk will not cause a callback event.

If I try again, I get an error that I have already made a purchase.

The callback event should be handled so that we can handle the receipt and finally FinishTransaction can be handled.

Please help me.

thank for feedback, we will check this issue.

i tried, i can get onSuccess after purchase with autofinishtransaction is false.

test with https://github.com/sdkbox/sdkbox-sample-iap/tree/master/lua

@htlxyz thank for reply.

I tried testing Android, log is succeed but callback will not.

android logcat

   Expected item type: inapp
       Success!
        Pending purchase signature validation.

If you buy an item that you have already purchased, you get an error on Android, but there is no callback.

01-15 11:43:41.679 2950-2994/com.test.test D/IAP: payForProduct invoked com.test.test.ruby1 and type: 0
01-15 11:43:41.680 2950-2994/com.test.test D/IAP: NetWork reachable : true
01-15 11:43:41.681 2950-2950/com.test.test D/IAP: Starting async operation: launchPurchaseFlow
    Constructing buy intent for com.test.test.ruby1, item type: inapp
01-15 11:43:41.697 2950-2950/com.test.test E/IAP: Unable to buy item, Error response: 7:Item Already Owned
01-15 11:43:41.697 2950-2950/com.test.test D/IAP: Ending async operation: launchPurchaseFlow

can you tried https://github.com/sdkbox/sdkbox-sample-iap/tree/master/lua with your google billing config

let me make myself clear:

  1. invoke setAutoFinishTransaction(false)
  2. compile and run
  3. purchase product coin_package
  4. get onSuccess event
  5. purchase product coin_package again
  6. get onFailed event

@htlxyz thank for reply.
It was a bug caused by the old sdk remaining. This was due to the PluginGooglePlay.jar file. Thank you.