recordPurchase
iOS only. Always returns an error on iOS < 15.
Use this method only if you already have your own IAP implementation using StoreKit 2 and want to use RevenueCat's backend. If you are using StoreKit 1 for your implementation, you do not need this method.
You only need to use this method with new purchases. Subscription updates are observed automatically.
Important: This should only be used if you have set PurchasesAreCompletedBy to PurchasesAreCompletedBy.MyApp during SDK configuration.
Warning You need to finish the transaction yourself after calling this method.
Parameters
: The Product ID that was just purchased
Will be called if an error occurs, providing a PurchasesError describing what went wrong.
Will be called if the function completes successfully, including details on the StoreTransaction that was recorded.