Testing In App purchases in Sandbox environment

I have been trying to enable in app purchase in sandbox environment but instead it keeps performing transactions in Xcode. Also Apple says in its docs to set up sandbox tester account in Settings > App store without signing out from the non sandbox account, and says the sign in will appear as soon as we perform a transaction on device, but it does not worked for me

I have ensured and tried following things:

  1. Created sand box tester id
  2. Storekit configured , all the plans fetched
  3. Has development team
  4. Tried signing in Sandbox account
  5. Checked whether I am testing in production or development build by if else (It was in development)
  6. Tested on real device

Please help me get through this