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

Usage questions #55

Closed
deekshithbellare opened this issue Jul 6, 2016 · 2 comments
Closed

Usage questions #55

deekshithbellare opened this issue Jul 6, 2016 · 2 comments

Comments

@deekshithbellare
Copy link

  1. after SwiftyStoreKit.restorePurchases(), how to check if auto renewable subscription is active?
    Do I need to call verify subscription? SwiftyStoreKit.verifySubscription
  2. let subscriptionState = SwiftyStoreKit.verifySubscription(productId: "myprouctID", inReceipt: AppState.receipt, validUntil: NSDate(), validDuration: nil)
    where do I get receipt? Can I use
    receiptInfo = InAppReceipt.base64EncodedString as receipt to verify the active subscription?
@bizz84
Copy link
Owner

bizz84 commented Jul 10, 2016

@deekshibellare You should call verifyReceipt() followed by verifySubscription() as explained here:

https://github.com/bizz84/SwiftyStoreKit#verify-subscription

More information here: #45

@bizz84
Copy link
Owner

bizz84 commented Feb 20, 2017

@deekshibellare closing this due to inactivity - however please feel free to open a new issue if you need further clarifications.

@bizz84 bizz84 closed this as completed Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants