It has been a long time chasing the problem within my in-app purchase trials yet I can not seem to solve this issue.My product identifier keeps returning as "invalid product identifier". Hopefully someone will point it out.
@IBAction func btnRemoveAdsAction() {
NetworkActivityIndicatorManager.NetworkOperationStarted()
SwiftyStoreKit.purchaseProduct("ProductID", completion: {
result in
NetworkActivityIndicatorManager.networkOperationFinished()
if product.needsFinishTransaction {
SwiftyStoreKit.finishTransaction(product.transaction)
}
self.showAlert(alert: self.alertForPurchaseResult(result: result))
}
})
}
when press on button click and execute above code that will return in completion of method with "result" are always return error("invalid product identifier") and exist from the method.