Latest 0.1.1
Homepage https://github.com/mfa01/SimpleInAppPurchaseKit
License MIT
Platforms ios 8.0, requires ARC
Frameworks StoreKit
Authors

SimpleInAppPurchaseKit

============

 

SimpleInAppPurchaseKit to buy and restore apple in app purchases easily,

so just add this pods to your project and start using it in a seconds,

you can do buy, get price and restore actions

 

 

Add this line in your pod file

  pod ‘SimpleInAppPurchaseKit’

 

 

In your .h file

 

1-add SimpleInAppPurchaseKit header

#import “SimpleInAppPurchaseKit.h”

 

2-Also add this to delegates

<SimpleInAppPurchaseKitDelegate>

 

For example

@interface testViewController : UIViewController<SimpleInAppPurchaseKitDelegate>

 

3-Define in the class

SimpleInAppPurchaseKit* inapps;

 

 

 

 

in .m file

 

Define the class before using it

inapps=[[SimpleInAppPurchaseKit alloc]init];

inapps.delegate=self;

 

to buy product

[inapps purchaseProductWithID:@”com.company.app.exmaple1″ ShowInView:self];

 

 

to restore old purchases

 

[inapps restoreAllProductsAndShowInView:self];

 

 

to get product price

[inapps getPriceForProduct:@”com.company.app.exmaple1″ ShowInView:self];

 

 

 

Add Callbacks

 

-(void)inappControllerSuccesfullyPurchasedProduct:(NSString*)productID{

}

-(void)inappControllerSuccesfullyRestoredProduct:(NSMutableArray*)products{

}

-(void)inappControllerFaildToPurchase{

}

 

 

Available Methods

 

-(BOOL)canMakePurchases;

-(void)saveProduct:(NSString*)prodID;

-(bool)isProductPurchased:(NSString*)prodID;

-(void)getPriceForProduct:(NSString *)productId ShowInView:(UIViewController*)parentView;

 

 

for any support please contact me

[email protected]

Latest podspec

{
    "name": "SimpleInAppPurchaseKit",
    "version": "0.1.1",
    "summary": "SimpleInAppPurchaseKit is a open source kit to help you to integrate inapps to your project easily and in no time",
    "description": "SimpleInAppPurchaseKit to buy and restore apple in app purchases easily, so just add this pods to your project and start using it in a seconds, you can do buy,get price and restore actions",
    "homepage": "https://github.com/mfa01/SimpleInAppPurchaseKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "MAbed": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/mfa01/SimpleInAppPurchaseKit.git",
        "tag": "0.1.1"
    },
    "source_files": "Classes/*.{h,m}",
    "frameworks": "StoreKit",
    "requires_arc": true,
    "resources": [
        "Assets/*.png",
        "Assets/*.plist"
    ]
}

Pin It on Pinterest

Share This