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

Implement ITransactionHistoryExtensions #16

Open
jsteinich opened this issue May 13, 2020 · 5 comments
Open

Implement ITransactionHistoryExtensions #16

jsteinich opened this issue May 13, 2020 · 5 comments
Assignees

Comments

@jsteinich
Copy link

ITransactionHistoryExtensions is useful for determining more information about why a purchase failed.
Currently trying to access results in an exception:

ArgumentException: No binding for type UnityEngine.Purchasing.ITransactionHistoryExtensions
      at UnityEngine.Purchasing.PurchasingFactory.GetExtension[T]

Ideally it would have the error code and debug message that gets logged on failure.

@Qing451800
Copy link
Collaborator

Thanks for letting us know. We add this to our backlog.

@RaulGMR
Copy link

RaulGMR commented Aug 6, 2020

Any updates on this? I also have the same issue, when I try to retrieve extra info from a failed purchase ...

@Qing451800
Copy link
Collaborator

It turns out to be not that straightforward since this interface is not in Purchasing.dll but in Stores.dll. We're still investigating it. It's not our top priority but it's definitely on our list.

@jsteinich
Copy link
Author

I've gotten a version of this at least partially working here.

I'm relying on the fact that our project includes unity purchasing and therefore Stores.dll, but I imagine that won't work for the published package.

@Qing451800
Copy link
Collaborator

Qing451800 commented Sep 25, 2020

The implementation looks good to me. If that serves your purpose, then feel free to use it.

We're holding a similar fix because we don't want to create a dependency on Unity's Stores.dll. Once the Unity IAP is fully migrated to use the Package Manager, the dependency issue will not happen.

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

3 participants