|
@@ -277,12 +277,12 @@ extension ViewController {
|
|
func alertForVerifySubscription(_ result: VerifySubscriptionResult) -> UIAlertController {
|
|
func alertForVerifySubscription(_ result: VerifySubscriptionResult) -> UIAlertController {
|
|
|
|
|
|
switch result {
|
|
switch result {
|
|
- case .purchased(let expiresDate):
|
|
|
|
- print("Product is valid until \(expiresDate)")
|
|
|
|
- return alertWithTitle("Product is purchased", message: "Product is valid until \(expiresDate)")
|
|
|
|
- case .expired(let expiresDate):
|
|
|
|
- print("Product is expired since \(expiresDate)")
|
|
|
|
- return alertWithTitle("Product expired", message: "Product is expired since \(expiresDate)")
|
|
|
|
|
|
+ case .purchased(let expiryDate):
|
|
|
|
+ print("Product is valid until \(expiryDate)")
|
|
|
|
+ return alertWithTitle("Product is purchased", message: "Product is valid until \(expiryDate)")
|
|
|
|
+ case .expired(let expiryDate):
|
|
|
|
+ print("Product is expired since \(expiryDate)")
|
|
|
|
+ return alertWithTitle("Product expired", message: "Product is expired since \(expiryDate)")
|
|
case .notPurchased:
|
|
case .notPurchased:
|
|
print("This product has never been purchased")
|
|
print("This product has never been purchased")
|
|
return alertWithTitle("Not purchased", message: "This product has never been purchased")
|
|
return alertWithTitle("Not purchased", message: "This product has never been purchased")
|