Skip to content

Commit

Permalink
Merge pull request #6 from appcraftstudio/add-in-app-purchases-support
Browse files Browse the repository at this point in the history
Add shouldAddAppStorePayment implementation
  • Loading branch information
frboulais committed Sep 16, 2020
2 parents c49af9f + 5c91b8a commit d00670f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/BuyMeACoffee/BMCButton.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class BMCButton: UIButton {
}
}

convenience init(configuration: Configuration) {
public convenience init(configuration: Configuration) {
self.init(type: .custom)

self.configuration = configuration
Expand Down
4 changes: 4 additions & 0 deletions Sources/BuyMeACoffee/BMCManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,9 @@ public final class BMCManager: NSObject, SKProductsRequestDelegate, SKPaymentTra
}
}
}

public func paymentQueue(_ queue: SKPaymentQueue, shouldAddStorePayment payment: SKPayment, for product: SKProduct) -> Bool {
true
}
}
#endif

0 comments on commit d00670f

Please sign in to comment.