funkenstrahlen
funkenstrahlen

Reputation: 3122

Sandbox Testing In App Purchase with Parse: kPFErrorPaymentDisabled

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

Answers (1)

funkenstrahlen
funkenstrahlen

Reputation: 3122

This error occurs if IAP is disabled via Restrictions in Settings.

Upvotes: 1

Related Questions