{"id":22030878,"url":"https://github.com/jonastillges/swiftystorekithelper","last_synced_at":"2026-03-01T11:32:04.561Z","repository":{"id":265619093,"uuid":"158031929","full_name":"JonasTillges/SwiftyStoreKitHelper","owner":"JonasTillges","description":"🎉Facilitates the implementation of In-App-Purchases with SwiftyStoreKit. 🎉 😍 SwiftyStoreKit Helper","archived":false,"fork":false,"pushed_at":"2019-05-10T14:51:47.000Z","size":392,"stargazers_count":18,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-05T23:49:01.634Z","etag":null,"topics":["iap","iaphelper","in-app-purchases","ios","macos","purchase","swift","swift-language","swiftystorekit"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JonasTillges.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-17T22:57:34.000Z","updated_at":"2023-09-03T08:39:46.000Z","dependencies_parsed_at":"2024-11-30T06:49:31.399Z","dependency_job_id":"6b2925f3-2cc6-4f06-aa99-0321ec2bbfea","html_url":"https://github.com/JonasTillges/SwiftyStoreKitHelper","commit_stats":null,"previous_names":["jonastillges/swiftystorekithelper"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasTillges%2FSwiftyStoreKitHelper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasTillges%2FSwiftyStoreKitHelper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasTillges%2FSwiftyStoreKitHelper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonasTillges%2FSwiftyStoreKitHelper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonasTillges","download_url":"https://codeload.github.com/JonasTillges/SwiftyStoreKitHelper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252874148,"owners_count":21817764,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["iap","iaphelper","in-app-purchases","ios","macos","purchase","swift","swift-language","swiftystorekit"],"created_at":"2024-11-30T08:11:25.657Z","updated_at":"2026-03-01T11:32:04.523Z","avatar_url":"https://github.com/JonasTillges.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwiftyStoreKit Helper (IAPHelper)\n\u003cimg src=\"https://github.com/JonasTillges/SwiftyStoreKitHelper/blob/master/IAPHelperDemo/IAPHelperDemo/Assets.xcassets/SwiftyStoreKitHelper.png\"\u003e\n\n\n\nIAPHelper makes SwiftyStoreKit even lighter. And you get more features!\n\n\n# NEWS\nSwiftyStoreKitHelper now supports auto-renewable Subscribtions. You can easily implement the needed Terms or product information of your IAP product. totally auto-generated\n\n### Terms Sample:\n```\nSubscription price: 9,99$ Description: Premium to use all features. Free Trial: 1 Week. Subscription duration: 1 Month Please read below about the auto-renewing subscription nature of this product: \n\n• Payment will be charged to iTunes Account at confirmation of purchase • Subscription automatically renews unless auto-renew is turned off at least 24-hours before the end of the current period • Account will be charged for renewal within 24-hours prior to the end of the current period, and identify the cost of the renewal • Subscriptions may be managed by the user and auto-renewal may be turned off by going to the user's Account Settings after purchase • Any unused portion of a free trial period, if offered, will be forfeited when the user purchases a subscription to that publication, where applicable Terms of Use: \"your Terms Of Use link\" Privacy Policy: \"your Privacy Policy link\".\n```\n## \n\n## Prerequisites\n\n1. SwiftyStoreKit \n2. StoreKit\n3. iOS 5 or later\n\n### Add the \"SwiftyStoreKitHelper\" folder to your project.\n\n### Important!\n\nInstall SwiftyStoreKit as a CocoaPod. https://github.com/bizz84/SwiftyStoreKit\n\n```\npod 'SwiftyStoreKit'\n```\n## Set the products and sharedSecret in IAPHelper.swift\n```\nstatic let proSubscription = \"ProductId\"\n```\n```\nstatic let sharedSecret = \"yourSharedSecret\"\n```\n### Let's get started: \n\nInsert ```IAPHelper.startHelper()``` in your didFinishLaunchingWithOptions.\n```\n     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:    [UIApplication.LaunchOptionsKey: Any]?) -\u003e Bool {\n\n        IAPHelper.startHelper()\n        \n        return true\n    }\n```\n## Get Product Informations\n```\n        IAPHelper.getProductInfo(with: IAPHelper.Product1, completed: {() -\u003e () in\n            self.priceTag.text = IAPHelper.Info[0].priceString\n            self.productName.text = IAPHelper.Info[0].name\n            self.productDescription.text = IAPHelper.Info[0].localizedDescription\n        })\n```\n\n## Get Subscription Terms\nFor auto-renewable Subscriptions.\n```\n        IAPHelper.getSubscriptionTerms(with: IAPHelper.Product1, completed: {()-\u003e() in\n            self.subscriptionTermsText.text = IAPHelper.subscriptionTerms\n        })\n```\n\n## Verify Purchase\n\nVerify your Purchases with just one function call.\n\n### Verify consumable, non-consuable and subscriptions\n\n```\nIAPHelper.verifyPurchase(with: IAPHelper.proSubscription, sharedSecret: IAPHelper.sharedSecret, type: .autoRenewable)\n```\n\n## Purchase\n\nPurchase products.\n\n```\nIAPHelper.purchaseProduct(with: IAPHelper.proSubscription, sharedSecret: IAPHelper.sharedSecret, type: .autoRenewable)\n```\n## Restore Purchase\n\n```\nIAPHelper.restorePurchases()\n```\n\n\n## additionally\n\n### loading indicator\nIf you want you can use my loading indicator I have used in the demo project.\nJust use the IAPHelper.swift from the demo.\n\nIf you want to do it yourself:\n\nStart the animation:\n```\nSpinner.start()\n```\n\nStop the animation:\n```\nSpinner.stop()\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonastillges%2Fswiftystorekithelper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonastillges%2Fswiftystorekithelper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonastillges%2Fswiftystorekithelper/lists"}