purchaseProduct is now deprecated. Please don’t remove it.
The first reason is that it is the most simple solution to buy a product. You just need one line of code and the identifier string (no object like the other solutions). It could also be the first starting point for beginners, so they don’t have to learn stuff they don’t need. E. g.:
- Learn purchaseProduct
- Do you have often changing products or need more data about a product? Now learn getProducts + purchaseStoreProduct
- You need to switch between product bundles (e. g. A/B Tests)? Use getOfferings+purchasePackage
- You need even more? Paywalls…
The second reason is that any other solution then purchaseProduct requires always to connect to RevenueCat to fetch the products/packages/offerings etc. This is bad for GDPR, because it's most of the time not requested by the user (tracking)