How do I know if a payment was successful or not?

@shahin2019 Please DO NOT continue to send private emails when you been directly asked not to. If you continue to do so, you will get blocked here on the forum. If you are not able or willing to follow out suggestions, we would not be able to assist. In your logic you just showed, you set showAds = true just after they purchased a subscription to not show ads. This is incorrect logic. You also have a series of If/Else statements with no code associated with the logic. In summary, get the Sample IAP project working FIRST, without ANY changes (except the product names), THEN add your customization. You want to award your products in ProcessPurchase, this is the event that is triggered when a user makes a purchase, please confirm in your testing with the Sample IAP project, coded without any changes. Publish on Google Play first, it’s easiest. And also you’ll want to learn how to capture device logs, they will be invaluable for troubleshooting later on, once you get it working. These links may help How To - Capturing Device Logs on Android and Unity - Manual: Configuring for Google Play Store