Before using this class you must authorize or register with the help of VPNUAuthorizer
class. You must pass the same VPNUTransport
instance to its constructor as you have passed to VPNUAuthorizer
instance constructor.
Extends: NSObject
Declared in: VPNUPurchaseManager.h
- (instancetype)initWithTransport:(VPNUTransport *)transport NS_DESIGNATED_INITIALIZER;
An initialized purchase manager object or nil if the object couldn't be created.
Available in Mac OS X v10.7. Available in iOS v7.0.
- (NSError *)validatePurchaseItem:(VPNUPurchaseItem *)purchaseItem;
nil
if validation succeeded, error object otherwise.
This method blocks a calling thread.
This method shouldn't be called from main thread.
Available in Mac OS X v10.7. Available in iOS v7.0.
+ (instancetype)purchaseManagerWithTransport:(VPNUTransport *)transport;
An initialized purchase manager object or nil if the object couldn't be created.
This method is a convenience constructor.
Available in Mac OS X v10.7. Available in iOS v7.0.