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

Removed canMakePayments check on purchase method #434

Merged
merged 1 commit into from
Jan 17, 2019

Conversation

puchog
Copy link

@puchog puchog commented Jan 14, 2019

This check is giving some troubles, returning bad values.
Easy way to check this is setting "Installing Apps" on Itunes & App Store restriction, canMakePayments should return YES, but its returning NO.
We was facing some production users of our app that reported other issues with the same check.
This lead us to a 30% decrease on our purchases.
Since this check is not required because the normal purchase flow will not let you buy anyway if the restrictions are set up, I removed it.

It seems to be related with this issue: https://forums.developer.apple.com/thread/22312

@bizz84 bizz84 merged commit 49c4c60 into bizz84:develop Jan 17, 2019
@bizz84
Copy link
Owner

bizz84 commented Jan 17, 2019

@puchog this is a great catch! Thank you for contributing!

@ghiculescu
Copy link

@puchog apart from the replication you described (turn off "installing apps"), did you find anything else that incorrectly causes canMakePayments to return false? We are trying to debug similar issues, and it seems like the most practical (but not very nice for UX) thing to do is to remove all canMakePayments checks and just let the OS show an error message if someone really can't purchase.

image

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

Successfully merging this pull request may close these issues.

3 participants