Solved

the item you requested is not available to purchase

  • 21 December 2021
  • 3 replies
  • 147 views

Badge +1

when i try to purchase its throwing error .this is the log,but its printing product details.

 

D/EGL_emulation(11680): app_time_stats: avg=273.33ms min=5.91ms max=6435.79ms count=25
D/[Purchases] - DEBUG(11680): ℹ️ Vending Offerings from cache
D/[Purchases] - DEBUG(11680): ℹ️ Checking if cache is stale AppInBackground false
I/flutter (11680): 152.17968
I/flutter (11680): Product{identifier: test_01, description: this is test product description, title: test product (lauramonk.app.hotdealsgemet.prod (unreviewed)), price: 152.17968, priceString: ₹152.18, currencyCode: INR, introductoryPrice: null}
D/[Purchases] - DEBUG(11680): ℹ️ Vending Offerings from cache
D/[Purchases] - DEBUG(11680): 💰 Purchase started - product:  com.revenuecat.purchases.models.ProductDetails@e5f3361e  - offering: test_01
D/[Purchases] - DEBUG(11680): 💰 Purchasing product: test_01
D/[Purchases] - DEBUG(11680): ℹ️ Checking if cache is stale AppInBackground false
D/EGL_emulation(11680): app_time_stats: avg=534.12ms min=14.29ms max=12433.76ms count=24

icon

Best answer by cody 5 January 2022, 23:38

View original

3 replies

Badge +1

this is the error am getting,plze help me to fix this issue

 

W/ProxyBillingActivity( 4702): Activity finished with resultCode 0 and billing's responseCode: 4
W/BillingHelper( 4702): Couldn't find purchase lists, trying to find single data.
W/BillingHelper( 4702): Received a bad purchase data.
W/BillingHelper( 4702): Couldn't find single purchase data as well.
E/[Purchases] - ERROR( 4702): 🤖‼️ BillingWrapper purchases failed to update: DebugMessage: . ErrorCode: ITEM_UNAVAILABLE.null
E/[Purchases] - ERROR( 4702): 🤖‼️ The product is not available for purchase.
E/flutter ( 4702): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(5, The product is not available for purchase., {code: 5, message: The product is not available for purchase., readableErrorCode: ProductNotAvailableForPurchaseError, readable_error_code: ProductNotAvailableForPurchaseError, underlyingErrorMessage: Error updating purchases. DebugMessage: . ErrorCode: ITEM_UNAVAILABLE., userCancelled: false}, null)
E/flutter ( 4702): #0      StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:607:7)
E/flutter ( 4702): #1      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:18)
E/flutter ( 4702): <asynchronous suspension>
E/flutter ( 4702): #2      Purchases.purchasePackage (package:purchases_flutter/purchases_flutter.dart:184:22)
E/flutter ( 4702): <asynchronous suspension>
E/flutter ( 4702): #3      CheckOutScreen.build.<anonymous closure>.<anonymous closure> (package:hotdealsgemet/view_and_controllers/checkout_page/checkout_screen.dart:36:47)
E/flutter ( 4702): <asynchronous suspension>
E/flutter ( 4702): 

Userlevel 6
Badge +8

Hello!

It looks like other users have encountered this error, too. You might want to try with a real device instead of an emulator. You can read more about it here:

 

Badge

@cody still i am using in real devices but same issue facing can you help me to short out

const purchaseMade = await Purchases.purchasePackage(package);

 

 i am using above

Reply