Closed marksolar2d closed 4 months ago
Thank you for reporting. Fixed plugin is up
Getting there... but event.transaction.identifier
is an empty string then the purchase is delayed. I cache this between sessions to know if the purchase was previously made in a different session and to award the player.
07-08 19:10:31.006 4344 11045 I Corona : [name] => "storeTransaction"
07-08 19:10:31.006 4344 11045 I Corona : [transaction] => table: 0xb400006e3b157900 {
07-08 19:10:31.006 4344 11045 I Corona : [identifier] => ""
This value is correctly filled when the "purchased" state is returned.
07-08 19:11:30.009 4344 11045 I Corona : [name] => "storeTransaction"
07-08 19:11:30.009 4344 11045 I Corona : [transaction] => table: 0xb400006e5c612380 {
07-08 19:11:30.009 4344 11045 I Corona : [identifier] => "GPA.3323-3709-3556-17193"
I see... It seems that now [getOrderId](https://developer.android.com/reference/com/android/billingclient/api/Purchase#getOrderId()) which is matched to the identifier
field won't be set unless state is purchased
.
Normal purchases work as expected but pending/delayed purchases fail. There is no callback to
storeTransaction(event)
Tested with live SKUs using this test code
Here is the log