暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
APPLE c9d5bdcd60 va 1年前
..
.sample.json va 1年前
README.md va 1年前
README.md.meta va 1年前
RefreshingAppReceipt.cs va 1年前
RefreshingAppReceipt.cs.meta va 1年前
RefreshingAppReceipt.unity va 1年前
RefreshingAppReceipt.unity.meta va 1年前
UserWarningAppleAppStore.cs va 1年前
UserWarningAppleAppStore.cs.meta va 1年前

README.md

README - In-App Purchasing Sample Scenes - App Store - Refreshing App Receipts

This sample showcases how to use the Apple App Store extensions to refresh app receipts. This allows developers to manually check for new purchases without creating new transactions, in contrast to RestoreTransactions.

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 > Refreshing App Receipt script > No Ads Product Id field or change the noAdsProductId field in the RefreshingAppReceipt.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.

Refreshing App Receipts

Using RefreshAppReceipt will prompt the user to enter their Apple login password.

See the documentation for receipt validation and the iOS & Mac App Stores for more additional information.