Latest 1
Homepage https://github.com/stefankendall/IAPAdapter
License MIT
Platforms ios 7.0
Dependencies IAPManager
Authors

A small subclass for IAPManager that makes it easy to use with automated testing. Anywhere you would use IAPManager, use IAPAdapter instead.

Usage

1.) Get an instance

[IAPAdapter instance]

2.) Add purchases for unit testing

[[IAPAdapter instance] addPurchase:@"productId"]

[[IAPAdapter instance] hasPurchased:@"productId"] // true

3.) Running in the simulator
Whenever you try to purchase in the simulator, IAPAdapter will immediately succeed and call your success callback.

Latest podspec

{
    "name": "IAPAdapter",
    "version": "1",
    "license": "MIT",
    "summary": "A wrapper for IAPManager that makes in app purchases testable and works in the simulator.",
    "authors": {
        "Stefan Kendall": "[email protected]"
    },
    "homepage": "https://github.com/stefankendall/IAPAdapter",
    "source": {
        "git": "https://github.com/stefankendall/IAPAdapter.git",
        "tag": "1"
    },
    "source_files": "IAPAdapter",
    "platforms": {
        "ios": "7.0"
    },
    "dependencies": {
        "IAPManager": [
            "~> 0.2.2"
        ]
    },
    "requires_arc": false
}

Pin It on Pinterest

Share This