Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
StoreKit.RestoreCompletedTransactions
Asks the payment queue to restore previously completed purchases.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
StoreKit | 8.2 | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |
MBS( "StoreKit.RestoreCompletedTransactions" { ; Username } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Username | An opaque identifier for the user’s account on your system. | Optional |
Result
Returns OK or error.
Description
Asks the payment queue to restore previously completed purchases.Your application calls this method to restore transactions that were previously finished so that you can process them again. For example, your application would use this to allow a user to unlock previously purchased content onto a new device.
When you create a new product to be sold in your store, you choose whether that product can be restored or not. See the In-App Purchase Programming Guide for more information.
The payment queue will deliver a new transaction for each previously completed transaction that can be restored. Each transaction includes a copy of the original transaction.
See also
This function checks for a license.
Created 22nd April 2018, last changed 22nd April 2018
StoreKit.RequestReview - StoreKit.SetProductViewFinishedTrigger