Problem with making production IOS in-app purchases

I submitted my app for review; however, it was rejected because my in-app purchase is not validating with the production server but with Apple’s test environment instead. I packaged my project with a distribution certificate and provision, I enabled the shipping configuration, and I enabled the ‘for distribution’ box. So, the test environment should not be used anymore, but for some reason, it’s still being used. I have attached pictures that show what a development build looks like with the test environment active when I make an in-app purchase, what currently shows with a distribution build that should not have the test environment active, and what happens when I don’t use a sandbox account with that distribution build (because it appears that the test environment is still active). I’ve also attached the resolution center message that Apple gave me when it rejected my binary. What I’ve read is that with a development build a sandbox account can be used to make an in-app purchase for free, but with a distribution build a normal account can be used to make a production in-app purchase. This is not happening with my app because it only accepts sandbox accounts even with a distribution build.