SwiftInAppPurchase alternatives and similar libraries
Based on the "App Store" category.
Alternatively, view SwiftInAppPurchase alternatives based on common mentions on social networks and blogs.
-
SwiftyStoreKit
Lightweight In App Purchases Swift framework for iOS 8.0+, tvOS 9.0+ and macOS 10.10+ ⛺ -
merchantkit
A modern In-App Purchases management framework for iOS. -
InAppPurchase
A Simple and Lightweight framework for In App Purchase -
AppReview
⭐️ A tiny library to request review on the AppStore. This is wrapper around native SKStoreReviewController. -
Glassfy
Open source SDK to quickly integrate subscriptions, stop worring about code maintenance, and getting advanced real-time data. Full support for iOS, iPadOS, WatchOS, MacOS
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SwiftInAppPurchase or a related project?
README
SwiftInAppPurchase
Simply code In App Purchases with this Swift Framework
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
SwiftInAppPurchase is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "SwiftInAppPurchase"
Author
Rawd, [email protected]
License
SwiftInAppPurchase is available under the Apache 2.0 license. See the LICENSE file for more info.
Production Mode
SwiftInAppPurchase.sharedInstance.setProductionMode(false)
Request Products
var productIden = Set<String>()
productIden.insert("com.irawd.test.30d")
let iap = SwiftInAppPurchase.sharedInstance
iap.requestProducts(productIden) { (products, invalidIdentifiers, error) -> () in
}
Purchase
let iap = SwiftInAppPurchase.sharedInstance
iap.addPayment("com.irawd.test.30d", userIdentifier: nil) { (result) -> () in
switch result{
case .Purchased(let productId,let transaction,let paymentQueue):
paymentQueue.finishTransaction(transaction)
case .Failed(let error):
print(error)
default:
break
}
}
RefreshReceipt
let iap = SwiftInAppPurchase.sharedInstance
iap.refreshReceipt { (error) -> () in
print(error)
}
VerifyReceipt
let iap = SwiftInAppPurchase.sharedInstance
iap.verifyReceipt(nil) { (receipt, error) -> () in
print(receipt)
print(error)
}
Restore
let iap = SwiftInAppPurchase.sharedInstance
iap.restoreTransaction(nil) { (result) -> () in
switch result{
case .Restored(let productId,let transaction,let paymentQueue) :
paymentQueue.finishTransaction(transaction)
case .Failed(let error):
print(error)
default:
break
}
}
CheckIncompleteTransaction
let iap = SwiftInAppPurchase.sharedInstance
iap.checkIncompleteTransaction { (result) -> () in
switch result{
case .Purchased(let productId,let transaction,let paymentQueue):
paymentQueue.finishTransaction(transaction)
case .Restored(let productId,let transaction,let paymentQueue) :
paymentQueue.finishTransaction(transaction)
default:
break
}
}
*Note that all licence references and agreements mentioned in the SwiftInAppPurchase README section above
are relevant to that project's source code only.