duccong / marketbilling

Automatically exported from code.google.com/p/marketbilling
0 stars 0 forks source link

IAP inconsistently succeeds and fails on same device with same billing information #41

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
STEPS TO REPRODUCE:
Buying IAP sometimes results in a failure with authorization and the order 
being canceled, but this doesn't happen consistently - judging from our 
Merchant account page, we see people being able to successfully complete, then 
fail, then complete transactions, so it seems like inconsistent behavior from 
the Google side. We have been able to reproduce this by trying to purchase IAP 
multiple times in a row.

EXPECTED OUTPUT:
IAP should work consistently.

ACTUAL OUTPUT:
IAP inconsistently works/fails.

AFFECTED ORDER IDS (IF RELEVANT):
Here are some orders from our dev device:
102285479967956
848239623232633
918511557314140

OS VERSION:
2.3.4

MARKET/MYAPPS VERSION:
Market 2.3.6

DEVICE:
Nexus One

OUTPUT FROM ADB BUGREPORT ATTACHED:
(Note: The output from "adb bugreport" is required for all bug reports.)
Here's the relevant portions, full log attached:

08-15 11:12:06.810 D/vending (  486): [1] BaseBuyPageActivity.onPostResponse(): 
{PurchaseResult=OK, PurchaseInfo=PurchaseInfo=, SignupStatus=SIGNED_UP, 
TId=502944024177339, ShoppingCart=[ItemPrice=US$0.99, TaxInclusive=, 
TaxExclusive=, Total=US$0.99, HasTaxMessage=false, TaxMessage=null, 
HasFooterMessage=false, FooterMessage=null], RefundPolicy=<b>This in-app 
purchase cannot be refunded.</b> <br/> <a 
href="http://market.android.com/support/bin/answer.py?answer=1061913">More 
info</a>, Instruments=[[Id=503265315279948, Name=VISA xxx-6010 Invalid=false 
Type=CREDIT_CARD] [Id=215643372184396, Name=Unusable for this purchase: VISA 
xxx-6010 Invalid=true Type=CREDIT_CARD] ], 
DefaultBillingInstrument=503265315279948, ErrorFields=[]}
08-15 11:12:06.840 D/vending (  486): [1] 
BaseBuyPageActivity.shouldAddCarrierBilling(): isProvisioned(): false 
isSavedonServer(): false radio available? false
08-15 11:12:06.840 D/vending (  486): [1] 
BaseBuyPageActivity.shouldAddCarrierBilling(): isProvisioned(): false 
isSavedonServer(): false radio available? false
08-15 11:12:06.920 D/dalvikvm(  486): GC_CONCURRENT freed 1083K, 50% free 
3578K/7111K, external 2340K/2614K, paused 2ms+3ms
08-15 11:12:09.270 D/vending (  486): [1] 
BaseBuyPageActivity.onOrderResponse(): state: CART_PURCHASE response: 
[PurchaseResult=OK]
08-15 11:12:10.350 D/dalvikvm(  235): GC_EXPLICIT freed 277K, 49% free 
2943K/5703K, external 1625K/2137K, paused 58ms
08-15 11:12:15.370 D/dalvikvm(  276): GC_EXPLICIT freed 106K, 48% free 
2815K/5379K, external 1625K/2137K, paused 69ms
08-15 11:12:16.720 D/NOTIFY_RECEIVED(  598): notification_id: 
-7957749141837872323  request_id: 1337
08-15 11:12:16.720 D/iapReceive(  598): Notify, notificationId 
-7957749141837872323
08-15 11:12:16.720 D/iapSend (  598): sending GET_PURCHASE_INFORMATION with 
notificationId -7957749141837872323
08-15 11:12:16.730 D/iapSend (  598): Google returned request ID 
345880552362868989 and response code 0
08-15 11:12:16.730 W/ActivityManager(   96): Duplicate finish request for 
HistoryRecord{40793f90 com.android.vending/.billing.InAppBuyPageActivity}
08-15 11:12:16.900 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 74K, 47% free 
3836K/7175K, external 3983K/3991K, paused 51ms
08-15 11:12:16.970 D/RESPONSE_CODE_RECEIVED(  598): request_id: 
5548734436255711559 response_code: 0
08-15 11:12:16.970 D/iapReceive(  598): Async response code, requestId 
5548734436255711559, responseCodeIndex 0
08-15 11:12:17.060 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 256K, 50% free 
3600K/7175K, external 4526K/4863K, paused 39ms
08-15 11:12:17.150 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 21K, 50% free 
3604K/7175K, external 4383K/4688K, paused 35ms
08-15 11:12:17.250 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 16K, 50% free 
3595K/7175K, external 4171K/4208K, paused 35ms
08-15 11:12:17.330 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 8K, 50% free 
3597K/7175K, external 3434K/3569K, paused 38ms
08-15 11:12:17.380 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 5K, 50% free 
3593K/7175K, external 3018K/3604K, paused 35ms
08-15 11:12:17.700 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 1K, 50% free 
3592K/7175K, external 6826K/6826K, paused 41ms
08-15 11:12:17.820 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 6K, 50% free 
3597K/7175K, external 3471K/3489K, paused 38ms
08-15 11:12:17.920 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 17K, 50% free 
3604K/7175K, external 3469K/3489K, paused 39ms
08-15 11:12:18.100 I/Gmail   (  347): MainSyncRequestProto: lowestBkwdConvoId: 
0, highestHandledServerOp: 1546501, normalSync: true
08-15 11:12:18.220 D/iapReceive(  598): inapp_signed_data is 
{"nonce":4801471918443175875,"orders":[{"notificationId":"-7957749141837872323",
"orderId":"848239623232633","packageName":"com.pocketgems.android.tapzoo","produ
ctId":"iap_10_gold","purchaseTime":1313439169000,"purchaseState":1}]}
08-15 11:12:18.320 D/dalvikvm(  598): GC_EXTERNAL_ALLOC freed 31K, 50% free 
3615K/7175K, external 3218K/3449K, paused 42ms
08-15 11:12:18.370 D/iapSend (  598): Google returned request ID 
2362716971852338379 and response code 0
08-15 11:12:18.370 D/iapSend (  598): sending confirmation with notificationId 
-7957749141837872323 with responseCode: 0
08-15 11:12:18.420 D/RESPONSE_CODE_RECEIVED(  598): request_id: 
345880552362868989 response_code: 0
08-15 11:12:18.420 D/iapReceive(  598): Async response code, requestId 
345880552362868989, responseCodeIndex 0
08-15 11:12:18.560 D/vending (  486): [16] 
VendingNotificationManager.showNotification(): Showing notification: 
[AssetID=Vial of Stars, NotificationID=-1546432422, Title=Vial of Stars, 
Message=Purchase failed.]
08-15 11:12:19.370 D/dalvikvm(  347): GC_CONCURRENT freed 481K, 53% free 
3202K/6727K, external 1625K/2137K, paused 2ms+5ms
08-15 11:12:19.710 D/RESPONSE_CODE_RECEIVED(  598): request_id: 
2362716971852338379 response_code: 0

NOTES:

Original issue reported on code.google.com by br...@pocketgems.com on 15 Aug 2011 at 8:27

Attachments: