-
Notifications
You must be signed in to change notification settings - Fork 798
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
Product info retrieval support #1
Comments
It does, through the InAppProductQueryRequest class, however this has not been exposed in the public interface. InAppProductQueryRequest takes a set of product IDs as input, and returns an array of [SKProduct] in the completion block. This is used internally by the main SwiftyStoreKit class. Would you like for this to be exposes? What is your use case? |
Paragraph: Retrieving Product Information. I believe product information including price should be shown to the user, before he decides to initiate the payment. |
Sounds reasonable. InAppProductQueryRequest is what you need as it will give you an array of SKProducts. All is needed is to make the class public along with its |
I've created quick pull request, it is still under testing. I've tried to follow coding conventions. One problem inconvenience this may cause is users might need to import StoreKit manually when using SKProduct. I believe wrapping it might be good idea. |
@darekxan Thanks for the PR, merged with minor code formatting changes. I also updated the README to document the new functionality and updated the pod version to 0.1.1. |
Does the library support retrieving of product info in any way?
The text was updated successfully, but these errors were encountered: