Skip to content

Commit

Permalink
Fix demo compilation error after b3f2601 - Merge pull request bizz84#652
Browse files Browse the repository at this point in the history
 from azouts/master

Communicate deferred transactions to the app
  • Loading branch information
bivant committed May 19, 2022
1 parent f3265c7 commit c98e90b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SwiftyStoreKit-iOS-Demo/ViewController.swift
Expand Up @@ -279,6 +279,8 @@ extension ViewController {
case .success(let purchase):
print("Purchase Success: \(purchase.productId)")
return nil
case .deferred(purchase: _):
return alertWithTitle("Purchase deferred", message: "The purchase deferred")
case .error(let error):
print("Purchase Failed: \(error)")
switch error.code {
Expand Down
2 changes: 2 additions & 0 deletions SwiftyStoreKit-macOS-Demo/ViewController.swift
Expand Up @@ -193,6 +193,8 @@ extension ViewController {
case .success(let purchase):
print("Purchase Success: \(purchase.productId)")
return alertWithTitle("Thank You", message: "Purchase completed")
case .deferred(purchase: _):
return alertWithTitle("Purchase deferred", message: "The purchase deferred")
case .error(let error):
print("Purchase Failed: \(error)")
switch error.code {
Expand Down

0 comments on commit c98e90b

Please sign in to comment.