-
-
Notifications
You must be signed in to change notification settings - Fork 655
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
method to retrieve pending transactions #663
Conversation
@emilioicai Thanks for coming up with this! @solidfox could you also review this if you are available? I think you can be a good reviewer on the feature. |
@solifox I am sorry but I don't quite get what you mean by |
Sorry, github didn't make it very clear that I commented on a line in the code. The block gets fed an |
@emilioicai May I ask what kind of purchases you are seeing this bug for? (Consumable or Non-consumable?) It seems to me that rather than manually requesting unfinished purchases you should simply register your |
We've seen this in Non-consumables. We already have a listener |
@emilioicai I see. Have you evaluated the possibility of correcting |
@solidfox the range of issues is too wide (app crashing during the purchase process, lack of connectivity, user closing the app,...). On top of that, I think this method can be useful for several other use cases, what we are doing here is merely mapping a method which already exists in StoreKit so users of |
@emilioicai indeed, having that method mapped might make sense either way. Nonetheless, none of the cases you are listing should need anything more than your |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Certainly a sensible function to have mapped. Thanks for the help!
@emilioicai Actually I just noticed you're using the request verb in the naming of the function. In |
Yes, I'm passing |
done! |
@emilioicai I see, so it's actually an Apple bug that we're working around here. I'm now totally confident this should exist. Great work and explanation, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! @solidfox for a thorough review. Let's approve this feature! Thank you for your contribution @emilioicai.
@solidfox @emilioicai I've invited all of you as a |
Thanks a lot @hyochan ! |
I think the docs become too overwhelming with a variety of methods that do not really explain why they exist and when they should be used. Maybe good to adjust the docs to explain when you need this method? Or provide an example inside https://github.com/dooboolab/react-native-iap/tree/master/IapExample which shows how to use this correctly. |
We are having several customers complaining about their purchases not to be confirmed even though they are payed. We identify this might happen when something wrong happens between finishing the payment in the appstore and confirming the purchase. That's why we came with this method: it retrieves the pending transactions (those who are payed but not yet finished), so they can be processed and finished once the user receives his products. This can be very useful as a complement to a 'Restore Purchases' button, which can be pressed when the user has issues with his purchases.