-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
inAppPurchase.restoreCompletedTransactions does nothing #27819
Comments
Thanks for reporting this and helping to make Electron better! Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use. Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests. I'm adding the Thanks in advance! Your help is appreciated. |
Thank you for your issue! We haven't gotten a response to our questions in our comment above. With only the information that is currently in the issue, we don't have enough information to take action. I'm going to close this but don't hesitate to reach out if you have or find the answers we need, we'll be happy to reopen the issue. |
Hi, did you resolve the problem? i have the same issue here, is this api broken? i'm using electron version 28. |
this is a long time ago but as I remember I had a misunderstanding about how the API works. I think:
Best Regards, |
Hi, sorry for take this long to response, didn't notice email before, yes this is how i implement it in my code, my problem is when i call inAppPurchase.restoreCompletedTransactions(), I didn't receive any "transactions-updated" event, it just does nothing. but when i test in testFlight environment call in-app-purchase api it can receive "transactions-updated" event normally. |
Preflight Checklist
Issue Details
Expected Behavior
When executing
inAppPurchase.restoreCompletedTransactions()
I expect the app to open a dialog and to ask the user for its app store credentials. I would also expect theinAppPurchase.on('transactions-updated' ...)
transaction handler to be triggered so I receive the recipe.Actual Behavior
Nothing happens after
inAppPurchase.restoreCompletedTransactions()
is executed.To Reproduce
Just execute
inAppPurchase.restoreCompletedTransactions()
in the main process of an electron app (electron version v11.2.1).Additional Information
The use case for this functionality is not only to restore already purchased products but also to redeem promo codes.
The text was updated successfully, but these errors were encountered: