|
@@ -189,23 +189,18 @@ class ViewController: UIViewController {
|
|
let purchaseResult = SwiftyStoreKit.verifySubscription(
|
|
let purchaseResult = SwiftyStoreKit.verifySubscription(
|
|
ofType: .autoRenewable,
|
|
ofType: .autoRenewable,
|
|
productId: productId,
|
|
productId: productId,
|
|
- inReceipt: receipt,
|
|
|
|
- validUntil: Date()
|
|
|
|
- )
|
|
|
|
|
|
+ inReceipt: receipt)
|
|
self.showAlert(self.alertForVerifySubscriptions(purchaseResult, productIds: [productId]))
|
|
self.showAlert(self.alertForVerifySubscriptions(purchaseResult, productIds: [productId]))
|
|
case .nonRenewingPurchase:
|
|
case .nonRenewingPurchase:
|
|
let purchaseResult = SwiftyStoreKit.verifySubscription(
|
|
let purchaseResult = SwiftyStoreKit.verifySubscription(
|
|
ofType: .nonRenewing(validDuration: 60),
|
|
ofType: .nonRenewing(validDuration: 60),
|
|
productId: productId,
|
|
productId: productId,
|
|
- inReceipt: receipt,
|
|
|
|
- validUntil: Date()
|
|
|
|
- )
|
|
|
|
|
|
+ inReceipt: receipt)
|
|
self.showAlert(self.alertForVerifySubscriptions(purchaseResult, productIds: [productId]))
|
|
self.showAlert(self.alertForVerifySubscriptions(purchaseResult, productIds: [productId]))
|
|
default:
|
|
default:
|
|
let purchaseResult = SwiftyStoreKit.verifyPurchase(
|
|
let purchaseResult = SwiftyStoreKit.verifyPurchase(
|
|
productId: productId,
|
|
productId: productId,
|
|
- inReceipt: receipt
|
|
|
|
- )
|
|
|
|
|
|
+ inReceipt: receipt)
|
|
self.showAlert(self.alertForVerifyPurchase(purchaseResult, productId: productId))
|
|
self.showAlert(self.alertForVerifyPurchase(purchaseResult, productId: productId))
|
|
}
|
|
}
|
|
|
|
|