Skip to content

KN-7593: Added functionality for purchasing a number of consumable products #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

igor-kulik
Copy link
Contributor

No description provided.

self.purchaseActionState = .loading
guard let localСompared = try? localAvailableProducts(by: { $0.productIdentifier == identifier }),
let product = localСompared.first else {
self.purchaseActionState = .finish(PurchaseActionResult.error(PurchaseError.noLocalProduct))
return
}
SwiftyStoreKit.purchaseProduct(product, atomically: atomically) { [unowned self] (results) in
SwiftyStoreKit.purchaseProduct(product, quantity: quantity, atomically: atomically) { [unowned self] (results) in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check what will be if we pass zero at quantity

alert.addTextField(configurationHandler: { textField in
textField.keyboardType = .numberPad
})
let okAction = UIAlertAction(title: "Ok", style: .default, handler: { [weak self] action in
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move actions configure in to separate method

@igor-kulik igor-kulik closed this Jul 30, 2019
@igor-kulik igor-kulik deleted the feature/KN-7593 branch July 30, 2019 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants