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

Support toggling Google service on/off with validateOnce #286

Open
comtaler opened this issue Sep 13, 2019 · 1 comment
Open

Support toggling Google service on/off with validateOnce #286

comtaler opened this issue Sep 13, 2019 · 1 comment

Comments

@comtaler
Copy link

We are trying to integrate a new receipt verification service called Flexion. It is a portal for various stores (amazon/samsung/...), it generates receipts in the same way as Google's receipt format except that it adds an extra field in the payload to indicate that it is signed by Flexion. And it uses public key to validate the receipt the same way as Google.

I have tried different ways to use this library to work around supporting both Google service validation and Flexion at the same time. But failed to do so.

I looked into the code, since useGoogleApi is a global variable, I can't re-configure the lib every time when making a purchase since multiple receipt validations can be going at the same time.

What would be the best way to support our usage case?

@ghost
Copy link

ghost commented Jun 2, 2020

Hi, I have the same problem. When i use iap.reset() the variable 'useGoogleApi' still has its old value. Would you change this?

Thanks for your time

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

1 participant