Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PurchaseAsync returns null with no indication of what went wrong. #590

Open
axorth2 opened this issue Jan 22, 2024 · 3 comments
Open

PurchaseAsync returns null with no indication of what went wrong. #590

axorth2 opened this issue Jan 22, 2024 · 3 comments

Comments

@axorth2
Copy link

axorth2 commented Jan 22, 2024

If you are creating an issue for a BUG please fill out this information. If you are asking a question or requesting a feature you can delete the sections below.

Failure to fill out this information will result in this issue being closed. If you post a full stack trace in a bug it will be closed, please post it to http://gist.github.com and then post the link here.

Bug Information

Version Number of Plugin: 7.1.0
Device Tested On: Windows 11 - Maui
Simulator Tested On:
Version of VS: 2022 Enterprise
Version of Xamarin: Maui Core 8
Versions of other things you are using:

Steps to reproduce the Behavior

Created valid (and MSFT) approved in app purchase
Used the product ID in call to GetProductInfoAsync which returns with my product
Attempted to purchase the product using PurchaseAsync which returned null.

Expected Behavior

Should be able to purchase the product, or get an indication of the nature of the problem.

Actual Behavior

Received a null value from this call

Code snippet

            var connected = await billing.ConnectAsync();
            if (!connected)
                return false;

            //make additional billing calls
            var products = await billing.GetProductInfoAsync(ItemType.InAppPurchase, new string[] { "com.xibcircles.3dshapes" });

Screenshots

image image
@imsam67
Copy link

imsam67 commented Feb 7, 2024

I’m seeing this on iOS with AppStore subscription purchases but it’s intermittent.

@wsoftone
Copy link

wsoftone commented Sep 5, 2024

I have the same issue on windows.

@justinkingst
Copy link

I am also experiencing this issue on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants