Platforms to show: All Mac Windows Linux Cross-Platform
The module StoreKit2MBS
module StoreKit2MBS| Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
| module | StoreKit | MBS Swift Plugin | 25.4 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | Desktop & iOS |
Due to bridging between C++ and Swift, we pass content of classes as Dictionaries, so we don't need to bridge each property and copy over data efficiently.
Support In-App Purchases and interactions with the App Store.
Use the StoreKit framework to provide the following features and services for your apps and In-App Purchases:
- In-App Purchase. Offer and promote In-App Purchases for content and services.
- App transaction. Verify a customer’s app purchase with an App Store-signed transaction.
- Reviews. Request App Store reviews and ratings from your customers.
Most functions require macOS 12, iOS 15 or newer.
For a lot of things, we have additional properties in dictionaries for newer OS versions.
- 2 properties
- property deviceVerificationID as String
- property ProductCount as Integer
- 25 methods
- method AllTransactions(completed as TransactionsCompletedMBS)
- method AllTransactions(ProductID as String, completed as TransactionsCompletedMBS)
- method beginRefundRequest(TransactionID as UInt64, completed as BeginRefundRequestCompletedMBS) New in 26.0
- method CanMakePayments as Boolean
- method ClearUpdates
- method currentEntitlement(ProductIdentifier as String, completed as TransactionsCompletedMBS)
- method CurrentEntitlements(completed as TransactionsCompletedMBS)
- method CurrentEntitlements(ProductID as String, completed as TransactionsCompletedMBS)
- method FinishTransaction(completed as FinishCompletedMBS = nil)
- method latestTransaction(ProductIdentifier as String, completed as TransactionsCompletedMBS)
- method presentOfferCodeRedeemSheet
- method Product(Index as Integer) as Dictionary
- method PurchaseProduct(ProductIdentifier as String, parentWindow as DesktopWindow, PurchaseOptions as Dictionary, completed as PurchaseProductCompletedMBS = nil)
- method PurchaseProduct(ProductIdentifier as String, parentWindow as Window, PurchaseOptions as Dictionary, completed as PurchaseProductCompletedMBS = nil)
- method PurchaseProduct(ProductIdentifier as String, PurchaseOptions as Dictionary, completed as PurchaseProductCompletedMBS = nil)
- method QueryProducts(identifiers() as String, completed as QueryProductsCompletedMBS = nil)
- method refreshAppTransaction(completed as TransactionsCompletedMBS)
- method requestAgeRange(Age1 as integer, Age2 as Integer, Age3 as Integer, completed as RequestAgeRangeCompletedMBS) New in 26.0
- method RequestReview
- method SetUpdates(update as TransactionsCompletedMBS)
- method sharedAppTransaction(completed as TransactionsCompletedMBS)
- method ShowManageSubscriptions
- method ShowManageSubscriptions(GroupID as String)
- method Sync(completed as SyncCompletedMBS = nil)
- method Transaction as Dictionary
- 7 delegates
- delegate BeginRefundRequestCompletedMBS(errorMessage as String, status as String) New in 26.0
- delegate FinishCompletedMBS(errorMessage as String)
- delegate PurchaseProductCompletedMBS(errorMessage as String, result as Dictionary)
- delegate QueryProductsCompletedMBS(errorMessage as String, products() as Dictionary)
- delegate RequestAgeRangeCompletedMBS(errorMessage as String, result as Dictionary) New in 26.0
- delegate SyncCompletedMBS(errorMessage as String)
- delegate TransactionsCompletedMBS(errorMessage as String, transactions() as Dictionary)
- 3 constants
App Store Environments
| Constant | Value | Description |
|---|---|---|
| AppStoreEnvironmentProduction | "Production" |
A value that indicates the production server environment. |
| AppStoreEnvironmentSandbox | "Sandbox" |
A value that indicates the sandbox server environment. |
| AppStoreEnvironmentXcode | "Xcode" |
A value that indicates the StoreKit Testing in Xcode environment. |
Blog Entries
- MBS Xojo Plugins, version 26.1pr1
- News from the MBS Xojo Plugins Version 26.0
- MonkeyBread Software Releases the MBS Xojo Plugins in version 26.0
- News from the MBS Xojo Plugins Version 25.5
- MBS Xojo Plugins, version 25.6pr1
- MBS Xojo Plugins, version 25.5pr5
- News from the MBS Xojo Plugins in Version 25.4
- MonkeyBread Software Releases the MBS Xojo Plugins in version 25.4
- StoreKit 2 for Xojo
- MBS Xojo Plugins, version 25.4pr5
Release notes
- Version 26.1
- Fixed Transaction function in StoreKit2MBS module.
- Version 26.0
- Added beginRefundRequest method to StoreKit2MBS module.
- Added requestAgeRange method to StoreKit2MBS module.
- Version 25.5
- Added ShowManageSubscriptions methods to StoreKit2MBS class.
- Version 25.4
- Added StoreKit2MBS module for StoreKit 2 framework from Apple.
The items on this page are in the following plugins: MBS Swift Plugin.