I have added in app products in play console and also imported them to revenue cat dashboard, i am also fetching and displaying these products in my app, now i know that there is a method called "Purchases.purchaseProduct" but i dont know how to use it.
For Purchases.purchasePackage method we get customerInfo object back on successfull purchase but what do we get or how do we know user successfully bought the product, i can only see Purchases.purchaseProduct in documentation
You can use the customerInfo object that you get as a response to check and confirm whether or not the person had made a successful purchase by checking their entitlements that they have after the call. If they have the entitlement associated with whatever product was purchased, then that purchase was a success and they should be able to access anything that is supposed to be accessible//unlocked with that entitlement.
You can use the customerInfo object that you get as a response to check and confirm whether or not the person had made a successful purchase by checking their entitlements that they have after the call. If they have the entitlement associated with whatever product was purchased, then that purchase was a success and they should be able to access anything that is supposed to be accessible//unlocked with that entitlement.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.