Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions IAPHelper/IAPHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ typedef void (^resoreProductsCompleteResponseBlock) (SKPaymentQueue* payment,NSE
@property (nonatomic,strong) SKProductsRequest *request;
@property (nonatomic) BOOL production;

- (BOOL)canMakePayment;

- (void)requestProductsWithCompletion:(IAPProductsResponseBlock)completion;
- (id)initWithProductIdentifiers:(NSSet *)productIdentifiers;

Expand Down
6 changes: 5 additions & 1 deletion IAPHelper/IAPHelper.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,11 @@ - (void)dealloc
}
}

-(BOOL)isPurchasedProductsIdentifier:(NSString*)productID
- (BOOL)canMakePayment{
return [SKPaymentQueue canMakePayments];
}

- (BOOL)isPurchasedProductsIdentifier:(NSString*)productID
{

BOOL productPurchased = NO;
Expand Down