SwiftInAppPurchase alternatives and similar libraries
Based on the "Payments" 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+ ⛺ -
RevenueCat
In-app purchases and subscriptions made easy. Support for iOS, watchOS, tvOS, macOS, and visionOS. -
CreditCardForm-iOS
CreditCardForm is iOS framework that allows developers to create the UI which replicates an actual Credit Card. -
monza
Ruby Gem for Rails - Easy iTunes In-App Purchase Receipt validation, including auto-renewable subscriptions -
Glassfy
DISCONTINUED. 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
InfluxDB - Purpose built for real-time analytics at any scale.
* 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.