|
||
---|---|---|
.. | ||
.sample.json | ||
GettingProductDetails.cs | ||
GettingProductDetails.cs.meta | ||
GettingProductDetails.unity | ||
GettingProductDetails.unity.meta | ||
README.md | ||
README.md.meta | ||
UserWarningAppleAppStore.cs | ||
UserWarningAppleAppStore.cs.meta |
README.md
README - In-App Purchasing Sample Scenes - Apple App Store - Getting Product Details
This sample showcases how to use Apple extensions to get additional product details.
Instructions to test this sample:
- Have in-app purchasing correctly configured with the Apple App Store.
- Configure a non-consumable product.
- Set your own product's id in the
InAppPurchasing game object > Getting Product Information script > No Ads Product Id field
or change thenoAdsProductId
field in theGettingProductDetails.cs
script. - Build your project for
iOS
.- If you are using a simulator with Xcode 12+, follow these instructions to set up StoreKit Testing.
Getting Product Information
IAppleExtension.GetProductDetails
returns a dictionary of JSON encoded strings keyed by productIds, made up of:
subscriptionNumberOfUnits
subscriptionPeriodUnit
localizedPrice
isoCurrencyCode
localizedPriceString
localizedTitle
localizedDescription
introductoryPrice
introductoryPriceLocale
introductoryPriceNumberOfPeriods
numberOfUnits
unit