Properties
App Store only. Set this property to true only if you’re transitioning an existing Mac app from the Legacy Mac App Store into the Universal Store, and you’ve configured your RevenueCat app accordingly. Contact RevenueCat support before using this.
Current version of the Purchases SDK
Set a custom log handler for redirecting logs to your own logging system.
Singleton instance of Purchases. configure will set this. Will throw an exception if the shared instance has not been configured.
App Store only. Set this property to true only when testing the ask-to-buy / SCA purchases flow. More information available here.
Functions
Check if billing is supported for the current Play user (meaning IN-APP purchases are supported) and optionally, whether all features in the list of specified feature types are supported. This method is asynchronous since it requires a connected BillingClient.
Note: This method only works for the Google Play Store and App Store. There is no Amazon equivalent at this time. Calling from an Amazon-configured app will return true.
Configures an instance of the SDK with the specified configuration. The instance will be set as a singleton. You should access the singleton instance using sharedInstance.
Configures an instance of the SDK with the specified configuration builder. The instance will be set as a singleton. You should access the singleton instance using sharedInstance.
Given a url string, parses it and returns a WebPurchaseRedemption, which can be used to redeem a web purchase using Purchases.redeemWebPurchase