purchases-flutter icon indicating copy to clipboard operation
purchases-flutter copied to clipboard

PlatformException (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: Couldn't find product.}, null))

Open EkramAminTornet opened this issue 2 years ago • 6 comments

‼️ Required data ‼️

Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.

There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!

Environment

  • [ ] Output of flutter doctor
  • [ ] Version of purchases-flutter
  • [ ] Testing device version e.g.: iOS 15.5, Android API 30, etc.
  • [ ] How often the issue occurs- every one of your customers is impacted? Only in dev?
  • [ ] Debug logs that reproduce the issue
  • [ ] Steps to reproduce, with a description of expected vs. actual behavior Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

Describe the bug

A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue.

Additional context

Add any other context about the problem here.

EkramAminTornet avatar Feb 27 '23 11:02 EkramAminTornet

Thanks for the report!

We ask that you go through the Required Data part of the issue template and provide the required information so we can help you with this issue.

Thanks.

NachoSoto avatar Feb 27 '23 17:02 NachoSoto

Dear, This is the output of my debug console, which already returned the products, but when I requested to purchase that product that issue was occurred.

.............................................................................. Products request finished for 10_coins D/[Purchases] - DEBUG( 937): 💰 Retrieved skuDetailsList: SkuDetails: {"productId":"10_coins","type":"inapp","title":"10 coin (Torliga)","name":"10 coin","description":"buy 10 coins ","price":"$0.99","price_amount_micros":990000,"price_currency_code":"USD","skuDetailsToken":"token"} D/[Purchases] - DEBUG( 937): 💰 10_coins - SkuDetails: {"productId":"10_coins","type":"inapp","title":"10 coin )","name":"10 coin","description":"buy 10 coins","price":"$0.99","price_amount_micros":990000,"price_currency_code":"USD","skuDetailsToken":"token"}

EkramAminTornet avatar Feb 28 '23 07:02 EkramAminTornet

Thanks.

Could you please provide us the rest of the information so we can look into this? image

NachoSoto avatar Feb 28 '23 16:02 NachoSoto

Hey @EkramAminTornet,

Can you please provide us with the extra information so we can look more into this issue for you?

michaelAtRC avatar Mar 08 '23 17:03 michaelAtRC

Hi Michel,

I found the issue, I created the products from appstore and google play console also in revenue account. but I can't complete payment profile from both google play and appstore which need to purchase products and in-app subscription, due to my country is "iraq" and doesn't support by google and apple. and I published my application on google which user can buy products by recharging his/her balance, but apple rejected, said apple payment required to buy digital contents like coin. please can you help me

Thank you for your support.

Best Regards

On Wed, Mar 8, 2023 at 9:52 AM michaelAtRC @.***> wrote:

Hey @EkramAminTornet https://github.com/EkramAminTornet,

Can you please provide us with the extra information so we can look more into this issue for you?

— Reply to this email directly, view it on GitHub https://github.com/RevenueCat/purchases-flutter/issues/625#issuecomment-1460589550, or unsubscribe https://github.com/notifications/unsubscribe-auth/A3MHD6HMMWP53BWNRDPZU3LW3DBOTANCNFSM6AAAAAAVJH7UFE . You are receiving this because you were mentioned.Message ID: @.***>

EkramAminTornet avatar Mar 09 '23 12:03 EkramAminTornet

Hello @EkramAminTornet ,

Unfortunately, we don't have any workarounds for unsupported countries. RevenueCat supports any countries that are supported by Google Play/Apple App Store - if the purchase isn't allowed in a certain country as a restriction by Google Play/Apple App Store, we unfortunately, won't be able to track the purchase.

michaelAtRC avatar Mar 10 '23 18:03 michaelAtRC