Value of the key in App.entitlements file for enabling In-App Purchase capability. Which one?

Hello!

Trying to find any info about how to add In-App Purchase with application Entitlements.plist file manually (NOT with XCode). Is there any reference within keys and description?

What need to be in this file:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>key-for-in-app-purchase</key>
    <string>value</string>
</dict>
</plist>

@a.bogong

There is no In-App Purchase entitlement as explained in Determining if an entitlement is real. Additionally, implementing In-App Purchase doesn't require an In-App Purchase entitlement. To implement the feature, you need to use an explicit App ID.

It's really strange to read your message after getting this result in XCode

And this result after changing key with 'com.apple.developer.in-app-payments' value

There are to keys that is working now: com.apple.developer.in-app-payments - add Apple Pay and In-App Purchase com.apple.in-app-payments - add only In-App Purchase

For now trying to understand why the difference between my examples and yours

To implement In-App Purchase in your app, you need:

  • Accept the Paid Apps Agreement and complete all tax and banking information.

  • Have an explicit App ID registered in App Store Connect. The In-App Purchase capability appears enabled by default for an explicit App ID and disabled for a wildcard App ID. Hence, it is unnecessary to add the capability in Xcode. Remove it from your project.

  • Configure In-App Purchases products for your App ID in App Store Connect.

You can test In-App Purchases in Xcode test local environment or sandbox. For more information, see

Value of the key in App.entitlements file for enabling In-App Purchase capability. Which one?
 
 
Q