eligibleURLs
An array of external purchase links for the current storefront that the app configured and from which it chooses.
Declaration
static var eligibleURLs: [URL]? { get async }Discussion
Use this property if your app configures the SKExternalPurchaseMultiLink property list key.
Use the eligibleURLs to get the array of external purchase links for the current storefront that your app has configured in the SKExternalPurchaseMultiLink property list key. Your app can select from any of the eligible URLs. Call open(url:) with the URL you choose.
The eligibleURLs array is nil if any of the following is true:
The current App Store storefront doesn’t allow external purchase or the person isn’t eligible to make external purchases.
Your app doesn’t configure the com.apple.developer.storekit.external-purchase-link entitlement.
Your app doesn’t configure any links for the current storefront in the SKExternalPurchaseMultiLink property list key
If this value is nil and your app also configures the SKExternalPurchaseLink property list key, check canOpen to determine whether your app can continue to provide an external purchase link.
Otherwise, if this value is nil, check canMakePayments to determine whether your app can offer in-app purchases using the StoreKit In-App Purchase APIs. For more information, see canMakePayments.