Reputation: 3122
I try to setup an In-App-Purchase (IAP) for my iOS App using the Parse SDK.
This is how I do the IAP in my code:
PFPurchase.buyProduct("com.domain.MyIdentifier", block: { (error: NSError?) in
if error != nil {
print(error?.localizedDescription)
})
I registered a handler in AppDelegate
PFPurchase.addObserverForProduct("com.domain.MyIdentifier") { (transaction:SKPaymentTransaction) in
print("purchased")
}
It does not prompt for login where I want to put in my sandbox account credentials. I receive kPFErrorPaymentDisabled
error from Parse.
What does that mean?
Upvotes: 1
Views: 87
Reputation: 3122
This error occurs if IAP is disabled via Restrictions
in Settings.
Upvotes: 1