All Projects → Vitaa → Iapurchasemanager

Vitaa / Iapurchasemanager

Licence: mit
Swift In-App Purchase Manager for iOS

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Iapurchasemanager

Adyen Ruby Api Library
Adyen API Library for Ruby
Stars: ✭ 35 (-61.11%)
Mutual labels:  payments
Nestjs Braintree
A module for braintree reoccurring payments and transactions 💳
Stars: ✭ 62 (-31.11%)
Mutual labels:  payments
Sdk Ios
Add card payments from iZettle to your own app
Stars: ✭ 74 (-17.78%)
Mutual labels:  payments
Mangopay2 Nodejs Sdk
Node.js SDK for MANGOPAY
Stars: ✭ 40 (-55.56%)
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
Dj Stripe
Django + Stripe Made Easy
Stars: ✭ 1,022 (+1035.56%)
Mutual labels:  payments
Stripy
Micro wrapper for Stripe's REST API.
Stars: ✭ 49 (-45.56%)
Mutual labels:  payments
Gopay
💰 Integrace Gopay pro Nette Framework
Stars: ✭ 68 (-24.44%)
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
Bit
Bitcoin made easy.
Stars: ✭ 958 (+964.44%)
Mutual labels:  payments
Pybtc
Python bitcoin library
Stars: ✭ 64 (-28.89%)
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

  1. it's written in Swift
  2. 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 }

Details

All completed transactions are saved to a file: ```swift data.write(to: purchasedItemsURL(), options: [.atomicWrite, .completeFileProtection]) ```

Setup

Just drag IAPManager.swift to your project.

or using CocoaPods

pod 'IAPurchaseManager'

If you are using Swift 2.x, then

pod 'IAPurchaseManager', '~> 0.0.2'

Carthage compatible

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].