RevenueCat / purchases-flutter

Flutter plugin for in-app purchases and subscriptions. Supports iOS, macOS and Android.
https://www.revenuecat.com/
MIT License
601 stars 167 forks source link

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)) #625

Open EkramAminTornet opened 1 year ago

EkramAminTornet commented 1 year ago

‼️ 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

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.

NachoSoto commented 1 year ago

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.

EkramAminTornet commented 1 year ago

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"}

NachoSoto commented 1 year ago

Thanks.

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

michaelAtRC commented 1 year ago

Hey @EkramAminTornet,

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

EkramAminTornet commented 1 year ago

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: @.***>

michaelAtRC commented 1 year ago

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.