Tried it all
from
http://stackoverflow.com/questions/6524551/android-in-app-billing-item-unavailable/11845536#11845536
-
in sign with public key
-
the version of the Market application in the Device should be 2.3.4 or
higher
-
the device you use for testing must run a standard version of the Android
1.6 or later
-
the application being tested must be uploaded as draft, in the Android
market, and must be signed
-
the application installed in the device must be the same as the one that
was uploaded as draft to the market
-
the device must have a someth...@gmail.com account as its primary
account and this account should be defined as a test account in the Android
market
-
the products for in-app billing in the Android market must have the same
IDs as the ones displayed in the application
- the in-app products in the Android market must be published
- Wait for a couple of hours to make sure settings are migrated to
server.
The problem is that in app purchases for test accounts has worked before.
Now they stopped working for new test users. If I'm using an old test
account that I've used before to buy they work.
in the log I get strange message that I can't find any information about:
E/Finsky ( 1559): [1] CheckoutPurchase.setError:
type=IAB_PERMISSION_ERROR, code=4, message=null
tags: in app purchase, test account, android, RESULT_ITEM_UNAVAILABLE
full log:
I/Unity ( 1889): #Store: Unlock Freemium: True
I/Unity ( 1889): #Store: InitializeStore
D/dalvikvm( 1889): GC_EXTERNAL_ALLOC freed 444K, 58% free 2833K/6727K,
external 2125K/2133K, paused 28ms
I/Prime31 ( 1889): service onServiceConnected
D/Finsky ( 1559): [27] MarketBillingService.getPreferredAccount:
se.itatake.pebbles: Account from first account.
I/Prime31-BS( 1889): CheckBillingSupported response code: RESULT_OK
I/Prime31 ( 1889): billing service active? true
I/Prime31 ( 1889): billing supported: true
I/Unity ( 1889): #Store: unlock billing support : True
I/Unity ( 1889): #Store: restore transactions
D/Finsky ( 1559): [7] MarketBillingService.getPreferredAccount:
se.itatake.pebbles: Account from first account.
D/Finsky ( 1559): [7] MarketBillingService.getPreferredAccount:
se.itatake.pebbles: Account from first account.
I/ElegantRequestDirector( 1559): I/O exception
(org.apache.http.NoHttpResponseException) caught when processing request:
The target server failed to respond
I/ElegantRequestDirector( 1559): Retrying request
D/dalvikvm( 1559): GC_CONCURRENT freed 1244K, 54% free 3733K/8071K,
external K/2686K, paused 7ms+11ms
I/Prime31-BS( 1889): handleCommand() action:
com.android.vending.billing.PURCHASE_STATE_CHANGED
D/Finsky ( 1559): [1] MarketBillingService.sendResponseCode: Sending
response RESULT_OK for request 6436554531222434304 to se.itatake.pebbles.
I/Prime31 ( 1889): billing service active? true
I/Prime31-BS( 1889): total verified purchases: 0
I/Prime31-BS( 1889): handleCommand() action:
com.android.vending.billing.RESPONSE_CODE
D/Prime31-BS( 1889): RestoreTransactions: RESULT_OK
I/Prime31 ( 1889): billing service active? true
D/Prime31 ( 1889): completed RestoreTransactions request
D/DigitalClockWidget Receiver( 961): onReceive:
android.intent.action.TIME_TICK
D/dalvikvm( 961): GC_EXTERNAL_ALLOC freed 11K, 52% free 2590K/5379K,
external 2425K/2428K, paused 49ms
W/CursorWrapperInner( 961): Cursor finalized without prior close()
I/Unity ( 1889): #Store: restored billing completed
I/Unity ( 1889):Want to unlock id: unlock_game_android
I/Unity ( 1889):Has already unlocked in restore so skip?: False
I/Unity ( 1889): unlock now: unlock_game_android
D/Finsky ( 1559): [27] MarketBillingService.getPreferredAccount:
se.itatake.pebbles: Account from first account.
D/Finsky ( 1559): [27] MarketBillingService.getPreferredAccount:
se.itatake.pebbles: Account from first account.
I/ActivityManager( 202): Starting: Intent { act=android.intent.action.VIEW
cmp=com.android.vending/com.google.android.finsky.activities.IabActivity
(has extras) } from pid -1
W/ActivityManager( 202): Activity pause timeout for HistoryRecord{2b435080
se.itatake.pebbles/com.unity3d.player.UnityPlayerNativeActivity}
D/Finsky ( 1559): [1] SelfUpdateScheduler.checkForSelfUpdate: Skipping
self-update. Local Version [8013015] >= Server Version [0]
I/CustomizationProvider( 529): No configuration file:
/system/etc/customization/settings/com/sonyericsson/textinput/uxp/custom_settings.xml
I/ActivityManager( 202): Displayed
com.android.vending/com.google.android.finsky.activities.IabActivity: +320ms
D/Unity ( 1889): onDetachedFromWindow
W/InputManagerService( 202): Client not active, ignoring focus gain of:
com.android.internal.view.IInputMethodClient$Stub$Proxy@2b05d020
D/kernel ( 120): [ 5603.621337] AKM8975 AKECS_GetCloseStatus returned (0)
D