-
-
Notifications
You must be signed in to change notification settings - Fork 658
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
buySubscription on iOS failing multiple times for users #412
Comments
Thanks @hyochan Is there anything I’m doing obviously wrong in the attached code? I saw someone commented that it may be caused by an Invalid Product ID. Are there any gotchas that I may be missing regarding Product ID? It’s strange to me because it works fine for me in the US but breaks for users in Vietnam, Cambodia and other countries. |
@noahhayes I've briefly saw your code and seems to look ok. I'd suggest you to use I hope you to check some tax agreement for |
I believe the original question has nothing to do with the localized description, but the actual error code (SKErrorPaymentCancelled that got mapped to the standardized "E_USER_CANCELLED" here). #291 didn't touch that part of the code so reverting it won't address the issue. |
@mars-lan Thanks for confirming. I did not had time to look through that. I'll come back when I am available. |
@noahhayes What happens when you change the code like the below?
|
I have something similar where they go through the flow, have to change payment method (for example) and then the component doesn't return anything after the transaction is completed. In this case, we make them restore the purchases and everything is fine. |
@edo1493 Could you provide some codes? Do you mean you've just called |
Version of react-native-iap
2.2.2
Version of react-native
0.57
Platforms you faced the error (IOS or Android or both?)
Expected behavior
Error message should distinguish between user cancelling purchase and user experiencing an error.
Actual behavior
I'm noticing that a large number of my users are getting an error when attempting to purchase a subscription. In my error logs, I'm seeing the CANCELLED error message when they try to buy. Of course, many of these users could actually be cancelling their transaction. However, I'm curious to dig into this further because there are many users that attempt to make the purchase multiple times. For example, some users will press purchase 4 times in a row and are not able to complete the transaction--they all show the CANCELLED error message. I can't figure out if they are just confused and cancelling the purchase or if it's breaking due to an unknown error.
Attached is roughly the code I'm using.
RegisterActivate2.txt
Tested environment (Emulator? Real Device?)
Real Device
Steps to reproduce the behavior
I can't reproduce it myself. I'm only seeing the activity through logging.
The text was updated successfully, but these errors were encountered: