SquareDash/Library/PackageCache/com.unity.purchasing@4.10.0/Samples~/Apple App Store - 07 gettingProductDetails
kingjuulian06 0efb85038a Arbeit 2
2023-11-21 22:03:49 +01:00
..
.sample.json Arbeit 2 2023-11-21 22:03:49 +01:00
GettingProductDetails.cs Arbeit 2 2023-11-21 22:03:49 +01:00
GettingProductDetails.cs.meta Arbeit 2 2023-11-21 22:03:49 +01:00
GettingProductDetails.unity Arbeit 2 2023-11-21 22:03:49 +01:00
GettingProductDetails.unity.meta Arbeit 2 2023-11-21 22:03:49 +01:00
README.md Arbeit 2 2023-11-21 22:03:49 +01:00
README.md.meta Arbeit 2 2023-11-21 22:03:49 +01:00
UserWarningAppleAppStore.cs Arbeit 2 2023-11-21 22:03:49 +01:00
UserWarningAppleAppStore.cs.meta Arbeit 2 2023-11-21 22:03:49 +01:00

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:

  1. Have in-app purchasing correctly configured with the Apple App Store.
  2. Configure a non-consumable product.
  3. Set your own product's id in the InAppPurchasing game object > Getting Product Information script > No Ads Product Id field or change the noAdsProductId field in the GettingProductDetails.cs script.
  4. Build your project for iOS.
    1. 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