使用 Parse 在 App Purchase 中进行沙盒测试:kPFErrorPaymentDisabled

Sandbox Testing In App Purchase with Parse: kPFErrorPaymentDisabled

我尝试使用 Parse SDK 为我的 iOS 应用设置应用内购买 (IAP)。

这是我在代码中执行 IAP 的方式:

        PFPurchase.buyProduct("com.domain.MyIdentifier", block: { (error: NSError?) in
            if error != nil {
                print(error?.localizedDescription)
        })

我在 AppDelegate

中注册了一个处理程序
    PFPurchase.addObserverForProduct("com.domain.MyIdentifier") { (transaction:SKPaymentTransaction) in
        print("purchased")
    }

不提示登录 我想在其中输入我的沙盒帐户凭据。我从 Parse 收到 kPFErrorPaymentDisabled 错误。

这是什么意思?

如果通过“设置”中的 Restrictions 禁用 IAP,则会出现此错误。