Several "purchased" states on only one store.purchase() - Please Urgent Help! :S

Today i tried to test a IAP on Android, i’ve done this within my game some times before, and now with the latest version i wanted to start fresh and i uninstalled the app, then i reinstalled and tried to buy something, and it gave me 3 “items”!!! my items are “unmanaged” and I NEVER call store.restore(), only store.purchase(), could it be possible that it gave me back my “former” purchases from a month ago (even though they are unmanaged and never restore the purchases? In the debug i can see the three items have the same transaction identifier! please help! i’m just waiting for this to publish my app
 

by the way, it only charged me once

Code?

function doBuy(pack) store.purchase( { "paquete\_" .. pack} ) end function listenerTransaction(event) local transaction = event.transaction if ( transaction.state == "purchased" ) then print( "productIdentifier", transaction.productIdentifier ) print( "receipt", transaction.receipt ) print( "signature:", transaction.signature ) print( "transactionIdentifier", transaction.identifier ) print( "date", transaction.date ) local whichPackWasBought = {} if(transaction.productIdentifier == "paquete\_1") then whichPackWasBought = 1 elseif(transaction.productIdentifier == "paquete\_2") then whichPackWasBought = 2 elseif(transaction.productIdentifier == "paquete\_3") then whichPackWasBought = 3 elseif(transaction.productIdentifier == "paquete\_4") then whichPackWasBought = 4 elseif(transaction.productIdentifier == "paquete\_5") then whichPackWasBought = 5 end givePack(whichPackWasBought) elseif ( transaction.state == "cancelled" ) then --show message for cancelled elseif ( transaction.state == "failed" ) then --show message for failed end store.finishTransaction( event.transaction ) end

I have similar problem. IAPP for Android is not working for my game so I have build and run the InAppPurchase sample code.

Behaves the same with the builds 2013.1137 and 2013.1210 I test on Android 2.2 PlayStore App version4.3.11

Testing static transactions with debug key after pressing the button initiating purchase with product ID “android.test.purchased” just once as a response I get:

D/Finsky ( 529): [28] InAppBillingUtils.getPreferredAccount: com.blerdo.iap: Account from first account - [3i-CtX1f7ttUKnqpW9rhtaB3Xrw] D/Finsky ( 529): [28] InAppBillingUtils.getPreferredAccount: com.blerdo.iap: Account from first account - [3i-CtX1f7ttUKnqpW9rhtaB3Xrw] I/Resources( 529): Loaded time zone names for en\_US in 131ms. D/Finsky ( 529): [1] 2.onResponse: Notification [CYkD4d\_T4VGf] successfully ack'd. D/Finsky ( 529): [1] MarketBillingService.sendResponseCode: Sending response RESULT\_OK for request 2138407441377355258 to com.blerdo.iap. I/Corona ( 5424): transactionCallback: Received event storeTransaction I/Corona ( 5424): state: purchased I/Corona ( 5424): errorType: none I/Corona ( 5424): errorString: I/Corona ( 5424): Transaction successful! I/Corona ( 5424): receipt: {"nonce":8469910459479482456,"orders":[{"notificationId":"android.test.purchased","orderId":"transactionId.android.test.purchased","packageName":"com.blerdo.iap","productId":"android.test.purchased","purchaseTime":1379745930026,"purchaseState":0}]} I/Corona ( 5424): signature: D/Finsky ( 529): [34] InAppBillingUtils.getPreferredAccount: com.blerdo.iap: Account from first account - [3i-CtX1f7ttUKnqpW9rhtaB3Xrw] D/Finsky ( 529): [34] InAppBillingUtils.getPreferredAccount: com.blerdo.iap: Account from first account - [3i-CtX1f7ttUKnqpW9rhtaB3Xrw] E/Finsky ( 529): [1] NotifyingErrorListener.onErrorResponse: Server error on InAppPurchaseInformationRequest: com.android.volley.ServerError D/Finsky ( 529): [1] MarketBillingService.sendResponseCode: Sending response RESULT\_SERVICE\_UNAVAILABLE for request 5685234459194424788 to com.blerdo.iap. I/Corona ( 5424): transactionCallback: Received event storeTransaction I/Corona ( 5424): state: failed I/Corona ( 5424): errorType: invalidClient I/Corona ( 5424): errorString: I/Corona ( 5424): Transaction failed, type: invalidClient

are you calling store.restore() somewhere?

never, also the items are unmanaged

Daniel, Reboot your android device, this is a known problem with androidOS (really has nothing to do with Corona) that you will spend hours trying to debug :slight_smile: Chris

by the way, it only charged me once

Code?

function doBuy(pack) store.purchase( { "paquete\_" .. pack} ) end function listenerTransaction(event) local transaction = event.transaction if ( transaction.state == "purchased" ) then print( "productIdentifier", transaction.productIdentifier ) print( "receipt", transaction.receipt ) print( "signature:", transaction.signature ) print( "transactionIdentifier", transaction.identifier ) print( "date", transaction.date ) local whichPackWasBought = {} if(transaction.productIdentifier == "paquete\_1") then whichPackWasBought = 1 elseif(transaction.productIdentifier == "paquete\_2") then whichPackWasBought = 2 elseif(transaction.productIdentifier == "paquete\_3") then whichPackWasBought = 3 elseif(transaction.productIdentifier == "paquete\_4") then whichPackWasBought = 4 elseif(transaction.productIdentifier == "paquete\_5") then whichPackWasBought = 5 end givePack(whichPackWasBought) elseif ( transaction.state == "cancelled" ) then --show message for cancelled elseif ( transaction.state == "failed" ) then --show message for failed end store.finishTransaction( event.transaction ) end

I have similar problem. IAPP for Android is not working for my game so I have build and run the InAppPurchase sample code.

Behaves the same with the builds 2013.1137 and 2013.1210 I test on Android 2.2 PlayStore App version4.3.11

Testing static transactions with debug key after pressing the button initiating purchase with product ID “android.test.purchased” just once as a response I get:

D/Finsky ( 529): [28] InAppBillingUtils.getPreferredAccount: com.blerdo.iap: Account from first account - [3i-CtX1f7ttUKnqpW9rhtaB3Xrw] D/Finsky ( 529): [28] InAppBillingUtils.getPreferredAccount: com.blerdo.iap: Account from first account - [3i-CtX1f7ttUKnqpW9rhtaB3Xrw] I/Resources( 529): Loaded time zone names for en\_US in 131ms. D/Finsky ( 529): [1] 2.onResponse: Notification [CYkD4d\_T4VGf] successfully ack'd. D/Finsky ( 529): [1] MarketBillingService.sendResponseCode: Sending response RESULT\_OK for request 2138407441377355258 to com.blerdo.iap. I/Corona ( 5424): transactionCallback: Received event storeTransaction I/Corona ( 5424): state: purchased I/Corona ( 5424): errorType: none I/Corona ( 5424): errorString: I/Corona ( 5424): Transaction successful! I/Corona ( 5424): receipt: {"nonce":8469910459479482456,"orders":[{"notificationId":"android.test.purchased","orderId":"transactionId.android.test.purchased","packageName":"com.blerdo.iap","productId":"android.test.purchased","purchaseTime":1379745930026,"purchaseState":0}]} I/Corona ( 5424): signature: D/Finsky ( 529): [34] InAppBillingUtils.getPreferredAccount: com.blerdo.iap: Account from first account - [3i-CtX1f7ttUKnqpW9rhtaB3Xrw] D/Finsky ( 529): [34] InAppBillingUtils.getPreferredAccount: com.blerdo.iap: Account from first account - [3i-CtX1f7ttUKnqpW9rhtaB3Xrw] E/Finsky ( 529): [1] NotifyingErrorListener.onErrorResponse: Server error on InAppPurchaseInformationRequest: com.android.volley.ServerError D/Finsky ( 529): [1] MarketBillingService.sendResponseCode: Sending response RESULT\_SERVICE\_UNAVAILABLE for request 5685234459194424788 to com.blerdo.iap. I/Corona ( 5424): transactionCallback: Received event storeTransaction I/Corona ( 5424): state: failed I/Corona ( 5424): errorType: invalidClient I/Corona ( 5424): errorString: I/Corona ( 5424): Transaction failed, type: invalidClient

are you calling store.restore() somewhere?

never, also the items are unmanaged

Daniel, Reboot your android device, this is a known problem with androidOS (really has nothing to do with Corona) that you will spend hours trying to debug :slight_smile: Chris