I have mobile app developed with Flutter and backend with Nodejs.
The app utilizes in-app-purchases; when the app sends buy request, Google Play Pub/Sub api sends a notification about the purchase to the server. If the server acknowledges the notification the purchase gets valid.
The problem is that when I run my test server and production server concurrently, both of the servers get the notification and one of them acknowledges. This creates problem when, for example, test purchase is handled by the production server, or vice-versa.
What are the best practises for this type of situation?
I thought to create seperate app projects on Google Play console but this could be hard to manage.