If the in-app purchase button is unresponsive in your live app, but it works fine in SandBox mode, there may be an issue with the configuration of your app's production environment.
Here are some steps you can take to troubleshoot this issue:
Check that you have set up the In-App Purchase correctly in your live app environment. Make sure that the version of the app you uploaded to the App Store contains the correct In-App Purchase code.
Check that the In-App Purchase products have been created and are available for sale in your live app. You can do this by logging in to your App Store Connect account and checking the status of the In-App Purchase products.
Verify that your app's bundle ID matches the one that you used when you set up the In-App Purchase in App Store Connect. If the bundle ID does not match, the In-App Purchase button may not function properly.
Ensure that you have added the necessary code to handle In-App Purchases in your app. This includes handling responses from the App Store server, verifying receipts, and storing purchase data securely.
If none of the above steps solve the issue, you may need to contact Apple Developer Support for further assistance.
It is important to note that the In-App Purchase process can take some time to propagate throughout the App Store system, so it is possible that the button may not work immediately after you have uploaded a new version of your app. If this is the case, it is best to wait a few hours and try again.