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

Add a wrapper for simulatesAskToBuyInSandbox #349

Merged
merged 1 commit into from
Mar 4, 2018
Merged

Add a wrapper for simulatesAskToBuyInSandbox #349

merged 1 commit into from
Mar 4, 2018

Conversation

bitjeep
Copy link
Contributor

@bitjeep bitjeep commented Feb 23, 2018

Added a way to use the simulatesAskToBuyInSandbox property of SKMutablePayment (added in iOS 8.3, tvOS 9.0). This property is intended to allow you to use a sandbox account to test how your app handles the situation where Ask To Buy is turned on for in-app purchases.

Details of Ask To Buy and testing it can be found at:

Unfortunately, from the last stackoverflow discussion, people are reporting that this property doesn't work as expected. My own testing with the iOS 11.2 SDK confirms this: even when the property is set when using a sandbox account, transactions are never reported in the deferred state. However, if/when Apple fixes this issue, then this wrapper functionality will allow it to be used.

…SKMutablePayment. This allows testing of Ask To Buy when using a sandbox testing account (see https://stackoverflow.com/questions/42152560/how-to-handle-skpaymenttransactionstatedeferred for details).
@bizz84
Copy link
Owner

bizz84 commented Mar 4, 2018

@bitjeep Thank you for contributing! 👏💯

@bizz84 bizz84 merged commit 1a470a4 into bizz84:develop Mar 4, 2018
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.

None yet

2 participants