{"id":1774,"url":"https://github.com/sandorgyulai/InAppFramework","last_synced_at":"2025-08-02T04:32:32.184Z","repository":{"id":56915408,"uuid":"44112155","full_name":"sandorgyulai/InAppFramework","owner":"sandorgyulai","description":"In App Purchase Manager framework for iOS","archived":false,"fork":false,"pushed_at":"2018-12-11T16:08:36.000Z","size":28,"stargazers_count":43,"open_issues_count":0,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-06-25T19:40:23.540Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sandorgyulai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-12T14:22:20.000Z","updated_at":"2025-05-12T06:14:25.000Z","dependencies_parsed_at":"2022-08-21T02:50:39.659Z","dependency_job_id":null,"html_url":"https://github.com/sandorgyulai/InAppFramework","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/sandorgyulai/InAppFramework","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandorgyulai%2FInAppFramework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandorgyulai%2FInAppFramework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandorgyulai%2FInAppFramework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandorgyulai%2FInAppFramework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandorgyulai","download_url":"https://codeload.github.com/sandorgyulai/InAppFramework/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandorgyulai%2FInAppFramework/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268334618,"owners_count":24233793,"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","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-01-05T20:15:55.505Z","updated_at":"2025-08-02T04:32:31.949Z","avatar_url":"https://github.com/sandorgyulai.png","language":"Swift","funding_links":[],"categories":["Payments","Libs"],"sub_categories":["Other Parsing","Other free courses","App Store"],"readme":"# InAppFramework\nIn App Purchase Manager framework for iOS\n\n### Disclaimer\nI know it's been too long since the last update, quite a few things happened in my life, but now I am back again and started with a nice update for Swift 4.2 compatibility. More to come, stay tuned!\n\n##### ToDo for 1.0\n\n- ☐ Documentation!! Work in progress\n- ☐ Change productPurchased(productIdentifier: String) -\u003e Bool to return Tuple with 2 bools to replace hasValidReceipt property\n- ☑︎ Change NSURLConnection to NSURLSession\n\n### Installation\n\n#### CocoaPods\n\n```\npod 'InAppFw'\n```\n\n### Usage\n\nFirst you should add product IDs:\n```swift\nInAppFw.sharedInstance.addProductId(String)\nInAppFw.sharedInstance.addProductIds([String])\n```\n\nThen you can request them from the Apple servers:\n```swift\nInAppFw.sharedInstance.requestProducts(completionHandler: (success: Bool, products: [SKProduct]?)\n```\n\nMake purchases:\n```swift\nInAppFw.sharedInstance.purchaseProduct(SKProduct)\n```\n\nRestore purchases:\n```swift\nInAppFw.sharedInstance.restoreCompletedTransactions()\n```\n\nRegister for notifications:\n```swift\n- kIAPPurchasedNotification\n- kIAPFailedNotification\n```\n\nLoad the previously purchased products:\n```swift\nInAppFw.sharedInstance.loadPurchasedProducts(checkWithApple: Bool, completion: ((valid: Bool) -\u003e Void)?)\n```\n```checkWithApple```: if ```true```, will validate the Purchase receipt with Apple Servers too. The completion will be only true if the receipt is valid.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandorgyulai%2FInAppFramework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandorgyulai%2FInAppFramework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandorgyulai%2FInAppFramework/lists"}