Do in-app purchase promo codes not work in testflight?

In Testflight app on iphone, on entering promo code for in-app purchase, we are getting a success message from the app store on redeeming but the purchase success event in the react native code that works for in-app purchases is not being triggered.

I found some discussions from a few years back that mentioned that promo codes only work in production environment. So do promo codes still only work in production environment or is there a way to test promo codes in testflight?