Vitaa / Iapurchasemanager
Licence: mit
Swift In-App Purchase Manager for iOS
Stars: ✭ 90
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Iapurchasemanager
Nestjs Braintree
A module for braintree reoccurring payments and transactions 💳
Stars: ✭ 62 (-31.11%)
Mutual labels: payments
Dj Paypal
Paypal integration for Django - Inspired by Dj-Stripe
Stars: ✭ 55 (-38.89%)
Mutual labels: payments
E Wallet
Wallet project based on laravel. The project is integrated with stripe for card payments and paypal APIs. It is 90% complete with features including deposits send money with cool ui. Clone the project and start your wallet system asap. cheers
Stars: ✭ 65 (-27.78%)
Mutual labels: payments
Ln Pay
A minimalistic payment only wallet for Lightning Network
Stars: ✭ 29 (-67.78%)
Mutual labels: payments
Openfintech
Opensource FinTech standards & payment provider data
Stars: ✭ 87 (-3.33%)
Mutual labels: payments
Payment icons
An easy to use library that allows you to manage and access payment icons
Stars: ✭ 59 (-34.44%)
Mutual labels: payments
Ilp Kit
Everything needed to create a ledger and connect it to the Interledger
Stars: ✭ 72 (-20%)
Mutual labels: payments
Connect Java Sdk
Java client library for the Square Connect v2 API
Stars: ✭ 36 (-60%)
Mutual labels: payments
React Native Stripe Payments
Lightweight, easy to integrate and use React native library for Stripe payments (using Payment Intents) compliant with SCA (strong customer authentication)
Stars: ✭ 78 (-13.33%)
Mutual labels: payments
Stripe Payments Demo
Sample store accepting universal payments on the web with Stripe Elements, Payment Request, Apple Pay, Google Pay, Microsoft Pay, and the PaymentIntents API. 💳🌍✨
Stars: ✭ 1,287 (+1330%)
Mutual labels: payments
Braintree Android Drop In
Braintree Drop-In SDK for Android
Stars: ✭ 78 (-13.33%)
Mutual labels: payments
Shopping cart
A basic shopping cart for digital products. Made with Django
Stars: ✭ 70 (-22.22%)
Mutual labels: payments
IAPurchaseManager
Swift In-App Purchase Manager for iOS
Easy-to-use a singleton class that supports non-renewable in-app purchases. It's super cool because
- it's written in Swift
- it uses blocks!
Making a purchase
If you want to make a purchase, all you need to do is to call a method:
IAPManager.shared.purchaseProduct(productId: productId) { (error) -> Void in
if error == nil {
// successful purchase!
} else {
// something wrong..
}
}
You can call purchaseProductWithId without first loading products info because inside purchaseProductWithId it'll load it if needed. So just call purchaseProductWithId whenever you want to make a purchase.
But if you need to get all products info, you can load it by calling:
IAPManager.shared.loadProducts(productIds: []) { (products, error) in }
Check product was purchased
To check if a product was purchased, call (it returns Bool):
IAPManager.shared.isProductPurchased(productId)
Restore transactions
To restore transactions call:
IAPManager.shared.restoreCompletedTransactions { (error) in }
All completed transactions are saved to a file: ```swift data.write(to: purchasedItemsURL(), options: [.atomicWrite, .completeFileProtection]) ``` Details
Just drag IAPManager.swift to your project. Setup
or using CocoaPods
pod 'IAPurchaseManager'
If you are using Swift 2.x, then
pod 'IAPurchaseManager', '~> 0.0.2'
github "Vitaa/IAPurchaseManager"
If you want to add validation, keychain support or some other features, feel free to send me pull requests!
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].