pbs0512
#1
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.
htlxyz
#2
thank for feedback, we will check this issue.
htlxyz
#3
i tried, i can get onSuccess after purchase with autofinishtransaction is false.
test with https://github.com/sdkbox/sdkbox-sample-iap/tree/master/lua
pbs0512
#4
@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
htlxyz
#5
can you tried https://github.com/sdkbox/sdkbox-sample-iap/tree/master/lua with your google billing config
let me make myself clear:
- invoke
setAutoFinishTransaction(false)
- compile and run
- purchase product
coin_package
- get
onSuccess
event
- purchase product
coin_package
again
- get
onFailed
event
pbs0512
#6
@htlxyz thank for reply.
It was a bug caused by the old sdk remaining. This was due to the PluginGooglePlay.jar file. Thank you.